Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 1 | |
| 2 | # |
| 3 | # Author: Grzegorz Bernacki, Semihalf, gjb@semihalf.com |
| 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 8 | LIB = $(obj)lib$(BOARD).o |
Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 9 | |
Anatolij Gustschin | a59996e | 2011-05-29 21:16:20 +0000 | [diff] [blame] | 10 | COBJS-y := $(BOARD).o cmd_mtc.o |
| 11 | COBJS-$(CONFIG_VIDEO) += cmd_disp.o |
Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 12 | |
Anatolij Gustschin | a59996e | 2011-05-29 21:16:20 +0000 | [diff] [blame] | 13 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 14 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 15 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 16 | |
| 17 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 18 | $(call cmd_link_o_target, $(OBJS)) |
Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 19 | |
Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 20 | ######################################################################### |
| 21 | |
| 22 | # defines $(obj).depend target |
| 23 | include $(SRCTREE)/rules.mk |
| 24 | |
| 25 | sinclude $(obj).depend |
| 26 | |
| 27 | ######################################################################### |