Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2003 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)lib$(CPU).o |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 11 | |
| 12 | START := start.o |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 13 | |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 14 | COBJS += cache_v7.o |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 15 | |
Aneesh V | 210f331 | 2011-11-21 23:33:59 +0000 | [diff] [blame] | 16 | COBJS += cpu.o |
| 17 | COBJS += syslib.o |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 18 | |
TENART Antoine | a6be77c | 2013-07-02 12:05:58 +0200 | [diff] [blame] | 19 | ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI81XX),) |
Tom Rini | ee5bce4 | 2012-08-08 17:03:10 -0700 | [diff] [blame] | 20 | SOBJS += lowlevel_init.o |
| 21 | endif |
| 22 | |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 23 | SRCS := $(START:.o=.S) $(COBJS:.o=.c) |
Tom Rini | ee5bce4 | 2012-08-08 17:03:10 -0700 | [diff] [blame] | 24 | OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 25 | START := $(addprefix $(obj),$(START)) |
| 26 | |
| 27 | all: $(obj).depend $(START) $(LIB) |
| 28 | |
| 29 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 30 | $(call cmd_link_o_target, $(OBJS)) |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 31 | |
| 32 | ######################################################################### |
| 33 | |
| 34 | # defines $(obj).depend target |
| 35 | include $(SRCTREE)/rules.mk |
| 36 | |
| 37 | sinclude $(obj).depend |
| 38 | |
Stefano Babic | dd1d1d5 | 2010-07-26 10:05:05 +0200 | [diff] [blame] | 39 | ######################################################################### |