blob: 67bb5cfe09e9ecdea5347ac2884a81d9b102a6b2 [file] [log] [blame]
Poonam Aggrwal18bacc22009-07-31 12:07:45 +05301#
Kim Phillips5d0c3b52010-05-28 08:00:14 +00002# Copyright 2009-2010 Freescale Semiconductor, Inc.
Poonam Aggrwal18bacc22009-07-31 12:07:45 +05303#
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
Kim Phillips5d0c3b52010-05-28 08:00:14 +000013ifneq ($(CPU),mpc83xx)
Poonam Aggrwal18bacc22009-07-31 12:07:45 +053014COBJS-y += cpu.o
Kumar Gala3e7b6c12009-09-02 09:03:08 -050015COBJS-$(CONFIG_PCI) += pci_cfg.o
Kim Phillips5d0c3b52010-05-28 08:00:14 +000016endif
17
18COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
Poonam Aggrwal18bacc22009-07-31 12:07:45 +053019
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