Jon Loeliger | 36c0b34 | 2007-10-16 13:54:01 -0500 | [diff] [blame] | 1 | # Copyright 2007 Freescale Semiconductor, Inc. |
| 2 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 3 | # SPDX-License-Identifier: GPL-2.0+ |
Jon Loeliger | 36c0b34 | 2007-10-16 13:54:01 -0500 | [diff] [blame] | 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 8 | LIB = $(obj)lib$(BOARD).o |
Jon Loeliger | 36c0b34 | 2007-10-16 13:54:01 -0500 | [diff] [blame] | 9 | |
Jon Loeliger | 54634b4 | 2008-08-26 15:01:36 -0500 | [diff] [blame] | 10 | COBJS-y += $(BOARD).o |
| 11 | COBJS-$(CONFIG_FSL_DDR2) += ddr.o |
| 12 | COBJS-y += law.o |
Jon Loeliger | 4eab623 | 2008-01-15 13:42:41 -0600 | [diff] [blame] | 13 | |
Kumar Gala | f5e5cf1 | 2010-05-21 04:17:48 -0500 | [diff] [blame] | 14 | COBJS-$(CONFIG_FSL_DIU_FB) += mpc8610hpcd_diu.o |
Jon Loeliger | 4eab623 | 2008-01-15 13:42:41 -0600 | [diff] [blame] | 15 | |
Jon Loeliger | 54634b4 | 2008-08-26 15:01:36 -0500 | [diff] [blame] | 16 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
Jon Loeliger | 36c0b34 | 2007-10-16 13:54:01 -0500 | [diff] [blame] | 18 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 19 | |
| 20 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 21 | $(call cmd_link_o_target, $(OBJS)) |
Jon Loeliger | 36c0b34 | 2007-10-16 13:54:01 -0500 | [diff] [blame] | 22 | |
Jon Loeliger | 36c0b34 | 2007-10-16 13:54:01 -0500 | [diff] [blame] | 23 | ######################################################################### |
| 24 | |
| 25 | # defines $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |