- removed duplicate files from SRCS list

git-svn-id: http://moon:8086/svn/vhdl/trunk@1478 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2021-03-23 09:08:25 +00:00
parent 1bc565b404
commit 48a6292f4c
+17
View File
@@ -20,8 +20,23 @@ RUN_OPTS += --stop-time=$(RUN_TIME)
GHDL_OPTS += --work=$(WORK_LIB) --workdir=$(WORK_DIR) --std=$(LANG_STD) --ieee=$(IEEE_STD)
# -------------------------------------------------
# Make unique
# -------------------------------------------------
define uniq =
$(eval seen :=)
$(foreach _,$1,$(if $(filter $_,${seen}),,$(eval seen += $_)))
${seen}
endef
SRCS := $(abspath $(SRCS))
SRCS := $(call uniq,$(SRCS))
SRCS := $(filter-out ,$(SRCS))
#$(info ----------------------)
#$(info $(SRCS))
#$(info ----------------------)
# -------------------------------------------------
# GHDL binary
# -------------------------------------------------
GHDL := ghdl
GHDL_GCC := ghdl-gcc
@@ -34,7 +49,9 @@ GTK_OPTS-$(WITH_VCD) := --vcd=$(SIM_FILE-y)
GTK_OPTS-$(WITH_FST) := --fst=$(SIM_FILE-y)
GTK_OPTS-$(WITH_GHW) := --wave=$(SIM_FILE-y)
# -------------------------------------------------
# Targets
# -------------------------------------------------
all: analyze
$(WORK_DIR):