blob: 6d6690a221db7691a44ace3f20e6e345d6ecc9cf [file] [log] [blame]
Matthias Fuchsc6c882e2007-12-28 17:07:14 +01001#
2# (C) Copyright 2002-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Matthias Fuchsc6c882e2007-12-28 17:07:14 +01006#
7
8include $(TOPDIR)/config.mk
Wolfgang Denka1e86e02008-01-13 16:44:08 +01009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
Matthias Fuchsc6c882e2007-12-28 17:07:14 +010012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Matthias Fuchsc6c882e2007-12-28 17:07:14 +010014
15COBJS = $(BOARD).o cmd_pmc440.o sdram.o fpga.o \
16 ../common/cmd_loadpci.o
17
18SOBJS = init.o
19
20SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22SOBJS := $(addprefix $(obj),$(SOBJS))
23
Wolfgang Denkfe33e6e2010-11-21 20:55:42 +010024all: $(LIB) $(SOBJS)
25
26$(LIB): $(OBJS)
27 $(call cmd_link_o_target, $^)
Matthias Fuchsc6c882e2007-12-28 17:07:14 +010028
Matthias Fuchsc6c882e2007-12-28 17:07:14 +010029#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################