Stephen Warren | 0d04f34 | 2012-08-05 16:07:22 +0000 | [diff] [blame] | 1 | # |
| 2 | # See file CREDITS for list of people who contributed to this |
| 3 | # project. |
| 4 | # |
| 5 | # This program is free software; you can redistribute it and/or |
| 6 | # modify it under the terms of the GNU General Public License |
| 7 | # version 2 as published by the Free Software Foundation. |
| 8 | # |
| 9 | # This program is distributed in the hope that it will be useful, but |
| 10 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | # GNU General Public License for more details. |
| 13 | # |
| 14 | |
| 15 | include $(TOPDIR)/config.mk |
| 16 | |
| 17 | LIB = $(obj)lib$(BOARD).o |
| 18 | |
| 19 | COBJS := $(BOARD).o |
| 20 | |
| 21 | SRCS := $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) |
| 25 | $(call cmd_link_o_target, $(OBJS)) |
| 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |