Poonam Aggrwal | 18bacc2 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 1 | # |
Kim Phillips | 5d0c3b5 | 2010-05-28 08:00:14 +0000 | [diff] [blame] | 2 | # Copyright 2009-2010 Freescale Semiconductor, Inc. |
Poonam Aggrwal | 18bacc2 | 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 | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 11 | LIB = $(obj)lib8xxx.o |
Poonam Aggrwal | 18bacc2 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 12 | |
Kim Phillips | 5d0c3b5 | 2010-05-28 08:00:14 +0000 | [diff] [blame] | 13 | ifneq ($(CPU),mpc83xx) |
Poonam Aggrwal | 18bacc2 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 14 | COBJS-y += cpu.o |
Kim Phillips | 5d0c3b5 | 2010-05-28 08:00:14 +0000 | [diff] [blame] | 15 | endif |
| 16 | |
| 17 | COBJS-$(CONFIG_OF_LIBFDT) += fdt.o |
Becky Bruce | f51cdaf | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 18 | COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o |
Kumar Gala | a09b9b6 | 2010-12-30 12:09:53 -0600 | [diff] [blame] | 19 | COBJS-$(CONFIG_SYS_SRIO) += srio.o |
Poonam Aggrwal | 18bacc2 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 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) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 27 | $(call cmd_link_o_target, $(OBJS)) |
Poonam Aggrwal | 18bacc2 | 2009-07-31 12:07:45 +0530 | [diff] [blame] | 28 | |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |