blob: 4ae77271ea144f7c299eaea052123bf42ad585a2 [file] [log] [blame]
Stefan Roesef2303272005-11-15 10:35:59 +01001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
Stefan Roesef2303272005-11-15 10:35:59 +01003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roesef2303272005-11-15 10:35:59 +01006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common/xilinx_jtag)
11endif
Stefan Roesef2303272005-11-15 10:35:59 +010012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Stefan Roesef2303272005-11-15 10:35:59 +010014
15# Objects for Xilinx JTAG programming (CPLD)
16CPLD = ../common/xilinx_jtag/lenval.o \
17 ../common/xilinx_jtag/micro.o \
18 ../common/xilinx_jtag/ports.o
19
Matthias Fuchsc8452fa2007-07-09 10:10:06 +020020COBJS = $(BOARD).o flash.o \
21 ../common/misc.o \
22 $(CPLD) \
23 ../common/esd405ep_nand.o \
Marian Balakowiczd62379d2006-09-01 19:49:50 +020024
25SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
26OBJS := $(addprefix $(obj),$(COBJS))
27SOBJS := $(addprefix $(obj),$(SOBJS))
Stefan Roesef2303272005-11-15 10:35:59 +010028
29$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
Stefan Roesef2303272005-11-15 10:35:59 +010031
Stefan Roesef2303272005-11-15 10:35:59 +010032#########################################################################
33
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
Stefan Roesef2303272005-11-15 10:35:59 +010036
Marian Balakowiczd62379d2006-09-01 19:49:50 +020037sinclude $(obj).depend
Stefan Roesef2303272005-11-15 10:35:59 +010038
39#########################################################################