Poonam Aggrwal | 18bacc2 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 1 | # |
| 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 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | |
| 11 | LIB = $(obj)lib8xxx.a |
| 12 | |
| 13 | COBJS-y += cpu.o |
Kumar Gala | 3e7b6c1 | 2009-09-02 09:03:08 -0500 | [diff] [blame^] | 14 | COBJS-$(CONFIG_PCI) += pci_cfg.o |
Poonam Aggrwal | 18bacc2 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 15 | |
| 16 | SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
| 18 | |
| 19 | all: $(obj).depend $(LIB) |
| 20 | |
| 21 | $(LIB): $(OBJS) |
| 22 | $(AR) $(ARFLAGS) $@ $(OBJS) |
| 23 | |
| 24 | include $(SRCTREE)/rules.mk |
| 25 | |
| 26 | sinclude $(obj).depend |