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