]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/tx48/Makefile
TX6 Release 2013-04-22
[karo-tx-uboot.git] / board / karo / tx48 / Makefile
1 #
2 # Makefile
3 #
4 # Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
5 #
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation version 2.
9 #
10 # This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 # kind, whether express or implied; without even the implied warranty
12 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15
16 include $(TOPDIR)/config.mk
17
18 LIB     = $(obj)lib$(BOARD).o
19
20 ifeq ($(CONFIG_SPL_BUILD),)
21         COBJS   := tx48.o
22 else
23         COBJS   := spl.o
24 endif
25
26 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
27 OBJS    := $(addprefix $(obj),$(COBJS))
28 SOBJS   := $(addprefix $(obj),$(SOBJS))
29
30 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
31         $(call cmd_link_o_target, $(OBJS) $(SOBJS))
32
33 clean:
34         rm -f $(SOBJS) $(OBJS)
35
36 distclean:      clean
37         rm -f $(LIB) core *.bak $(obj).depend
38
39 #########################################################################
40
41 # defines $(obj).depend target
42 include $(SRCTREE)/rules.mk
43
44 sinclude $(obj).depend
45
46 #########################################################################