blob: 8f27aac25d3dfdd88e90d2a41ef55a02db51051f [file] [log] [blame]
wdenke85390d2002-04-01 14:29:03 +00001#
Marian Balakowiczf9328632006-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 Denk1a459662013-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 Balakowiczf9328632006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
Wolfgang Denkcca4e4a2011-11-01 20:54:02 +000010$(shell mkdir -p $(obj)drivers/epic $(obj)drivers/i2c)
Marian Balakowiczf9328632006-09-01 19:49:50 +020011endif
wdenke85390d2002-04-01 14:29:03 +000012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(CPU).o
wdenke85390d2002-04-01 14:29:03 +000014
Marian Balakowiczf9328632006-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 Balakowiczf9328632006-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 Carlier6d8962e2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS))
wdenke85390d2002-04-01 14:29:03 +000028
Marian Balakowiczf9328632006-09-01 19:49:50 +020029$(obj)bedbug_603e.c:
Wolfgang Denke92c9a82009-01-14 22:35:30 +010030 ln -sf $(src)../mpc8260/bedbug_603e.c $(obj)bedbug_603e.c
wdenk43d96162003-03-06 00:02:04 +000031
wdenke85390d2002-04-01 14:29:03 +000032#########################################################################
33
Marian Balakowiczf9328632006-09-01 19:49:50 +020034# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
wdenke85390d2002-04-01 14:29:03 +000036
Marian Balakowiczf9328632006-09-01 19:49:50 +020037sinclude $(obj).depend
wdenke85390d2002-04-01 14:29:03 +000038
39#########################################################################