154 lines
5.8 KiB
Text
154 lines
5.8 KiB
Text
--- Makefile.in.orig 2009-11-13 19:38:48.000000000 +0100
|
|
+++ Makefile.in 2009-11-20 10:44:06.034436785 +0100
|
|
@@ -65,6 +65,8 @@
|
|
|
|
# Directory in which to install the include file tk.h:
|
|
INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
|
|
+GENERIC_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/generic
|
|
+UNIX_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/unix
|
|
|
|
# Path to the private tk header dir:
|
|
PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@
|
|
@@ -101,7 +103,7 @@
|
|
# The directory containing the Tcl sources and headers appropriate
|
|
# for this version of Tk ("srcdir" will be replaced or has already
|
|
# been replaced by the configure script):
|
|
-TCL_GENERIC_DIR = @TCL_SRC_DIR@/generic
|
|
+TCL_GENERIC_DIR = @prefix@/include/tcl@TCL_VERSION@/generic
|
|
|
|
# The directory containing the platform specific Tcl sources and headers
|
|
# appropriate for this version of Tk:
|
|
@@ -115,7 +117,7 @@
|
|
TCL_LIB_FLAG = @TCL_LIB_FLAG@
|
|
|
|
# Flag, 1: we're building a shared lib, 0 we're not
|
|
-TK_SHARED_BUILD = @TK_SHARED_BUILD@
|
|
+TK_SHARED_BUILD = ###@TK_SHARED_BUILD@
|
|
|
|
# Subdirectory of $(libdir) containing the pkgIndex.tcl file for loadable Tk
|
|
TK_PKG_DIR = @TK_PKG_DIR@
|
|
@@ -138,7 +140,7 @@
|
|
#CFLAGS = $(CFLAGS_DEBUG)
|
|
#CFLAGS = $(CFLAGS_OPTIMIZE)
|
|
#CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE)
|
|
-CFLAGS = @CFLAGS_DEFAULT@ @CFLAGS@
|
|
+CFLAGS += @CFLAGS_DEFAULT@ @CFLAGS@
|
|
|
|
# Flags to pass to the linker
|
|
LDFLAGS_DEBUG = @LDFLAGS_DEBUG@
|
|
@@ -273,7 +275,7 @@
|
|
STLIB_LD = @STLIB_LD@
|
|
SHLIB_LD = @SHLIB_LD@
|
|
SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
|
|
-TK_SHLIB_LD_EXTRAS = @TK_SHLIB_LD_EXTRAS@
|
|
+TK_SHLIB_LD_EXTRAS = @TCL_SHLIB_LD_EXTRAS@
|
|
|
|
# Additional search flags needed to find the various shared libraries
|
|
# at run-time. The first symbol is for use when creating a binary
|
|
@@ -556,6 +558,8 @@
|
|
$(GENERIC_DIR)/tkIntPlatDecls.h $(GENERIC_DIR)/tkPort.h \
|
|
$(TTK_HDRS) $(@TK_WINDOWINGSYSTEM@_PRIVATE_HDRS)
|
|
|
|
+INSTALL_HDRS = tk.h tkDecls.h tkInt.h tkIntDecls.h tkIntXlibDecls.h
|
|
+
|
|
DEMOPROGS = browse hello ixset rmt rolodex tcolor timer widget
|
|
|
|
SHELL_ENV = \
|
|
@@ -581,6 +585,12 @@
|
|
${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE} @LIB_RSRC_FILE@
|
|
rm -f $@
|
|
@MAKE_LIB@
|
|
+ ln -sf @TK_LIB_FILE@ libtk${SHORT_TK_VER}.so
|
|
+
|
|
+libtk${SHORT_TK_VER}.a: ${OBJS}
|
|
+ rm -f libtk${SHORT_TK_VER}.a
|
|
+ ar cr libtk${SHORT_TK_VER}.a ${OBJS}
|
|
+ $(RANLIB) libtk${SHORT_TK_VER}.a
|
|
|
|
${STUB_LIB_FILE}: ${STUB_LIB_OBJS}
|
|
rm -f $@
|
|
@@ -679,7 +689,7 @@
|
|
gdb ./wish --command=gdb.run
|
|
rm gdb.run
|
|
|
|
-INSTALL_TARGETS = install-binaries install-libraries install-demos install-doc @EXTRA_INSTALL@
|
|
+INSTALL_TARGETS = install-binaries install-libraries @EXTRA_INSTALL@
|
|
|
|
install: $(INSTALL_TARGETS)
|
|
|
|
@@ -692,7 +702,8 @@
|
|
# some ranlibs write to current directory, and this might not always be
|
|
# possible (e.g. if installing as root).
|
|
|
|
-install-binaries: $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) $(TK_BUILD_EXP_FILE) wish
|
|
+install-binaries: $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) $(TK_BUILD_EXP_FILE) \
|
|
+ libtk${SHORT_TK_VER}.a wish
|
|
@for i in "$(LIB_INSTALL_DIR)" "$(BIN_INSTALL_DIR)" \
|
|
"$(PKG_INSTALL_DIR)" "$(CONFIG_INSTALL_DIR)" ; \
|
|
do \
|
|
@@ -724,10 +735,15 @@
|
|
$(INSTALL_DATA) $(TK_BUILD_EXP_FILE) \
|
|
"$(LIB_INSTALL_DIR)"/$(TK_EXP_FILE); \
|
|
fi
|
|
+ @ln -sf $(LIB_INSTALL_DIR)/$(TK_LIB_FILE) $(LIB_INSTALL_DIR)/libtk${SHORT_TK_VER}.so
|
|
+ @echo "Installing libtk${SHORT_TK_VER}.a"
|
|
+ @$(INSTALL_DATA) libtk${SHORT_TK_VER}.a $(LIB_INSTALL_DIR)/libtk${SHORT_TK_VER}.a
|
|
+ @chmod 555 $(LIB_INSTALL_DIR)/libtk${SHORT_TK_VER}.a
|
|
@echo "Installing wish as $(BIN_INSTALL_DIR)/wish$(VERSION)"
|
|
@$(INSTALL_PROGRAM) wish "$(BIN_INSTALL_DIR)"/wish$(VERSION)
|
|
- @echo "Installing tkConfig.sh to $(CONFIG_INSTALL_DIR)/"
|
|
- @$(INSTALL_DATA) tkConfig.sh "$(CONFIG_INSTALL_DIR)"/tkConfig.sh
|
|
+ @echo "Installing tkConfig.sh to $(CONFIG_INSTALL_DIR)/tk$(VERSION)"
|
|
+ @mkdir -p "$(CONFIG_INSTALL_DIR)"/tk$(VERSION)
|
|
+ @$(INSTALL_DATA) tkConfig.sh "$(LIB_INSTALL_DIR)"/tk$(VERSION)/tkConfig.sh
|
|
@if test "$(STUB_LIB_FILE)" != "" ; then \
|
|
echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \
|
|
@INSTALL_STUB_LIB@ ; \
|
|
@@ -738,6 +754,7 @@
|
|
@if test "$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)" != ""; then \
|
|
XLIB_INCLUDE_INSTALL_DIR="$(INCLUDE_INSTALL_DIR)"/X11; fi; \
|
|
for i in "$(INCLUDE_INSTALL_DIR)" "$${XLIB_INCLUDE_INSTALL_DIR}" \
|
|
+ "$(GENERIC_INCLUDE_INSTALL_DIR)" "$(UNIX_INCLUDE_INSTALL_DIR)" \
|
|
"$(SCRIPT_INSTALL_DIR)" "$(SCRIPT_INSTALL_DIR)"/images \
|
|
"$(SCRIPT_INSTALL_DIR)"/msgs "$(SCRIPT_INSTALL_DIR)"/ttk; \
|
|
do \
|
|
@@ -752,10 +769,14 @@
|
|
chmod +x $(SRC_DIR)/install-sh; \
|
|
fi
|
|
@echo "Installing header files";
|
|
- @for i in $(PUBLIC_HDRS); \
|
|
+ ${BSD_INSTALL_DATA} $(GENERIC_DIR)/*.h "$(GENERIC_INCLUDE_INSTALL_DIR)"/
|
|
+ ${BSD_INSTALL_DATA} $(UNIX_DIR)/*.h "$(UNIX_INCLUDE_INSTALL_DIR)"/
|
|
+ @for i in $(INSTALL_HDRS) ; \
|
|
do \
|
|
- $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"; \
|
|
- done;
|
|
+ j=`basename $$i` ; \
|
|
+ ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/$$j "$(INCLUDE_INSTALL_DIR)"/$$j ; \
|
|
+ done
|
|
+
|
|
@list='$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)'; for i in $$list ; \
|
|
do \
|
|
$(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"/X11; \
|
|
@@ -828,19 +849,15 @@
|
|
else true; \
|
|
fi; \
|
|
done;
|
|
- @echo "Installing and cross-linking top-level (.1) docs";
|
|
- @for i in $(TOP_DIR)/doc/*.1; do \
|
|
- $(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MAN1_INSTALL_DIR)"; \
|
|
- done
|
|
|
|
@echo "Installing and cross-linking C API (.3) docs";
|
|
@for i in $(TOP_DIR)/doc/*.3; do \
|
|
- $(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MAN3_INSTALL_DIR)"; \
|
|
+ $(BSD_INSTALL_MAN) $$i "$(MAN3_INSTALL_DIR)"; \
|
|
done
|
|
|
|
@echo "Installing and cross-linking command (.n) docs";
|
|
@for i in $(TOP_DIR)/doc/*.n; do \
|
|
- $(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MANN_INSTALL_DIR)"; \
|
|
+ $(BSD_INSTALL_MAN) $$i "$(MANN_INSTALL_DIR)"; \
|
|
done
|
|
|
|
# Optional target to install private headers
|