Tom Warren | f83e9c6 | 2012-09-19 14:08:52 -0700 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2010,2011 Nvidia Corporation. |
| 3 | # |
| 4 | # (C) Copyright 2000-2008 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Tom Warren | f83e9c6 | 2012-09-19 14:08:52 -0700 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB = $(obj)libcputegra-common.o |
| 13 | |
| 14 | SOBJS += lowlevel_init.o |
Tom Warren | 82b5134 | 2013-03-25 16:22:26 -0700 | [diff] [blame] | 15 | COBJS-y += ap.o board.o sys_info.o timer.o clock.o cache.o |
Tom Warren | f83e9c6 | 2012-09-19 14:08:52 -0700 | [diff] [blame] | 16 | |
| 17 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 18 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) |
| 19 | |
| 20 | all: $(obj).depend $(LIB) |
| 21 | |
| 22 | $(LIB): $(OBJS) |
| 23 | $(call cmd_link_o_target, $(OBJS)) |
| 24 | |
| 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |