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
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
|
#
# Copyright (c) 1993-1994 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by the University of
# California, Berkeley and the Network Research Group at
# Lawrence Berkeley Laboratory.
# 4. Neither the name of the University nor of the Laboratory may be used
# to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# @(#) $Header: /cvsroot/otcl-tclcl/tclcl/Makefile.in,v 1.50 2007/03/10 23:29:36 tom_henderson Exp $ (LBL)
#
BLANK = # make a blank space. DO NOT add anything to this line
# The following will be redefined under Windows (see WIN32 lable below)
CC = @CC@
CPP = @CXX@
LINK = $(CPP)
MKDEP = ./conf/mkdep
TCLSH = @V_TCLSH@
TCL2C = ./tcl2c++
AR = ar rc $(BLANK)
RANLIB = @RANLIB@
INSTALL = @INSTALL@
LN = ln
TEST = test
RM = rm -f
PERL = perl
CCOPT = @V_CCOPT@
STATIC = @V_STATIC@
LDFLAGS = $(STATIC)
LDOUT = -o $(BLANK)
DEFINE = -DNO_TK @V_DEFINE@ @V_DEFINES@ @DEFS@
INCLUDES = \
-I. @V_INCLUDES@
LIB = \
@V_LIBS@
CFLAGS = $(CCOPT) $(DEFINE)
# Explicitly define compilation rules since SunOS 4's make doesn't like gcc.
# Also, gcc does not remove the .o before forking 'as', which can be a
# problem if you don't own the file but can write to the directory.
.SUFFIXES: .cc # $(.SUFFIXES)
.cc.o:
@rm -f $@
$(CPP) -c $(CFLAGS) $(INCLUDES) -o $@ $*.cc
.c.o:
@rm -f $@
$(CC) -c $(CFLAGS) $(INCLUDES) -o $@ $*.c
GEN_DIR = gen/
LIB_TCLCL = @V_ALL@
LIBRARY_TK = @V_LIBRARY_TK@
LIBRARY_TCL = @V_LIBRARY_TCL@
TCL_76_LIBRARY_FILES = \
$(LIBRARY_TCL)/init.tcl
TCL_BASE_LIBRARY_FILES= \
$(LIBRARY_TCL)/init.tcl \
$(LIBRARY_TCL)/history.tcl \
$(LIBRARY_TCL)/word.tcl
TCL_80_LIBRARY_FILES = \
$(TCL_BASE_LIBRARY_FILES) \
$(LIBRARY_TCL)/http2.0/http.tcl
TCL_81_LIBRARY_FILES = $(TCL_80_LIBRARY_FILES)
TCL_82_LIBRARY_FILES = \
$(TCL_BASE_LIBRARY_FILES) \
$(LIBRARY_TCL)/http2.1/http.tcl
TCL_83_LIBRARY_FILES = \
$(TCL_BASE_LIBRARY_FILES) \
$(LIBRARY_TCL)/http2.[34]/http.tcl
TCL_835_LIBRARY_FILES = \
$(TCL_BASE_LIBRARY_FILES) \
$(LIBRARY_TCL)/http2.4/http.tcl
TCL_84_LIBRARY_FILES = \
$(TCL_BASE_LIBRARY_FILES) \
$(LIBRARY_TCL)/http2.4/http.tcl
TCL_LIBRARY_FILES = \
@V_TCL_LIBRARY_FILES@
#TKDOSNAMES = \
# $(LIBRARY_TK)/optionMenu.tcl \
# $(LIBRARY_TK)/scrollbar.tcl
TKDOSNAMES = @V_TKDOSNAMES@
OBJ_COMPAT_C =
# WIN32: uncomment the following line to be use with vc++ nmake
# !include <conf/makefile.win>
TK_LIBRARY_FILES = \
$(TCL_LIBRARY_FILES) \
$(LIBRARY_TK)/tk.tcl \
$(LIBRARY_TK)/clrpick.tcl \
$(LIBRARY_TK)/comdlg.tcl \
$(LIBRARY_TK)/button.tcl \
$(LIBRARY_TK)/dialog.tcl \
$(LIBRARY_TK)/entry.tcl \
$(LIBRARY_TK)/focus.tcl \
$(LIBRARY_TK)/listbox.tcl \
$(LIBRARY_TK)/menu.tcl \
$(LIBRARY_TK)/palette.tcl \
$(LIBRARY_TK)/scale.tcl \
$(LIBRARY_TK)/tearoff.tcl \
$(LIBRARY_TK)/text.tcl \
$(LIBRARY_TK)/tkfbox.tcl \
$(LIBRARY_TK)/msgbox.tcl \
$(TKDOSNAMES)
CONSOLE_FILES = $(LIBRARY_TK)/console.tcl
OBJ_CC = Tcl.o Tcl2.o idlecallback.o iohandler.o timer.o rate-variable.o \
tracedvar.o \
embedded-tcl.o embedded-tk.o embedded-tclobj.o $(OBJ_COMPAT_CC)
SRC = $(OBJ_CC:.o=.cc) $(OBJ_COMPAT_C:.o=.c)
all: $(TCL2C) $(LIB_TCLCL)
$(TCL2C): tcl2c++.o
$(RM) $@
$(LINK) $(STATIC) $(LDFLAGS) $(LDOUT)$@ tcl2c++.o
# We used to link to libTcl.a for backwards compatibilty, but no more.
$(LIB_TCLCL): $(OBJ_CC) $(OBJ_COMPAT_C)
$(RM) $@
$(AR)$@ $(OBJ_CC) $(OBJ_COMPAT_C)
$(RANLIB) $@
#
# pass-1 embedded tcl files
#
embedded-tcl.cc: $(TCL_LIBRARY_FILES) $(TCL2C)
$(RM) $@
$(TCL2C) et_tcl $(TCL_LIBRARY_FILES) > $@
embedded-tk.cc: $(TK_LIBRARY_FILES) $(TCL2C)
$(RM) $@
$(TCL2C) et_tk $(TK_LIBRARY_FILES) > $@
embedded-tclobj.cc: tcl-object.tcl tcl-import.tcl tcl-http.tcl $(TCL2C)
$(RM) $@
$(TCL2C) et_tclobject tcl-object.tcl tcl-import.tcl tcl-http.tcl > $@
#
# pass-1 console tcl files
#
embedded-console.cc: $(CONSOLE_FILES) $(TCL2C)
$(RM) embedded-console.o
$(TCL2C) et_console $(CONSOLE_FILES) > embedded-console.cc
install: force
$(INSTALL) -m 644 *.h @prefix@/include
$(INSTALL) tcl2c++ @prefix@/bin
$(INSTALL) $(LIB_TCLCL) @prefix@/lib
$(RANLIB) @prefix@/lib/$(LIB_TCLCL)
# libTcl is no longer installed as of 13-Nov-99
# -test -f @prefix@/lib/libTcl.a && rm -f @prefix@/lib/libTcl.a || true
# ln -s @prefix@/lib/libtclcl.a @prefix@/lib/libTcl.a
clean:
$(RM) $(LIB_TCLCL) $(TCL2C) *.o config.log config.cache \
embedded-tk.cc embedded-tclobj.cc embedded-tcl.cc
realclean:
$(MAKE) clean
rm -f Makefile config.log config.cache config.status
distclean: realclean
tags: force
ctags -tdwC $(SRC) *.h $(TKSRC)/*.c $(TKSRC)/*.h \
$(TCLSRC)/*.c $(TCLSRC)/*.h
force:
depend:
$(MKDEP) $(INCLUDES) $(DEFINE) $(SRC)
tar: force
tar=tclcl-`cat VERSION`-@V_TAR_TARGET@.tar.gz ; \
rm -f $$tar ; \
@V_TARCMD@ - README CHANGES.html @V_TAR_EXTRA@ $(ALL) | \
gzip -c > $$tar
srctar: force
@cwd=`pwd` ; dir=`basename $$cwd` ; \
name=tclcl-`cat VERSION | tr A-Z a-z` ; \
tar=tclcl-src-`cat VERSION`.tar.gz ; \
list="" ; \
for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
echo \
"(rm -f $$tar; cd .. ; ln -s $$dir $$name)" ; \
(rm -f $$tar; cd .. ; ln -s $$dir $$name) ; \
echo \
"(cd .. ; tar cfhz $$tar [lots of files])" ; \
(cd .. ; tar cfhz - $$list) > $$tar ; \
echo \
"rm ../$$name; chmod 444 $$tar" ; \
rm ../$$name; chmod 444 $$tar
# Create makefile.vc for Win32 development by replacing:
# "# !include ..." -> "!include ..."
makefile.vc: Makefile.in
$(PERL) -pe 's/^# (\!include)/\!include/o' < Makefile.in > makefile.vc
|