]> git.sur5r.net Git - u-boot/blob - arch/powerpc/cpu/mpc8xxx/Makefile
86344a7b4a0d2a86addea6e412a70aa47a005b66
[u-boot] / arch / powerpc / cpu / mpc8xxx / Makefile
1 #
2 # Copyright 2009-2010 Freescale Semiconductor, Inc.
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # Version 2 as published by the Free Software Foundation.
7 #
8
9 include $(TOPDIR)/config.mk
10
11 LIB     = $(obj)lib8xxx.o
12
13 ifneq ($(CPU),mpc83xx)
14 COBJS-y += cpu.o
15 endif
16
17 COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
18 COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
19 COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
20 COBJS-$(CONFIG_SYS_SRIO) += srio.o
21 COBJS-$(CONFIG_FSL_LAW) += law.o
22
23 SRCS    := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
24 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
25
26 all:    $(obj).depend $(LIB)
27
28 $(LIB): $(OBJS)
29         $(call cmd_link_o_target, $(OBJS))
30
31 include $(SRCTREE)/rules.mk
32
33 sinclude $(obj).depend