Grzegorz Bernacki | afc9d6d | 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 | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 8 | LIB = $(obj)lib$(BOARD).o |
Grzegorz Bernacki | afc9d6d | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 9 | |
Anatolij Gustschin | 0abdd6b | 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 | afc9d6d | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 12 | |
Anatolij Gustschin | 0abdd6b | 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 | afc9d6d | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 15 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 16 | |
| 17 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 18 | $(call cmd_link_o_target, $(OBJS)) |
Grzegorz Bernacki | afc9d6d | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 19 | |
| 20 | clean: |
| 21 | rm -f $(SOBJS) $(OBJS) |
| 22 | |
| 23 | distclean: clean |
| 24 | rm -f $(LIB) core *.bak .depend |
| 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |