Check-in [74d2ccc295]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added makefile targets and configure switches to be TEA compliant
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 74d2ccc29563c90d6cd1681d5fd3b54f26566b4a
User & Date: surles 1999-06-02 19:29:19.000
Context
1999-06-02
20:21
* generic/tclUtf.c (Tcl_UtfNcasecmp): Fixed incorrect computation of relative ordering. [Bug: 2135] check-in: 58260de12d user: stanton tags: trunk
19:29
Added makefile targets and configure switches to be TEA compliant check-in: 74d2ccc295 user: surles tags: trunk
02:03
*** empty log message *** check-in: e4ca18e1ae user: stanton tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to unix/Makefile.in.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# This file is a Makefile for Tcl.  If it has the name "Makefile.in"
# then it is a template for a Makefile;  to generate the actual Makefile,
# run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
# RCS: @(#) $Id: Makefile.in,v 1.25 1999/05/14 02:18:31 stanton Exp $

# Current Tcl version;  used in various names.

VERSION = @TCL_VERSION@

#----------------------------------------------------------------
# Things you can change to personalize the Makefile for your own







|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# This file is a Makefile for Tcl.  If it has the name "Makefile.in"
# then it is a template for a Makefile;  to generate the actual Makefile,
# run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
# RCS: @(#) $Id: Makefile.in,v 1.26 1999/06/02 19:29:19 surles Exp $

# Current Tcl version;  used in various names.

VERSION = @TCL_VERSION@

#----------------------------------------------------------------
# Things you can change to personalize the Makefile for your own
387
388
389
390
391
392
393


394




395
396
397
398
399
400
401

# Note: don't include DL_SRCS in SRCS:  most of those files won't
# compile on the current machine, and they will cause problems for
# things like "make depend".

SRCS = $(GENERIC_SRCS) $(UNIX_SRCS) $(STUB_SRCS)



all: ${TCL_LIB_FILE} $(TCL_STUB_LIB_FILE) tclsh





# The following target is configured by autoconf to generate either
# a shared library or non-shared library for Tcl.
${TCL_LIB_FILE}: ${OBJS} ${STUB_LIB_FILE}
	rm -f ${TCL_LIB_FILE}
	@MAKE_LIB@
	$(RANLIB) ${TCL_LIB_FILE}







>
>
|
>
>
>
>







387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407

# Note: don't include DL_SRCS in SRCS:  most of those files won't
# compile on the current machine, and they will cause problems for
# things like "make depend".

SRCS = $(GENERIC_SRCS) $(UNIX_SRCS) $(STUB_SRCS)

all: binaries libraries man

binaries: ${TCL_LIB_FILE} $(TCL_STUB_LIB_FILE) tclsh

libraries:

man:

# The following target is configured by autoconf to generate either
# a shared library or non-shared library for Tcl.
${TCL_LIB_FILE}: ${OBJS} ${STUB_LIB_FILE}
	rm -f ${TCL_LIB_FILE}
	@MAKE_LIB@
	$(RANLIB) ${TCL_LIB_FILE}
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503

install: install-binaries install-libraries install-man

# Note: before running ranlib below, must cd to target directory because
# some ranlibs write to current directory, and this might not always be
# possible (e.g. if installing as root).

install-binaries: $(TCL_LIB_FILE) $(TCL_STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) \
		tclsh
	@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		mkdir -p $$i; \
		chmod 755 $$i; \
		else true; \







|
<







494
495
496
497
498
499
500
501

502
503
504
505
506
507
508

install: install-binaries install-libraries install-man

# Note: before running ranlib below, must cd to target directory because
# some ranlibs write to current directory, and this might not always be
# possible (e.g. if installing as root).

install-binaries: binaries $(TCL_BUILD_EXP_FILE)

	@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		mkdir -p $$i; \
		chmod 755 $$i; \
		else true; \
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
	@$(INSTALL_DATA) tclConfig.sh $(LIB_INSTALL_DIR)/tclConfig.sh
	@if test "$(TCL_STUB_LIB_FILE)" != "" ; then \
	    echo "Installing $(TCL_STUB_LIB_FILE)"; \
	    $(INSTALL_DATA) $(STUB_LIB_FILE) \
			 $(LIB_INSTALL_DIR)/$(TCL_STUB_LIB_FILE); \
	    fi

install-libraries:
	@for i in $(INSTALL_ROOT)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \
		$(SCRIPT_INSTALL_DIR); \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		mkdir -p $$i; \
		chmod 755 $$i; \







|







