blob: 225974d98630de282f0526f374d976a083eb2335 [file] [log] [blame]
stroese9f53bf32003-05-23 11:35:47 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
stroese9f53bf32003-05-23 11:35:47 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
stroese9f53bf32003-05-23 11:35:47 +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
stroese9f53bf32003-05-23 11:35:47 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
stroese9f53bf32003-05-23 11:35:47 +000014
stroese93d65082003-09-12 08:46:58 +000015# 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 ../common/misc.o ../common/cmd_loadpci.o $(CPLD)
21
22SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS))
24SOBJS := $(addprefix $(obj),$(SOBJS))
stroese9f53bf32003-05-23 11:35:47 +000025
26$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS))
stroese9f53bf32003-05-23 11:35:47 +000028
stroese9f53bf32003-05-23 11:35:47 +000029#########################################################################
30
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
stroese9f53bf32003-05-23 11:35:47 +000033
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034sinclude $(obj).depend
stroese9f53bf32003-05-23 11:35:47 +000035
36#########################################################################