1 # makefile for Gambit-C examples, Time-stamp: <2011-03-15 00:44:58 feeley>
3 # Copyright (c) 1994-2011 by Marc Feeley, All Rights Reserved.
5 herefromroot
= examples
7 SUBDIRS
= distr-comp pi ring web-repl web-server tcltk Xlib-simple pthread misc iOS
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
71 DISTFILES
= $(RCFILES
) $(GENDISTFILES
)
73 MDEFINES
= prefix=$(prefix) exec_prefix=$(exec_prefix) \
74 includedir=$(includedir) libdir=$(libdir) \
75 bindir=$(bindir) docdir
=$(docdir
) \
76 infodir=$(infodir) emacsdir
=$(emacsdir
)
100 clean-pre
: mostlyclean-pre
102 clean-post
: mostlyclean-post
104 distclean-pre
: clean-pre
106 distclean-post
: clean-post
108 bootclean-pre
: distclean-pre
110 bootclean-post
: distclean-post
112 realclean-pre
: bootclean-pre
114 realclean-post
: bootclean-post
122 dist-pre dist-devel-pre
:
123 mkdir
$(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
)
124 chmod
777 $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
)
125 @echo
" Copying distribution files:"
126 @for file in
$(DISTFILES
); do \
127 echo
" $(herefromroot)/$$file"; \
128 ln
$(srcdirpfx
)$$file $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
) 2> /dev
/null \
129 || cp
-p
$(srcdirpfx
)$$file $(rootfromhere
)/$(PACKAGE_TARNAME
)/$(herefromroot
); \
132 dist-post dist-devel-post
:
134 all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive examples-recursive
:
135 @if
test -n
"$(SUBDIRS)"; then \
136 for subdir in
""$(SUBDIRS
); do \
137 target
=`echo $@ | sed 's/-recursive//'`; \
138 echo making
$$target in
$$subdir; \
139 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
145 all-post
: all-recursive
147 all-recursive
: all-pre
149 install: install-post
151 install-post
: install-recursive
153 install-recursive
: install-pre
155 uninstall: uninstall-post
157 uninstall-post
: uninstall-recursive
159 uninstall-recursive
: uninstall-pre
161 mostlyclean: mostlyclean-post
163 mostlyclean-post
: mostlyclean-recursive
165 mostlyclean-recursive
: mostlyclean-pre
169 clean-post
: clean-recursive
171 clean-recursive
: clean-pre
173 distclean: distclean-post
175 distclean-post
: distclean-recursive
177 distclean-recursive
: distclean-pre
179 bootclean
: bootclean-post
181 bootclean-post
: bootclean-recursive
183 bootclean-recursive
: bootclean-pre
185 realclean: realclean-post
187 realclean-post
: realclean-recursive
189 realclean-recursive
: realclean-pre
191 rc-setup
: rc-setup-post
193 rc-setup-post
: rc-setup-recursive
195 rc-setup-recursive
: rc-setup-pre
199 dist-post
: dist-recursive
201 dist-recursive
: dist-pre
203 dist-devel
: dist-devel-post
205 dist-devel-post
: dist-devel-recursive
207 dist-devel-recursive
: dist-devel-pre
209 examples
: examples-post
211 examples-post
: examples-recursive
213 examples-recursive
: examples-pre
215 makefile
: makefile.in
$(rootfromhere
)/config.status
216 cd
$(rootfromhere
) && CONFIG_FILES
=$(herefromroot
)/$@ CONFIG_HEADERS
= .
/config.status
218 # Tell versions [3.59,3.63) of GNU make not to export all variables.
219 # Otherwise a system limit (for SysV at least) may be exceeded.