Joe Hamman | 11c45eb | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2004-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Paul Gortmaker | bd42bbb | 2009-09-18 19:08:46 -0400 | [diff] [blame] | 5 | # (C) Copyright 2007 Wind River Systems Inc <www.windriver.com>. |
| 6 | # Added support for Wind River SBC8548 board |
Joe Hamman | 11c45eb | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 7 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Joe Hamman | 11c45eb | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(BOARD).o |
Joe Hamman | 11c45eb | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 14 | |
Kumar Gala | 33b9079 | 2008-08-26 23:15:28 -0500 | [diff] [blame] | 15 | COBJS-y += $(BOARD).o |
| 16 | COBJS-y += law.o |
| 17 | COBJS-y += tlb.o |
| 18 | COBJS-$(CONFIG_FSL_DDR2) += ddr.o |
Joe Hamman | 11c45eb | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 19 | |
Kumar Gala | 33b9079 | 2008-08-26 23:15:28 -0500 | [diff] [blame] | 20 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
Joe Hamman | 11c45eb | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS)) |
Joe Hamman | 11c45eb | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 26 | |
Joe Hamman | 11c45eb | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |