Joe Hamman | ccefae4 | 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 | f247953 | 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 | ccefae4 | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 7 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Joe Hamman | ccefae4 | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(BOARD).o |
Joe Hamman | ccefae4 | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 14 | |
Kumar Gala | f990200 | 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 | ccefae4 | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 19 | |
Kumar Gala | f990200 | 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 | ccefae4 | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS)) |
Joe Hamman | ccefae4 | 2007-12-13 06:45:08 -0600 | [diff] [blame] | 26 | |
Joe Hamman | ccefae4 | 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 | ######################################################################### |