2004-12-05 06:39:06 -05:00
|
|
|
$OpenBSD: patch-Makefile_in,v 1.3 2004/12/05 11:39:06 sturm Exp $
|
2002-11-29 04:45:48 -05:00
|
|
|
--- Makefile.in.orig Wed Oct 23 17:45:50 2002
|
2002-12-02 03:01:17 -05:00
|
|
|
+++ Makefile.in Mon Dec 2 15:41:08 2002
|
|
|
|
@@ -356,7 +356,7 @@
|
2000-03-26 21:25:16 -05:00
|
|
|
|
|
|
|
all: binaries libraries doc
|
|
|
|
|
|
|
|
-binaries: ${TK_LIB_FILE} ${STUB_LIB_FILE} wish
|
|
|
|
+binaries: ${TK_LIB_FILE} ${STUB_LIB_FILE} libtk83.a wish
|
|
|
|
|
|
|
|
libraries:
|
|
|
|
|
2002-12-02 03:01:17 -05:00
|
|
|
@@ -371,12 +371,15 @@
|
2000-03-26 21:25:16 -05:00
|
|
|
${TK_LIB_FILE}: ${OBJS}
|
|
|
|
rm -f ${TK_LIB_FILE}
|
|
|
|
@MAKE_LIB@
|
|
|
|
- $(RANLIB) ${TK_LIB_FILE}
|
|
|
|
|
|
|
|
${STUB_LIB_FILE}: ${STUB_LIB_OBJS}
|
|
|
|
rm -f ${STUB_LIB_FILE}
|
|
|
|
@MAKE_STUB_LIB@
|
|
|
|
- $(RANLIB) ${STUB_LIB_FILE}
|
|
|
|
+
|
|
|
|
+libtk83.a: ${OBJS}
|
|
|
|
+ rm -f libtk83.a
|
|
|
|
+ ar cr libtk83.a ${OBJS}
|
|
|
|
+ $(RANLIB) libtk83.a
|
|
|
|
|
|
|
|
# Make target which outputs the list of the .o contained in the Tk lib
|
|
|
|
# usefull to build a single big shared library containing Tcl/Tk and other
|
2002-12-02 03:01:17 -05:00
|
|
|
@@ -478,12 +481,15 @@
|
2000-03-26 21:25:16 -05:00
|
|
|
fi
|
|
|
|
@echo "Installing $(TK_LIB_FILE) to $(LIB_INSTALL_DIR)/"
|
|
|
|
@$(INSTALL_DATA) $(TK_LIB_FILE) $(LIB_INSTALL_DIR)/$(TK_LIB_FILE)
|
|
|
|
- @(cd $(LIB_INSTALL_DIR); $(RANLIB) $(TK_LIB_FILE))
|
|
|
|
@chmod 555 $(LIB_INSTALL_DIR)/$(TK_LIB_FILE)
|
|
|
|
+ @echo "Installing libtk83.a"
|
|
|
|
+ @$(INSTALL_DATA) libtk83.a $(LIB_INSTALL_DIR)/libtk83.a
|
|
|
|
+ @chmod 555 $(LIB_INSTALL_DIR)/libtk83.a
|
|
|
|
@echo "Installing wish as $(BIN_INSTALL_DIR)/wish$(VERSION)"
|
|
|
|
@$(INSTALL_PROGRAM) wish $(BIN_INSTALL_DIR)/wish$(VERSION)
|
|
|
|
@echo "Installing tkConfig.sh to $(LIB_INSTALL_DIR)/"
|
|
|
|
- @$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh
|
|
|
|
+ @mkdir -p $(LIB_INSTALL_DIR)/tk$(VERSION)
|
|
|
|
+ @$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tk$(VERSION)/tkConfig.sh
|
|
|
|
@if test "$(TK_BUILD_EXP_FILE)" != ""; then \
|
|
|
|
echo "Installing $(TK_EXP_FILE) to $(LIB_INSTALL_DIR)/"; \
|
|
|
|
$(INSTALL_DATA) $(TK_BUILD_EXP_FILE) \
|
2002-12-02 03:01:17 -05:00
|
|
|
@@ -497,6 +503,7 @@
|
2000-03-26 21:25:16 -05:00
|
|
|
|
|
|
|
install-libraries:
|
2000-05-23 22:10:06 -04:00
|
|
|
@for i in $(INCLUDE_INSTALL_DIR) \
|
2000-03-26 21:25:16 -05:00
|
|
|
+ $(INSTALL_ROOT)$(GENERIC_INCLUDE_INSTALL_DIR) $(INSTALL_ROOT)$(UNIX_INCLUDE_INSTALL_DIR) \
|
|
|
|
$(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images; \
|
|
|
|
do \
|
|
|
|
if [ ! -d $$i ] ; then \
|
2002-12-02 03:01:17 -05:00
|
|
|
@@ -510,11 +517,19 @@
|
2000-03-26 21:25:16 -05:00
|
|
|
chmod +x $(UNIX_DIR)/install-sh; \
|
|
|
|
fi
|
|
|
|
@echo "Installing header files";
|
2001-05-12 05:07:19 -04:00
|
|
|
- @for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkPlatDecls.h \
|
2002-11-29 04:45:48 -05:00
|
|
|
- $(GENERIC_DIR)/tkDecls.h ; \
|
2000-03-26 21:25:16 -05:00
|
|
|
+ @for i in $(GENERIC_DIR)/*.h ; \
|
|
|
|
+ do \
|
|
|
|
+ echo "Installing $$i"; \
|
2000-08-10 22:34:25 -04:00
|
|
|
+ $(INSTALL_DATA) $$i $(INSTALL_ROOT)$(GENERIC_INCLUDE_INSTALL_DIR); \
|
2002-11-29 04:45:48 -05:00
|
|
|
+ done
|
2000-03-26 21:25:16 -05:00
|
|
|
+ @for i in $(UNIX_DIR)/*.h ; \
|
|
|
|
do \
|
|
|
|
- $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \
|
|
|
|
+ $(INSTALL_DATA) $$i $(INSTALL_ROOT)$(UNIX_INCLUDE_INSTALL_DIR); \
|
|
|
|
done;
|
|
|
|
+ @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tk.h $(INCLUDE_INSTALL_DIR)/tk.h
|
|
|
|
+ @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tkDecls.h $(INCLUDE_INSTALL_DIR)/tkDecls.h
|
2001-10-26 02:48:13 -04:00
|
|
|
+ @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tkPlatDecls.h $(INCLUDE_INSTALL_DIR)/tkPlatDecls.h
|
|
|
|
+ @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tkIntXlibDecls.h $(INCLUDE_INSTALL_DIR)/tkIntXlibDecls.h
|
2000-03-26 21:25:16 -05:00
|
|
|
@echo "Installing library files to $(SCRIPT_INSTALL_DIR)";
|
|
|
|
@for i in $(SRC_DIR)/library/*.tcl $(GENERIC_DIR)/prolog.ps \
|
|
|
|
$(SRC_DIR)/library/tclIndex $(UNIX_DIR)/tkAppInit.c; \
|