Use $(GHDL) rather than ghdl in Makefile
authorMichael Neuling <mikey@neuling.org>
Sat, 4 Jul 2020 01:12:05 +0000 (11:12 +1000)
committerMichael Neuling <mikey@neuling.org>
Sat, 4 Jul 2020 01:12:10 +0000 (11:12 +1000)
Suggestion from @eine in PR #219.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Makefile

index 96631e77ab71c139f179de7732f280473e3a41c8..30d7e49064ec9aa1732b7cf7d4041a1c89a44dac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -71,7 +71,7 @@ unisim_lib = $(unisim_dir)/unisim-obj08.cf
 unisim_lib_files = $(unisim_dir)/BSCANE2.vhdl $(unisim_dir)/BUFG.vhdl \
        $(unisim_dir)/unisim_vcomponents.vhdl
 $(unisim_lib): $(unisim_lib_files)
-       ghdl -i --std=08 --work=unisim --workdir=$(unisim_dir) $^
+       $(GHDL) -i --std=08 --work=unisim --workdir=$(unisim_dir) $^
 GHDLFLAGS += -P$(unisim_dir)
 
 core_tbs = multiply_tb divider_tb rotator_tb countzero_tb
@@ -85,7 +85,7 @@ fmf_lib = $(fmf_dir)/fmf-obj08.cf
 fmf_lib_files = $(wildcard $(fmf_dir)/*.vhd)
 GHDLFLAGS += -P$(fmf_dir)
 $(fmf_lib): $(fmf_lib_files)
-       ghdl -i --std=08 --work=fmf --workdir=$(fmf_dir) $^
+       $(GHDL) -i --std=08 --work=fmf --workdir=$(fmf_dir) $^
 
 flash_model_files=$(FLASH_MODEL_PATH)/s25fl128s.vhd
 flash_model_files: $(fmf_lib)