Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | * win/configure.in: * win/Makefile.in: Windows build now handles static/dynamic debug/nodebug builds and supports the standard targets using Cygwin user tools plus GNU make and autoconf. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
96386b55b16816d600545d44872b4d48 |
| User & Date: | stanton 1999-06-05 00:18:12.000 |
Context
|
1999-06-05
| ||
| 00:18 | *** empty log message *** check-in: fe3561f466 user: stanton tags: trunk | |
| 00:18 | * win/configure.in: * win/Makefile.in: Windows build now handles static/dynamic debug/nodebug builds... check-in: 96386b55b1 user: stanton tags: trunk | |
|
1999-06-03
| ||
| 18:43 | *** empty log message *** check-in: 3ae7d79873 user: stanton tags: trunk | |
Changes
Changes to win/Makefile.in.
1 2 3 4 5 6 7 | # # 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. # | | > > > > > > > | | | | | | > | | | | | > > > > > > > > > > > > > | | | 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 |
#
# 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.3 1999/06/05 00:18:12 stanton Exp $
VERSION = @TCL_VERSION@
#----------------------------------------------------------------
# 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 from which applications will reference the library of Tcl
# scripts (note: you can set the TCL_LIBRARY environment variable at
# run-time to override this value):
TCL_LIBRARY = $(prefix)/lib/tcl$(VERSION)
# Directory in which to install libtcl.so or libtcl.a:
LIB_INSTALL_DIR = @libdir@
# Directory in which to install the program tclsh:
BIN_INSTALL_DIR = @bindir@
# Path name to use when installing script libraries:
SCRIPT_INSTALL_DIR = $(prefix)/lib
# Directory in which to install the include file tcl.h:
INCLUDE_INSTALL_DIR = @includedir@
# Top-level directory in which to install manual entries:
MAN_INSTALL_DIR = @mandir@
# 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 = $(shell cygpath $(PATHTYPE) '@srcdir@/..')
SRC_DIR = @srcdir@
ROOT_DIR = @srcdir@/..
GENERIC_DIR = @srcdir@/../generic
WIN_DIR = @srcdir@
COMPAT_DIR = @srcdir@/../compat
TOP_DIR = @srcdir@/..
GENERIC_DIR_NATIVE = $(shell cygpath $(PATHTYPE) '$(GENERIC_DIR)')
WIN_DIR_NATIVE = $(shell cygpath $(PATHTYPE) '$(WIN_DIR)')
TOP_DIR_NATIVE = $(shell cygpath $(PATHTYPE) '$(TOP_DIR)')
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}
PIPE_DLL = tclpip$(VER)${DLLSUFFIX}
PIPE_LIB = tclpip$(VER)${LIBSUFFIX}
SHARED_LIBRARIES = $(TCL_DLL) $(STUB_LIB) $(DDE_DLL) $(REG_DLL) $(PIPE_DLL)
STATIC_LIBRARIES = $(TCL_LIB)
TCLSH = tclsh$(VER)${EXESUFFIX}
TCLTEST = tcltest${EXEEXT}
@SET_MAKE@
# Macro that expands to the first dependency argument with the appropriate
|
| ︙ | ︙ | |||
110 111 112 113 114 115 116 |
RMDIR = rm -rf
MKDIR = mkdir -p
RM = rm -f
COPY = cp
CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} \
| | | | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
RMDIR = rm -rf
MKDIR = mkdir -p
RM = rm -f
COPY = cp
CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} \
-I"${GENERIC_DIR_NATIVE}" -I"${WIN_DIR_NATIVE}" ${AC_FLAGS}
CC_OBJNAME = @CC_OBJNAME@
CC_EXENAME = @CC_EXENAME@
STUB_CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \
-I"${GENERIC_DIR_NATIVE}" -I"${WIN_DIR_NATIVE}" ${AC_FLAGS}
TCLTEST_OBJS = \
tclTest.$(OBJEXT) \
tclTestObj.$(OBJEXT) \
tclTestProcBodyObj.$(OBJEXT) \
tclThreadTest.$(OBJEXT) \
tclWinTest.$(OBJEXT) \
|
| ︙ | ︙ | |||
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 |
tclWinPipe.$(OBJEXT) \
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
| > > | | 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 |
tclWinPipe.$(OBJEXT) \
tclWinSock.$(OBJEXT) \
tclWinThrd.$(OBJEXT) \
tclWinTime.$(OBJEXT)
COMPAT_OBJS = \
strftime.$(OBJEXT)
PIPE_OBJS = stub16.$(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) $(TCLSH)
libraries:
man:
$(TCLSH): $(TCL_LIB) $(TCLSH_OBJS)
$(CC) $(CFLAGS) $(TCLSH_OBJS) $(TCL_LIB) $(LIBS) $(CC_EXENAME)
|
| ︙ | ︙ | |||
251 252 253 254 255 256 257 |
@$(RM) ${TCL_LIB}
@MAKE_LIB@ ${TCL_OBJS}
${DDE_DLL}: ${DDE_OBJS} ${STUB_LIB}
@$(RM) ${DDE_DLL}
@MAKE_DLL@ ${DDE_OBJS} ${STUB_LIB}
| < < < < | | | | 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
@$(RM) ${TCL_LIB}
@MAKE_LIB@ ${TCL_OBJS}
${DDE_DLL}: ${DDE_OBJS} ${STUB_LIB}
@$(RM) ${DDE_DLL}
@MAKE_DLL@ ${DDE_OBJS} ${STUB_LIB}
${REG_DLL}: ${REG_OBJS} ${STUB_LIB}
@$(RM) ${REG_DLL}
@MAKE_DLL@ ${REG_OBJS} ${STUB_LIB}
${PIPE_DLL}: ${PIPE_OBJS}
@$(RM) ${PIPE_DLL}
@MAKE_DLL@ ${PIPE_OBJS}
# Add the object extension to the implicit rules. By default .obj is not
# automatically added.
.SUFFIXES: .${OBJEXT}
# Special case object targets
|
| ︙ | ︙ | |||
308 309 310 311 312 313 314 |
# 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)
| | | | > > > > > > > > > > > | | > > | > > | | > > > | | > > > | | > > < | | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | > | > > > > > > | | | < < < | | | < < < > > | | | | < | > > > | | < < | | < < | | | | 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 |
# 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-binaries: binaries
@$(MKDIR) -p "$(BIN_INSTALL_DIR)"
@$(MKDIR) -p "$(LIB_INSTALL_DIR)"
@for i in dde1.0 reg1.0; \
do \
if [ ! -d $(LIB_INSTALL_DIR)/$$i ] ; then \
echo "Making directory $(LIB_INSTALL_DIR)/$$i"; \
$(MKDIR) $(LIB_INSTALL_DIR)/$$i; \
else true; \
fi; \
done;
@for i in $(TCL_DLL) $(TCLSH) $(PIPE_DLL); \
do \
if [ -f $$i ]; then \
echo "Installing $$i"; \
$(COPY) $$i "$(BIN_INSTALL_DIR)"; \
fi; \
done
@for i in $(TCL_LIB) $(STUB_LIB); \
do \
if [ -f $$i ]; then \
echo "Installing $$i"; \
$(COPY) $$i "$(LIB_INSTALL_DIR)"; \
fi; \
done
@if [ -f $(DDE_DLL) ]; then \
echo installing $(DDE_DLL); \
$(COPY) $(DDE_DLL) $(LIB_INSTALL_DIR)/dde1.0; \
$(COPY) $(ROOT_DIR)/library/dde1.0/pkgIndex.tcl $(LIB_INSTALL_DIR)/dde1.0; \
fi
@if [ -f $(REG_DLL) ]; then \
echo installing $(REG_DLL); \
$(COPY) $(REG_DLL) $(LIB_INSTALL_DIR)/reg1.0; \
$(COPY) $(ROOT_DIR)/library/reg1.0/pkgIndex.tcl $(LIB_INSTALL_DIR)/reg1.0; \
fi
install-libraries: libraries
@for i in $(prefix)/lib $(INCLUDE_INSTALL_DIR) \
$(SCRIPT_INSTALL_DIR); \
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
$(MKDIR) $$i; \
else true; \
fi; \
done;
@for i in tcl$(VERSION) http1.0 http2.0 opt0.4 encoding msgcat1.0; \
do \
if [ ! -d $(SCRIPT_INSTALL_DIR)/$$i ] ; then \
echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \
$(MKDIR) $(SCRIPT_INSTALL_DIR)/$$i; \
else true; \
fi; \
done;
@for i in "$(GENERIC_DIR)/tcl.h" "$(GENERIC_DIR)/tclDecls.h" ; \
do \
echo "Installing $$i"; \
$(COPY) "$$i" "$(INCLUDE_INSTALL_DIR)"; \
done;
@for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex; \
do \
echo "Installing $$i"; \
$(COPY) "$$i" "$(SCRIPT_INSTALL_DIR)/tcl$(VERSION)"; \
done;
@for i in http2.0 http1.0 opt0.4 msgcat1.0; \
do \
for j in $(TOP_DIR)/library/$$i/*.tcl; \
do \
echo "Installing $$j"; \
$(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/$$i"; \
done; \
done;
@echo "Installing encodings"
@for i in $(TOP_DIR)/library/encoding/*.enc ; do \
$(COPY) "$$i" "$(SCRIPT_INSTALL_DIR)/encoding"; \
done;
test: binaries $(TCLTEST)
@TCL_LIBRARY="$(TOP_DIR_NATIVE)/library"; export TCL_LIBRARY; \
./tcltest "$(TOP_DIR_NATIVE)/tests/all.tcl" $(TESTFLAGS)
# Useful target to launch a built tcltest with the proper path,...
runtest: tcltest
@TCL_LIBRARY="$(TOP_DIR_NATIVE)/library"; export TCL_LIBRARY; \
./tcltest
depend:
Makefile: Makefile.in
config.status
clean:
$(RM) *.lib *.exp *.dll *.${OBJEXT} *~ \#* TAGS a.out
$(RM) $(TCLSH) $(TCLTEST)
$(RM) *.pch
|
| ︙ | ︙ |
Changes to win/configure.in.
1 2 3 4 | 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) | | | < < > | 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 |
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.3 1999/06/05 00:18:13 stanton 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=no])
if test "$tcl_ok" = "yes"; then
CC=gcc
else
CC=cl
fi
AC_PROG_MAKE_SET
AC_PROG_CC
AC_CYGWIN
AC_OBJEXT
|
| ︙ | ︙ |