1 # makefile for Gambit-C builds.
3 # Copyright (c) 1994-2011 by Marc Feeley, All Rights Reserved.
5 herefromroot
= prebuilt
7 SUBDIRS
= macosx windows
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 README remote-connect
71 DISTFILES
= $(RCFILES
) $(GENDISTFILES
)
95 clean-pre
: mostlyclean-pre
97 clean-post
: mostlyclean-post
99 distclean-pre
: clean-pre
101 distclean-post
: clean-post
103 bootclean-pre
: distclean-pre
105 bootclean-post
: distclean-post
107 realclean-pre
: bootclean-pre
109 realclean-post
: bootclean-post
117 dist-pre dist-devel-pre
:
118 mkdir
$(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
)
119 chmod
777 $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
)
120 @echo
" Copying distribution files:"
121 @for file in
$(DISTFILES
); do \
122 echo
" $(herefromroot)/$$file"; \
123 ln
$(srcdirpfx
)$$file $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
) 2> /dev
/null \
124 || cp
-p
$(srcdirpfx
)$$file $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
); \
127 dist-post dist-devel-post
:
129 all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive prebuilt-recursive
:
130 @if
test -n
"$(SUBDIRS)"; then \
131 for subdir in
""$(SUBDIRS
); do \
132 target
=`echo $@ | sed 's/-recursive//'`; \
133 echo making
$$target in
$$subdir; \
134 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
140 all-post
: all-recursive
142 all-recursive
: all-pre
144 install: install-post
146 install-post
: install-recursive
148 install-recursive
: install-pre
150 uninstall: uninstall-post
152 uninstall-post
: uninstall-recursive
154 uninstall-recursive
: uninstall-pre
156 mostlyclean: mostlyclean-post
158 mostlyclean-post
: mostlyclean-recursive
160 mostlyclean-recursive
: mostlyclean-pre
164 clean-post
: clean-recursive
166 clean-recursive
: clean-pre
168 distclean: distclean-post
170 distclean-post
: distclean-recursive
172 distclean-recursive
: distclean-pre
174 bootclean
: bootclean-post
176 bootclean-post
: bootclean-recursive
178 bootclean-recursive
: bootclean-pre
180 realclean: realclean-post
182 realclean-post
: realclean-recursive
184 realclean-recursive
: realclean-pre
186 rc-setup
: rc-setup-post
188 rc-setup-post
: rc-setup-recursive
190 rc-setup-recursive
: rc-setup-pre
194 dist-post
: dist-recursive
196 dist-recursive
: dist-pre
198 dist-devel
: dist-devel-post
200 dist-devel-post
: dist-devel-recursive
202 dist-devel-recursive
: dist-devel-pre
204 prebuilt
: prebuilt-post
206 prebuilt-post
: prebuilt-recursive
208 prebuilt-recursive
: prebuilt-pre
210 makefile
: makefile.in
$(rootfromhere
)/config.status
211 cd
$(rootfromhere
) && CONFIG_FILES
=$(herefromroot
)/$@ CONFIG_HEADERS
= .
/config.status
213 # Tell versions [3.59,3.63) of GNU make not to export all variables.
214 # Otherwise a system limit (for SysV at least) may be exceeded.