blob: 19f5b3a684a3da899af3116464b2de6eeebd9bfb [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
20clean:
21 rm -f $(SOBJS) $(OBJS)
22
23distclean: clean
24 rm -f $(LIB) core *.bak .depend
25
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################