2009-07-31 06:37:45 +00:00
|
|
|
#
|
2010-05-28 08:00:14 +00:00
|
|
|
# Copyright 2009-2010 Freescale Semiconductor, Inc.
|
2009-07-31 06:37:45 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# Version 2 as published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib8xxx.o
|
2009-07-31 06:37:45 +00:00
|
|
|
|
2010-05-28 08:00:14 +00:00
|
|
|
ifneq ($(CPU),mpc83xx)
|
2009-07-31 06:37:45 +00:00
|
|
|
COBJS-y += cpu.o
|
2010-05-28 08:00:14 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
|
2010-06-17 16:37:20 +00:00
|
|
|
COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
|
2010-12-30 18:09:53 +00:00
|
|
|
COBJS-$(CONFIG_SYS_SRIO) += srio.o
|
2009-07-31 06:37:45 +00:00
|
|
|
|
|
|
|
SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
|
|
|
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2009-07-31 06:37:45 +00:00
|
|
|
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|