Tom Warren | 7c5883f | 2013-01-28 13:32:09 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved. |
| 3 | # |
| 4 | # (C) Copyright 2000-2003 |
| 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 | |
| 20 | include $(TOPDIR)/config.mk |
| 21 | |
| 22 | LIB = $(obj)lib$(SOC).o |
| 23 | |
| 24 | COBJS := $(COBJS-y) |
| 25 | SRCS := $(COBJS:.o=.c) |
| 26 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 27 | |
| 28 | all: $(obj).depend $(LIB) |
| 29 | |
| 30 | $(LIB): $(OBJS) |
| 31 | $(call cmd_link_o_target, $(OBJS)) |
| 32 | |
| 33 | ######################################################################### |
| 34 | |
| 35 | # defines $(obj).depend target |
| 36 | include $(SRCTREE)/rules.mk |
| 37 | |
| 38 | sinclude $(obj).depend |
| 39 | |
| 40 | ######################################################################### |