xref: /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc8xxx/Makefile (revision b4a60e521c66b1e634cacdebcfae3a1e1c9deb52)
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.a
12
13ifneq ($(CPU),mpc83xx)
14COBJS-y	+= cpu.o
15COBJS-$(CONFIG_PCI)	+= pci_cfg.o
16endif
17
18COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
19
20SRCS	:= $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
21OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
22
23all:	$(obj).depend $(LIB)
24
25$(LIB):	$(OBJS)
26	$(AR) $(ARFLAGS) $@ $(OBJS)
27
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31