blob: 8f27aac25d3dfdd88e90d2a41ef55a02db51051f [file] [log] [blame]
wdenke85390d2002-04-01 14:29:03 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenke85390d2002-04-01 14:29:03 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenke85390d2002-04-01 14:29:03 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
Wolfgang Denk9209ed52011-11-01 20:54:02 +000010$(shell mkdir -p $(obj)drivers/epic $(obj)drivers/i2c)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020011endif
wdenke85390d2002-04-01 14:29:03 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(CPU).o
wdenke85390d2002-04-01 14:29:03 +000014
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015START = start.o
16COBJS = traps.o cpu.o cpu_init.o interrupts.o speed.o \
17 drivers/epic/epic1.o drivers/i2c/i2c.o pci.o
18COBJS_LN = bedbug_603e.o
wdenke85390d2002-04-01 14:29:03 +000019
Marian Balakowiczd62379d2006-09-01 19:49:50 +020020SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN:.o=.c))
21OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN))
22START := $(addprefix $(obj),$(START))
23
24all: $(obj).depend $(START) $(LIB)
wdenke85390d2002-04-01 14:29:03 +000025
26$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS))
wdenke85390d2002-04-01 14:29:03 +000028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029$(obj)bedbug_603e.c:
Wolfgang Denk30bcf2c2009-01-14 22:35:30 +010030 ln -sf $(src)../mpc8260/bedbug_603e.c $(obj)bedbug_603e.c
wdenk4a5c8a72003-03-06 00:02:04 +000031
wdenke85390d2002-04-01 14:29:03 +000032#########################################################################
33
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
wdenke85390d2002-04-01 14:29:03 +000036
Marian Balakowiczd62379d2006-09-01 19:49:50 +020037sinclude $(obj).depend
wdenke85390d2002-04-01 14:29:03 +000038
39#########################################################################