wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Wolfgang Denk | 4df0da5 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 4 | # |
wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [diff] [blame] | 5 | # (C) Copyright 2001 |
| 6 | # Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc. |
| 7 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [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 |
wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [diff] [blame] | 14 | |
| 15 | SOBJS = misc.o |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 16 | COBJS = $(BOARD).o flash.o serial.o memory.o pci.o \ |
wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [diff] [blame] | 17 | eth.o eth_addrtbl.o mpsc.o i2c.o \ |
| 18 | sdram_init.o zuma_pbb.o intel_flash.o zuma_pbb_mbox.o |
| 19 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 20 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [diff] [blame] | 23 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 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) $(SOBJS)) |
wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [diff] [blame] | 26 | |
| 27 | ######################################################################### |
| 28 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [diff] [blame] | 31 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 32 | sinclude $(obj).depend |
wdenk | e85390d | 2002-04-01 14:29:03 +0000 | [diff] [blame] | 33 | |
| 34 | ######################################################################### |