diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6acc130 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +# Build ghdl module for yosys + +# Prefix where ghdl has been installed +GHDL_PREFIX= + +ifeq ($(GHDL_PREFIX),) +$(error GHDL_PREFIX not defined) +endif + +ghdl.so: ghdl/ghdl.cc + yosys-config --exec --cxx --cxxflags --ldflags -o $@ -shared $< -DYOSYS_ENABLE_GHDL -I$(GHDL_PREFIX)/include $(GHDL_PREFIX)/lib/libghdlsynth.so -Wl,-rpath,$(GHDL_PREFIX)/lib --ldlibs |