blob: 67a87a1aafd4b53b601ed80e2a27e9cb44ff0b9f [file] [log] [blame]
Chandan Nath7d744102011-10-14 02:58:26 +00001#
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
17include $(TOPDIR)/config.mk
18
19LIB = $(obj)lib$(BOARD).o
20
Tom Rini7a247722012-07-31 10:50:01 -070021ifdef CONFIG_SPL_BUILD
Tom Rini59c2cc92012-07-30 16:13:10 -070022COBJS := mux.o
Tom Rini7a247722012-07-31 10:50:01 -070023endif
Chandan Nath7d744102011-10-14 02:58:26 +000024
Peter Korsgaard85ec2db2012-10-18 01:21:09 +000025COBJS += board.o
Chandan Nath7d744102011-10-14 02:58:26 +000026SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
27OBJS := $(addprefix $(obj),$(COBJS))
28SOBJS := $(addprefix $(obj),$(SOBJS))
29
30$(LIB): $(obj).depend $(OBJS) $(SOBJS)
31 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
32
33clean:
34 rm -f $(SOBJS) $(OBJS)
35
36distclean: clean
37 rm -f $(LIB) core *.bak $(obj).depend
38
39#########################################################################
40
41# defines $(obj).depend target
42include $(SRCTREE)/rules.mk
43
44sinclude $(obj).depend
45
46#########################################################################