blob: 4ae26e42104b896208f2e9f584f109b72f76af7d [file] [log] [blame]
Poonam Aggrwal91208842009-07-31 12:07:45 +05301#
Kim Phillips6578bae2010-05-28 08:00:14 +00002# Copyright 2009-2010 Freescale Semiconductor, Inc.
Poonam Aggrwal91208842009-07-31 12:07:45 +05303#
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
Sebastien Carliera8d426f2010-11-05 15:48:07 +010011LIB = $(obj)lib8xxx.o
Poonam Aggrwal91208842009-07-31 12:07:45 +053012
Kim Phillips6578bae2010-05-28 08:00:14 +000013ifneq ($(CPU),mpc83xx)
Poonam Aggrwal91208842009-07-31 12:07:45 +053014COBJS-y += cpu.o
Kim Phillips6578bae2010-05-28 08:00:14 +000015endif
16
17COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
Dipen Dudhat00c42942011-01-20 16:29:35 +053018COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
Becky Bruce0d4cee12010-06-17 11:37:20 -050019COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
Kumar Gala8975d7a2010-12-30 12:09:53 -060020COBJS-$(CONFIG_SYS_SRIO) += srio.o
Poonam Aggrwal91208842009-07-31 12:07:45 +053021
22SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
23OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
24
25all: $(obj).depend $(LIB)
26
27$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010028 $(call cmd_link_o_target, $(OBJS))
Poonam Aggrwal91208842009-07-31 12:07:45 +053029
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend