aboutsummaryrefslogtreecommitdiffstats
path: root/lang/tcl85/files/patch-unix-Makefile.in
blob: 7b9af0f8dbb484a367ba7e0a8c684cd5e32f7e8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
--- Makefile.in.orig    2009-04-15 21:30:05.000000000 +0200
+++ Makefile.in 2009-04-23 22:00:29.107152173 +0200
@@ -55,6 +55,8 @@
 
 # Directory in which to install the include file tcl.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 tcl header dir:
 PRIVATE_INCLUDE_DIR    = @PRIVATE_INCLUDE_DIR@
@@ -101,7 +103,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@
@@ -541,7 +543,8 @@
 
 all: binaries libraries doc
 
-binaries: ${LIB_FILE} $(STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) tclsh
+binaries: ${LIB_FILE} $(STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) \
+   libtcl${SHORT_TCL_VER}.a tclsh
 
 libraries:
 
@@ -552,6 +555,15 @@
 ${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE}
    rm -f $@
    @MAKE_LIB@
+   @ln -sf $(LIB_FILE) ./libtcl${SHORT_TCL_VER}.so
+   if test "x@DL_OBJS@" = "xtclLoadAout.o"; then \
+       $(RANLIB) ${LIB_FILE}; \
+   fi
+
+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
 
 ${STUB_LIB_FILE}: ${STUB_LIB_OBJS}
    rm -f $@
@@ -700,7 +712,7 @@
 dltest.marker: ${STUB_LIB_FILE}
    cd dltest ; $(MAKE)
 
-INSTALL_TARGETS = install-binaries install-libraries install-doc @EXTRA_INSTALL@
+INSTALL_TARGETS = install-binaries install-libraries @EXTRA_INSTALL@
 
 install: $(INSTALL_TARGETS)
 
@@ -730,6 +742,13 @@
    @echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/"
    @@INSTALL_LIB@
    @chmod 555 "$(LIB_INSTALL_DIR)"/$(LIB_FILE)
+   @ln -sf $(LIB_FILE) "$(LIB_INSTALL_DIR)"/libtcl${SHORT_TCL_VER}.so
+   @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
+
    @if test "$(TCL_BUILD_EXP_FILE)" != ""; then \
        echo "Installing $(TCL_EXP_FILE) to $(LIB_INSTALL_DIR)/"; \
        $(INSTALL_DATA) $(TCL_BUILD_EXP_FILE) \
@@ -737,8 +756,9 @@
        fi
    @echo "Installing tclsh as $(BIN_INSTALL_DIR)/tclsh$(VERSION)"
    @$(INSTALL_PROGRAM) tclsh "$(BIN_INSTALL_DIR)"/tclsh$(VERSION)
-   @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"
-   @$(INSTALL_DATA) tclConfig.sh "$(CONFIG_INSTALL_DIR)"/tclConfig.sh
+   @echo "Installing tclConfig.sh to $(SCRIPT_INSTALL_DIR)/"
+   @mkdir -p "$(SCRIPT_INSTALL_DIR)"
+   @$(INSTALL_DATA) tclConfig.sh "$(SCRIPT_INSTALL_DIR)"/tclConfig.sh
    @if test "$(STUB_LIB_FILE)" != "" ; then \
        echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \
        @INSTALL_STUB_LIB@ ; \
@@ -746,7 +766,8 @@
    @EXTRA_INSTALL_BINARIES@
 
 install-libraries: libraries $(INSTALL_TZDATA) install-msgs
-   @for i in "$(INCLUDE_INSTALL_DIR)" "$(SCRIPT_INSTALL_DIR)"; \
+   @for i in "$(GENERIC_INCLUDE_INSTALL_DIR)" \
+       "$(UNIX_INCLUDE_INSTALL_DIR)" "$(SCRIPT_INSTALL_DIR)"; \
        do \
        if [ ! -d "$$i" ] ; then \
        echo "Making directory $$i"; \
@@ -755,7 +776,7 @@
        else true; \
        fi; \
        done;
-   @for i in opt0.4 http1.0 encoding ../tcl8 ../tcl8/8.3 ../tcl8/8.4  ../tcl8/8.4/platform ../tcl8/8.5; \
+   @for i in opt0.4 http1.0 encoding; \
        do \
        if [ ! -d "$(SCRIPT_INSTALL_DIR)"/$$i ] ; then \
        echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \
@@ -768,13 +789,17 @@
        chmod +x $(SRC_DIR)/../unix/install-sh; \
        fi
    @echo "Installing header files";
-   @for i in $(GENERIC_DIR)/tcl.h $(GENERIC_DIR)/tclDecls.h \
-       $(GENERIC_DIR)/tclPlatDecls.h \
-       $(GENERIC_DIR)/tclTomMath.h \
-       $(GENERIC_DIR)/tclTomMathDecls.h ; \
+   @for i in $(GENERIC_DIR)/*.h ; \
        do \
-       $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"; \
+       $(INSTALL_DATA) $$i "$(GENERIC_INCLUDE_INSTALL_DIR)"; \
        done;
+   @for i in $(UNIX_DIR)/*.h ; \
+       do \
+       $(INSTALL_DATA) $$i "$(UNIX_INCLUDE_INSTALL_DIR)"; \
+       done;
+   @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tcl.h "$(INCLUDE_INSTALL_DIR)"/tcl.h
+   @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclDecls.h "$(INCLUDE_INSTALL_DIR)"/tclDecls.h
+   @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclPlatDecls.h "$(INCLUDE_INSTALL_DIR)"/tclPlatDecls.h
    @echo "Installing library files to $(SCRIPT_INSTALL_DIR)";
    @for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex \
        $(UNIX_DIR)/tclAppInit.c @LDAIX_SRC@ @DTRACE_SRC@; \
@@ -786,22 +811,11 @@
        do \
        $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"/http1.0; \
        done;
-   @echo "Installing package http 2.7.3 as a Tcl Module";
-   @$(INSTALL_DATA) $(TOP_DIR)/library/http/http.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.4/http-2.7.3.tm;
    @echo "Installing library opt0.4 directory";
    @for i in $(TOP_DIR)/library/opt/*.tcl ; \
        do \
        $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"/opt0.4; \
        done;
-   @echo "Installing package msgcat 1.4.2 as a Tcl Module";
-   @$(INSTALL_DATA) $(TOP_DIR)/library/msgcat/msgcat.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.5/msgcat-1.4.2.tm;
-   @echo "Installing package tcltest 2.3.1 as a Tcl Module";
-   @$(INSTALL_DATA) $(TOP_DIR)/library/tcltest/tcltest.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.5/tcltest-2.3.1.tm;
-
-   @echo "Installing package platform 1.0.4 as a Tcl Module";
-   @$(INSTALL_DATA) $(TOP_DIR)/library/platform/platform.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.4/platform-1.0.4.tm;
-   @echo "Installing package platform::shell 1.1.4 as a Tcl Module";
-   @$(INSTALL_DATA) $(TOP_DIR)/library/platform/shell.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.4/platform/shell-1.1.4.tm;
 
    @echo "Installing library encoding directory";
    @for i in $(TOP_DIR)/library/encoding/*.enc ; do \
@@ -813,6 +827,28 @@
            "$(SCRIPT_INSTALL_DIR)"/tm.tcl; \
    fi
 
+install-tm:
+   @for i in tcl8 tcl8/8.3 tcl8/8.4  tcl8/8.4/platform tcl8/8.5 tcl8/8.6; \
+       do \
+       if [ ! -d "$(LIB_INSTALL_DIR)"/$$i ] ; then \
+       echo "Making directory $(LIB_INSTALL_DIR)/$$i"; \
+       mkdir -p "$(LIB_INSTALL_DIR)"/$$i; \
+       chmod 755 "$(LIB_INSTALL_DIR)"/$$i; \
+       else true; \
+       fi; \
+       done;
+   @echo "Installing package http 2.7.3 as a Tcl Module";
+   @$(INSTALL_DATA) $(TOP_DIR)/library/http/http.tcl "$(LIB_INSTALL_DIR)"/tcl8/8.4/http-2.7.3.tm;
+   @echo "Installing package msgcat 1.4.2 as a Tcl Module";
+   @$(INSTALL_DATA) $(TOP_DIR)/library/msgcat/msgcat.tcl "$(LIB_INSTALL_DIR)"/tcl8/8.5/msgcat-1.4.2.tm;
+   @echo "Installing package tcltest 2.3.1 as a Tcl Module";
+   @$(INSTALL_DATA) $(TOP_DIR)/library/tcltest/tcltest.tcl "$(LIB_INSTALL_DIR)"/tcl8/8.5/tcltest-2.3.1.tm;
+
+   @echo "Installing package platform 1.0.4 as a Tcl Module";
+   @$(INSTALL_DATA) $(TOP_DIR)/library/platform/platform.tcl "$(LIB_INSTALL_DIR)"/tcl8/8.4/platform-1.0.4.tm;
+   @echo "Installing package platform::shell 1.1.4 as a Tcl Module";
+   @$(INSTALL_DATA) $(TOP_DIR)/library/platform/shell.tcl "$(LIB_INSTALL_DIR)"/tcl8/8.4/platform/shell-1.1.4.tm;
+
 install-tzdata: tclsh
    @echo "Installing time zone data"
    @@LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export @LD_LIBRARY_PATH_VAR@; \
@@ -840,20 +876,25 @@
        else true; \
        fi; \
        done;
-   @echo "Installing and cross-linking top-level (.1) docs";
-   @for i in $(TOP_DIR)/doc/*.1; do \
-       $(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 \
-       $(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 \
-       $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MANN_INSTALL_DIR)"; \
+       ${BSD_INSTALL_MAN} $$i "$(MANN_INSTALL_DIR)"; \
    done
+       
+   @echo "**********"
+   @echo "IMPORTANT:"
+   @echo "**********"
+   @echo "tclConfig.sh in $(SCRIPT_INSTALL_DIR)/tclConfig.sh"
+   @echo "tcl.h        in $(INCLUDE_INSTALL_DIR)/tcl.h"
+   @echo "tclDecls.h   in $(INCLUDE_INSTALL_DIR)/tclDecls.h"
+   @echo "There are NOT default place, but good place to avoid"
+   @echo "conflicting with another version of Tcl/Tks."
 
 # Optional target to install private headers
 install-private-headers: libraries