blob: b76d0ed803ffc932b472c0b4809060bb75d2e851 [file] [log] [blame]
TsiChungLiew8ae158c2007-08-16 15:05:11 -05001#
2# (C) Copyright 2000-2004
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
TsiChungLiew8ae158c2007-08-16 15:05:11 -05006#
7
8include $(TOPDIR)/config.mk
9
10# CFLAGS += -DET_DEBUG
11
stany MARCELaa2bd9b2011-10-14 04:38:02 +000012LIB = $(obj)lib$(CPU).o
TsiChungLiew8ae158c2007-08-16 15:05:11 -050013
14START = start.o
TsiChung Liewee0a8462009-06-30 14:18:29 +000015COBJS = cpu.o speed.o cpu_init.o interrupts.o pci.o
TsiChungLiew8ae158c2007-08-16 15:05:11 -050016
17SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
19START := $(addprefix $(obj),$(START))
20
21all: $(obj).depend $(START) $(LIB)
22
23$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
TsiChungLiew8ae158c2007-08-16 15:05:11 -050025
26#########################################################################
27
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################