Poonam Aggrwal | 9120884 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 1 | # |
Kim Phillips | 6578bae | 2010-05-28 08:00:14 +0000 | [diff] [blame] | 2 | # Copyright 2009-2010 Freescale Semiconductor, Inc. |
Poonam Aggrwal | 9120884 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 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 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 11 | LIB = $(obj)lib8xxx.o |
Poonam Aggrwal | 9120884 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 12 | |
Kim Phillips | 6578bae | 2010-05-28 08:00:14 +0000 | [diff] [blame] | 13 | ifneq ($(CPU),mpc83xx) |
Poonam Aggrwal | 9120884 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 14 | COBJS-y += cpu.o |
Kim Phillips | 6578bae | 2010-05-28 08:00:14 +0000 | [diff] [blame] | 15 | endif |
| 16 | |
| 17 | COBJS-$(CONFIG_OF_LIBFDT) += fdt.o |
Dipen Dudhat | 00c4294 | 2011-01-20 16:29:35 +0530 | [diff] [blame] | 18 | COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 19 | COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o |
Kumar Gala | 8975d7a | 2010-12-30 12:09:53 -0600 | [diff] [blame] | 20 | COBJS-$(CONFIG_SYS_SRIO) += srio.o |
Poonam Aggrwal | 9120884 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 21 | |
| 22 | SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 23 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
| 24 | |
| 25 | all: $(obj).depend $(LIB) |
| 26 | |
| 27 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 28 | $(call cmd_link_o_target, $(OBJS)) |
Poonam Aggrwal | 9120884 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 29 | |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |