xref: /openbmc/u-boot/arch/powerpc/cpu/mpc8xx/Makefile (revision 607232e4)
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
8include $(TOPDIR)/config.mk
9
10# CFLAGS += -DET_DEBUG
11
12LIB	= $(obj)lib$(CPU).o
13
14SSTART-y += start.o
15CSTART-y += traps.o
16COBJS-y	+= bedbug_860.o
17COBJS-y	+= commproc.o
18COBJS-y	+= cpu.o
19COBJS-y	+= cpu_init.o
20COBJS-y	+= fec.o
21COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
22COBJS-y	+= i2c.o
23COBJS-y	+= interrupts.o
24COBJS-y	+= scc.o
25COBJS-y	+= serial.o
26COBJS-y	+= speed.o
27COBJS-y	+= spi.o
28COBJS-y	+= upatch.o
29COBJS-y	+= video.o
30SOBJS-y	+= kgdb.o
31SOBJS-y	+= plprcr_write.o
32
33SRCS	:= $(SSTART-y:.o=.S) $(CSTART-y:.o=.c) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
34OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
35START	:= $(addprefix $(obj),$(SSTART-y) $(CSTART-y))
36
37all:	$(obj).depend $(START) $(LIB)
38
39$(LIB):	$(OBJS)
40	$(call cmd_link_o_target, $(OBJS))
41
42#########################################################################
43
44# defines $(obj).depend target
45include $(SRCTREE)/rules.mk
46
47sinclude $(obj).depend
48
49#########################################################################
50