Add REPL comma commands: ,N+ and ,N- and ,++ and ,-- .
[gambit-c.git] / include / makefile.in
bloba93f9a48f2303268a8a005939a8a65ce375a129d
1 # makefile for Gambit-C include directory.
3 # Copyright (c) 1994-2009 by Marc Feeley, All Rights Reserved.
5 herefromroot = include
6 rootfromhere = ..
7 SUBDIRS =
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@
16 @SET_MAKE@
18 srcdir = @srcdir@
19 VPATH = @srcdir@
20 srcdirpfx = @srcdirpfx@
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@
28 DEFS = @DEFS@
29 LIBS = @LIBS@
31 GAMBCLIB_DEFS = @GAMBCLIB_DEFS_MF@
32 LIB_PREFIX = @LIB_PREFIX@
33 LIB_EXTENSION = @LIB_EXTENSION@
34 GAMBCLIB = @GAMBCLIB@
35 GAMBCGSCLIB = @GAMBCGSCLIB@
36 GAMBCGSILIB = @GAMBCGSILIB@
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@
43 RC = @RC@
44 GIT = @GIT@
45 HG = @HG@
47 prefix = @prefix@
48 exec_prefix = @exec_prefix@
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@
65 .SUFFIXES:
67 RCFILES = makefile.in gambit.h.in config.h.in stamp.h
69 GENDISTFILES =
71 DISTFILES = $(RCFILES) $(GENDISTFILES)
73 all:
75 all-pre:
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"`; \
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
87 all-post: gambit.h
89 install-pre:
91 install-post: all
92 c_includedir=$(DESTDIR)$(prefix)/include; \
93 i_includedir=$(DESTDIR)$(includedir); \
94 t_includedir=$$i_includedir; \
95 major=`echo $(PACKAGE_VERSION) | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
96 minor=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
97 revision=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
98 version_num=`eval expr "\( 100000 \\* $$major \) + \( 1000 \\* $$minor \) + $$revision"`; \
99 $(srcdirpfx)$(rootfromhere)/mkidirs $$i_includedir; \
100 if test "@ENABLE_SYMLINKS@" = "yes"; then \
101 $(srcdirpfx)$(rootfromhere)/mkidirs $$c_includedir; \
102 t_includedir=$$c_includedir; \
103 fi; \
104 for file in gambit.h gambit-not$$version_num.h; do \
105 $(INSTALL_DATA) $(srcdirpfx)$$file $$t_includedir/$$file; \
106 done; \
107 if test "$$t_includedir" != "$$i_includedir"; then \
108 r_includedir=`$(rootfromhere)/relpath "$$t_includedir" "$$i_includedir" @ENABLE_MULTIPLE_VERSIONS@`; \
109 for file in gambit.h gambit-not$$version_num.h; do \
110 (cd $$i_includedir && $(LN_S) $$r_includedir$$file $$file); \
111 done; \
114 uninstall-pre:
116 uninstall-post:
117 c_includedir=$(DESTDIR)$(prefix)/include; \
118 i_includedir=$(DESTDIR)$(includedir); \
119 t_includedir=$$i_includedir; \
120 major=`echo $(PACKAGE_VERSION) | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
121 minor=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
122 revision=`echo $(PACKAGE_VERSION) | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
123 version_num=`eval expr "\( 100000 \\* $$major \) + \( 1000 \\* $$minor \) + $$revision"`; \
124 if test "@ENABLE_SYMLINKS@" = "yes"; then \
125 t_includedir=$$c_includedir; \
126 fi; \
127 for file in gambit.h gambit-not$$version_num.h; do \
128 rm -f $$t_includedir/$$file; \
129 done; \
130 if test "$$t_includedir" != "$$i_includedir"; then \
131 for file in gambit.h gambit-not$$version_num.h; do \
132 rm -f $$i_includedir/$$file; \
133 done; \
134 fi; \
135 rmdir $$t_includedir 2> /dev/null; \
136 if test "$$t_includedir" != "$$i_includedir"; then \
137 rmdir $$i_includedir 2> /dev/null; \
140 mostlyclean-pre:
142 mostlyclean-post:
144 clean-pre: mostlyclean-pre
146 clean-post: mostlyclean-post
148 distclean-pre: clean-pre
150 distclean-post: clean-post
152 bootclean-pre: distclean-pre
154 bootclean-post: distclean-post
156 realclean-pre: bootclean-pre
158 realclean-post: bootclean-post
159 rm -f gambit.h gambit-not*.h config.h makefile
161 rc-setup-pre:
162 $(RC) add $(RCFILES)
164 rc-setup-post:
166 dist-pre dist-devel-pre:
167 mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
168 chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
169 @echo " Copying distribution files:"
170 @for file in $(DISTFILES); do \
171 echo " $(herefromroot)/$$file"; \
172 ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
173 || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
174 done
176 dist-post dist-devel-post:
178 all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive:
179 @if test -n "$(SUBDIRS)"; then \
180 for subdir in ""$(SUBDIRS); do \
181 target=`echo $@ | sed 's/-recursive//'`; \
182 echo making $$target in $$subdir; \
183 (cd $$subdir && $(MAKE) $$target) || exit 1; \
184 done \
187 all: all-post
189 all-post: all-recursive
191 all-recursive: all-pre
193 install: install-post
195 install-post: install-recursive
197 install-recursive: install-pre
199 uninstall: uninstall-post
201 uninstall-post: uninstall-recursive
203 uninstall-recursive: uninstall-pre
205 mostlyclean: mostlyclean-post
207 mostlyclean-post: mostlyclean-recursive
209 mostlyclean-recursive: mostlyclean-pre
211 clean: clean-post
213 clean-post: clean-recursive
215 clean-recursive: clean-pre
217 distclean: distclean-post
219 distclean-post: distclean-recursive
221 distclean-recursive: distclean-pre
223 bootclean: bootclean-post
225 bootclean-post: bootclean-recursive
227 bootclean-recursive: bootclean-pre
229 realclean: realclean-post
231 realclean-post: realclean-recursive
233 realclean-recursive: realclean-pre
235 rc-setup: rc-setup-post
237 rc-setup-post: rc-setup-recursive
239 rc-setup-recursive: rc-setup-pre
241 dist: dist-post
243 dist-post: dist-recursive
245 dist-recursive: dist-pre
247 dist-devel: dist-devel-post
249 dist-devel-post: dist-devel-recursive
251 dist-devel-recursive: dist-devel-pre
253 stamp:
254 rm -f stamp2.h
255 eval `date -u '+stamp_ymd=%Y%m%d stamp_hms=%H%M%S'`; \
256 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
257 mv stamp2.h stamp.h
259 makefile: makefile.in $(rootfromhere)/config.status
260 cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
262 gambit.h: gambit.h.in $(rootfromhere)/config.status
263 cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
265 # Tell versions [3.59,3.63) of GNU make not to export all variables.
266 # Otherwise a system limit (for SysV at least) may be exceeded.
267 .NOEXPORT: