]>
Commit | Line | Data |
---|---|---|
18bacc20 | 1 | # |
5d0c3b57 | 2 | # Copyright 2009-2010 Freescale Semiconductor, Inc. |
18bacc20 PA |
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 | ||
6d8962e8 | 11 | LIB = $(obj)lib8xxx.o |
18bacc20 | 12 | |
5d0c3b57 | 13 | ifneq ($(CPU),mpc83xx) |
18bacc20 | 14 | COBJS-y += cpu.o |
3e7b6c1f | 15 | COBJS-$(CONFIG_PCI) += pci_cfg.o |
5d0c3b57 KP |
16 | endif |
17 | ||
18 | COBJS-$(CONFIG_OF_LIBFDT) += fdt.o | |
f51cdaf1 | 19 | COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o |
18bacc20 PA |
20 | |
21 | SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) | |
22 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) | |
23 | ||
24 | all: $(obj).depend $(LIB) | |
25 | ||
26 | $(LIB): $(OBJS) | |
6d8962e8 | 27 | $(call cmd_link_o_target, $(OBJS)) |
18bacc20 PA |
28 | |
29 | include $(SRCTREE)/rules.mk | |
30 | ||
31 | sinclude $(obj).depend |