blob: 481f9e541dcfbcf1b9dd37cd71909e9dc09ab84f [file] [log] [blame]
Poonam Aggrwal18bacc22009-07-31 12:07:45 +05301#
2# Copyright 2009 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
13COBJS-y += cpu.o
Poonam Aggrwalf8027f62009-09-02 19:40:36 +053014COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
Kumar Gala3e7b6c12009-09-02 09:03:08 -050015COBJS-$(CONFIG_PCI) += pci_cfg.o
Poonam Aggrwal18bacc22009-07-31 12:07:45 +053016
17SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
19
20all: $(obj).depend $(LIB)
21
22$(LIB): $(OBJS)
23 $(AR) $(ARFLAGS) $@ $(OBJS)
24
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend