blob: 95bbfc9bac5c42edd48525fdb47fda9a1b657498 [file] [log] [blame]
Daniel Hellstrom1e9a1642008-03-26 22:51:29 +01001#
2# (C) Copyright 2003-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Daniel Hellstrom1e9a1642008-03-26 22:51:29 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
Daniel Hellstrom1e9a1642008-03-26 22:51:29 +010011
12START = start.o
13SOBJS =
14COBJS = cpu_init.o serial.o cpu.o ambapp.o interrupts.o prom.o usb_uhci.o
15
16SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
18START := $(addprefix $(obj),$(START))
19
20all: $(obj).depend $(START) $(LIB)
21
22$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Daniel Hellstrom1e9a1642008-03-26 22:51:29 +010024
25#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
Daniel Hellstrom1e9a1642008-03-26 22:51:29 +010030sinclude $(obj).depend
31
32#########################################################################