blob: 0fd6fe53cbe42af57bb7eac15acd8f2fde9903ae [file] [log] [blame]
stroesea17344b2004-12-16 18:24:54 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
stroesea17344b2004-12-16 18:24:54 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
stroesea17344b2004-12-16 18:24:54 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common/xilinx_jtag)
11endif
stroesea17344b2004-12-16 18:24:54 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
stroesea17344b2004-12-16 18:24:54 +000014
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
Marian Balakowiczd62379d2006-09-01 19:49:50 +020020COBJS = $(BOARD).o flash.o ../common/misc.o $(CPLD)
21
22SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS))
24SOBJS := $(addprefix $(obj),$(SOBJS))
stroesea17344b2004-12-16 18:24:54 +000025
26$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS))
stroesea17344b2004-12-16 18:24:54 +000028
stroesea17344b2004-12-16 18:24:54 +000029#########################################################################
30
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
stroesea17344b2004-12-16 18:24:54 +000033
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034sinclude $(obj).depend
stroesea17344b2004-12-16 18:24:54 +000035
36#########################################################################