wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 5 | # (C) Copyright 2001 |
| 6 | # Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc. |
| 7 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(CPU).o |
wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 14 | |
| 15 | START = start.o |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 16 | SOBJS = cache.o kgdb.o io.o |
| 17 | COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o |
wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 18 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 19 | SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 21 | START := $(addprefix $(obj),$(START)) |
| 22 | |
| 23 | all: $(obj).depend $(START) $(LIB) |
wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 24 | |
| 25 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 26 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 27 | |
| 28 | ######################################################################### |
| 29 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 32 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 33 | sinclude $(obj).depend |
wdenk | 1487497 | 2002-02-17 23:22:29 +0000 | [diff] [blame] | 34 | |
| 35 | ######################################################################### |