523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
	@$(INSTALL_DATA) tclConfig.sh $(LIB_INSTALL_DIR)/tclConfig.sh
	@if test "$(TCL_STUB_LIB_FILE)" != "" ; then \
	    echo "Installing $(TCL_STUB_LIB_FILE)"; \
	    $(INSTALL_DATA) $(STUB_LIB_FILE) \
			 $(LIB_INSTALL_DIR)/$(TCL_STUB_LIB_FILE); \
	    fi

install-libraries: libraries
	@for i in $(INSTALL_ROOT)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \
		$(SCRIPT_INSTALL_DIR); \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		mkdir -p $$i; \
		chmod 755 $$i; \
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
		done; \
	    done;
	@for i in $(TOP_DIR)/library/encoding/*.enc ; do \
		echo "Installing $$i"; \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/encoding; \
	done;

install-man:
	@for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		mkdir -p $$i; \
		chmod 755 $$i; \
		else true; \







|







566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
		done; \
	    done;
	@for i in $(TOP_DIR)/library/encoding/*.enc ; do \
		echo "Installing $$i"; \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/encoding; \
	done;

install-man: man
	@for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		mkdir -p $$i; \
		chmod 755 $$i; \
		else true; \
Changes to win/Makefile.in.






















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






















prefix = @prefix@
exec_prefix = @exec_prefix@



























PATHTYPE=@PATHTYPE@
SRC_DIR = $(shell cygpath $(PATHTYPE) '@srcdir@')

GENERIC_DIR = $(shell cygpath $(PATHTYPE) '@srcdir@/../generic')



WIN_DIR = $(SRC_DIR)


















@SET_MAKE@

# Macro that expands to the first dependency argument with the appropriate
# path type already resolved.

DEPARG = "$(shell cygpath $(PATHTYPE) $<)"




VPATH = "@srcdir@:@srcdir@/../generic:@srcdir@/../compat"


AR = @AR@
CC = @CC@
AC_FLAGS = @EXTRA_CFLAGS@ @DEFS@
CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
CFLAGS_DEBUG = @CFLAGS_DEBUG@
CFLAGS_WARNING = @CFLAGS_WARNING@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
SHLIB_LD = @SHLIB_LD@
SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
SHLIB_CFLAGS = @SHLIB_CFLAGS@
SHLIB_SUFFIX = @SHLIB_SUFFIX@
TCL_DBGX = @TCL_DBGX@
VER=@TCL_MAJOR_VERSION@@TCL_MINOR_VERSION@

LIBS=@LIBS@






CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} \
-I"${GENERIC_DIR}" -I"${SRC_DIR}" ${AC_FLAGS}

CC_OBJNAME = @CC_OBJNAME@
CC_EXENAME = @CC_EXENAME@

STUB_CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \
-I"${GENERIC_DIR}" -I"${SRC_DIR}" ${AC_FLAGS}


TCLSH_OBJS = tclAppInit.$(OBJEXT)

TCLTEST_OBJS = \
	tclTestInit.$(OBJEXT) \
	tclTest.$(OBJEXT) \
	tclTestObj.$(OBJEXT) \
	tclTestProcBodyObj.$(OBJEXT) \
	tclThreadTest.$(OBJEXT) \
	tclWinTest.$(OBJEXT)


GENERIC_OBJS = \
	regcomp.$(OBJEXT) \
	regexec.$(OBJEXT) \
	regfree.$(OBJEXT) \
	regerror.$(OBJEXT) \
	tclAlloc.$(OBJEXT) \
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
>
|
>
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>








>
>
>
|
>

|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
>
|

>
>
>
>
>

|







<
<
<

<




|
>







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
#
# This file is a Makefile for Tcl.  If it has the name "Makefile.in"
# then it is a template for a Makefile;  to generate the actual Makefile,
# run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
# RCS: @(#) $Id: Makefile.in,v 1.2 1999/06/02 19:29:20 surles Exp $

#----------------------------------------------------------------
# Things you can change to personalize the Makefile for your own
# site (you can make these changes in either Makefile.in or
# Makefile, but changes to Makefile will get lost if you re-run
# the configuration script).
#----------------------------------------------------------------

# Default top-level directories in which to install architecture-
# specific files (exec_prefix) and machine-independent files such
# as scripts (prefix).  The values specified here may be overridden
# at configure-time with the --exec-prefix and --prefix options
# to the "configure" script.

prefix		= @prefix@
exec_prefix	= @exec_prefix@

# Directory in which to install libtcl.so or libtcl.a:
LIB_INSTALL_DIR		= $(prefix)/lib

# Directory in which to install the program tclsh:
BIN_INSTALL_DIR		= $(exec_prefix)/bin

# Path name to use when installing library scripts:
SCRIPT_INSTALL_DIR	= $(prefix)/lib/tcl$(DOTVER)

# Directory in which to install the include file tcl.h:
INCLUDE_INSTALL_DIR	= $(prefix)/include

# Top-level directory in which to install manual entries:
MAN_INSTALL_DIR		= $(prefix)/man

# Directory in which to install manual entry for tclsh:
MAN1_INSTALL_DIR	= $(MAN_INSTALL_DIR)/man1

# Directory in which to install manual entries for Tcl's C library
# procedures:
MAN3_INSTALL_DIR	= $(MAN_INSTALL_DIR)/man3

# Directory in which to install manual entries for the built-in
# Tcl commands:
MANN_INSTALL_DIR	= $(MAN_INSTALL_DIR)/mann

PATHTYPE	= @PATHTYPE@
SRC_DIR		= $(shell cygpath $(PATHTYPE) '@srcdir@')
ROOT_DIR	= $(shell cygpath $(PATHTYPE) '@srcdir@/..')
GENERIC_DIR	= $(shell cygpath $(PATHTYPE) '@srcdir@/../generic')
WIN_DIR		= $(shell cygpath $(PATHTYPE) '@srcdir@')
COMPAT_DIR	= $(shell cygpath $(PATHTYPE) '@srcdir@/../compat')
TOP_DIR	        = @srcdir@/..

DLLSUFFIX	= @DLLSUFFIX@
LIBSUFFIX	= @LIBSUFFIX@
EXESUFFIX	= @EXESUFFIX@

STUB_LIB	= tclstub$(VER)${LIBSUFFIX}
TCL_DLL		= tcl$(VER)${DLLSUFFIX}
TCL_LIB		= tcl$(VER)${LIBSUFFIX}
DDE_DLL		= tcldde$(VER)${DLLSUFFIX}
DDE_LIB		= tcldde$(VER)${LIBSUFFIX}
REG_DLL		= tclreg$(VER)${DLLSUFFIX}
REG_LIB		= tclreg$(VER)${LIBSUFFIX}

SHARED_LIBRARIES = $(TCL_DLL) $(DDE_DLL) $(REG_DLL)
STATIC_LIBRARIES = $(TCL_LIB) $(DDE_LIB) $(REG_LIB)

TCLSH		= tclsh$(VER)${EXESUFFIX}
TCLTEST		= tcltest${EXEEXT}

@SET_MAKE@

# Macro that expands to the first dependency argument with the appropriate
# path type already resolved.

DEPARG = "$(shell cygpath $(PATHTYPE) $<)"

# Setting the VPATH variable to a list of paths will cause the 
# makefile to look into these paths when resolving .c to .obj
# dependencies.

VPATH = $(GENERIC_DIR);$(WIN_DIR);$(COMPAT_DIR)

AR		= @AR@
CC		= @CC@
AC_FLAGS	= @EXTRA_CFLAGS@ @DEFS@
CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
CFLAGS_DEBUG	= @CFLAGS_DEBUG@
CFLAGS_WARNING	= @CFLAGS_WARNING@
CFLAGS		= @CFLAGS@ 
CPPFLAGS	= @CPPFLAGS@
LDFLAGS		= @LDFLAGS@
EXEEXT		= @EXEEXT@
OBJEXT		= @OBJEXT@
SHLIB_LD	= @SHLIB_LD@
SHLIB_LD_LIBS	= @SHLIB_LD_LIBS@
SHLIB_CFLAGS	= @SHLIB_CFLAGS@
SHLIB_SUFFIX	= @SHLIB_SUFFIX@
TCL_DBGX	= @TCL_DBGX@
VER		= @TCL_MAJOR_VERSION@@TCL_MINOR_VERSION@
DOTVER		= @TCL_MAJOR_VERSION@.@TCL_MINOR_VERSION@
LIBS		= @LIBS@

RMDIR		= rm -rf
MKDIR		= mkdir -p
RM		= rm -f
COPY		= cp

CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} \
-I"${GENERIC_DIR}" -I"${WIN_DIR}" ${AC_FLAGS}

CC_OBJNAME = @CC_OBJNAME@
CC_EXENAME = @CC_EXENAME@

STUB_CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \
-I"${GENERIC_DIR}" -I"${SRC_DIR}" ${AC_FLAGS}




TCLTEST_OBJS = \

	tclTest.$(OBJEXT) \
	tclTestObj.$(OBJEXT) \
	tclTestProcBodyObj.$(OBJEXT) \
	tclThreadTest.$(OBJEXT) \
	tclWinTest.$(OBJEXT) \
	testMain.$(OBJEXT)

GENERIC_OBJS = \
	regcomp.$(OBJEXT) \
	regexec.$(OBJEXT) \
	regfree.$(OBJEXT) \
	regerror.$(OBJEXT) \
	tclAlloc.$(OBJEXT) \
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
208
209
210
211
212
213
214
215
216
217
218
219
220
	tclWinSock.$(OBJEXT) \
	tclWinThrd.$(OBJEXT) \
	tclWinTime.$(OBJEXT) 

COMPAT_OBJS = \
	strftime.$(OBJEXT)

TCL_OBJS = ${GENERIC_OBJS} ${WIN_OBJS} ${COMPAT_OBJS}

DDE_OBJS = tclWinDde.$(OBJEXT)

REG_OBJS = tclWinReg.$(OBJEXT)

STUB_OBJS = tclStubLib.$(OBJEXT)

TCLSH_OBJS = tclAppInit.$(OBJEXT)

TCLTEST_OBJS = \
	tclTest.$(OBJEXT) \
	tclTestObj.$(OBJEXT) \
	tclTestProcBodyObj.$(OBJEXT) \
	tclThreadTest.$(OBJEXT) \
	tclWinTest.$(OBJEXT) \
	testMain.$(OBJEXT)

##

DLLSUFFIX = @DLLSUFFIX@
LIBSUFFIX = @LIBSUFFIX@
EXESUFFIX = @EXESUFFIX@

STUB_LIB = tclstub$(VER)${LIBSUFFIX}
TCL_DLL = tcl$(VER)${DLLSUFFIX}
TCL_LIB = tcl$(VER)${LIBSUFFIX}
DDE_DLL = tcldde$(VER)${DLLSUFFIX}
DDE_LIB = tcldde$(VER)${LIBSUFFIX}
REG_DLL = tclreg$(VER)${DLLSUFFIX}
REG_LIB = tclreg$(VER)${LIBSUFFIX}

SHARED_LIBRARIES = $(TCL_DLL) $(DDE_DLL) $(REG_DLL)
STATIC_LIBRARIES = $(TCL_LIB) $(DDE_LIB) $(REG_LIB)

TCLSH = tclsh$(VER)${EXESUFFIX}
TCLTEST = tcltest${EXEEXT}

all: @LIBRARIES@ $(STATIC_LIBRARIES) $(STUB_LIB) $(TCLSH)


$(TCLSH): $(TCL_LIB) $(TCLSH_OBJS)
	$(CC) $(CFLAGS) $(TCLSH_OBJS) $(TCL_LIB) $(LIBS) $(CC_EXENAME) 

$(TCLTEST): $(TCL_LIB) $(TCLTEST_OBJS)
	$(CC) $(CFLAGS) $(TCLTEST_OBJS) $(TCL_LIB) $(LIBS) $(CC_EXENAME) 

# The following targets are configured by autoconf to generate either
# a shared library or static library

${STUB_LIB}: ${STUB_OBJS}
	@rm -f ${STUB_LIB}
	@MAKE_LIB@ ${STUB_OBJS}

${TCL_DLL}: ${TCL_OBJS}
	@rm -f ${TCL_DLL}
	@MAKE_DLL@ ${TCL_OBJS}

${TCL_LIB}: ${TCL_OBJS}
	@rm -f ${TCL_LIB}
	@MAKE_LIB@ ${TCL_OBJS}

${DDE_DLL}: ${DDE_OBJS} ${STUB_LIB}
	@rm -f ${DDE_DLL}
	@MAKE_DLL@ ${DDE_OBJS} ${STUB_LIB}

${DDE_LIB}: ${DDE_OBJS}
	@rm -f ${DDE_LIB}
	@MAKE_LIB@ ${DDE_OBJS}

${REG_DLL}: ${REG_OBJS} ${STUB_LIB}
	@rm -f ${REG_DLL}
	@MAKE_DLL@ ${REG_OBJS} ${STUB_LIB}

${REG_LIB}: ${REG_OBJS}
	@rm -f ${REG_LIB}
	@MAKE_LIB@ ${REG_OBJS}

# Add the object extension to the implicit rules.  By default .obj is not
# automatically added.

.SUFFIXES: .${OBJEXT}








<
<








<
<
<
<
<
<
<
|
<

<
<
<
|
<
<
<
<
<
<
<

<
|

<
|

<
>











|



|



|



|



|



|



|







208
209
210
211
212
213
214


215
216
217
218
219
220
221
222







223

224



225







226

227
228

229
230

231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
	tclWinSock.$(OBJEXT) \
	tclWinThrd.$(OBJEXT) \
	tclWinTime.$(OBJEXT) 

COMPAT_OBJS = \
	strftime.$(OBJEXT)



DDE_OBJS = tclWinDde.$(OBJEXT)

REG_OBJS = tclWinReg.$(OBJEXT)

STUB_OBJS = tclStubLib.$(OBJEXT)

TCLSH_OBJS = tclAppInit.$(OBJEXT)








TCL_OBJS = ${GENERIC_OBJS} ${WIN_OBJS} ${COMPAT_OBJS}





all: binaries libraries man









binaries: @LIBRARIES@ $(STATIC_LIBRARIES) $(STUB_LIB) $(TCLSH)


libraries:


man:

$(TCLSH): $(TCL_LIB) $(TCLSH_OBJS)
	$(CC) $(CFLAGS) $(TCLSH_OBJS) $(TCL_LIB) $(LIBS) $(CC_EXENAME) 

$(TCLTEST): $(TCL_LIB) $(TCLTEST_OBJS)
	$(CC) $(CFLAGS) $(TCLTEST_OBJS) $(TCL_LIB) $(LIBS) $(CC_EXENAME) 

# The following targets are configured by autoconf to generate either
# a shared library or static library

${STUB_LIB}: ${STUB_OBJS}
	@$(RM) ${STUB_LIB}
	@MAKE_LIB@ ${STUB_OBJS}

${TCL_DLL}: ${TCL_OBJS}
	@$(RM) ${TCL_DLL}
	@MAKE_DLL@ ${TCL_OBJS}

${TCL_LIB}: ${TCL_OBJS}
	@$(RM) ${TCL_LIB}
	@MAKE_LIB@ ${TCL_OBJS}

${DDE_DLL}: ${DDE_OBJS} ${STUB_LIB}
	@$(RM) ${DDE_DLL}
	@MAKE_DLL@ ${DDE_OBJS} ${STUB_LIB}

${DDE_LIB}: ${DDE_OBJS}
	@$(RM) ${DDE_LIB}
	@MAKE_LIB@ ${DDE_OBJS}

${REG_DLL}: ${REG_OBJS} ${STUB_LIB}
	@$(RM) ${REG_DLL}
	@MAKE_DLL@ ${REG_OBJS} ${STUB_LIB}

${REG_LIB}: ${REG_OBJS}
	@$(RM) ${REG_LIB}
	@MAKE_LIB@ ${REG_OBJS}

# Add the object extension to the implicit rules.  By default .obj is not
# automatically added.

.SUFFIXES: .${OBJEXT}

253
254
255
256
257
258
259
260













































































































261
262
263
264
265
266
267
268
269
270








	$(CC) -c $(CC_SWITCHES) -DSTATIC_BUILD $(DEPARG) $(CC_OBJNAME)


# Implicit rule for all object files that will end up in the Tcl library

.c.${OBJEXT}:
	$(CC) -c $(CC_SWITCHES) -DBUILD_tcl ${DEPARG} $(CC_OBJNAME)














































































































Makefile: $(SRC_DIR)/Makefile.in
	config.status

clean:
	rm -f *.lib *.exp *.dll *.${OBJEXT} *~ \#* TAGS a.out
	rm -f $(TCLSH) $(TCLTEST)
	rm -f *.pch

distclean: clean
	rm -f Makefile config.status config.cache config.log
















>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>




|
|
|


|
>
>
>
>
>
>
>
>
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
	$(CC) -c $(CC_SWITCHES) -DSTATIC_BUILD $(DEPARG) $(CC_OBJNAME)


# Implicit rule for all object files that will end up in the Tcl library

.c.${OBJEXT}:
	$(CC) -c $(CC_SWITCHES) -DBUILD_tcl ${DEPARG} $(CC_OBJNAME)

install: install-binaries install-libraries install-man

install-binaries: binaries
	@$(MKDIR) "$(BIN_INSTALL_DIR)"
	@$(MKDIR) "$(LIB_INSTALL_DIR)"
	@echo installing $(TCL_DLL)
	@$(COPY) "$(TCL_DLL)" "$(BIN_INSTALL_DIR)"
	@$(COPY) "$(TCL_LIB)" "$(LIB_INSTALL_DIR)"
	@echo installing "$(TCLSH)"
	@$(COPY) "$(TCLSH)" "$(BIN_INSTALL_DIR)"
	@echo installing $(STUB_LIB)
	@$(COPY) "$(STUB_LIB)" "$(LIB_INSTALL_DIR)"
# 	@echo installing $(TCLPIPEDLLNAME)
# 	@$(COPY) "$(TCLPIPEDLL)" "$(BIN_INSTALL_DIR)"

install-libraries: libraries
	@$(MKDIR) "$(LIB_INSTALL_DIR)"
	@$(MKDIR) "$(INCLUDE_INSTALL_DIR)"
	@$(MKDIR) "$(SCRIPT_INSTALL_DIR)"
	@echo installing http1.0
	@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/http1.0"
	@$(COPY) "$(ROOT_DIR)/library/http1.0/http.tcl"     "$(SCRIPT_INSTALL_DIR)/http1.0"
	@$(COPY) "$(ROOT_DIR)/library/http1.0/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/http1.0"
	@echo installing http2.0
	@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/http2.0"
	@$(COPY) "$(ROOT_DIR)/library/http2.0/http.tcl"     "$(SCRIPT_INSTALL_DIR)/http2.0"
	@$(COPY) "$(ROOT_DIR)/library/http2.0/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/http2.0"
	@echo installing opt0.4
	@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/opt0.4"
	@$(COPY) "$(ROOT_DIR)/library/opt0.4/optparse.tcl" "$(SCRIPT_INSTALL_DIR)/opt0.4"
	@$(COPY) "$(ROOT_DIR)/library/opt0.4/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/opt0.4"
	@echo installing msgcat1.0
	@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/msgcat1.0"
	@$(COPY) "$(ROOT_DIR)/library/msgcat1.0/msgcat.tcl"   "$(SCRIPT_INSTALL_DIR)/msgcat1.0"
	@$(COPY) "$(ROOT_DIR)/library/msgcat1.0/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/msgcat1.0"
	@echo installing $(DDE_DLL)
	@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/dde1.0"
	@$(COPY) "$(DDE_DLL)" "$(SCRIPT_INSTALL_DIR)/dde1.0"
	@$(COPY) "$(ROOT_DIR)/library/dde1.0/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/dde1.0"
	@echo installing $(REG_DLL)
	@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/reg1.0"
	@$(COPY) "$(REG_DLL)" "$(SCRIPT_INSTALL_DIR)/reg1.0"
	@$(COPY) "$(ROOT_DIR)/library/reg1.0/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/reg1.0"
	@echo installing encoding files
	@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/encoding"
	@$(COPY) $(TOP_DIR)/library/encoding/*.enc "$(SCRIPT_INSTALL_DIR)/encoding"
	@echo installing library files
	@$(COPY) "$(GENERIC_DIR)/tcl.h"         "$(INCLUDE_INSTALL_DIR)"
	@$(COPY) "$(GENERIC_DIR)/tclDecls.h"    "$(INCLUDE_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/history.tcl" "$(SCRIPT_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/init.tcl"    "$(SCRIPT_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/ldAout.tcl"  "$(SCRIPT_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/parray.tcl"  "$(SCRIPT_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/safe.tcl"    "$(SCRIPT_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/tclIndex"    "$(SCRIPT_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/package.tcl" "$(SCRIPT_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/word.tcl"    "$(SCRIPT_INSTALL_DIR)"
	@$(COPY) "$(ROOT_DIR)/library/auto.tcl"    "$(SCRIPT_INSTALL_DIR)"

install-man: man
	@for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		mkdir -p $$i; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@cd $(TOP_DIR)/doc; for i in *.1; \
	    do \
	    echo "Installing doc/$$i"; \
	    rm -f $(MAN1_INSTALL_DIR)/$$i; \
	    sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
		    $$i > $(MAN1_INSTALL_DIR)/$$i; \
	    chmod 444 $(MAN1_INSTALL_DIR)/$$i; \
	    done;
	@cd $(TOP_DIR)/doc; for i in *.3; \
	    do \
	    echo "Installing doc/$$i"; \
	    rm -f $(MAN3_INSTALL_DIR)/$$i; \
	    sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
		    $$i > $(MAN3_INSTALL_DIR)/$$i; \
	    chmod 444 $(MAN3_INSTALL_DIR)/$$i; \
	    done;
	@cd $(TOP_DIR)/doc; for i in *.n; \
	    do \
	    echo "Installing doc/$$i"; \
	    rm -f $(MANN_INSTALL_DIR)/$$i; \
	    sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
		    $$i > $(MANN_INSTALL_DIR)/$$i; \
	    chmod 444 $(MANN_INSTALL_DIR)/$$i; \
	    done;

test: binaries $(TCLTEST)
	LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH; \
	SHLIB_PATH=`pwd`:${SHLIB_PATH}; export SHLIB_PATH; \
	TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
	./tcltest @srcdir@/../tests/all.tcl

# Useful target to launch a built tcltest with the proper path,...
runtest: tcltest
	LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH; \
	SHLIB_PATH=`pwd`:${SHLIB_PATH}; export SHLIB_PATH; \
	TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
	./tcltest

depend:

Makefile: $(SRC_DIR)/Makefile.in
	config.status

clean:
	$(RM) *.lib *.exp *.dll *.${OBJEXT} *~ \#* TAGS a.out
	$(RM) $(TCLSH) $(TCLTEST)
	$(RM) *.pch

distclean: clean
	$(RM) Makefile config.status config.cache config.log

#
# Regenerate the stubs files.
#

genstubs:
	tclsh$(VERSION) $(ROOT)\tools\genStubs.tcl $(GENERICDIR) \
		$(GENERICDIR)\tcl.decls $(GENERICDIR)\tclInt.decls
Changes to win/configure.in.
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
dnl	This file is an input file used by the GNU "autoconf" program to
dnl	generate the file "configure", which is run during Tcl installation
dnl	to configure the system for the local environment.
AC_INIT(../generic/tcl.h)
# RCS: @(#) $Id: configure.in,v 1.1 1999/05/28 23:02:44 stanton Exp $

TCL_VERSION=8.1
TCL_MAJOR_VERSION=8
TCL_MINOR_VERSION=1
TCL_PATCH_LEVEL=.2
VERSION=${TCL_VERSION}














AC_PROG_MAKE_SET
AC_PROG_CC
AC_CYGWIN
AC_OBJEXT
AC_EXEEXT

# Set the default compiler switches based on the --enable-symbols option 

AC_ARG_ENABLE(symbols, [  --enable-symbols        build with debugging symbols],
    [tcl_ok=$enableval], [tcl_ok=no])
if test "$tcl_ok" = "yes"; then
    CFLAGS='${CFLAGS_DEBUG}'
    LD_FLAGS='${LDFLAGS_DEBUG}'
    TCL_DBGX=d

else
    CFLAGS='${CFLAGS_OPTIMIZE}'
    LD_FLAGS='${LDFLAGS_OPTIMIZE}'
    TCL_DBGX=""

fi

# Trick to replace DBGX with TCL_DBGX
DBGX='${TCL_DBGX}'
eval "TCL_LIB_FILE=${TCL_LIB_FILE}"












#--------------------------------------------------------------------
#	The statements below define a collection of symbols related to
#	building libtcl as a shared library instead of a static library.
#--------------------------------------------------------------------

AC_ARG_ENABLE(shared,




|






>
>
>
>
>
>
>
>
>
>
>
>
>















>




>





>
>
>
>
>
>
>
>
>
>
>







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
dnl	This file is an input file used by the GNU "autoconf" program to
dnl	generate the file "configure", which is run during Tcl installation
dnl	to configure the system for the local environment.
AC_INIT(../generic/tcl.h)
# RCS: @(#) $Id: configure.in,v 1.2 1999/06/02 19:29:20 surles Exp $

TCL_VERSION=8.1
TCL_MAJOR_VERSION=8
TCL_MINOR_VERSION=1
TCL_PATCH_LEVEL=.2
VERSION=${TCL_VERSION}

# Check whether --enable-gcc or --disable-gcc was given.  Do this before 
# AC_PROG_CC and AC_CYGWIN are called so the compiler can be fully tested
# by built-in autoconf tools.
 
AC_ARG_ENABLE(gcc, [  --enable-gcc        build with gcc],
    [tcl_ok=$enableval], [tcl_ok=test_all])
if test "$tcl_ok" = "yes"; then
    CC=gcc
fi
if test "$tcl_ok" = "no"; then
    CC=cl
fi

AC_PROG_MAKE_SET
AC_PROG_CC
AC_CYGWIN
AC_OBJEXT
AC_EXEEXT

# Set the default compiler switches based on the --enable-symbols option 

AC_ARG_ENABLE(symbols, [  --enable-symbols        build with debugging symbols],
    [tcl_ok=$enableval], [tcl_ok=no])
if test "$tcl_ok" = "yes"; then
    CFLAGS='${CFLAGS_DEBUG}'
    LD_FLAGS='${LDFLAGS_DEBUG}'
    TCL_DBGX=d
    echo "building with debug symbols"
else
    CFLAGS='${CFLAGS_OPTIMIZE}'
    LD_FLAGS='${LDFLAGS_OPTIMIZE}'
    TCL_DBGX=""
    echo "building without debug symbols"
fi

# Trick to replace DBGX with TCL_DBGX
DBGX='${TCL_DBGX}'
eval "TCL_LIB_FILE=${TCL_LIB_FILE}"

# Check whether --enable-threads or --disable-threads was given.

AC_ARG_ENABLE(threads, [  --enable-threads        build with threads],
    [tcl_ok=$enableval], [tcl_ok=no])
if test "$tcl_ok" = "yes"; then
    AC_DEFINE(TCL_THREADS)
    echo "building with threads enabled"
else
    echo "building with threads disabled (default)"
fi

#--------------------------------------------------------------------
#	The statements below define a collection of symbols related to
#	building libtcl as a shared library instead of a static library.
#--------------------------------------------------------------------

AC_ARG_ENABLE(shared,
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
    SHLIB_LD="link -dll -nologo"
    SHLIB_LD_LIBS="user32.lib advapi32.lib"
    LIBS="user32.lib advapi32.lib"
    AR="lib -nologo"
    MAKE_LIB="\${AR} -out:\$@"
    MAKE_EXE="\${CC} -Fe\$@"

    echo "TCL_SHARED_BUILD=${TCL_SHARED_BUILD}"
    if test "${TCL_SHARED_BUILD}" = "0" ; then
	# static

	runtime=-MT
	MAKE_DLL="echo "
	LIBSUFFIX="s\${TCL_DBGX}.lib"
	LIBRARIES="\${STATIC_LIBRARIES}"
	EXESUFFIX="s\${TCL_DBGX}.exe"
	DLLSUFFIX=""
    else
	# dynamic

	runtime=-MD
	MAKE_DLL="\${SHLIB_LD} \${SHLIB_LD_LIBS} -out:\$@"
	LIBSUFFIX="\${TCL_DBGX}.lib"
	DLLSUFFIX="\${TCL_DBGX}.dll"
	EXESUFFIX="\${TCL_DBGX}.exe"
	LIBRARIES="\${SHARED_LIBRARIES}"
    fi

    EXTRA_CFLAGS="-YX -nologo"
    CFLAGS_DEBUG="-Z7 -Od -WX ${runtime}d"
    CFLAGS_OPTIMIZE="-O2 -Gs -GD ${runtime}"
    CFLAGS_WARNING="-W3"
    LDFLAGS_DEBUG="-debug"
    LDFLAGS_OPTIMIZE="-release"
    PATHTYPE=-w

    # Specify the CC output file names based on the target name
    CC_OBJNAME="-Fo\$@"







<


>








>








|
|
|







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
    SHLIB_LD="link -dll -nologo"
    SHLIB_LD_LIBS="user32.lib advapi32.lib"
    LIBS="user32.lib advapi32.lib"
    AR="lib -nologo"
    MAKE_LIB="\${AR} -out:\$@"
    MAKE_EXE="\${CC} -Fe\$@"


    if test "${TCL_SHARED_BUILD}" = "0" ; then
	# static
	echo "building static version"
	runtime=-MT
	MAKE_DLL="echo "
	LIBSUFFIX="s\${TCL_DBGX}.lib"
	LIBRARIES="\${STATIC_LIBRARIES}"
	EXESUFFIX="s\${TCL_DBGX}.exe"
	DLLSUFFIX=""
    else
	# dynamic
	echo "building dynamic version"
	runtime=-MD
	MAKE_DLL="\${SHLIB_LD} \${SHLIB_LD_LIBS} -out:\$@"
	LIBSUFFIX="\${TCL_DBGX}.lib"
	DLLSUFFIX="\${TCL_DBGX}.dll"
	EXESUFFIX="\${TCL_DBGX}.exe"
	LIBRARIES="\${SHARED_LIBRARIES}"
    fi

    EXTRA_CFLAGS="-YX"
    CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d"
    CFLAGS_OPTIMIZE="-nologo -O2 -Gs -GD ${runtime}"
    CFLAGS_WARNING="-W3"
    LDFLAGS_DEBUG="-debug"
    LDFLAGS_OPTIMIZE="-release"
    PATHTYPE=-w

    # Specify the CC output file names based on the target name
    CC_OBJNAME="-Fo\$@"