- fixed makefile

git-svn-id: http://moon:8086/svn/vhdl/trunk@1436 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2021-03-21 16:31:56 +00:00
parent 03d0e1a6b9
commit 84e83a7977
+13 -39
View File
@@ -3,48 +3,22 @@
# -------------------------------------------------
LANG_STD := 93c
IEEE_STD := standard
WORK_PATH := work
SOURCE_PATH := src
LIB_PATH := ../lib
WORK_DIR := work
WORK_LIB := work
# -------------------------------------------------
# Target options
# -------------------------------------------------
SRCS := ../../lib/fixed_ja/fixed_ja.vhd
SRCS += ../../lib/fixed_ja/fixed_ja_body.vhd
SRCS += ../../lib/PCK_FIO-2002.7/PCK_FIO_1993.vhd
SRCS += ../../lib/PCK_FIO-2002.7/PCK_FIO_1993_BODY.vhd
SRCS += src/tb_eval_fixed_ja.vhd
# -------------------------------------------------
# Compile
TARGET := tb_eval_fixed_ja
SOURCES :=
ENTITY := tb_eval_fixed_ja
WITH_GHW := y
# -------------------------------------------------
GHDL_OPT := --workdir=$(WORK_PATH) --std=$(LANG_STD) --ieee=$(IEEE_STD)
# -------------------------------------------------
all: elaborate
.PHONY: syntax
syntax:
ghdl -s $(GHDL_OPT) $(SOURCE_PATH)/*.vhd
import:
ghdl -i $(GHDL_OPT) $(LIB_PATH)/*.vhd
analyze: import
ghdl -a $(GHDL_OPT) $(LIB_PATH)/*.vhd $(SOURCE_PATH)/*.vhd
anaborate: import
ghdl -c $(GHDL_OPT) $(LIB_PATH)/*.vhd $(SOURCE_PATH)/*.vhd -e $(TARGET)
makeunit: import
ghdl -m $(GHDL_OPT) $(TARGET)
elaborate: analyze
ghdl -e $(GHDL_OPT) $(TARGET)
run: elaborate
ghdl -r $(GHDL_OPT) $(TARGET)
# -------------------------------------------------
.PHONY: clean
clean:
rm -rf $(TARGET)
cd $(WORK_PATH); rm -rf *.o *.cf
# -------------------------------------------------
include ../../Common/make/ghdl.mk