📄 makefile.in
字号:
@TCL_LD_SEARCH_FLAGS@ -o tcltestxttest: ${XTTEST_OBJS} ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS} \ @DL_OBJS@ ${BUILD_DLTEST} ${CC} ${XTTEST_OBJS} ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS} \ @DL_OBJS@ @TCL_BUILD_LIB_SPEC@ ${LIBS} \ @TCL_LD_SEARCH_FLAGS@ -lXt -o xttest# Note, in the target below TCL_LIBRARY needs to be set or else# "make test" won't work in the case where the compilation directory# isn't the same as the source directory.test: tcltest LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH; \ SHLIB_PATH=`pwd`:${SHLIB_PATH}; export SHLIB_PATH; \ TCL_LIBRARY=${TOP_DIR}/library; export TCL_LIBRARY; \ ( echo cd $(TOP_DIR)/tests\; source all ) | ./tcltest# Useful target to launch a built tcltest with the proper path,...runtest: LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH; \ SHLIB_PATH=`pwd`:${SHLIB_PATH}; export SHLIB_PATH; \ TCL_LIBRARY=${TOP_DIR}/library; export TCL_LIBRARY; \ ./tcltest# The following target outputs the name of the top-level source directory# for Tcl (it is used by Tk's configure script, for example). The# .NO_PARALLEL line is needed to avoid problems under Sun's "pmake".# Note: this target is now obsolete (use the autoconf variable# TCL_SRC_DIR from tclConfig.sh instead)..NO_PARALLEL: topDirNametopDirName: @cd $(TOP_DIR); pwd# The following target generates the file generic/tclDate.c # from the yacc grammar found in generic/tclGetDate.y. This is# only run by hand as yacc is not available in all environments.# The name of the .c file is different than the name of the .y file# so that make doesn't try to automatically regenerate the .c file.gendate: yacc -l $(GENERIC_DIR)/tclGetDate.y sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d' \ -e 's/SCCSID/%Z\% %M\% %I\% %E\% %U\%/g' \ -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d' \ -e '/TclDatenewstate:/d' -e '/#pragma/d' \ <y.tab.c >$(GENERIC_DIR)/tclDate.c rm y.tab.c# The following targets generate the shared libraries in dltest that# are used for testing; they are included as part of the "tcltest"# target (via the BUILD_DLTEST variable) if dynamic loading is supported# on this platform. The ".." environment variable stuff is needed# because on some platforms tclsh scripts will be executed as part of# building the shared libraries, and they need to be able to use the# uninstalled tclsh that is present in this directory. The "make tclsh"# command is needed for the same reason (must make sure that it exists).dltest/pkg5${SHLIB_SUFFIX}: dltest/Makefile if test ! -f tclsh; then $(MAKE) tclsh; else true; fi cd dltest; PATH=..:${PATH} TCL_LIBRARY=../../library $(MAKE)dltest/Makefile: $(DLTEST_DIR)/configure $(DLTEST_DIR)/Makefile.in tclConfig.sh if test ! -d dltest; then mkdir dltest; else true; fi cd dltest; if test -f configure; then ./configure; else \ $(DLTEST_DIR)/configure; fi#install: install-binaries install-libraries install-man# Note: before running ranlib below, must cd to target directory because# some ranlibs write to current directory, and this might not always be# possible (e.g. if installing as root).install-binaries: $(TCL_LIB_FILE) tclsh @for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ mkdir $$i; \ chmod 755 $$i; \ else true; \ fi; \ done; @echo "Installing $(TCL_LIB_FILE)" @$(INSTALL_DATA) $(TCL_LIB_FILE) $(LIB_INSTALL_DIR)/$(TCL_LIB_FILE) @(cd $(LIB_INSTALL_DIR); $(RANLIB) $(TCL_LIB_FILE)) @chmod 555 $(LIB_INSTALL_DIR)/$(TCL_LIB_FILE) @echo "Installing tclsh" @$(INSTALL_PROGRAM) tclsh $(BIN_INSTALL_DIR)/tclsh$(VERSION) @echo "Installing tclConfig.sh" @$(INSTALL_DATA) tclConfig.sh $(LIB_INSTALL_DIR)/tclConfig.shinstall-libraries: @for i in $(INSTALL_ROOT)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \ $(SCRIPT_INSTALL_DIR); \ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ mkdir $$i; \ chmod 755 $$i; \ else true; \ fi; \ done; @for i in http2.0 http1.0 opt0.1; \ do \ if [ ! -d $(SCRIPT_INSTALL_DIR)/$$i ] ; then \ echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \ mkdir $(SCRIPT_INSTALL_DIR)/$$i; \ chmod 755 $(SCRIPT_INSTALL_DIR)/$$i; \ else true; \ fi; \ done; @echo "Installing tcl.h" @$(INSTALL_DATA) $(GENERIC_DIR)/tcl.h $(INCLUDE_INSTALL_DIR)/tcl.h @for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix; \ do \ echo "Installing $$i"; \ $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \ done; @for i in http2.0 http1.0 opt0.1; \ do \ for j in $(TOP_DIR)/library/$$i/*.tcl ; \ do \ echo "Installing $$j"; \ $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/$$i; \ done; \ done;install-man: @for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ mkdir $$i; \ chmod 755 $$i; \ else true; \ fi; \ done; @cd $(TOP_DIR)/doc; for i in *.1; \ do \ echo "Installing doc/$$i"; \ rm -f $(MAN1_INSTALL_DIR)/$$i; \ sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ $$i > $(MAN1_INSTALL_DIR)/$$i; \ chmod 444 $(MAN1_INSTALL_DIR)/$$i; \ done; $(UNIX_DIR)/mkLinks $(MAN1_INSTALL_DIR) @cd $(TOP_DIR)/doc; for i in *.3; \ do \ echo "Installing doc/$$i"; \ rm -f $(MAN3_INSTALL_DIR)/$$i; \ sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ $$i > $(MAN3_INSTALL_DIR)/$$i; \ chmod 444 $(MAN3_INSTALL_DIR)/$$i; \ done; $(UNIX_DIR)/mkLinks $(MAN3_INSTALL_DIR) @cd $(TOP_DIR)/doc; for i in *.n; \ do \ echo "Installing doc/$$i"; \ rm -f $(MANN_INSTALL_DIR)/$$i; \ sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ $$i > $(MANN_INSTALL_DIR)/$$i; \ chmod 444 $(MANN_INSTALL_DIR)/$$i; \ done; $(UNIX_DIR)/mkLinks $(MANN_INSTALL_DIR)Makefile: $(UNIX_DIR)/Makefile.in $(SHELL) config.statusclean: rm -f *.a *.o libtcl* core errs *~ \#* TAGS *.E a.out \ errors tclsh tcltest lib.exp tcl2c config.cache if test -f dltest/Makefile; then cd dltest; $(MAKE) clean; fidistclean: clean rm -rf Makefile config.status config.cache config.log tclConfig.sh \ $(PACKAGE).* prototype if test -f dltest/Makefile; then cd dltest; $(MAKE) distclean; fidepend: makedepend -- $(DEPEND_SWITCHES) -- $(SRCS)bp: $(UNIX_DIR)/bp.c $(CC) $(CC_SWITCHES) $(UNIX_DIR)/bp.c -o bp# Test binaries. The rules for tclTestInit.o and xtTestInit.o are# complicated because they are compiled from tclAppInit.c. Can't use# the "-o" option because this doesn't work on some strange compilers# (e.g. UnixWare).tclTestInit.o: $(UNIX_DIR)/tclAppInit.c @if test -f tclAppInit.o ; then \ rm -f tclAppInit.sav; \ mv tclAppInit.o tclAppInit.sav; \ fi; $(CC) -c $(CC_SWITCHES) -DTCL_TEST $(UNIX_DIR)/tclAppInit.c rm -f tclTestInit.o mv tclAppInit.o tclTestInit.o @if test -f tclAppInit.sav ; then \ mv tclAppInit.sav tclAppInit.o; \ fi;xtTestInit.o: $(UNIX_DIR)/tclAppInit.c @if test -f tclAppInit.o ; then \ rm -f tclAppInit.sav; \ mv tclAppInit.o tclAppInit.sav; \ fi; $(CC) -c $(CC_SWITCHES) -DTCL_TEST -DTCL_XT_TEST \ $(UNIX_DIR)/tclAppInit.c rm -f xtTestInit.o mv tclAppInit.o xtTestInit.o @if test -f tclAppInit.sav ; then \ mv tclAppInit.sav tclAppInit.o; \ fi;# Library files$(UNIX_DIR)/tcl2c: $(GENERIC_DIR)/tcl2c.c $(CC) $(GENERIC_DIR)/tcl2c.c -o $(UNIX_DIR)/tcl2clib_history.o: $(TOP_DIR)/library/history.tcl $(UNIX_DIR)/tcl2c $(UNIX_DIR)/tcl2c lib_history < $(TOP_DIR)/library/history.tcl > $(UNIX_DIR)/lib_history.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/lib_history.clib_init.o: $(TOP_DIR)/library/init.tcl $(UNIX_DIR)/tcl2c $(UNIX_DIR)/tcl2c lib_init < $(TOP_DIR)/library/init.tcl > $(UNIX_DIR)/lib_init.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/lib_init.clib_ldAout.o: $(TOP_DIR)/library/ldAout.tcl $(UNIX_DIR)/tcl2c $(UNIX_DIR)/tcl2c lib_ldAout < $(TOP_DIR)/library/ldAout.tcl > $(UNIX_DIR)/lib_ldAout.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/lib_ldAout.clib_http.o: $(TOP_DIR)/library/http2.0/http.tcl $(UNIX_DIR)/tcl2c $(UNIX_DIR)/tcl2c lib_http < $(TOP_DIR)/library/http2.0/http.tcl > $(UNIX_DIR)/lib_http.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/lib_http.clib_optparse.o: $(TOP_DIR)/library/opt0.1/optparse.tcl $(UNIX_DIR)/tcl2c $(UNIX_DIR)/tcl2c lib_optparse < $(TOP_DIR)/library/opt0.1/optparse.tcl > $(UNIX_DIR)/lib_optparse.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/lib_optparse.clib_parray.o: $(TOP_DIR)/library/parray.tcl $(UNIX_DIR)/tcl2c $(UNIX_DIR)/tcl2c lib_parray < $(TOP_DIR)/library/parray.tcl > $(UNIX_DIR)/lib_parray.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/lib_parray.clib_safe.o: $(TOP_DIR)/library/safe.tcl $(UNIX_DIR)/tcl2c $(UNIX_DIR)/tcl2c lib_safe < $(TOP_DIR)/library/safe.tcl > $(UNIX_DIR)/lib_safe.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/lib_safe.clib_word.o: $(TOP_DIR)/library/word.tcl $(UNIX_DIR)/tcl2c $(UNIX_DIR)/tcl2c lib_word < $(TOP_DIR)/library/word.tcl > $(UNIX_DIR)/lib_word.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/lib_word.c# Object files used on all Unix systems:panic.o: $(GENERIC_DIR)/panic.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/panic.cregexp.o: $(GENERIC_DIR)/regexp.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regexp.ctclAppInit.o: $(UNIX_DIR)/tclAppInit.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclAppInit.ctclAsync.o: $(GENERIC_DIR)/tclAsync.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclAsync.ctclBasic.o: $(GENERIC_DIR)/tclBasic.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclBasic.ctclBinary.o: $(GENERIC_DIR)/tclBinary.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclBinary.ctclCkalloc.o: $(GENERIC_DIR)/tclCkalloc.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCkalloc.ctclClock.o: $(GENERIC_DIR)/tclClock.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclClock.ctclCmdAH.o: $(GENERIC_DIR)/tclCmdAH.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdAH.ctclCmdIL.o: $(GENERIC_DIR)/tclCmdIL.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdIL.ctclCmdMZ.o: $(GENERIC_DIR)/tclCmdMZ.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdMZ.ctclDate.o: $(GENERIC_DIR)/tclDate.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclDate.ctclCompExpr.o: $(GENERIC_DIR)/tclCompExpr.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCompExpr.ctclCompile.o: $(GENERIC_DIR)/tclCompile.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCompile.ctclEnv.o: $(GENERIC_DIR)/tclEnv.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclEnv.ctclEvent.o: $(GENERIC_DIR)/tclEvent.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclEvent.ctclExecute.o: $(GENERIC_DIR)/tclExecute.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclExecute.ctclFCmd.o: $(GENERIC_DIR)/tclFCmd.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclFCmd.ctclFileName.o: $(GENERIC_DIR)/tclFileName.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclFileName.ctclGet.o: $(GENERIC_DIR)/tclGet.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclGet.ctclHash.o: $(GENERIC_DIR)/tclHash.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclHash.ctclHistory.o: $(GENERIC_DIR)/tclHistory.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclHistory.ctclIndexObj.o: $(GENERIC_DIR)/tclIndexObj.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIndexObj.ctclInterp.o: $(GENERIC_DIR)/tclInterp.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclInterp.ctclIO.o: $(GENERIC_DIR)/tclIO.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIO.ctclIOCmd.o: $(GENERIC_DIR)/tclIOCmd.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOCmd.ctclIOSock.o: $(GENERIC_DIR)/tclIOSock.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOSock.ctclIOUtil.o: $(GENERIC_DIR)/tclIOUtil.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOUtil.ctclLink.o: $(GENERIC_DIR)/tclLink.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLink.ctclListObj.o: $(GENERIC_DIR)/tclListObj.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclListObj.ctclObj.o: $(GENERIC_DIR)/tclObj.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclObj.ctclLoad.o: $(GENERIC_DIR)/tclLoad.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLoad.ctclLoadAix.o: $(UNIX_DIR)/tclLoadAix.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadAix.ctclLoadAout.o: $(UNIX_DIR)/tclLoadAout.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadAout.ctclLoadDl.o: $(UNIX_DIR)/tclLoadDl.c $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDl.ctclLoadDl2.o: $(UNIX_DIR)/tclLoadDl2.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -