blob: a40076c870ae0a4c18faf0eb61c11cf110f0a50f [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
Sebastien Carliera8d426f2010-11-05 15:48:07 +01008LIB = $(obj)lib$(BOARD).o
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +01009
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)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010017 $(call cmd_link_o_target, $(OBJS))
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +010018
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#########################################################################