1 # makefile for Gambit-C include directory.
3 # Copyright (c) 1994-2009 by Marc Feeley, All Rights Reserved.
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@
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@
31 GAMBCLIB_DEFS
= @GAMBCLIB_DEFS_MF@
32 LIB_PREFIX
= @LIB_PREFIX@
33 LIB_EXTENSION
= @LIB_EXTENSION@
35 GAMBCGSCLIB
= @GAMBCGSCLIB@
36 GAMBCGSILIB
= @GAMBCGSILIB@
38 INSTALL_DATA
= @INSTALL_DATA@
39 INSTALL_LIB
= @INSTALL_LIB@
40 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
48 exec_prefix = @
exec_prefix@
49 includedir = @
includedir@
55 libexecdir
= @libexecdir@
56 datarootdir
= @datarootdir@
62 localedir
= @localedir@
67 RCFILES
= makefile.in gambit.h.in config.h.in stamp.h
71 DISTFILES
= $(RCFILES
) $(GENDISTFILES
)
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
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; \
104 for file in gambit.h gambit-not
$$version_num.h
; do \
105 $(INSTALL_DATA
) $(srcdirpfx
)$$file $$t_includedir/$$file; \
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); \
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; \
127 for file in gambit.h gambit-not
$$version_num.h
; do \
128 rm -f
$$t_includedir/$$file; \
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; \
135 rmdir
$$t_includedir 2> /dev
/null
; \
136 if
test "$$t_includedir" != "$$i_includedir"; then \
137 rmdir
$$i_includedir 2> /dev
/null
; \
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
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
); \
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; \
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
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
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
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
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.