1 # makefile for Gambit-C bin 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 GSI_EXECUTABLE
= gsi@exe@
68 GSC_EXECUTABLE
= gsc@exe@
69 GSI_EXECUTABLE_INSTALLED
= @ENABLE_INTERPRETER_NAME@@exe@
70 GSC_EXECUTABLE_INSTALLED
= @ENABLE_COMPILER_NAME@@exe@
72 RCFILES
= makefile.in \
73 gambc-cc.unix.in gambc-cc.bat.windows.in \
74 gambc-doc.unix.in gambc-doc.bat.windows.in
78 DISTFILES
= $(RCFILES
) $(GENDISTFILES
)
80 INSTFILES_BIN_PROG
= gambc-cc@bat@ gambc-doc@bat@
81 INSTFILES_BIN_LINK_GSI
= six@exe@ gsi-script@bat@ six-script@bat@ \
82 scheme-srfi-0@bat@ scheme-r5rs@bat@ scheme-r4rs@bat@ scheme-ieee-1178-1990@bat@
83 INSTFILES_BIN_LINK_GSC
= gsc-script@bat@
84 INSTFILES_BIN_LINK
= $(INSTFILES_BIN_LINK_GSI
) $(INSTFILES_BIN_LINK_GSC
)
85 INSTFILES_BIN
= $(INSTFILES_BIN_PROG
) $(INSTFILES_BIN_LINK
)
91 all-post
: gambc-cc@bat@ gambc-doc@bat@ six@exe@ gsi-script@bat@ gsc-script@bat@ six-script@bat@ scheme-srfi-0@bat@ scheme-r5rs@bat@ scheme-r4rs@bat@ scheme-ieee-1178-1990@bat@
93 gambc-cc@bat@
: makefile gambc-cc.unix gambc-cc.bat.windows
95 if
test "@bat@" = ""; then \
96 cp gambc-cc.unix gambc-cc@bat@
; \
97 chmod
+x gambc-cc@bat@
; \
99 cp gambc-cc.bat.windows gambc-cc@bat@
; \
102 gambc-doc@bat@
: makefile gambc-doc.unix gambc-doc.bat.windows
104 if
test "@bat@" = ""; then \
105 cp gambc-doc.unix gambc-doc@bat@
; \
106 chmod
+x gambc-doc@bat@
; \
108 cp gambc-doc.bat.windows gambc-doc@bat@
; \
112 rm -f six@exe@ six@exe@.lnk
113 if
test "@bat@" = ""; then \
114 $(LN_S
) $(rootfromhere
)/gsi
/$(GSI_EXECUTABLE
) six@exe@
; \
116 cp
$(rootfromhere
)/gsi
/$(GSI_EXECUTABLE
) six@exe@
; \
119 gsi-script@bat@
: makefile
120 rm -f gsi-script@bat@ gsi-script@bat@.lnk
121 if
test "@bat@" = ""; then \
122 $(LN_S
) $(rootfromhere
)/gsi
/$(GSI_EXECUTABLE
) gsi-script@bat@
; \
124 echo
"@gsi %*" > gsi-script@bat@
; \
127 gsc-script@bat@
: makefile
128 rm -f gsc-script@bat@ gsc-script@bat@.lnk
129 if
test "@bat@" = ""; then \
130 $(LN_S
) $(rootfromhere
)/gsc
/$(GSC_EXECUTABLE
) gsc-script@bat@
; \
132 echo
"@gsc %*" > gsc-script@bat@
; \
135 six-script@bat@
: makefile
136 rm -f six-script@bat@ six-script@bat@.lnk
137 if
test "@bat@" = ""; then \
138 $(LN_S
) $(rootfromhere
)/gsi
/$(GSI_EXECUTABLE
) six-script@bat@
; \
140 echo
"@gsi %*" > six-script@bat@
; \
143 scheme-srfi-0@bat@
: makefile
144 rm -f scheme-srfi-0@bat@ scheme-srfi-0@bat@.lnk
145 if
test "@bat@" = ""; then \
146 $(LN_S
) $(rootfromhere
)/gsi
/$(GSI_EXECUTABLE
) scheme-srfi-0@bat@
; \
148 echo
"@gsi %*" > scheme-srfi-0@bat@
; \
151 scheme-r5rs@bat@
: makefile
152 rm -f scheme-r5rs@bat@ scheme-r5rs@bat@.lnk
153 if
test "@bat@" = ""; then \
154 $(LN_S
) $(rootfromhere
)/gsi
/$(GSI_EXECUTABLE
) scheme-r5rs@bat@
; \
156 echo
"@gsi %*" > scheme-r5rs@bat@
; \
159 scheme-r4rs@bat@
: makefile
160 rm -f scheme-r4rs@bat@ scheme-r4rs@bat@.lnk
161 if
test "@bat@" = ""; then \
162 $(LN_S
) $(rootfromhere
)/gsi
/$(GSI_EXECUTABLE
) scheme-r4rs@bat@
; \
164 echo
"@gsi %*" > scheme-r4rs@bat@
; \
167 scheme-ieee-1178-1990@bat@
: makefile
168 rm -f scheme-ieee-1178-1990@bat@ scheme-ieee-1178-1990@bat@.lnk
169 if
test "@bat@" = ""; then \
170 $(LN_S
) $(rootfromhere
)/gsi
/$(GSI_EXECUTABLE
) scheme-ieee-1178-1990@bat@
; \
172 echo
"@gsi %*" > scheme-ieee-1178-1990@bat@
; \
178 c_bindir
=$(DESTDIR
)$(prefix)/bin
; \
179 i_bindir
=$(DESTDIR
)$(bindir); \
180 t_bindir
=$$i_bindir; \
181 $(srcdirpfx
)$(rootfromhere
)/mkidirs
$$i_bindir; \
182 if
test "@ENABLE_SYMLINKS@" = "yes"; then \
183 $(srcdirpfx
)$(rootfromhere
)/mkidirs
$$c_bindir; \
184 t_bindir
=$$c_bindir; \
186 for file in
$(INSTFILES_BIN_LINK
); do \
187 rm -f
$$t_bindir/$$file $$t_bindir/$$file.lnk
; \
189 for file in
$(INSTFILES_BIN_PROG
); do \
190 $(INSTALL_PROGRAM
) $$file $$t_bindir/$$file; \
192 if
test "@bat@" = ""; then \
193 for file in
$(INSTFILES_BIN_LINK_GSI
); do \
194 (cd
$$t_bindir && $(LN_S
) $(GSI_EXECUTABLE_INSTALLED
) $$file); \
196 for file in
$(INSTFILES_BIN_LINK_GSC
); do \
197 (cd
$$t_bindir && $(LN_S
) $(GSC_EXECUTABLE_INSTALLED
) $$file); \
200 for file in
$(INSTFILES_BIN_LINK
); do \
201 $(INSTALL_PROGRAM
) $$file $$t_bindir/$$file; \
204 if
test "$$t_bindir" != "$$i_bindir"; then \
205 r_bindir
=`$(rootfromhere)/relpath "$$t_bindir" "$$i_bindir" @ENABLE_MULTIPLE_VERSIONS@`; \
206 for file in
$(INSTFILES_BIN_LINK
); do \
207 rm -f
$$i_bindir/$$file $$i_bindir/$$file.lnk
; \
209 for file in
$(INSTFILES_BIN
); do \
210 (cd
$$i_bindir && $(LN_S
) $$r_bindir$$file $$file); \
217 c_bindir
=$(DESTDIR
)$(prefix)/bin
; \
218 i_bindir
=$(DESTDIR
)$(bindir); \
219 t_bindir
=$$i_bindir; \
220 $(srcdirpfx
)$(rootfromhere
)/mkidirs
$$i_bindir; \
221 if
test "@ENABLE_SYMLINKS@" = "yes"; then \
222 $(srcdirpfx
)$(rootfromhere
)/mkidirs
$$c_bindir; \
223 t_bindir
=$$c_bindir; \
225 for file in
$(INSTFILES_BIN_LINK
); do \
226 rm -f
$$t_bindir/$$file $$t_bindir/$$file.lnk
; \
228 for file in
$(INSTFILES_BIN_PROG
); do \
229 rm -f
$$t_bindir/$$file; \
231 if
test "$$t_bindir" != "$$i_bindir"; then \
232 for file in
$(INSTFILES_BIN_LINK
); do \
233 rm -f
$$i_bindir/$$file $$i_bindir/$$file.lnk
; \
235 for file in
$(INSTFILES_BIN_PROG
); do \
236 rm -f
$$i_bindir/$$file; \
239 rmdir
$$t_bindir 2> /dev
/null
; \
240 if
test "$$t_bindir" != "$$i_bindir"; then \
241 rmdir
$$i_bindir 2> /dev
/null
; \
248 clean-pre
: mostlyclean-pre
250 clean-post
: mostlyclean-post
251 rm -f gambc-cc@bat@ \
253 six@exe@ six@exe@.lnk \
255 gsi-script@bat@.lnk \
257 gsc-script@bat@.lnk \
259 six-script@bat@.lnk \
261 scheme-srfi-0@bat@.lnk \
263 scheme-r5rs@bat@.lnk \
265 scheme-r4rs@bat@.lnk \
266 scheme-ieee-1178-1990@bat@ \
267 scheme-ieee-1178-1990@bat@.lnk
269 distclean-pre
: clean-pre
271 distclean-post
: clean-post
273 bootclean-pre
: distclean-pre
275 bootclean-post
: distclean-post
277 realclean-pre
: bootclean-pre
279 realclean-post
: bootclean-post
280 rm -f gambc-cc.unix gambc-cc.bat.windows \
281 gambc-doc.unix gambc-doc.bat.windows makefile
288 dist-pre dist-devel-pre
:
289 mkdir
$(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
)
290 chmod
777 $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
)
291 @echo
" Copying distribution files:"
292 @for file in
$(DISTFILES
); do \
293 echo
" $(herefromroot)/$$file"; \
294 ln
$(srcdirpfx
)$$file $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
) 2> /dev
/null \
295 || cp
-p
$(srcdirpfx
)$$file $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
); \
298 dist-post dist-devel-post
:
300 all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive
:
301 @if
test -n
"$(SUBDIRS)"; then \
302 for subdir in
""$(SUBDIRS
); do \
303 target
=`echo $@ | sed 's/-recursive//'`; \
304 echo making
$$target in
$$subdir; \
305 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
311 all-post
: all-recursive
313 all-recursive
: all-pre
315 install: install-post
317 install-post
: install-recursive
319 install-recursive
: install-pre
321 uninstall: uninstall-post
323 uninstall-post
: uninstall-recursive
325 uninstall-recursive
: uninstall-pre
327 mostlyclean: mostlyclean-post
329 mostlyclean-post
: mostlyclean-recursive
331 mostlyclean-recursive
: mostlyclean-pre
335 clean-post
: clean-recursive
337 clean-recursive
: clean-pre
339 distclean: distclean-post
341 distclean-post
: distclean-recursive
343 distclean-recursive
: distclean-pre
345 bootclean
: bootclean-post
347 bootclean-post
: bootclean-recursive
349 bootclean-recursive
: bootclean-pre
351 realclean: realclean-post
353 realclean-post
: realclean-recursive
355 realclean-recursive
: realclean-pre
357 rc-setup
: rc-setup-post
359 rc-setup-post
: rc-setup-recursive
361 rc-setup-recursive
: rc-setup-pre
365 dist-post
: dist-recursive
367 dist-recursive
: dist-pre
369 dist-devel
: dist-devel-post
371 dist-devel-post
: dist-devel-recursive
373 dist-devel-recursive
: dist-devel-pre
375 makefile
: makefile.in
$(rootfromhere
)/config.status
376 cd
$(rootfromhere
) && CONFIG_FILES
=$(herefromroot
)/$@ CONFIG_HEADERS
= .
/config.status
378 gambc-cc.unix
: gambc-cc.unix.in
$(rootfromhere
)/config.status
379 cd
$(rootfromhere
) && CONFIG_FILES
=$(herefromroot
)/$@ CONFIG_HEADERS
= .
/config.status
381 gambc-cc.bat.windows
: gambc-cc.bat.windows.in
$(rootfromhere
)/config.status
382 cd
$(rootfromhere
) && CONFIG_FILES
=$(herefromroot
)/$@ CONFIG_HEADERS
= .
/config.status
384 gambc-doc.unix
: gambc-doc.unix.in
$(rootfromhere
)/config.status
385 cd
$(rootfromhere
) && CONFIG_FILES
=$(herefromroot
)/$@ CONFIG_HEADERS
= .
/config.status
387 gambc-doc.bat.windows
: gambc-doc.bat.windows.in
$(rootfromhere
)/config.status
388 cd
$(rootfromhere
) && CONFIG_FILES
=$(herefromroot
)/$@ CONFIG_HEADERS
= .
/config.status
390 # Tell versions [3.59,3.63) of GNU make not to export all variables.
391 # Otherwise a system limit (for SysV at least) may be exceeded.