blob: 74875b32558c2957415ee177320fcb1daa9dad77 [file] [log] [blame]
Chandan Nath1c959692011-10-14 02:58:22 +00001#
2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License as
6# published by the Free Software Foundation; either version 2 of
7# the License, or (at your option) any later version.
8#
9# This program is distributed "as is" WITHOUT ANY WARRANTY of any
10# kind, whether express or implied; without even the implied warranty
11# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14
15include $(TOPDIR)/config.mk
16
17LIB = $(obj)lib$(SOC).o
18
Chandan Nath4ba33452011-10-14 02:58:23 +000019COBJS += clock.o
Chandan Nath1c959692011-10-14 02:58:22 +000020COBJS += sys_info.o
Chandan Nath98b036e2011-10-14 02:58:24 +000021COBJS += ddr.o
22COBJS += emif4.o
Chandan Nath7d744102011-10-14 02:58:26 +000023COBJS += board.o
Peter Korsgaard5d3f6822012-10-18 01:21:11 +000024COBJS += mux.o
Chandan Nath1c959692011-10-14 02:58:22 +000025
26SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
27OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
28
29all: $(obj).depend $(LIB)
30
31$(LIB): $(OBJS)
32 $(call cmd_link_o_target, $(OBJS))
33
34clean:
35 rm -f $(SOBJS) $(OBJS)
36
37distclean: clean
38 rm -f $(LIB) core *.bak .depend
39
40#########################################################################
41
42# defines $(obj).depend target
43include $(SRCTREE)/rules.mk
44
45sinclude $(obj).depend
46
47#########################################################################