Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 1 | |
| 2 | # |
| 3 | # Author: Grzegorz Bernacki, Semihalf, gjb@semihalf.com |
| 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
| 8 | LIB = $(obj)lib$(BOARD).a |
| 9 | |
| 10 | COBJS := $(BOARD).o |
| 11 | |
| 12 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 13 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 14 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 15 | |
| 16 | $(LIB): $(obj).depend $(OBJS) |
| 17 | $(AR) $(ARFLAGS) $@ $(OBJS) |
| 18 | |
| 19 | clean: |
| 20 | rm -f $(SOBJS) $(OBJS) |
| 21 | |
| 22 | distclean: clean |
| 23 | rm -f $(LIB) core *.bak .depend |
| 24 | |
| 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |