/
makefile.in
316 lines (224 loc) · 9.28 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
# makefile for Gambit REPL app.
# Copyright (c) 1994-2013 by Marc Feeley, All Rights Reserved.
herefromroot = contrib/GambitREPL
rootfromhere = ../..
SUBDIRS =
PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
@SET_MAKE@
srcdir = @srcdir@
VPATH = @srcdir@
srcdirpfx = @srcdirpfx@
C_COMPILER = @C_COMPILER_MF@
C_PREPROC = @C_PREPROC_MF@
FLAGS_OBJ = @FLAGS_OBJ_MF@
FLAGS_DYN = @FLAGS_DYN_MF@
FLAGS_LIB = @FLAGS_LIB_MF@
FLAGS_EXE = @FLAGS_EXE_MF@
DEFS = @DEFS@
LIBS = @LIBS@
GAMBCLIB_DEFS = @GAMBCLIB_DEFS_MF@
LIB_PREFIX = @LIB_PREFIX@
LIB_EXTENSION = @LIB_EXTENSION@
GAMBCLIB = @GAMBCLIB@
GAMBCGSCLIB = @GAMBCGSCLIB@
GAMBCGSILIB = @GAMBCGSILIB@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_LIB = @INSTALL_LIB@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LN_S = @LN_S@
RANLIB = @RANLIB@
AR = @AR@
RC = @RC@
GIT = @GIT@
HG = @HG@
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
bindir = @bindir@
docdir = @docdir@
infodir = @infodir@
emacsdir = @emacsdir@
libexecdir = @libexecdir@
datarootdir = @datarootdir@
datadir = @datadir@
htmldir = @htmldir@
dvidir = @dvidir@
pdfdir = @pdfdir@
psdir = @psdir@
localedir = @localedir@
mandir = @mandir@
.SUFFIXES: .scm .m @obj@
RCFILES = makefile.in README GambitREPL.xcodeproj.tgz \
digest.scm "digest\#.scm" genport.scm "genport\#.scm" \
zlib.scm "zlib\#.scm" tar.scm "tar\#.scm" \
json.scm "json\#.scm" url.scm "url\#.scm" html.scm "html\#.scm" \
wiki.scm "wiki\#.scm" repl-server.scm "repl-server\#.scm" \
intf.scm "intf\#.scm" intf.h script.scm "script\#.scm" \
repo.scm "repo\#.scm" help.scm "help\#.scm" program.scm \
Prefix.pch main.m \
grd.scm \
AppDelegate.m AppDelegate.h ViewController.m ViewController.h \
AccessoryView.xib MainWindow.xib ViewController.xib \
Icon-72.png Icon-Small-50.png Icon-Small.png Icon-Small@2x.png Icon-512.png \
Icon.png Icon@2x.png Icon-unscaled.key Icon-unscaled.tiff \
Icon-unscaled-alpha.tiff \
8ball.png edit.png f1.png f10.png f11.png f12.png f2.png f3.png \
f4.png f5.png f6.png f7.png f8.png f9.png heart.png note.png rocket.png \
stop.png user.png \
button-abc.png button-cancel.png button-compass.png button-empty.png button-left-left.png button-left.png button-question.png button-right-right.png button-right.png button-up.png button-up-arrow.png \
key-8ball-46x42.png key-comma-46x42.png key-doublequote-46x42.png \
key-edit-46x42.png key-empty-46x42.png key-f1-46x42.png \
key-f10-46x42.png key-f11-46x42.png key-f12-46x42.png key-f2-46x42.png \
key-f3-46x42.png key-f4-46x42.png key-f5-46x42.png key-f6-46x42.png \
key-f7-46x42.png key-f8-46x42.png key-f9-46x42.png key-heart-46x42.png \
key-lambda-46x42.png key-lparen-46x42.png key-minus-46x42.png \
key-note-46x42.png key-plus-46x42.png key-quote-46x42.png \
key-rocket-46x42.png key-rparen-46x42.png key-sharp-46x42.png \
key-star-46x42.png key-stop-46x42.png key-user-46x42.png \
make-appstore-screenshots make-keys make-scaled-icons \
Info.plist \
help.html r5rs.html r5rs.pdf gambit-c.html
GENDISTFILES =
DISTFILES = $(RCFILES) $(GENDISTFILES)
all:
all-pre:
all-post:
ios: grd@exe@ prepare-for-xcode
gambit-iOS:
@echo "*************************************************************"
@echo "* *"
@echo "* Building Gambit for iOS *"
@echo "* *"
@echo "* This builds the Gambit runtime library for *"
@echo "* the iPhone/iPad/iPod Touch devices and simulators *"
@echo "* *"
@echo "*************************************************************"
$(rootfromhere)/misc/build-gambit-iOS
prepare-for-xcode: digest.m genport.m zlib.m tar.m json.m url.m html.m wiki.m repl-server.m intf.m script.m repo.m help.m program.m program_.m GambitREPL.xcodeproj gambit-iOS
rm -rf lib
mkdir lib
cp gambit-iOS/current/lib/*.scm lib
cp gambit-iOS/current/doc/gambit-c.pdf .
@echo "*************************************************************"
@echo "* *"
@echo "* To complete the iOS example the following steps must be *"
@echo "* completed manually: *"
@echo "* *"
@echo "* 1) open GambitREPL.xcodeproj in XCode 4.0 (or later) *"
@echo "* *"
@echo "* 2) select the appropriate target (simulator or device) *"
@echo "* *"
@echo "* 3) select menu Product -> Run *"
@echo "* *"
@echo "*************************************************************"
.scm.m:
@SETDLPATH@ $(rootfromhere)/gsc/gsc -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -f -c -check -o $*.m $(srcdirpfx)$*.scm
program_.m: digest.m genport.m zlib.m tar.m json.m url.m html.m wiki.m repl-server.m intf.m script.m repo.m help.m program.m
@SETDLPATH@ $(rootfromhere)/gsc/gsc -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -f -link -o $@ $^
GambitREPL.xcodeproj: GambitREPL.xcodeproj.tgz
rm -rf GambitREPL.xcodeproj
tar zxf GambitREPL.xcodeproj.tgz
xcodeproj:
tar cf GambitREPL.xcodeproj.tar GambitREPL.xcodeproj/project.pbxproj
gzip -9 GambitREPL.xcodeproj.tar
mv GambitREPL.xcodeproj.tar.gz GambitREPL.xcodeproj.tgz
grd@exe@: grd.scm
@SETDLPATH@ $(rootfromhere)/gsc/gsc -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -f -o grd@exe@ -exe grd.scm
bootstrap-pre:
bootstrap-post:
install-pre:
install-post: all
uninstall-pre:
uninstall-post:
select-gen-for-commit-pre:
select-gen-for-commit-post:
deselect-gen-for-commit-pre:
deselect-gen-for-commit-post:
mostlyclean-pre:
mostlyclean-post:
rm -f digest.m genport.m zlib.m tar.m json.m url.m html.m wiki.m repl-server.m intf.m script.m repo.m help.m program.m program_.m grd@exe@
clean-pre: mostlyclean-pre
clean-post: mostlyclean-post
rm -f *.gcov *.gcno *.gcda
distclean-pre: clean-pre
distclean-post: clean-post
bootclean-pre: distclean-pre
bootclean-post: distclean-post
realclean-pre: bootclean-pre
realclean-post: bootclean-post
rm -f makefile
rc-setup-pre:
$(RC) add $(RCFILES)
rc-setup-post:
dist-pre dist-devel-pre:
mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
@echo " Copying distribution files:"
@for file in $(DISTFILES); do \
echo " $(herefromroot)/$$file"; \
ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
|| cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
done
dist-post dist-devel-post:
all-recursive bootstrap-recursive install-recursive uninstall-recursive select-gen-for-commit-recursive deselect-gen-for-commit-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive:
@if test -n "$(SUBDIRS)"; then \
for subdir in ""$(SUBDIRS); do \
target=`echo $@ | sed 's/-recursive//'`; \
echo making $$target in $$subdir; \
(cd $$subdir && $(MAKE) $$target) || exit 1; \
done \
fi
all: all-post
all-post: all-recursive
all-recursive: all-pre
bootstrap: bootstrap-post
bootstrap-post: bootstrap-recursive
bootstrap-recursive: bootstrap-pre
install: install-post
install-post: install-recursive
install-recursive: install-pre
uninstall: uninstall-post
uninstall-post: uninstall-recursive
uninstall-recursive: uninstall-pre
select-gen-for-commit: select-gen-for-commit-post
select-gen-for-commit-post: select-gen-for-commit-recursive
select-gen-for-commit-recursive: select-gen-for-commit-pre
deselect-gen-for-commit: deselect-gen-for-commit-post
deselect-gen-for-commit-post: deselect-gen-for-commit-recursive
deselect-gen-for-commit-recursive: deselect-gen-for-commit-pre
mostlyclean: mostlyclean-post
mostlyclean-post: mostlyclean-recursive
mostlyclean-recursive: mostlyclean-pre
clean: clean-post
clean-post: clean-recursive
clean-recursive: clean-pre
distclean: distclean-post
distclean-post: distclean-recursive
distclean-recursive: distclean-pre
bootclean: bootclean-post
bootclean-post: bootclean-recursive
bootclean-recursive: bootclean-pre
realclean: realclean-post
realclean-post: realclean-recursive
realclean-recursive: realclean-pre
rc-setup: rc-setup-post
rc-setup-post: rc-setup-recursive
rc-setup-recursive: rc-setup-pre
dist: dist-post
dist-post: dist-recursive
dist-recursive: dist-pre
dist-devel: dist-devel-post
dist-devel-post: dist-devel-recursive
dist-devel-recursive: dist-devel-pre
makefile: makefile.in $(rootfromhere)/config.status
cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: