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