Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 298 lines (211 sloc) 8.18 kB
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
1 # makefile for Gambit-C include directory.
2
ad8d249 @feeley Make repo contain the generated .c files so that a clone of the repo …
authored
3 # Copyright (c) 1994-2012 by Marc Feeley, All Rights Reserved.
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
4
5 herefromroot = include
6 rootfromhere = ..
7 SUBDIRS =
8
9 PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
10 PACKAGE_NAME = @PACKAGE_NAME@
11 PACKAGE_VERSION = @PACKAGE_VERSION@
12 PACKAGE_STRING = @PACKAGE_STRING@
13 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
14 PACKAGE_TARNAME = @PACKAGE_TARNAME@
15
16 @SET_MAKE@
17
18 srcdir = @srcdir@
19 VPATH = @srcdir@
20 srcdirpfx = @srcdirpfx@
21
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
22 C_COMPILER = @C_COMPILER_MF@
23 C_PREPROC = @C_PREPROC_MF@
24 FLAGS_OBJ = @FLAGS_OBJ_MF@
25 FLAGS_DYN = @FLAGS_DYN_MF@
26 FLAGS_LIB = @FLAGS_LIB_MF@
27 FLAGS_EXE = @FLAGS_EXE_MF@
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
28 DEFS = @DEFS@
29 LIBS = @LIBS@
30
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
31 GAMBCLIB_DEFS = @GAMBCLIB_DEFS_MF@
321d6cd @feeley Miscellaneous changes to improve flexibility of installation.
authored
32 LIB_PREFIX = @LIB_PREFIX@
33 LIB_EXTENSION = @LIB_EXTENSION@
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
34 GAMBCLIB = @GAMBCLIB@
321d6cd @feeley Miscellaneous changes to improve flexibility of installation.
authored
35 GAMBCGSCLIB = @GAMBCGSCLIB@
36 GAMBCGSILIB = @GAMBCGSILIB@
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
37 INSTALL = @INSTALL@
38 INSTALL_DATA = @INSTALL_DATA@
39 INSTALL_LIB = @INSTALL_LIB@
40 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 LN_S = @LN_S@
42 RANLIB = @RANLIB@
b5dd133 @feeley First set of changes to the makefiles to move from mercurial to git s…
authored
43 RC = @RC@
44 GIT = @GIT@
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
45 HG = @HG@
46
47 prefix = @prefix@
48 exec_prefix = @exec_prefix@
321d6cd @feeley Miscellaneous changes to improve flexibility of installation.
authored
49 includedir = @includedir@
50 libdir = @libdir@
51 bindir = @bindir@
52 docdir = @docdir@
53 infodir = @infodir@
54 emacsdir = @emacsdir@
55 libexecdir = @libexecdir@
56 datarootdir = @datarootdir@
57 datadir = @datadir@
58 htmldir = @htmldir@
59 dvidir = @dvidir@
60 pdfdir = @pdfdir@
61 psdir = @psdir@
62 localedir = @localedir@
63 mandir = @mandir@
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
64
65 .SUFFIXES:
66
ab580c3 @feeley Created include/stamp.h which contains the commit time stamp.
authored
67 RCFILES = makefile.in gambit.h.in config.h.in stamp.h
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
68
69 GENDISTFILES =
70
71 DISTFILES = $(RCFILES) $(GENDISTFILES)
72
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
73 all:
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
74
75 all-pre:
cdb88fa @feeley Invoke sed in the makefiles without GNU extensions (this solves a pro…
authored
76 major=`echo $(PACKAGE_VERSION) | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
77 minor=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
78 revision=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
11deca4 @feeley Changed include/makefile.in so that it generates the gambit-not402007…
authored
79 version_num=`eval expr "\( 100000 \\* $$major \) + \( 1000 \\* $$minor \) + $$revision"`; \
80 echo "#error \"The version indicated in ___VERSION is not supported by gambit.h\"" > gambit-not$$version_num.h; \
81 echo "#error \"You are probably compiling C code generated by a Gambit compiler earlier or later than $(PACKAGE_VERSION)\"" >> gambit-not$$version_num.h; \
82 echo "#error \"___VERSION will be set to $$version_num to reduce other errors\"" >> gambit-not$$version_num.h; \
83 echo "#undef ___VERSION" >> gambit-not$$version_num.h; \
84 echo "#define ___VERSION $$version_num" >> gambit-not$$version_num.h; \
85 echo "#include \"gambit.h\"" >> gambit-not$$version_num.h
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
86
821d454 @feeley Fix include/makefile so that the file include/gambit.h is regenerated…
authored
87 all-post: gambit.h
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
88
7b7f327 @feeley Fix bootstrap when gsc-boot is built using shared libs.
authored
89 bootstrap-pre:
90
91 bootstrap-post:
92
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
93 install-pre:
94
95 install-post: all
321d6cd @feeley Miscellaneous changes to improve flexibility of installation.
authored
96 c_includedir=$(DESTDIR)$(prefix)/include; \
97 i_includedir=$(DESTDIR)$(includedir); \
98 t_includedir=$$i_includedir; \
cdb88fa @feeley Invoke sed in the makefiles without GNU extensions (this solves a pro…
authored
99 major=`echo $(PACKAGE_VERSION) | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
100 minor=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
101 revision=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
8b34db5 @feeley Improve error messages produced by the C compiler when it compiles a …
authored
102 version_num=`eval expr "\( 100000 \\* $$major \) + \( 1000 \\* $$minor \) + $$revision"`; \
321d6cd @feeley Miscellaneous changes to improve flexibility of installation.
authored
103 $(srcdirpfx)$(rootfromhere)/mkidirs $$i_includedir; \
104 if test "@ENABLE_SYMLINKS@" = "yes"; then \
105 $(srcdirpfx)$(rootfromhere)/mkidirs $$c_includedir; \
106 t_includedir=$$c_includedir; \
107 fi; \
108 for file in gambit.h gambit-not$$version_num.h; do \
109 $(INSTALL_DATA) $(srcdirpfx)$$file $$t_includedir/$$file; \
110 done; \
111 if test "$$t_includedir" != "$$i_includedir"; then \
112 r_includedir=`$(rootfromhere)/relpath "$$t_includedir" "$$i_includedir" @ENABLE_MULTIPLE_VERSIONS@`; \
113 for file in gambit.h gambit-not$$version_num.h; do \
114 (cd $$i_includedir && $(LN_S) $$r_includedir$$file $$file); \
115 done; \
116 fi
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
117
118 uninstall-pre:
119
120 uninstall-post:
321d6cd @feeley Miscellaneous changes to improve flexibility of installation.
authored
121 c_includedir=$(DESTDIR)$(prefix)/include; \
122 i_includedir=$(DESTDIR)$(includedir); \
123 t_includedir=$$i_includedir; \
cdb88fa @feeley Invoke sed in the makefiles without GNU extensions (this solves a pro…
authored
124 major=`echo $(PACKAGE_VERSION) | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
125 minor=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
126 revision=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
8b34db5 @feeley Improve error messages produced by the C compiler when it compiles a …
authored
127 version_num=`eval expr "\( 100000 \\* $$major \) + \( 1000 \\* $$minor \) + $$revision"`; \
321d6cd @feeley Miscellaneous changes to improve flexibility of installation.
authored
128 if test "@ENABLE_SYMLINKS@" = "yes"; then \
129 t_includedir=$$c_includedir; \
130 fi; \
131 for file in gambit.h gambit-not$$version_num.h; do \
132 rm -f $$t_includedir/$$file; \
133 done; \
134 if test "$$t_includedir" != "$$i_includedir"; then \
135 for file in gambit.h gambit-not$$version_num.h; do \
136 rm -f $$i_includedir/$$file; \
137 done; \
138 fi; \
139 rmdir $$t_includedir 2> /dev/null; \
140 if test "$$t_includedir" != "$$i_includedir"; then \
141 rmdir $$i_includedir 2> /dev/null; \
142 fi
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
143
ad8d249 @feeley Make repo contain the generated .c files so that a clone of the repo …
authored
144 select-gen-for-commit-pre:
145
146 select-gen-for-commit-post:
147
148 deselect-gen-for-commit-pre:
149
150 deselect-gen-for-commit-post:
151
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
152 mostlyclean-pre:
153
154 mostlyclean-post:
155
156 clean-pre: mostlyclean-pre
157
158 clean-post: mostlyclean-post
159
160 distclean-pre: clean-pre
161
162 distclean-post: clean-post
163
bd1877c @feeley Change makefile targets (clean, bootclean, realclean) to be more intu…
authored
164 bootclean-pre: distclean-pre
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
165
bd1877c @feeley Change makefile targets (clean, bootclean, realclean) to be more intu…
authored
166 bootclean-post: distclean-post
167
168 realclean-pre: bootclean-pre
169
170 realclean-post: bootclean-post
171 rm -f gambit.h gambit-not*.h config.h makefile
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
172
b5dd133 @feeley First set of changes to the makefiles to move from mercurial to git s…
authored
173 rc-setup-pre:
174 $(RC) add $(RCFILES)
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
175
b5dd133 @feeley First set of changes to the makefiles to move from mercurial to git s…
authored
176 rc-setup-post:
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
177
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
178 dist-pre dist-devel-pre:
6b592f2 @feeley Modified makefiles so that two distributions of the sources are creat…
authored
179 mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
180 chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
181 @echo " Copying distribution files:"
182 @for file in $(DISTFILES); do \
183 echo " $(herefromroot)/$$file"; \
184 ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
185 || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
186 done
187
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
188 dist-post dist-devel-post:
6b592f2 @feeley Modified makefiles so that two distributions of the sources are creat…
authored
189
7b7f327 @feeley Fix bootstrap when gsc-boot is built using shared libs.
authored
190 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:
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
191 @if test -n "$(SUBDIRS)"; then \
192 for subdir in ""$(SUBDIRS); do \
193 target=`echo $@ | sed 's/-recursive//'`; \
194 echo making $$target in $$subdir; \
195 (cd $$subdir && $(MAKE) $$target) || exit 1; \
196 done \
197 fi
198
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
199 all: all-post
200
201 all-post: all-recursive
202
203 all-recursive: all-pre
204
7b7f327 @feeley Fix bootstrap when gsc-boot is built using shared libs.
authored
205 bootstrap: bootstrap-post
206
207 bootstrap-post: bootstrap-recursive
208
209 bootstrap-recursive: bootstrap-pre
210
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
211 install: install-post
212
213 install-post: install-recursive
214
215 install-recursive: install-pre
216
217 uninstall: uninstall-post
218
219 uninstall-post: uninstall-recursive
220
221 uninstall-recursive: uninstall-pre
222
ad8d249 @feeley Make repo contain the generated .c files so that a clone of the repo …
authored
223 select-gen-for-commit: select-gen-for-commit-post
224
225 select-gen-for-commit-post: select-gen-for-commit-recursive
226
227 select-gen-for-commit-recursive: select-gen-for-commit-pre
228
229 deselect-gen-for-commit: deselect-gen-for-commit-post
230
231 deselect-gen-for-commit-post: deselect-gen-for-commit-recursive
232
233 deselect-gen-for-commit-recursive: deselect-gen-for-commit-pre
234
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
235 mostlyclean: mostlyclean-post
236
237 mostlyclean-post: mostlyclean-recursive
238
239 mostlyclean-recursive: mostlyclean-pre
240
241 clean: clean-post
242
243 clean-post: clean-recursive
244
245 clean-recursive: clean-pre
246
247 distclean: distclean-post
248
249 distclean-post: distclean-recursive
250
251 distclean-recursive: distclean-pre
252
253 bootclean: bootclean-post
254
255 bootclean-post: bootclean-recursive
256
257 bootclean-recursive: bootclean-pre
258
259 realclean: realclean-post
260
261 realclean-post: realclean-recursive
262
263 realclean-recursive: realclean-pre
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
264
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
265 rc-setup: rc-setup-post
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
266
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
267 rc-setup-post: rc-setup-recursive
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
268
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
269 rc-setup-recursive: rc-setup-pre
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
270
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
271 dist: dist-post
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
272
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
273 dist-post: dist-recursive
bd1877c @feeley Change makefile targets (clean, bootclean, realclean) to be more intu…
authored
274
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
275 dist-recursive: dist-pre
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
276
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
277 dist-devel: dist-devel-post
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
278
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
279 dist-devel-post: dist-devel-recursive
6b592f2 @feeley Modified makefiles so that two distributions of the sources are creat…
authored
280
4af3c67 @feeley Fix makefile dependencies to allow concurrent build (thanks to Adrien…
authored
281 dist-devel-recursive: dist-devel-pre
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
282
edaea72 @feeley Added system-stamp procedure which returns a time stamp of the source…
authored
283 stamp:
ab580c3 @feeley Created include/stamp.h which contains the commit time stamp.
authored
284 rm -f stamp2.h
bf2c84f @feeley Changed (system-stamp) so that it returns a more readable time stamp,…
authored
285 eval `date -u '+stamp_ymd=%Y%m%d stamp_hms=%H%M%S'`; \
ab580c3 @feeley Created include/stamp.h which contains the commit time stamp.
authored
286 sed -e "s/#define ___STAMP_YMD [0-9][0-9]*/#define ___STAMP_YMD `expr $$stamp_ymd`/" -e "s/#define ___STAMP_HMS [0-9][0-9]*/#define ___STAMP_HMS `expr $$stamp_hms`/" stamp.h > stamp2.h
287 mv stamp2.h stamp.h
edaea72 @feeley Added system-stamp procedure which returns a time stamp of the source…
authored
288
1b67821 @feeley Initial commit of Gambit-C v4.0.0
authored
289 makefile: makefile.in $(rootfromhere)/config.status
290 cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
291
292 gambit.h: gambit.h.in $(rootfromhere)/config.status
293 cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
294
295 # Tell versions [3.59,3.63) of GNU make not to export all variables.
296 # Otherwise a system limit (for SysV at least) may be exceeded.
297 .NOEXPORT:
Something went wrong with that request. Please try again.