Matthias Fuchs | 72c5d52 | 2007-12-28 17:07:14 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2002-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Matthias Fuchs | 72c5d52 | 2007-12-28 17:07:14 +0100 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
Wolfgang Denk | 6d714f8 | 2008-01-13 16:44:08 +0100 | [diff] [blame] | 9 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 10 | $(shell mkdir -p $(obj)../common) |
| 11 | endif |
Matthias Fuchs | 72c5d52 | 2007-12-28 17:07:14 +0100 | [diff] [blame] | 12 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(BOARD).o |
Matthias Fuchs | 72c5d52 | 2007-12-28 17:07:14 +0100 | [diff] [blame] | 14 | |
| 15 | COBJS = $(BOARD).o cmd_pmc440.o sdram.o fpga.o \ |
| 16 | ../common/cmd_loadpci.o |
| 17 | |
| 18 | SOBJS = init.o |
| 19 | |
| 20 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 23 | |
Wolfgang Denk | ee8028b | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 24 | all: $(LIB) $(SOBJS) |
| 25 | |
| 26 | $(LIB): $(OBJS) |
| 27 | $(call cmd_link_o_target, $^) |
Matthias Fuchs | 72c5d52 | 2007-12-28 17:07:14 +0100 | [diff] [blame] | 28 | |
Matthias Fuchs | 72c5d52 | 2007-12-28 17:07:14 +0100 | [diff] [blame] | 29 | ######################################################################### |
| 30 | |
| 31 | # defines $(obj).depend target |
| 32 | include $(SRCTREE)/rules.mk |
| 33 | |
| 34 | sinclude $(obj).depend |
| 35 | |
| 36 | ######################################################################### |