wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 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+ |
wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | # CFLAGS += -DET_DEBUG |
| 11 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 12 | LIB = $(obj)lib$(CPU).o |
wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 13 | |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 14 | SSTART-y += start.o |
| 15 | CSTART-y += traps.o |
Jean-Christophe PLAGNIOL-VILLARD | 007848c | 2008-04-02 08:03:56 +0200 | [diff] [blame] | 16 | COBJS-y += bedbug_860.o |
| 17 | COBJS-y += commproc.o |
| 18 | COBJS-y += cpu.o |
| 19 | COBJS-y += cpu_init.o |
| 20 | COBJS-y += fec.o |
| 21 | COBJS-$(CONFIG_OF_LIBFDT) += fdt.o |
| 22 | COBJS-y += i2c.o |
| 23 | COBJS-y += interrupts.o |
Jean-Christophe PLAGNIOL-VILLARD | 007848c | 2008-04-02 08:03:56 +0200 | [diff] [blame] | 24 | COBJS-y += scc.o |
| 25 | COBJS-y += serial.o |
| 26 | COBJS-y += speed.o |
| 27 | COBJS-y += spi.o |
Jean-Christophe PLAGNIOL-VILLARD | 007848c | 2008-04-02 08:03:56 +0200 | [diff] [blame] | 28 | COBJS-y += upatch.o |
| 29 | COBJS-y += video.o |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 30 | SOBJS-y += kgdb.o |
Jean-Christophe PLAGNIOL-VILLARD | 007848c | 2008-04-02 08:03:56 +0200 | [diff] [blame] | 31 | SOBJS-y += plprcr_write.o |
wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 32 | |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 33 | SRCS := $(SSTART-y:.o=.S) $(CSTART-y:.o=.c) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
Jean-Christophe PLAGNIOL-VILLARD | 007848c | 2008-04-02 08:03:56 +0200 | [diff] [blame] | 34 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 35 | START := $(addprefix $(obj),$(SSTART-y) $(CSTART-y)) |
wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 36 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 37 | all: $(obj).depend $(START) $(LIB) |
| 38 | |
| 39 | $(LIB): $(OBJS) |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 40 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 41 | |
| 42 | ######################################################################### |
| 43 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 44 | # defines $(obj).depend target |
| 45 | include $(SRCTREE)/rules.mk |
wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 46 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 47 | sinclude $(obj).depend |
wdenk | 1f04521 | 2002-03-10 14:37:15 +0000 | [diff] [blame] | 48 | |
| 49 | ######################################################################### |