-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
322 lines (265 loc) · 7.05 KB
/
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
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
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
#
# @TITLE@
#
NAME = @NAME@
PKG_NAME = @PKG_NAME@
VER = @PKG_VER@
INIT = @INIT@
FOR_WHAT = @FOR_WHAT@
srcdir = @srcdir@
asrcdir = @asrcdir@
cwd = @cwd@
prefix = @prefix@
appdir = @appdir@
pkgdir = @pkgdir@
moddir = @moddir@
mandir = @mandir@
docdir = @docdir@
exadir = @exadir@
bindir = @bindir@
VPATH = @VPATH@
CC = @CC@
CFLAGS_CC = @CFLAGS_CC@
CFLAGS_WARN = @CFLAGS_WARN@
CFLAGS_OPT = @CFLAGS_OPT@
CFLAGS_SH = @CFLAGS_SH@
CFLAGS_TH = @CFLAGS_TH@
LIBS_TH = @LIBS_TH@
TH_DEFS = @TH_DEFS@
OPT_DEFS = @OPT_DEFS@
LDFLAGS = @LDFLAGS@
LDFLAGS_SH = @LDFLAGS_SH@
TDEFS = @TDEFS@
JDEFS = @JDEFS@
DEFS = @DEFS@
SPOTO_DEFS = @SPOTO_DEFS@ -DFOR_WHAT=\"${FOR_WHAT}\"
EXT_DEFS = @EXT_DEFS@
EXT_INC_SPEC = @EXT_INC_SPEC@
EXT_LIB_SPEC = @EXT_LIB_SPEC@
TCL_INC_SPEC = @TCL_INC_SPEC@
JIM_INC_SPEC = @JIM_INC_SPEC@
TCL_LIB_SPEC = @TCL_LIB_SPEC@
JIM_LIB_SPEC = @JIM_LIB_SPEC@
TCL_STUB_LIB_SPEC = @TCL_STUB_LIB_SPEC@
CC_INC_SPEC = @CC_INC_SPEC@
LD_LIB_SPEC = @LD_LIB_SPEC@
INC_SPEC = ${EXT_INC_SPEC} ${CC_INC_SPEC}
LIB_SPEC = ${EXT_LIB_SPEC} ${LD_LIB_SPEC}
CFLAGS_DEBUG = @CFLAGS_DEBUG@
SRC = ${NAME}.c
OBJ = ${NAME}.o
LIB = @LIB@
SHLIB = @SHLIB@
SCLIB = @SCLIB@
SCLIBSRC = @SCLIBSRC@
DOC = @DOC@
DOCSRC = @DOCSRC@
DOCBLD = @DOCBLD@
DOCFMT = @DOCFMT@
SCBIN = @SCBIN@
SCBINSRC = @SCBINSRC@
PKGINDEX = @PKGINDEX@
EXT_DEP_FILES = @EXT_DEP_FILES@
EXT_BUILD = @EXT_BUILD@
BJE = @BJE@
SH = @SH@
TCL_PKG_ENV = @LD_LIBRARY_PATH_VAR@=".:$(@LD_LIBRARY_PATH_VAR@)" TCLLIBPATH="@TCLLIBPATH@" TCL8_5_TM_PATH='.' TCL8_6_TM_PATH='.'
JIM_PKG_ENV = JIMLIB="@JIMLIB@"
TCLSH_PROG = @TCLSH_PROG@
TCLSH = $(TCL_PKG_ENV) ${TCLSH_PROG}
JIMSH_PROG = @JIMSH_PROG@
JIMSH = $(JIM_PKG_ENV) ${JIMSH_PROG}
SCRIPT =
TESTENV = @TESTENV@
TESTFWK = @TESTFWK@
TESTFLAGS =
DAT_MODE = 644
BIN_MODE = 755
DESTDIR =
INSTALL_OPTIONS =
INSTALL = ${SH} ${srcdir}/tclconfig/install-sh -c $(INSTALL_OPTIONS)
INSTALL_DATA_DIR = $(INSTALL) -d -m 755
INSTALL_PROGRAM = $(INSTALL) -m $(BIN_MODE)
INSTALL_DATA = $(INSTALL) -m $(DAT_MODE)
INSTALL_SCRIPT = $(INSTALL) -m $(BIN_MODE)
INSTALL_LIBRARY = $(INSTALL) -m $(DAT_MODE)
PKG_INSTALL_DIR = @PKG_INSTALL_DIR@
DOC_INSTALL_DIR = @DOC_INSTALL_DIR@
INDENT = " "
DIST_NAME = ${NAME}-${VER}
DIST_ROOT = /tmp/dist
DIST_DIR = $(DIST_ROOT)/$(DIST_NAME)
DIST_FILE = $(DIST_NAME).tar.gz
DIST_INSTALL_DATA = CPPROG='cp -p' $(INSTALL) -m 644
DIST_INSTALL_SCRIPT = CPPROG='cp -p' $(INSTALL) -m 755
SPOTO_ARGS = @SPOTO_ARGS@
P = printf
EN = $(P) %s
E = $(EN)'\n'
all: ${SHLIB} ${SCLIB} ${PKGINDEX} ${DOC} ${SCBIN} ${EXT_BUILD}
$(OBJ): $(SRC) ${EXT_DEP_FILES}
${CC} \
-c \
${CFLAGS_CC} \
${CFLAGS_WARN} \
${CFLAGS_TH} \
${CFLAGS_SH} \
${CFLAGS_OPT} \
${CFLAGS_DEBUG} \
${DEFS} \
${TH_DEFS} \
${OPT_DEFS} \
${EXT_DEFS} \
${SPOTO_DEFS} \
$(INC_SPEC) \
-o $@ $<
${SHLIB}: $(OBJ)
${CC} \
${CFLAGS_CC} \
${CFLAGS_SH} \
${CFLAGS_WARN} \
${CFLAGS_OPT} \
${LDFLAGS} \
${LDFLAGS_SH} \
-o $@ \
$(OBJ) \
${LIBS_TH} \
$(LIB_SPEC)
bje:
${BJE} --keep --notest ${DEFS} ${OPT_DEFS} -o ${PKG_NAME} ${srcdir}/generic/$(SRC)
${SCLIB}: ${SCLIBSRC}
ln -s $> $^ $@
${srcdir}/doc/${DOC}: ${DOCSRC}
${DOCBLD} -o $@ ${DOCFMT} $> $^
${DOC}: ${srcdir}/doc/${DOC}
ln -s $> $^ $@
${SCBIN}: ${SCBINSRC}
ln -s $> $^ $@
pkgIndex.tcl:
$(E) 'package ifneeded ${PKG_NAME} ${VER} [list @LOAD_LIB@ [file join $$dir ${LIB}] ${INIT}]' > pkgIndex.tcl
clean-:
clean-pkgIndex.tcl:
rm -f @PKGINDEX@
clean-cfg_pkgIndex.tcl:
rm -f pkgIndex.tcl
clean-doc:
if test X"${DOC}" != X"" && test -h "${DOC}" ; then \
rm -f "${DOC}" ; \
fi
clean-spot: clean-@PKGINDEX@ clean-doc
rm -f ${SHLIB} ${OBJ} *.core
if test X"${SCLIB}" != X"" && test -h "${SCLIB}" ; then \
rm -f "${SCLIB}" ; \
fi
if test X"${SCBIN}" != X"" && test -h "${SCBIN}" ; then \
rm -f "${SCBIN}" ; \
fi
distclean-spot: clean clean-@CFG_PKGINDEX@
rm -f Makefile spoto.sed
clean: @CLEAN@
distclean: @DISTCLEAN@
shell-Tcl: all
$(TCLSH) $(SCRIPT)
shell-Jim: all
$(JIMSH) $(SCRIPT)
shell-spot: shell-@FOR_WHAT@
shell: @SHELL@
test-Tcl: all
${TESTENV} $(TCLSH) ${srcdir}/tests/${TESTFWK} $(TESTFLAGS)
test-Jim: all
for i in ${srcdir}/tests/*.test; do ${TESTENV} $(JIMSH) $$i $(TESTFLAGS); done
test-spot: test-@FOR_WHAT@
test: @TEST@
install: all @INSTALL_LIB@ @INSTALL_DOC@ @INSTALL_BIN@ @INSTALL_EXA@
install-bin-lib: install-lib
install-script-lib: install-lib
install-lib:
@$(P) 'Installing %s files in %s\n' lib $(DESTDIR)${PKG_INSTALL_DIR}/
@$(INSTALL_DATA_DIR) $(DESTDIR)${PKG_INSTALL_DIR}
@$(EN) $(INDENT)
@$(EN) "${LIB} "
@$(INSTALL_LIBRARY) ${LIB} $(DESTDIR)${PKG_INSTALL_DIR}
@if test X"@PKGINDEX@" != X"" ; then \
$(EN) "@PKGINDEX@"; \
$(INSTALL_DATA) @PKGINDEX@ $(DESTDIR)${PKG_INSTALL_DIR}; \
fi
@$(E) ''
install-script-bin:
@$(P) 'Installing %s files in %s\n' 'script bin' $(DESTDIR)${bindir}/
@$(INSTALL_DATA_DIR) $(DESTDIR)${bindir}
@$(EN) $(INDENT)
@list='${SCBIN}'; \
for i in $$list; do \
$(EN) "$$i "; \
$(INSTALL_SCRIPT) $$i $(DESTDIR)${bindir}; \
done
@$(E) ''
install-doc:
@$(P) 'Installing %s files in %s\n' doc $(DESTDIR)${DOC_INSTALL_DIR}/
@$(INSTALL_DATA_DIR) $(DESTDIR)${DOC_INSTALL_DIR}
@$(EN) $(INDENT)
@list='${DOC}'; \
for i in $$list; do \
$(EN) "$$i "; \
$(INSTALL_DATA) $$i $(DESTDIR)${DOC_INSTALL_DIR}; \
done
@$(E) ''
install-exa:
@$(P) 'Installing %s files in %s\n' example $(DESTDIR)${exadir}/
@$(INSTALL_DATA_DIR) $(DESTDIR)${exadir}
@$(EN) $(INDENT)
@list='${NAME}_example.tcl'; \
for i in $$list; do \
$(EN) "$$i "; \
$(INSTALL_DATA) ${srcdir}/examples/$$i $(DESTDIR)${exadir}; \
done
@$(E) ''
dist: dist-clean dist-setup @DIST@ dist-compress
dist-clean:
rm -rf $(DIST_DIR) $(DIST_ROOT)/$(DIST_FILE)
dist-setup:
$(INSTALL_DATA_DIR) $(DIST_DIR)
dist-compress:
tar zcvf $(DIST_ROOT)/$(DIST_FILE) -C $(DIST_ROOT) $(DIST_NAME)
dist-spot:
list='LICENSE README README.licenses Makefile.in spoto.conf'; \
for p in $$list; do \
$(DIST_INSTALL_DATA) ${srcdir}/$$p $(DIST_DIR)/; \
done
$(DIST_INSTALL_SCRIPT) ${srcdir}/configure $(DIST_DIR)/
$(INSTALL_DATA_DIR) $(DIST_DIR)/tclconfig
DIR=tclconfig; \
list='install-sh'; \
for p in $$list; do \
$(DIST_INSTALL_DATA) ${srcdir}/$$DIR/$$p $(DIST_DIR)/$$DIR/; \
done
dist-ext: dist-spot
$(INSTALL_DATA_DIR) $(DIST_DIR)/library
DIR=library; \
list='${SCLIBSRC} pkgIndex.tcl'; \
for p in $$list; do \
$(DIST_INSTALL_DATA) ${srcdir}/$$DIR/$$p $(DIST_DIR)/$$DIR/; \
done
$(INSTALL_DATA_DIR) $(DIST_DIR)/bin
DIR=bin; \
list='${SCBINSRC}'; \
for p in $$list; do \
$(DIST_INSTALL_SCRIPT) ${srcdir}/$$DIR/$$p $(DIST_DIR)/$$DIR/; \
done
$(INSTALL_DATA_DIR) $(DIST_DIR)/doc
DIR=doc; \
list='${NAME}.man ${NAME}.n ${NAME}.html'; \
for p in $$list; do \
$(DIST_INSTALL_DATA) ${srcdir}/$$DIR/$$p $(DIST_DIR)/$$DIR/; \
done
$(INSTALL_DATA_DIR) $(DIST_DIR)/tests
DIR=tests; \
list='${TESTFWK} ${PKG_NAME}.test'; \
for p in $$list; do \
$(DIST_INSTALL_DATA) ${srcdir}/$$DIR/$$p $(DIST_DIR)/$$DIR/; \
done
# @EXT_MK@
.PHONY: all shell test install install-lib install-doc install-exa dist clean distclean
.PHONY: test-Tcl test-Jim dist-spot dist-clean dist-compress
# Spot o' Conf 0.7
# EOF