blob: 19f5b3a684a3da899af3116464b2de6eeebd9bfb [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
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#########################################################################