blob: 75fef32b0dcc6b2088723f6a88cf142329a51899 [file] [log] [blame]
Tom Warrenb2871032012-12-11 13:34:15 +00001#
2# Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
3#
4# (C) Copyright 2000-2008
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
7# This program is free software; you can redistribute it and/or modify it
8# under the terms and conditions of the GNU General Public License,
9# version 2, as published by the Free Software Foundation.
10#
11# This program is distributed in the hope it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14# more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
18#
19
20include $(TOPDIR)/config.mk
21
22# The AVP is ARMv4T architecture so we must use special compiler
23# flags for any startup files it might use.
24
25LIB = $(obj)lib$(SOC)-common.o
26
27COBJS-y += clock.o funcmux.o pinmux.o
28
29SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
30OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
31
32all: $(obj).depend $(LIB)
33
34$(LIB): $(OBJS)
35 $(call cmd_link_o_target, $(OBJS))
36
37#########################################################################
38
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
41
42sinclude $(obj).depend
43
44#########################################################################