blob: 80eb23d6f4d747645f62aff9275236ffb8a8bfe9 [file] [log] [blame]
Wolfgang Denkedb65482005-09-24 21:54:50 +02001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2003-2006
Wolfgang Denkedb65482005-09-24 21:54:50 +02003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denkedb65482005-09-24 21:54:50 +02006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009# ifneq ($(OBJTREE),$(SRCTREE))
10# $(shell mkdir -p $(obj)../common/xilinx_jtag)
11# endif
Wolfgang Denkedb65482005-09-24 21:54:50 +020012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Wolfgang Denkedb65482005-09-24 21:54:50 +020014
15# Objects for Xilinx JTAG programming (CPLD)
16# CPLD = ../common/xilinx_jtag/lenval.o \
Wolfgang Denka1be4762008-05-20 16:00:29 +020017# ../common/xilinx_jtag/micro.o \
18# ../common/xilinx_jtag/ports.o
Wolfgang Denkedb65482005-09-24 21:54:50 +020019
Marian Balakowiczd62379d2006-09-01 19:49:50 +020020# COBJS = $(BOARD).o flash.o $(CPLD)
21COBJS = $(BOARD).o strataflash.o
Wolfgang Denkedb65482005-09-24 21:54:50 +020022
Marian Balakowiczd62379d2006-09-01 19:49:50 +020023SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
24OBJS := $(addprefix $(obj),$(COBJS))
25SOBJS := $(addprefix $(obj),$(SOBJS))
26
27$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010028 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denkedb65482005-09-24 21:54:50 +020029
Wolfgang Denkedb65482005-09-24 21:54:50 +020030#########################################################################
31
Marian Balakowiczd62379d2006-09-01 19:49:50 +020032# defines $(obj).depend target
33include $(SRCTREE)/rules.mk
Wolfgang Denkedb65482005-09-24 21:54:50 +020034
Marian Balakowiczd62379d2006-09-01 19:49:50 +020035sinclude $(obj).depend
Wolfgang Denkedb65482005-09-24 21:54:50 +020036
37#########################################################################