diff options
-rw-r--r-- | Makefile.in | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index 4ecb2ad7f..5db4160c5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -130,6 +130,8 @@ install: install.$(backend) $(DESTDIR)$(bindir)/ghdl$(EXEEXT) --disp-standard --std=93 > $(DESTDIR)$(VHDL_LIB_DIR)/src/std/standard.v93 $(DESTDIR)$(bindir)/ghdl$(EXEEXT) --disp-standard --std=08 > $(DESTDIR)$(VHDL_LIB_DIR)/src/std/standard.v08 +uninstall: uninstall.$(backend) + check: check.$(backend) copy-sources: copy-sources.$(backend) @@ -191,8 +193,13 @@ libs.vhdl.mcode: ghdl_mcode$(EXEEXT) install.mcode.program: install.dirs ghdl_mcode$(EXEEXT) $(INSTALL_PROGRAM) ghdl_mcode$(EXEEXT) $(DESTDIR)$(bindir)/ghdl$(EXEEXT) +uninstall.mcode.program: + $(RM) $(DESTDIR)$(bindir)/ghdl$(EXEEXT) + install.mcode: install.mcode.program install.vhdllib install.vpi install.libghdl +uninstall.mcode: uninstall.mcode.program uninstall.vhdllib uninstall.vpi uninstall.libghdl + oread-mcode$(EXEEXT): force $(MAKE) -f $(srcdir)/src/ortho/mcode/Makefile \ ortho_srcdir=$(srcdir)/src/ortho ortho_exec=$@ \ @@ -261,6 +268,8 @@ ghdllib: libs.vhdl.gcc $(libdirsuffix)/libgrt.a all.libghdl install.gcc: install.vhdllib install.grt install.vpi install.libghdl +uninstall.gcc: uninstall.vhdllib uninstall.grt uninstall.vpi uninstall.libghdl + #################### For gcc backend - development only (local build) #### GHDL_GCC_INCFLAGS=$(GHDL_COMMON_INCFLAGS) @@ -339,8 +348,14 @@ 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) +uninstall.llvm.program: + $(RM) $(DESTDIR)$(bindir)/ghdl1-llvm$(EXEEXT) + $(RM) $(DESTDIR)$(bindir)/ghdl$(EXEEXT) + install.llvm: install.llvm.program install.vhdllib install.grt install.vpi install.libghdl +uninstall.llvm: uninstall.llvm.program uninstall.vhdllib uninstall.grt uninstall.vpi uninstall.libghdl + ################ For simul (no code generation, interpretation) ########## GHDL_SIMUL_INCFLAGS=$(GHDL_COMMON_INCFLAGS) -aI$(srcdir)/src/ghdldrv -aI$(srcdir)/src/vhdl/simulate -aI$(srcdir)/src/synth @@ -354,8 +369,13 @@ libs.vhdl.simul: ghdl_simul$(EXEEXT) install.simul.program: install.dirs ghdl_simul$(EXEEXT) $(INSTALL_PROGRAM) ghdl_simul$(EXEEXT) $(DESTDIR)$(bindir)/ghdl$(EXEEXT) +uninstall.simul.program: + $(RM) $(DESTDIR)$(bindir)/ghdl$(EXEEXT) + install.simul: install.simul.program install.vhdllib +uninstall.simul: uninstall.simul.program uninstall.vhdllib + ################ libghdl (library for the vhdl part) #################### @@ -376,6 +396,9 @@ install.libghdl.true: install.libghdl.false: install.libghdl: install.libghdl.$(enable_libghdl) +uninstall.libghdl: + $(RM) $(DESTDIR)$(libdir)/$(libghdl_name) + libghdl-py.tgz: [ -d pythonb ] || $(MKDIR) pythonb $(CP) -r $(srcdir)/python/libghdl $(srcdir)/python/setup.py pythonb @@ -433,6 +456,12 @@ install.grt: $(libdirsuffix)/libgrt.a $(libdirsuffix)/grt.lst install.dirs test "x$(LIBBACKTRACE)" = x || test "x$(backend)" = xgcc || \ $(INSTALL_DATA) $(LIBBACKTRACE) $(DESTDIR)$(VHDL_LIB_DIR)/libbacktrace.a +uninstall.grt: + $(RM) $(DESTDIR)$(VHDL_LIB_DIR)/libgrt.a + $(RM) $(DESTDIR)$(VHDL_LIB_DIR)/grt.lst + $(RM) $(DESTDIR)$(VHDL_LIB_DIR)/grt.ver + $(RM) $(DESTDIR)$(VHDL_LIB_DIR)/libbacktrace.a + ################ VPI ##################################################### vpi_thunk.o: $(GRTSRCDIR)/vpi_thunk.c $(GRTSRCDIR)/vpi_thunk.h @@ -448,6 +477,10 @@ install.vpi: all.vpi install.dirs $(INSTALL_PROGRAM) -p libghdlvpi$(SOEXT) $(DESTDIR)$(libdir)/ $(INSTALL_DATA) -p $(GRTSRCDIR)/vpi_user.h $(DESTDIR)$(incdir)/ +uninstall.vpi: + $(RM) -f $(DESTDIR)$(libdir)/libghdlvpi$(SOEXT) + $(RM) -f $(DESTDIR)$(incdir)/vpi_user.h + install.vpi.local: all.vpi $(MKDIR) -p include lib $(INSTALL_DATA) -p $(GRTSRCDIR)/vpi_user.h include/ @@ -500,6 +533,9 @@ install.vhdllib: install.dirs $(INSTALL_PROGRAM) -p \ $(LIBSRC_DIR)/vendors/*.sh $(DESTDIR)$(VHDL_LIB_DIR)/vendors/ +uninstall.vhdllib: + $(RM) -rf $(DESTDIR)$(VHDL_LIB_DIR) + ####################### clean ############################################ clean: force |