2000-05-10 21:26:51 +00:00
|
|
|
--- Makefile.in.orig Wed May 10 16:38:48 2000
|
|
|
|
+++ Makefile.in Wed May 10 16:46:00 2000
|
|
|
|
@@ -53,7 +53,9 @@
|
|
|
|
SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY)
|
1997-08-20 10:33:43 +00:00
|
|
|
|
|
|
|
# Directory in which to install the include file tcl.h:
|
2000-05-10 21:26:51 +00:00
|
|
|
-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
|
|
|
|
+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/tcl$(VERSION)
|
2000-01-05 07:11:54 +00:00
|
|
|
+GENERIC_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/generic
|
|
|
|
+UNIX_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/unix
|
1997-08-20 10:33:43 +00:00
|
|
|
|
|
|
|
# Top-level directory in which to install manual entries:
|
2000-05-10 21:26:51 +00:00
|
|
|
MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir)
|
|
|
|
@@ -87,7 +89,7 @@
|
|
|
|
#CFLAGS = $(CFLAGS_DEBUG)
|
|
|
|
#CFLAGS = $(CFLAGS_OPTIMIZE)
|
|
|
|
#CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE)
|
|
|
|
-CFLAGS = @CFLAGS@
|
|
|
|
+CFLAGS ?= @CFLAGS@
|
1998-08-24 00:59:59 +00:00
|
|
|
|
|
|
|
# To disable ANSI-C procedure prototypes reverse the comment characters
|
1999-09-05 16:32:10 +00:00
|
|
|
# on the following lines:
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -394,7 +396,7 @@
|
1999-09-05 16:32:10 +00:00
|
|
|
|
|
|
|
all: binaries libraries doc
|
1997-09-01 11:16:51 +00:00
|
|
|
|
2000-05-10 21:26:51 +00:00
|
|
|
-binaries: ${TCL_LIB_FILE} $(TCL_STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) tclsh Tcltest${SHLIB_SUFFIX}
|
|
|
|
+binaries: ${TCL_LIB_FILE} $(TCL_STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) libtcl${SHORT_TCL_VER}.a tclsh Tcltest${SHLIB_SUFFIX}
|
1997-09-01 11:16:51 +00:00
|
|
|
|
1999-09-05 16:32:10 +00:00
|
|
|
libraries:
|
1997-09-01 11:16:51 +00:00
|
|
|
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -407,6 +409,11 @@
|
1997-09-01 11:16:51 +00:00
|
|
|
@MAKE_LIB@
|
|
|
|
$(RANLIB) ${TCL_LIB_FILE}
|
|
|
|
|
2000-01-05 07:11:54 +00:00
|
|
|
+libtcl${SHORT_TCL_VER}.a: ${OBJS}
|
|
|
|
+ rm -f libtcl${SHORT_TCL_VER}.a
|
|
|
|
+ ar cr libtcl${SHORT_TCL_VER}.a ${OBJS}
|
|
|
|
+ $(RANLIB) libtcl${SHORT_TCL_VER}.a
|
1997-09-01 11:16:51 +00:00
|
|
|
+
|
1999-06-20 14:05:44 +00:00
|
|
|
${STUB_LIB_FILE}: ${STUB_LIB_OBJS}
|
|
|
|
rm -f ${STUB_LIB_FILE}
|
|
|
|
@MAKE_STUB_LIB@
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -520,11 +527,16 @@
|
2000-04-24 19:48:55 +00:00
|
|
|
fi
|
|
|
|
@echo "Installing $(TCL_LIB_FILE) to $(LIB_INSTALL_DIR)/"
|
1997-09-01 11:16:51 +00:00
|
|
|
@$(INSTALL_DATA) $(TCL_LIB_FILE) $(LIB_INSTALL_DIR)/$(TCL_LIB_FILE)
|
2000-01-05 07:11:54 +00:00
|
|
|
+ @ln -sf $(TCL_LIB_FILE) $(LIB_INSTALL_DIR)/libtcl${SHORT_TCL_VER}.so
|
2000-05-10 21:26:51 +00:00
|
|
|
@echo "Installing Tcltest${SHLIB_SUFFIX} to $(SCRIPT_INSTALL_DIR)/tcltest1.0"
|
|
|
|
@$(INSTALL_DATA) Tcltest${SHLIB_SUFFIX} \
|
|
|
|
$(SCRIPT_INSTALL_DIR)/tcltest1.0/Tcltest${SHLIB_SUFFIX}
|
1997-09-01 11:16:51 +00:00
|
|
|
@(cd $(LIB_INSTALL_DIR); $(RANLIB) $(TCL_LIB_FILE))
|
|
|
|
@chmod 555 $(LIB_INSTALL_DIR)/$(TCL_LIB_FILE)
|
2000-01-05 07:11:54 +00:00
|
|
|
+ @echo "Installing libtcl${SHORT_TCL_VER}.a"
|
|
|
|
+ @$(INSTALL_DATA) libtcl${SHORT_TCL_VER}.a $(LIB_INSTALL_DIR)/libtcl${SHORT_TCL_VER}.a
|
|
|
|
+ @(cd $(LIB_INSTALL_DIR); $(RANLIB) libtcl${SHORT_TCL_VER}.a)
|
|
|
|
+ @chmod 555 $(LIB_INSTALL_DIR)/libtcl${SHORT_TCL_VER}.a
|
1999-06-20 14:05:44 +00:00
|
|
|
@if test "$(TCL_BUILD_EXP_FILE)" != ""; then \
|
2000-04-24 19:48:55 +00:00
|
|
|
echo "Installing $(TCL_EXP_FILE) to $(LIB_INSTALL_DIR)/"; \
|
1999-06-20 14:05:44 +00:00
|
|
|
$(INSTALL_DATA) $(TCL_BUILD_EXP_FILE) \
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -532,8 +544,9 @@
|
2000-04-24 19:48:55 +00:00
|
|
|
fi
|
|
|
|
@echo "Installing tclsh as $(BIN_INSTALL_DIR)/tclsh$(VERSION)"
|
1997-08-20 10:33:43 +00:00
|
|
|
@$(INSTALL_PROGRAM) tclsh $(BIN_INSTALL_DIR)/tclsh$(VERSION)
|
2000-04-24 19:48:55 +00:00
|
|
|
- @echo "Installing tclConfig.sh to $(LIB_INSTALL_DIR)/"
|
1997-08-20 10:33:43 +00:00
|
|
|
- @$(INSTALL_DATA) tclConfig.sh $(LIB_INSTALL_DIR)/tclConfig.sh
|
2000-04-24 19:48:55 +00:00
|
|
|
+ @echo "Installing tclConfig.sh to $(SCRIPT_INSTALL_DIR)/"
|
1997-08-20 10:33:43 +00:00
|
|
|
+ @mkdir -p $(SCRIPT_INSTALL_DIR)
|
|
|
|
+ @$(INSTALL_DATA) tclConfig.sh $(SCRIPT_INSTALL_DIR)/tclConfig.sh
|
1999-06-20 14:05:44 +00:00
|
|
|
@if test "$(TCL_STUB_LIB_FILE)" != "" ; then \
|
2000-04-24 19:48:55 +00:00
|
|
|
echo "Installing $(TCL_STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \
|
1999-06-20 14:05:44 +00:00
|
|
|
$(INSTALL_DATA) $(STUB_LIB_FILE) \
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -541,7 +554,8 @@
|
1999-06-20 14:05:44 +00:00
|
|
|
fi
|
1997-08-20 10:33:43 +00:00
|
|
|
|
1999-11-21 20:54:58 +00:00
|
|
|
install-libraries: libraries
|
2000-05-10 21:26:51 +00:00
|
|
|
- @for i in $(INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR); \
|
|
|
|
+ @for i in $(GENERIC_INCLUDE_INSTALL_DIR) $(UNIX_INCLUDE_INSTALL_DIR) \
|
|
|
|
+ $(SCRIPT_INSTALL_DIR); \
|
1997-10-01 08:39:50 +00:00
|
|
|
do \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
echo "Making directory $$i"; \
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -563,10 +577,16 @@
|
2000-04-24 19:48:55 +00:00
|
|
|
chmod +x $(SRC_DIR)/install-sh; \
|
|
|
|
fi
|
|
|
|
@echo "Installing header files";
|
1999-06-20 14:05:44 +00:00
|
|
|
- @for i in $(GENERIC_DIR)/tcl.h $(GENERIC_DIR)/tclDecls.h ; \
|
1997-10-01 08:39:50 +00:00
|
|
|
+ @for i in $(GENERIC_DIR)/*.h ; \
|
2000-04-24 19:48:55 +00:00
|
|
|
+ do \
|
1997-10-01 08:39:50 +00:00
|
|
|
+ $(INSTALL_DATA) $$i $(GENERIC_INCLUDE_INSTALL_DIR); \
|
2000-04-24 19:48:55 +00:00
|
|
|
+ done;
|
1999-09-05 16:32:10 +00:00
|
|
|
+ @for i in $(UNIX_DIR)/*.h ; \
|
2000-04-24 19:48:55 +00:00
|
|
|
do \
|
|
|
|
- $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \
|
1999-09-05 16:32:10 +00:00
|
|
|
+ $(INSTALL_DATA) $$i $(UNIX_INCLUDE_INSTALL_DIR); \
|
2000-04-24 19:48:55 +00:00
|
|
|
done;
|
1997-10-01 08:39:50 +00:00
|
|
|
+ @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tcl.h $(INCLUDE_INSTALL_DIR)/tcl.h
|
1999-06-20 14:05:44 +00:00
|
|
|
+ @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tclDecls.h $(INCLUDE_INSTALL_DIR)/tclDecls.h
|
2000-04-24 19:48:55 +00:00
|
|
|
@echo "Installing library files to $(SCRIPT_INSTALL_DIR)";
|
1997-10-01 08:39:50 +00:00
|
|
|
@for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix; \
|
|
|
|
do \
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -607,7 +627,6 @@
|
1999-09-05 16:32:10 +00:00
|
|
|
chmod 444 $(MAN1_INSTALL_DIR)/$$i; \
|
1997-08-20 10:33:43 +00:00
|
|
|
done;
|
2000-04-24 19:48:55 +00:00
|
|
|
@echo "Cross-linking top-level (.1) docs";
|
|
|
|
- @$(UNIX_DIR)/mkLinks $(MAN1_INSTALL_DIR)
|
|
|
|
@echo "Installing C API (.3) docs";
|
1997-08-20 10:33:43 +00:00
|
|
|
@cd $(TOP_DIR)/doc; for i in *.3; \
|
|
|
|
do \
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -617,7 +636,6 @@
|
1999-09-05 16:32:10 +00:00
|
|
|
chmod 444 $(MAN3_INSTALL_DIR)/$$i; \
|
1997-08-20 10:33:43 +00:00
|
|
|
done;
|
2000-04-24 19:48:55 +00:00
|
|
|
@echo "Cross-linking C API (.3) docs";
|
|
|
|
- @$(UNIX_DIR)/mkLinks $(MAN3_INSTALL_DIR)
|
|
|
|
@echo "Installing command (.n) docs";
|
1997-08-20 10:33:43 +00:00
|
|
|
@cd $(TOP_DIR)/doc; for i in *.n; \
|
|
|
|
do \
|
2000-05-10 21:26:51 +00:00
|
|
|
@@ -627,7 +645,14 @@
|
1999-09-05 16:32:10 +00:00
|
|
|
chmod 444 $(MANN_INSTALL_DIR)/$$i; \
|
1997-08-20 10:33:43 +00:00
|
|
|
done;
|
2000-04-24 19:48:55 +00:00
|
|
|
@echo "Cross-linking command (.n) docs";
|
|
|
|
- @$(UNIX_DIR)/mkLinks $(MANN_INSTALL_DIR)
|
1997-10-01 08:39:50 +00:00
|
|
|
+ @echo "**********"
|
|
|
|
+ @echo "IMPORTANT:"
|
|
|
|
+ @echo "**********"
|
|
|
|
+ @echo "tclConfig.sh in $(SCRIPT_INSTALL_DIR)/tclConfig.sh"
|
|
|
|
+ @echo "tcl.h in $(INCLUDE_INSTALL_DIR)/tcl.h"
|
1999-06-20 14:05:44 +00:00
|
|
|
+ @echo "tclDecls.h in $(INCLUDE_INSTALL_DIR)/tclDecls.h"
|
1997-10-01 08:39:50 +00:00
|
|
|
+ @echo "There are NOT default place, but good place to avoid"
|
|
|
|
+ @echo "conflicting with another version of Tcl/Tks."
|
1997-08-20 10:33:43 +00:00
|
|
|
|
1997-10-01 08:39:50 +00:00
|
|
|
Makefile: $(UNIX_DIR)/Makefile.in
|
|
|
|
$(SHELL) config.status
|