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