81 lines
3.2 KiB
Plaintext
81 lines
3.2 KiB
Plaintext
$OpenBSD: patch-Makefile_in,v 1.4 2006/10/18 14:27:43 naddy Exp $
|
|
--- Makefile.in.orig Wed Oct 23 19:45:50 2002
|
|
+++ Makefile.in Wed Oct 18 15:33:39 2006
|
|
@@ -356,7 +356,7 @@ DEMOPROGS = browse hello ixset rmt rolod
|
|
|
|
all: binaries libraries doc
|
|
|
|
-binaries: ${TK_LIB_FILE} ${STUB_LIB_FILE} wish
|
|
+binaries: ${TK_LIB_FILE} ${STUB_LIB_FILE} libtk83.a wish
|
|
|
|
libraries:
|
|
|
|
@@ -371,13 +371,16 @@ doc: $(SRC_DIR)/doc/man.macros
|
|
${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
|
|
# extensions. used for the Tcl Plugin. -- dl
|
|
@@ -478,12 +481,15 @@ install-binaries: $(TK_LIB_FILE) $(TK_ST
|
|
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) \
|
|
@@ -497,6 +503,7 @@ install-binaries: $(TK_LIB_FILE) $(TK_ST
|
|
|
|
install-libraries:
|
|
@for i in $(INCLUDE_INSTALL_DIR) \
|
|
+ $(INSTALL_ROOT)$(GENERIC_INCLUDE_INSTALL_DIR) $(INSTALL_ROOT)$(UNIX_INCLUDE_INSTALL_DIR) \
|
|
$(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images; \
|
|
do \
|
|
if [ ! -d $$i ] ; then \
|
|
@@ -510,11 +517,19 @@ install-libraries:
|
|
chmod +x $(UNIX_DIR)/install-sh; \
|
|
fi
|
|
@echo "Installing header files";
|
|
- @for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkPlatDecls.h \
|
|
- $(GENERIC_DIR)/tkDecls.h ; \
|
|
+ @for i in $(GENERIC_DIR)/*.h ; \
|
|
do \
|
|
- $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \
|
|
+ echo "Installing $$i"; \
|
|
+ $(INSTALL_DATA) $$i $(INSTALL_ROOT)$(GENERIC_INCLUDE_INSTALL_DIR); \
|
|
+ done
|
|
+ @for i in $(UNIX_DIR)/*.h ; \
|
|
+ do \
|
|
+ $(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
|
|
+ @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
|
|
@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; \
|