xref: /openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/Makefile (revision bfc93fb4)
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
9include $(TOPDIR)/config.mk
10
11LIB	= $(obj)lib8xxx.o
12
13ifneq ($(CPU),mpc83xx)
14COBJS-y	+= cpu.o
15endif
16
17COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
18COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
19COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
20COBJS-$(CONFIG_SYS_SRIO) += srio.o
21
22SRCS	:= $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
23OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
24
25all:	$(obj).depend $(LIB)
26
27$(LIB):	$(OBJS)
28	$(call cmd_link_o_target, $(OBJS))
29
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33