]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/powerpc/cpu/mpc824x/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / powerpc / cpu / mpc824x / Makefile
1 #
2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier: GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9 ifneq ($(OBJTREE),$(SRCTREE))
10 $(shell mkdir -p $(obj)drivers/epic $(obj)drivers/i2c)
11 endif
12
13 LIB = $(obj)lib$(CPU).o
14
15 START = start.o
16 COBJS = traps.o cpu.o cpu_init.o interrupts.o speed.o \
17 drivers/epic/epic1.o drivers/i2c/i2c.o pci.o
18 COBJS_LN = bedbug_603e.o
19
20 SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN:.o=.c))
21 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN))
22 START := $(addprefix $(obj),$(START))
23
24 all: $(obj).depend $(START) $(LIB)
25
26 $(LIB): $(OBJS)
27 $(call cmd_link_o_target, $(OBJS))
28
29 $(obj)bedbug_603e.c:
30 ln -sf $(src)../mpc8260/bedbug_603e.c $(obj)bedbug_603e.c
31
32 #########################################################################
33
34 # defines $(obj).depend target
35 include $(SRCTREE)/rules.mk
36
37 sinclude $(obj).depend
38
39 #########################################################################