]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/ti/am335x/Makefile
ARM:AM33XX: Add support for TI AM335X EVM
[karo-tx-uboot.git] / board / ti / am335x / 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; either version 2 of
9 # the License, or (at your option) any later version.
10 #
11 # This program is distributed "as is" WITHOUT ANY WARRANTY of any
12 # kind, whether express or implied; without even the implied warranty
13 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16
17 include $(TOPDIR)/config.mk
18
19 LIB     = $(obj)lib$(BOARD).o
20
21 COBJS   := evm.o mux.o
22
23 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
24 OBJS    := $(addprefix $(obj),$(COBJS))
25 SOBJS   := $(addprefix $(obj),$(SOBJS))
26
27 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
28         $(call cmd_link_o_target, $(OBJS) $(SOBJS))
29
30 clean:
31         rm -f $(SOBJS) $(OBJS)
32
33 distclean:      clean
34         rm -f $(LIB) core *.bak $(obj).depend
35
36 #########################################################################
37
38 # defines $(obj).depend target
39 include $(SRCTREE)/rules.mk
40
41 sinclude $(obj).depend
42
43 #########################################################################