blob: a1a0602ab273c48abe7ce45d6525ff03e0108117 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARDc8aa7df2008-10-31 12:26:55 +01001#
2# (C) Copyright 2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARDc8aa7df2008-10-31 12:26:55 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libfpga.o
Jean-Christophe PLAGNIOL-VILLARDc8aa7df2008-10-31 12:26:55 +010011
12ifdef CONFIG_FPGA
13COBJS-y += fpga.o
14COBJS-$(CONFIG_FPGA_SPARTAN2) += spartan2.o
15COBJS-$(CONFIG_FPGA_SPARTAN3) += spartan3.o
16COBJS-$(CONFIG_FPGA_VIRTEX2) += virtex2.o
Michal Simekd5dae852013-04-22 15:43:02 +020017COBJS-$(CONFIG_FPGA_ZYNQPL) += zynqpl.o
Jean-Christophe PLAGNIOL-VILLARDc8aa7df2008-10-31 12:26:55 +010018COBJS-$(CONFIG_FPGA_XILINX) += xilinx.o
Stefano Babic3b8ac462010-06-29 11:47:48 +020019COBJS-$(CONFIG_FPGA_LATTICE) += ivm_core.o lattice.o
Jean-Christophe PLAGNIOL-VILLARDc8aa7df2008-10-31 12:26:55 +010020ifdef CONFIG_FPGA_ALTERA
21COBJS-y += altera.o
22COBJS-$(CONFIG_FPGA_ACEX1K) += ACEX1K.o
23COBJS-$(CONFIG_FPGA_CYCLON2) += cyclon2.o
24COBJS-$(CONFIG_FPGA_STRATIX_II) += stratixII.o
25endif
26endif
27
28COBJS := $(COBJS-y)
29SRCS := $(COBJS:.o=.c)
30OBJS := $(addprefix $(obj),$(COBJS))
31
32all: $(LIB)
33
34$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010035 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARDc8aa7df2008-10-31 12:26:55 +010036
37#########################################################################
38
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
41
42sinclude $(obj).depend
43
44#########################################################################