# makefile for Gambit compiler. # Copyright (c) 1994-2021 by Marc Feeley, All Rights Reserved. herefromroot = gsc rootfromhere = .. SUBDIRS = PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ @SET_MAKE@ srcdir = @srcdir@ VPATH = @srcdir@ srcdirpfx = @srcdirpfx@ C_COMPILER = @C_COMPILER_MF@ C_PREPROC = @C_PREPROC_MF@ FLAGS_OBJ = @FLAGS_OBJ_MF@ FLAGS_DYN = @FLAGS_DYN_MF@ FLAGS_LIB = @FLAGS_LIB_MF@ FLAGS_EXE = @FLAGS_EXE_MF@ FLAGS_OPT = @FLAGS_OPT_MF@ FLAGS_OPT_RTS = @FLAGS_OPT_RTS_MF@ DEFS = @DEFS@ LIBS = @LIBS@ GAMBITLIB_DEFS = @GAMBITLIB_DEFS_MF@ LIB_PREFIX = @LIB_PREFIX@ LIB_VERSION_SUFFIX = @LIB_VERSION_SUFFIX@ LIB_MAJOR_VERSION_SUFFIX = @LIB_MAJOR_VERSION_SUFFIX@ LIB_EXTENSION = @LIB_EXTENSION@ GAMBITLIB = @GAMBITLIB@ GAMBITGSCLIB = @GAMBITGSCLIB@ GAMBITGSILIB = @GAMBITGSILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_LIB = @INSTALL_LIB@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ LN_S = @LN_S@ RANLIB = @RANLIB@ AR = @AR@ RC = @RC@ GIT = @GIT@ HG = @HG@ prefix = @prefix@ exec_prefix = @exec_prefix@ includedir = @includedir@ libdir = @libdir@ bindir = @bindir@ docdir = @docdir@ infodir = @infodir@ emacsdir = @emacsdir@ libexecdir = @libexecdir@ datarootdir = @datarootdir@ datadir = @datadir@ htmldir = @htmldir@ dvidir = @dvidir@ pdfdir = @pdfdir@ psdir = @psdir@ localedir = @localedir@ mandir = @mandir@ .SUFFIXES: .SUFFIXES: .scm .c @obj@ GAMBIT_GSC_LIB_C = _$(GAMBITGSCLIB).c GAMBIT_GSC_LIB_O = _$(GAMBITGSCLIB)@obj@ LINKFILE_C = _gsc_.c LINKFILE_O = _gsc_@obj@ HEADERS_SCM = "_assert\#.scm" "_asm\#.scm" "_x86\#.scm" "_arm\#.scm" "_riscv\#.scm" "_codegen\#.scm" LIBRARIES_SCM = $(HEADERS_SCM) LIBRARY = $(LIB_PREFIX)$(GAMBITGSCLIB)$(LIB_EXTENSION) LIBRARY_NORMAL_C = LIBRARY_NORMAL_CPP = LIBRARY_NORMAL_H = LIBRARY_NORMAL_O = LIBRARY_NORMAL_O_PLUS = LIBRARY_NORMAL_O_COMMA = LIBRARY_NORMAL_SOURCES = $(LIBRARY_NORMAL_C) $(LIBRARY_NORMAL_CPP) \ $(LIBRARY_NORMAL_H) LIBRARY_MODULES = _host _utils _source _parms \ _env _ptree1 _ptree2 _gvm _back _front \ _prims _assert _asm _x86 _arm _riscv _codegen \ _t-univ-1 _t-univ-2 _t-univ-3 _t-univ-4 \ _t-cpu-abstract-machine _t-cpu-primitives \ _t-cpu-object-desc _t-cpu-utils \ _t-cpu-backend-x86 _t-cpu-backend-arm _t-cpu-backend-riscv \ _t-cpu \ _t-c-1 _t-c-2 _t-c-3 \ _gsclib LIBRARY_MODULES_SCM = _host.scm _utils.scm _source.scm _parms.scm \ _env.scm _ptree1.scm _ptree2.scm _gvm.scm _back.scm _front.scm \ _prims.scm _assert.scm _asm.scm _x86.scm _arm.scm _riscv.scm _codegen.scm \ _t-univ-1.scm _t-univ-2.scm _t-univ-3.scm _t-univ-4.scm \ _t-cpu-abstract-machine.scm _t-cpu-primitives.scm \ _t-cpu-object-desc.scm _t-cpu-utils.scm \ _t-cpu-backend-x86.scm _t-cpu-backend-arm.scm _t-cpu-backend-riscv.scm \ _t-cpu.scm \ _t-c-1.scm _t-c-2.scm _t-c-3.scm \ _gsclib.scm LIBRARY_MODULES_C = _host.c _utils.c _source.c _parms.c \ _env.c _ptree1.c _ptree2.c _gvm.c _back.c _front.c \ _prims.c _assert.c _asm.c _x86.c _arm.c _riscv.c _codegen.c \ _t-univ-1.c _t-univ-2.c _t-univ-3.c _t-univ-4.c \ _t-cpu-abstract-machine.c _t-cpu-primitives.c \ _t-cpu-object-desc.c _t-cpu-utils.c \ _t-cpu-backend-x86.c _t-cpu-backend-arm.c _t-cpu-backend-riscv.c \ _t-cpu.c \ _t-c-1.c _t-c-2.c _t-c-3.c \ _gsclib.c LIBRARY_MODULES_O = _host@obj@ _utils@obj@ _source@obj@ _parms@obj@ \ _env@obj@ _ptree1@obj@ _ptree2@obj@ _gvm@obj@ _back@obj@ _front@obj@ \ _prims@obj@ _assert@obj@ _asm@obj@ _x86@obj@ _arm@obj@ _riscv@obj@ _codegen@obj@ \ _t-univ-1@obj@ _t-univ-2@obj@ _t-univ-3@obj@ _t-univ-4@obj@ \ _t-cpu-abstract-machine@obj@ _t-cpu-primitives@obj@ \ _t-cpu-object-desc@obj@ _t-cpu-utils@obj@ \ _t-cpu-backend-x86@obj@ _t-cpu-backend-arm@obj@ _t-cpu-backend-riscv@obj@ \ _t-cpu@obj@ \ _t-c-1@obj@ _t-c-2@obj@ _t-c-3@obj@ \ _gsclib@obj@ LIBRARY_MODULES_O_PLUS = +_host@obj@ +_utils@obj@ +_source@obj@ +_parms@obj@ \ +_env@obj@ +_ptree1@obj@ +_ptree2@obj@ +_gvm@obj@ +_back@obj@ +_front@obj@ \ +_prims@obj@ +_assert@obj@ +_asm@obj@ +_x86@obj@ +_arm@obj@ +_riscv@obj@ +_codegen@obj@ \ +_t-univ-1@obj@ +_t-univ-2@obj@ +_t-univ-3@obj@ +_t-univ-4@obj@ \ +_t-cpu-abstract-machine@obj@ +_t-cpu-primitives@obj@ \ +_t-cpu-object-desc@obj@ +_t-cpu-utils@obj@ \ +_t-cpu-backend-x86@obj@ +_t-cpu-backend-arm@obj@ +_t-cpu-backend-riscv@obj@ \ +_t-cpu@obj@ \ +_t-c-1@obj@ +_t-c-2@obj@ +_t-c-3@obj@ \ +_gsclib@obj@ LIBRARY_MODULES_O_COMMA = _host@obj@,_utils@obj@,_source@obj@,_parms@obj@,\ _env@obj@,_ptree1@obj@,_ptree2@obj@,_gvm@obj@,_back@obj@,_front@obj@,\ _prims@obj@,_assert@obj@,_asm@obj@,_x86@obj@,_arm@obj@,_riscv@obj@,_codegen@obj@,\ _t-univ-1@obj@,_t-univ-2@obj@,_t-univ-3@obj@,_t-univ-4@obj@,\ _t-cpu-abstract-machine@obj@,_t-cpu-primitives@obj@,\ _t-cpu-object-desc@obj@,_t-cpu-utils@obj@,\ _t-cpu-backend-x86@obj@,_t-cpu-backend-arm@obj@,_t-cpu-backend-riscv@obj@,\ _t-cpu@obj@,\ _t-c-1@obj@,_t-c-2@obj@,_t-c-3@obj@,\ _gsclib@obj@ LIBRARY_MODULES_O_IN_COMPILE_ORDER = _t-univ-2@obj@ _t-univ-3@obj@ \ _t-univ-1@obj@ _prims@obj@ _t-univ-4@obj@ _t-c-2@obj@ _front@obj@ \ _ptree1@obj@ _ptree2@obj@ _gvm@obj@ _t-c-1@obj@ _x86@obj@ \ _t-cpu-abstract-machine@obj@ _t-cpu-backend-x86@obj@ \ _t-cpu-backend-arm@obj@ _t-cpu-backend-riscv@obj@ _arm@obj@ \ _source@obj@ _t-cpu-primitives@obj@ _riscv@obj@ _utils@obj@ \ _asm@obj@ _gsclib@obj@ _parms@obj@ _t-c-3@obj@ _codegen@obj@ \ _back@obj@ _env@obj@ _host@obj@ _t-cpu-object-desc@obj@ _t-cpu@obj@ \ _t-cpu-utils@obj@ _assert@obj@ LIBRARY_MODULES_C_IN_COMPILE_ORDER = _t-univ-2.c _t-univ-3.c \ _t-univ-1.c _prims.c _t-univ-4.c _t-c-2.c _front.c \ _ptree1.c _ptree2.c _gvm.c _t-c-1.c _x86.c \ _t-cpu-abstract-machine.c _t-cpu-backend-x86.c \ _t-cpu-backend-arm.c _t-cpu-backend-riscv.c _arm.c \ _source.c _t-cpu-primitives.c _riscv.c _utils.c \ _asm.c _gsclib.c _parms.c _t-c-3.c _codegen.c \ _back.c _env.c _host.c _t-cpu-object-desc.c _t-cpu.c \ _t-cpu-utils.c _assert.c LIBRARY_OBJECTS = $(LIBRARY_NORMAL_O) \ $(LIBRARY_MODULES_O) $(GAMBIT_GSC_LIB_O) LIBRARY_OBJECTS_PLUS = $(LIBRARY_NORMAL_O_PLUS) \ $(LIBRARY_MODULES_O_PLUS) +$(GAMBIT_GSC_LIB_O) LIBRARY_OBJECTS_COMMA = $(LIBRARY_NORMAL_O_COMMA),\ $(LIBRARY_MODULES_O_COMMA),$(GAMBIT_GSC_LIB_O) LIBRARY_OBJECTS_IN_COMPILE_ORDER = $(LIBRARY_MODULES_O_IN_COMPILE_ORDER) \ $(LIBRARY_NORMAL_O_IN_COMPILE_ORDER) $(GAMBIT_GSC_LIB_O) LIBRARIES = $(LIBRARY)$(LIB_VERSION_SUFFIX) MAKE_LIBRARY_LIBS = $(rootfromhere)/lib/$(LIB_PREFIX)$(GAMBITLIB)$(LIB_EXTENSION) MAKE_LIBRARY_FOR_INSTALL_LIBS = @MAKE_LIBRARY_FOR_INSTALL_LIBS@ EXECUTABLE = gsc@exe@ EXECUTABLE_INSTALLED = @ENABLE_COMPILER_NAME@@exe@ EXECUTABLE_NORMAL_C = EXECUTABLE_NORMAL_CPP = EXECUTABLE_NORMAL_H = EXECUTABLE_NORMAL_O = EXECUTABLE_NORMAL_O_PLUS = EXECUTABLE_NORMAL_O_COMMA = EXECUTABLE_NORMAL_SOURCES = $(EXECUTABLE_NORMAL_C) $(EXECUTABLE_NORMAL_CPP) \ $(EXECUTABLE_NORMAL_H) EXECUTABLE_MODULES = _gsc EXECUTABLE_MODULES_SCM = _gsc.scm EXECUTABLE_MODULES_C = _gsc.c EXECUTABLE_MODULES_O = _gsc@obj@ EXECUTABLE_MODULES_O_PLUS = +_gsc@obj@ EXECUTABLE_MODULES_O_COMMA = _gsc@obj@ EXECUTABLE_MODULES_O_IN_COMPILE_ORDER = _gsc@obj@ EXECUTABLE_OBJECTS = $(EXECUTABLE_NORMAL_O) \ $(EXECUTABLE_MODULES_O) $(LINKFILE_O) EXECUTABLE_OBJECTS_PLUS = $(EXECUTABLE_NORMAL_O_PLUS) \ $(EXECUTABLE_MODULES_O_PLUS) +$(LINKFILE_O) EXECUTABLE_OBJECTS_COMMA = $(EXECUTABLE_NORMAL_O_COMMA),\ $(EXECUTABLE_MODULES_O_COMMA),$(LINKFILE_O) EXECUTABLE_OBJECTS_IN_COMPILE_ORDER = $(EXECUTABLE_MODULES_O_IN_COMPILE_ORDER) \ $(EXECUTABLE_NORMAL_O_IN_COMPILE_ORDER) $(LINKFILE_O) LINK_LIBS = $(LIBRARY) $(rootfromhere)/lib/$(LIB_PREFIX)$(GAMBITLIB)$(LIB_EXTENSION) LINK_FOR_INSTALL_LIBS = @LINK_FOR_INSTALL_GSC_LIBS@ MODULES_SCM = $(LIBRARY_MODULES_SCM) $(EXECUTABLE_MODULES_SCM) MODULES_C = $(LIBRARY_MODULES_C) $(EXECUTABLE_MODULES_C) OBJECTS = $(LIBRARY_OBJECTS) $(EXECUTABLE_OBJECTS) RCFILES = makefile.in fixnum.scm generic.scm igsc.scm $(MODULES_SCM) \ $(LIBRARIES_SCM) _envadt.scm _gvmadt.scm _ptreeadt.scm _sourceadt.scm \ _univadt.scm _cpuadt.scm runtests.scm _t-x86.scm _gscdebug.scm GENDISTFILES = $(MODULES_C) $(GAMBIT_GSC_LIB_C) $(LINKFILE_C) DISTFILES = $(RCFILES) $(GENDISTFILES) INSTFILES_LIB_DATA = $(GAMBIT_GSC_LIB_C) $(LIBRARIES_SCM) GAMBITDIR_INCLUDE = $(srcdirpfx)$(rootfromhere)/include GAMBITDIR_LIB = $(srcdirpfx)$(rootfromhere)/lib GAMBITDIR_LIB_GSI = $(srcdirpfx)$(rootfromhere)/gsi GAMBITDIR_LIB_GSC = $(srcdirpfx)$(rootfromhere)/gsc ### TODO: remove these variables after bootstrap BUILD_OBJ_OUTPUT_FILENAME = $(BUILD_OBJ_OUTPUT_FILENAME_PARAM) BUILD_OBJ_CC_OPTIONS = $(BUILD_OBJ_CC_OPTIONS_PARAM) BUILD_OBJ_INPUT_FILENAMES = $(BUILD_OBJ_INPUT_FILENAMES_PARAM) BUILD_EXE_OUTPUT_FILENAME = $(BUILD_EXE_OUTPUT_FILENAME_PARAM) BUILD_EXE_CC_OPTIONS = $(BUILD_EXE_CC_OPTIONS_PARAM) BUILD_EXE_LD_OPTIONS_PRELUDE = $(BUILD_EXE_LD_OPTIONS_PRELUDE_PARAM) BUILD_EXE_INPUT_FILENAMES = $(BUILD_EXE_INPUT_FILENAMES_PARAM) BUILD_EXE_LD_OPTIONS = $(BUILD_EXE_LD_OPTIONS_PARAM) ### END variables BUILD_OBJ_OUTPUT_FILENAME_PARAM = $*@obj@ BUILD_OBJ_CC_OPTIONS_PARAM = -I$(srcdir) $(DEFS) BUILD_OBJ_INPUT_FILENAMES_PARAM = $(srcdirpfx)$*.c BUILD_EXE_OUTPUT_FILENAME_PARAM = $(EXECUTABLE) BUILD_EXE_CC_OPTIONS_PARAM = BUILD_EXE_LD_OPTIONS_PRELUDE_PARAM = BUILD_EXE_INPUT_FILENAMES_PARAM = $(EXECUTABLE_OBJECTS) BUILD_EXE_LD_OPTIONS_PARAM = $(LIBRARY) PRELUDE_OPT = -prelude "(\#\#namespace(\"c\#\"))(\#\#include\"$(srcdirpfx)../lib/header.scm\")" ### TODO: replace with this after bootstrap: #PRELUDE_OPT = -prelude "@RTLIB_COND_EXPAND_FEATURES@(\#\#namespace(\"c\#\"))(\#\#include\"$(srcdirpfx)../lib/header.scm\")" all: core core: core-pre: $(LIBRARY) $(EXECUTABLE) core-post: $(MAKE) deselect-gen-for-commit-post-nonrec phase1: $(LIBRARY_MODULES_C_IN_COMPILE_ORDER) $(EXECUTABLE_MODULES_C) phase2: $(LINKFILE_C) phase3: @if test "@ENABLE_SHARED@" = "yes"; then \ $(MAKE) $(LIBRARY_OBJECTS_IN_COMPILE_ORDER); \ else \ $(MAKE) $(LIBRARY); \ fi phase4: core $(LIBRARY): $(LIBRARY_OBJECTS_IN_COMPILE_ORDER) rm -f "$(LIBRARY)$(LIB_VERSION_SUFFIX)" "$(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX)" "$(LIBRARY)" @MAKE_LIBRARY@ if test "$(LIB_VERSION_SUFFIX)" != ""; then \ $(LN_S) "$(LIBRARY)$(LIB_VERSION_SUFFIX)" "$(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX)"; \ $(LN_S) "$(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX)" "$(LIBRARY)"; \ fi $(GAMBIT_GSC_LIB_C): $(LIBRARY_MODULES_C_IN_COMPILE_ORDER) $(rootfromhere)/lib/_$(GAMBITLIB).c @SETDLPATHBOOT@ $(rootfromhere)/gsc-boot -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -f @COMPILATION_OPTIONS@ $(PRELUDE_OPT) -warnings -link -l $(srcdirpfx)$(rootfromhere)/lib/_$(GAMBITLIB) -o $@ -preload $(LIBRARY_MODULES_C) $(EXECUTABLE): $(EXECUTABLE_OBJECTS_IN_COMPILE_ORDER) $(LINK_LIBS) @BUILD_EXE@ $(LINKFILE_C): $(EXECUTABLE_MODULES_C) $(GAMBIT_GSC_LIB_C) @SETDLPATHBOOT@ $(rootfromhere)/gsc-boot -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -f @COMPILATION_OPTIONS@ $(PRELUDE_OPT) -warnings -link -l _$(GAMBITGSCLIB) -o $@ -preload $(EXECUTABLE_MODULES_C) $(LINKFILE_O): $(LINKFILE_C) @BUILD_OBJ@ _gsc@obj@: _gsc.c @BUILD_OBJ@ .c@obj@: @BUILD_OBJ@ -D___LIBRARY .scm.c: @SETDLPATHBOOT@ $(rootfromhere)/gsc-boot -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -f @COMPILATION_OPTIONS@ $(PRELUDE_OPT) -warnings -c $(srcdirpfx)$*.scm _gsc.c: $(srcdirpfx)$(rootfromhere)/gsi/main.scm $(MODULES_C): \ $(srcdirpfx)$(rootfromhere)/lib/header.scm \ $(srcdirpfx)$(rootfromhere)/lib/gambit\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_gambit\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_kernel\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_system\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_num\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_std\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_eval\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_io\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_nonstd\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_thread\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_repl\#.scm \ $(srcdirpfx)$(rootfromhere)/lib/_define-syntax.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-boot.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-case-xform-boot.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-case-xform.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-common.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-pattern.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-rules-xform.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-template.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-xform-boot.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax-xform.scm \ $(srcdirpfx)$(rootfromhere)/lib/_syntax.scm \ $(srcdirpfx)$(rootfromhere)/lib/_with-syntax-boot.scm \ $(srcdirpfx)_assert\#.scm \ $(srcdirpfx)_asm\#.scm \ $(srcdirpfx)_x86\#.scm \ $(srcdirpfx)_arm\#.scm \ $(srcdirpfx)_riscv\#.scm \ $(srcdirpfx)_codegen\#.scm \ $(srcdirpfx)fixnum.scm \ $(srcdirpfx)generic.scm $(MODULES_O): $(srcdirpfx)$(rootfromhere)/include/gambit.h bootstrap-pre: bootstrap-post: rm -f $(rootfromhere)/gsc-boot@bat@ $(rootfromhere)/gsc-boot@exe@ $(rootfromhere)/gsc-boot cp $(EXECUTABLE) $(rootfromhere)/gsc-boot if test "@exe@" != ""; then \ cp $(EXECUTABLE) $(rootfromhere)/gsc-boot@exe@; \ fi if test "@ENABLE_SHARED@" = "yes"; then \ cp $(LIBRARY)$(LIB_VERSION_SUFFIX) $(rootfromhere)/$(LIBRARY)$(LIB_VERSION_SUFFIX); \ if test "$(LIB_VERSION_SUFFIX)" != ""; then \ cd $(rootfromhere); \ $(LN_S) "$(LIBRARY)$(LIB_VERSION_SUFFIX)" "$(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX)"; \ $(LN_S) "$(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX)" "$(LIBRARY)"; \ fi \ fi install-pre: install-post: core c_bindir="$(DESTDIR)$(prefix)/bin"; \ i_bindir="$(DESTDIR)$(bindir)"; \ t_bindir="$$i_bindir"; \ c_libdir="$(DESTDIR)$(prefix)/lib"; \ i_libdir="$(DESTDIR)$(libdir)"; \ t_libdir="$$i_libdir"; \ $(srcdirpfx)$(rootfromhere)/mkidirs "$$i_bindir" "$$i_libdir"; \ if test "@ENABLE_SYMLINKS@" = "yes"; then \ $(srcdirpfx)$(rootfromhere)/mkidirs "$$c_bindir" "$$c_libdir"; \ t_bindir="$$c_bindir"; \ t_libdir="$$c_libdir"; \ fi; \ @MAKE_LIBRARY_FOR_INSTALL@; \ for file in $(INSTFILES_LIB_DATA); do \ $(INSTALL_DATA) "$$file" "$$t_libdir/$$file"; \ done; \ for file in $(LIBRARIES); do \ $(INSTALL_LIB) "$$file" "$$t_libdir/$$file"; \ @FIXLIB@ "$$t_libdir/$$file"; \ done; \ if test "$(LIB_VERSION_SUFFIX)" != ""; then \ (cd "$$t_libdir" && $(LN_S) "$(LIBRARY)$(LIB_VERSION_SUFFIX)" "$(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX)" && $(LN_S) "$(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX)" "$(LIBRARY)"); \ fi; \ @LINK_FOR_INSTALL@; \ $(INSTALL_PROGRAM) "$(EXECUTABLE)" "$$t_bindir/$(EXECUTABLE_INSTALLED)"; \ if test "$$t_libdir" != "$$i_libdir"; then \ r_libdir=`$(rootfromhere)/relpath "$$t_libdir" "$$i_libdir" @ENABLE_MULTIPLE_VERSIONS@`; \ for file in $(INSTFILES_LIB_DATA) $(LIBRARIES); do \ (cd "$$i_libdir" && $(LN_S) "$$r_libdir$$file" "$$file"); \ done; \ fi; \ if test "$$t_bindir" != "$$i_bindir"; then \ r_bindir=`$(rootfromhere)/relpath "$$t_bindir" "$$i_bindir" @ENABLE_MULTIPLE_VERSIONS@`; \ for file in $(EXECUTABLE_INSTALLED); do \ (cd "$$i_bindir" && $(LN_S) "$$r_bindir$$file" "$$file"); \ done; \ fi uninstall-pre: uninstall-post: c_bindir="$(DESTDIR)$(prefix)/bin"; \ i_bindir="$(DESTDIR)$(bindir)"; \ t_bindir="$$i_bindir"; \ c_libdir="$(DESTDIR)$(prefix)/lib"; \ i_libdir="$(DESTDIR)$(libdir)"; \ t_libdir="$$i_libdir"; \ if test "@ENABLE_SYMLINKS@" = "yes"; then \ t_bindir="$$c_bindir"; \ t_libdir="$$c_libdir"; \ fi; \ for file in $(INSTFILES_LIB_DATA) $(LIBRARIES) $(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX) $(LIBRARY); do \ rm -f "$$t_libdir/$$file"; \ done; \ if test "$$t_libdir" != "$$i_libdir"; then \ for file in $(INSTFILES_LIB_DATA) $(LIBRARIES) $(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX) $(LIBRARY); do \ rm -f "$$i_libdir/$$file"; \ done; \ fi; \ rm -f "$$t_bindir/$(EXECUTABLE_INSTALLED)"; \ if test "$$t_bindir" != "$$i_bindir"; then \ for file in $(EXECUTABLE_INSTALLED); do \ rm -f "$$i_bindir/$$file"; \ done; \ fi; \ rmdir "$$t_libdir" 2> /dev/null; \ if test "$$t_libdir" != "$$i_libdir"; then \ rmdir "$$i_libdir" 2> /dev/null; \ fi; \ rmdir "$$t_bindir" 2> /dev/null; \ if test "$$t_bindir" != "$$i_bindir"; then \ rmdir "$$i_bindir" 2> /dev/null; \ fi select-gen-for-commit-pre: select-gen-for-commit-post select-gen-for-commit-post-nonrec: if [ -e $(rootfromhere)/.git ]; then $(RC) update-index --no-skip-worktree $(GENDISTFILES); fi deselect-gen-for-commit-pre: deselect-gen-for-commit-post deselect-gen-for-commit-post-nonrec: if [ -e $(rootfromhere)/.git ]; then $(RC) update-index --skip-worktree $(GENDISTFILES); fi mostlyclean-pre: mostlyclean-post mostlyclean-post-nonrec: rm -f $(OBJECTS) $(LIBRARY)$(LIB_VERSION_SUFFIX) $(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX) $(LIBRARY) $(EXECUTABLE) clean-pre: mostlyclean-pre clean-post clean-post-nonrec: mostlyclean-post-nonrec rm -f *.da *.bb *.bbg *.gcov *.gcno *.gcda distclean-pre: clean-pre distclean-post distclean-post-nonrec: clean-post-nonrec bootclean-pre: distclean-pre bootclean-post bootclean-post-nonrec: distclean-post-nonrec rm -f $(GENDISTFILES) realclean-pre: bootclean-pre realclean-post realclean-post-nonrec: bootclean-post-nonrec rm -f makefile rc-setup-pre: $(RC) add $(RCFILES) $(GENDISTFILES) rc-setup-post: dist-pre dist-devel-pre: mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) @echo " Copying distribution files:" @for file in $(DISTFILES); do \ echo " $(herefromroot)/$$file"; \ ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \ || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \ done @echo " $(herefromroot)/tests" (cd $(srcdir) ; COPYFILE_DISABLE=1 tar cf - `$(RC) ls-tree -r HEAD --name-only tests`) | (cd $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) ; tar xf -) dist-post dist-devel-post: core-recursive bootstrap-recursive install-recursive uninstall-recursive select-gen-for-commit-recursive deselect-gen-for-commit-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive: @if test -n "$(SUBDIRS)"; then \ for subdir in ""$(SUBDIRS); do \ target=`echo $@ | sed 's/-recursive//'`; \ echo making $$target in $$subdir; \ (cd $$subdir && $(MAKE) $$target) || exit 1; \ done \ fi core: core-post core-post: core-recursive core-recursive: core-pre bootstrap: bootstrap-post bootstrap-post: bootstrap-recursive bootstrap-recursive: bootstrap-pre install: install-post install-post: install-recursive install-recursive: install-pre uninstall: uninstall-post uninstall-post: uninstall-recursive uninstall-recursive: uninstall-pre select-gen-for-commit: select-gen-for-commit-post select-gen-for-commit-post: select-gen-for-commit-recursive select-gen-for-commit-post-nonrec select-gen-for-commit-recursive: select-gen-for-commit-pre deselect-gen-for-commit: deselect-gen-for-commit-post deselect-gen-for-commit-post: deselect-gen-for-commit-recursive deselect-gen-for-commit-post-nonrec deselect-gen-for-commit-recursive: deselect-gen-for-commit-pre mostlyclean: mostlyclean-post mostlyclean-post: mostlyclean-recursive mostlyclean-post-nonrec mostlyclean-recursive: mostlyclean-pre clean: clean-post clean-post: clean-recursive clean-post-nonrec clean-recursive: clean-pre distclean: distclean-post distclean-post: distclean-recursive distclean-post-nonrec distclean-recursive: distclean-pre bootclean: bootclean-post bootclean-post: bootclean-recursive bootclean-post-nonrec bootclean-recursive: bootclean-pre realclean: realclean-post realclean-post: realclean-recursive realclean-post-nonrec realclean-recursive: realclean-pre rc-setup: rc-setup-post rc-setup-post: rc-setup-recursive rc-setup-recursive: rc-setup-pre dist: dist-post dist-post: dist-recursive dist-recursive: dist-pre dist-devel: dist-devel-post dist-devel-post: dist-devel-recursive dist-devel-recursive: dist-devel-pre makefile: makefile.in $(rootfromhere)/config.status cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: