blob: 877be48d61516ecc54eff68c3c0aea8ddb200aa8 [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
Anatolij Gustschin0abdd6b2011-05-29 21:16:20 +000010COBJS-y := $(BOARD).o cmd_mtc.o
11COBJS-$(CONFIG_VIDEO) += cmd_disp.o
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +010012
Anatolij Gustschin0abdd6b2011-05-29 21:16:20 +000013SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
14OBJS := $(addprefix $(obj),$(COBJS-y))
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +010015SOBJS := $(addprefix $(obj),$(SOBJS))
16
17$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010018 $(call cmd_link_o_target, $(OBJS))
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +010019
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +010020#########################################################################
21
22# defines $(obj).depend target
23include $(SRCTREE)/rules.mk
24
25sinclude $(obj).depend
26
27#########################################################################