blob: 6d6690a221db7691a44ace3f20e6e345d6ecc9cf [file] [log] [blame]
Matthias Fuchs72c5d522007-12-28 17:07:14 +01001#
2# (C) Copyright 2002-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Matthias Fuchs72c5d522007-12-28 17:07:14 +01006#
7
8include $(TOPDIR)/config.mk
Wolfgang Denk6d714f82008-01-13 16:44:08 +01009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
Matthias Fuchs72c5d522007-12-28 17:07:14 +010012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Matthias Fuchs72c5d522007-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 Denkee8028b2010-11-21 20:55:42 +010024all: $(LIB) $(SOBJS)
25
26$(LIB): $(OBJS)
27 $(call cmd_link_o_target, $^)
Matthias Fuchs72c5d522007-12-28 17:07:14 +010028
Matthias Fuchs72c5d522007-12-28 17:07:14 +010029#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################