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