diff options
author | 1138-4EB <1138-4EB@users.noreply.github.com> | 2019-06-17 03:38:27 +0200 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2019-06-17 03:38:27 +0200 |
commit | 159e0bfdbb135e74aac10e54c7a499e9e34aa5a2 (patch) | |
tree | a1ed3fbd98ddd464041a25f5e389fdd029e55528 /Makefile.in | |
parent | d71489efc74c55ee09f242ae5d87dbee694a8b5e (diff) | |
download | ghdl-159e0bfdbb135e74aac10e54c7a499e9e34aa5a2.tar.gz ghdl-159e0bfdbb135e74aac10e54c7a499e9e34aa5a2.tar.bz2 ghdl-159e0bfdbb135e74aac10e54c7a499e9e34aa5a2.zip |
Rework libghdl build/install procedure (#840)
* feat(libghdl): add libghdl_pkg.py, add option to generate libghdl-py.tgz with dist/travis/build.sh
* libghdl*.so is now part of GHDL
* move python sources to python/libghdl and python/pnodes
* rename src/vhdl/python to src/vhdl/libghdl
* add generation of tarball for libghdl-py to the makefile
* deprecate --enable-python and --disable-python
* add configuration option --disable-libghdl
* feat(python/libghdl): add support for LIBGHDL_PREFIX (#844)
* fix(travis): disable libghdl on mac
* feat(python/libghdl): add support for GHDL_BIN_PATH and VUNIT_GHDL_PATH
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in index eea47de70..6654413cc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -40,7 +40,7 @@ libghdl_version=@libghdl_version@ enable_werror=@enable_werror@ enable_checks=@enable_checks@ enable_openieee=@enable_openieee@ -enable_python=@enable_python@ +enable_libghdl=@enable_libghdl@ default_pic=@default_pic@ INSTALL_PROGRAM=install -m 755 @@ -191,7 +191,7 @@ libs.vhdl.mcode: ghdl_mcode$(EXEEXT) install.mcode.program: install.dirs ghdl_mcode$(EXEEXT) $(INSTALL_PROGRAM) ghdl_mcode$(EXEEXT) $(DESTDIR)$(bindir)/ghdl$(EXEEXT) -install.mcode: install.mcode.program install.vhdllib install.vpi +install.mcode: install.mcode.program install.vhdllib install.vpi install.libghdl oread-mcode$(EXEEXT): force $(MAKE) -f $(srcdir)/src/ortho/mcode/Makefile \ @@ -259,7 +259,7 @@ libs.vhdl.gcc: ghdllib: libs.vhdl.gcc $(libdirsuffix)/libgrt.a -install.gcc: install.vhdllib install.grt install.vpi +install.gcc: install.vhdllib install.grt install.vpi install.libghdl #################### For gcc backend - development only (local build) #### @@ -339,7 +339,7 @@ install.llvm.program: install.dirs ghdl1-llvm$(EXEEXT) ghdl_llvm$(EXEEXT) $(INSTALL_PROGRAM) ghdl_llvm$(EXEEXT) $(DESTDIR)$(bindir)/ghdl$(EXEEXT) $(INSTALL_PROGRAM) ghdl1-llvm$(EXEEXT) $(DESTDIR)$(bindir)/ghdl1-llvm$(EXEEXT) -install.llvm: install.llvm.program install.vhdllib install.grt install.vpi +install.llvm: install.llvm.program install.vhdllib install.grt install.vpi install.libghdl ################ For simul (no code generation, interpretation) ########## @@ -359,7 +359,7 @@ install.simul: install.simul.program install.vhdllib ################ libghdl (library for the vhdl part) #################### -LIBGHDL_INCFLAGS=$(GHDL_COMMON_INCFLAGS) -aI$(srcdir)/src/vhdl/python -aI$(srcdir)/src/ghdldrv +LIBGHDL_INCFLAGS=$(GHDL_COMMON_INCFLAGS) -aI$(srcdir)/src/vhdl/libghdl -aI$(srcdir)/src/ghdldrv libghdl_name=libghdl-$(libghdl_version)$(SOEXT) @@ -368,7 +368,17 @@ $(libghdl_name): $(GRT_SRC_DEPS) version.ads force all.libghdl.true: $(libghdl_name) all.libghdl.false: -all.libghdl: all.libghdl.$(enable_python) +all.libghdl: all.libghdl.$(enable_libghdl) + +install.libghdl.true: + $(INSTALL_PROGRAM) -p $(libghdl_name) $(DESTDIR)$(libdir)/ + $(MKDIR) python + $(CP) -r $(srcdir)/python/libghdl python + $(MV) config.py python/libghdl/ + tar -zcvf ../libghdl-py.tgz -C python/libghdl . + +install.libghdl.false: +install.libghdl: install.libghdl.$(enable_libghdl) ################ ghdlsynth library ###################################### |