blob: 877be48d61516ecc54eff68c3c0aea8ddb200aa8 [file] [log] [blame]
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +01001
2#
3# Author: Grzegorz Bernacki, Semihalf, gjb@semihalf.com
4#
5
6include $(TOPDIR)/config.mk
7
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01008LIB = $(obj)lib$(BOARD).o
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +01009
Anatolij Gustschina59996e2011-05-29 21:16:20 +000010COBJS-y := $(BOARD).o cmd_mtc.o
11COBJS-$(CONFIG_VIDEO) += cmd_disp.o
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +010012
Anatolij Gustschina59996e2011-05-29 21:16:20 +000013SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
14OBJS := $(addprefix $(obj),$(COBJS-y))
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +010015SOBJS := $(addprefix $(obj),$(SOBJS))
16
17$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010018 $(call cmd_link_o_target, $(OBJS))
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +010019
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +010020#########################################################################
21
22# defines $(obj).depend target
23include $(SRCTREE)/rules.mk
24
25sinclude $(obj).depend
26
27#########################################################################