TsiChungLiew | 8ae158c | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2004 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
TsiChungLiew | 8ae158c | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | # CFLAGS += -DET_DEBUG |
| 11 | |
stany MARCEL | aa2bd9b | 2011-10-14 04:38:02 +0000 | [diff] [blame] | 12 | LIB = $(obj)lib$(CPU).o |
TsiChungLiew | 8ae158c | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 13 | |
| 14 | START = start.o |
TsiChung Liew | ee0a846 | 2009-06-30 14:18:29 +0000 | [diff] [blame] | 15 | COBJS = cpu.o speed.o cpu_init.o interrupts.o pci.o |
TsiChungLiew | 8ae158c | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 16 | |
| 17 | SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 18 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 19 | START := $(addprefix $(obj),$(START)) |
| 20 | |
| 21 | all: $(obj).depend $(START) $(LIB) |
| 22 | |
| 23 | $(LIB): $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS)) |
TsiChungLiew | 8ae158c | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |