1# makefile for ring example.
2
3# Copyright (c) 1994-2018 by Marc Feeley, All Rights Reserved.
4
5herefromroot = examples/ring
6rootfromhere = ../..
7SUBDIRS =
8
9PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
10PACKAGE_NAME = @PACKAGE_NAME@
11PACKAGE_VERSION = @PACKAGE_VERSION@
12PACKAGE_STRING = @PACKAGE_STRING@
13PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
14PACKAGE_TARNAME = @PACKAGE_TARNAME@
15
16@SET_MAKE@
17
18srcdir = @srcdir@
19VPATH = @srcdir@
20srcdirpfx = @srcdirpfx@
21
22C_COMPILER = @C_COMPILER_MF@
23C_PREPROC = @C_PREPROC_MF@
24FLAGS_OBJ = @FLAGS_OBJ_MF@
25FLAGS_DYN = @FLAGS_DYN_MF@
26FLAGS_LIB = @FLAGS_LIB_MF@
27FLAGS_EXE = @FLAGS_EXE_MF@
28FLAGS_OPT = @FLAGS_OPT_MF@
29FLAGS_OPT_RTS = @FLAGS_OPT_RTS_MF@
30DEFS = @DEFS@
31LIBS = @LIBS@
32
33GAMBITLIB_DEFS = @GAMBITLIB_DEFS_MF@
34LIB_PREFIX = @LIB_PREFIX@
35LIB_VERSION_SUFFIX = @LIB_VERSION_SUFFIX@
36LIB_MAJOR_VERSION_SUFFIX = @LIB_MAJOR_VERSION_SUFFIX@
37
38LIB_EXTENSION = @LIB_EXTENSION@
39GAMBITLIB = @GAMBITLIB@
40GAMBITGSCLIB = @GAMBITGSCLIB@
41GAMBITGSILIB = @GAMBITGSILIB@
42INSTALL = @INSTALL@
43INSTALL_DATA = @INSTALL_DATA@
44INSTALL_LIB = @INSTALL_LIB@
45INSTALL_PROGRAM = @INSTALL_PROGRAM@
46LN_S = @LN_S@
47RANLIB = @RANLIB@
48AR = @AR@
49RC = @RC@
50GIT = @GIT@
51HG = @HG@
52
53prefix = @prefix@
54exec_prefix = @exec_prefix@
55includedir = @includedir@
56libdir = @libdir@
57bindir = @bindir@
58docdir = @docdir@
59infodir = @infodir@
60emacsdir = @emacsdir@
61libexecdir = @libexecdir@
62datarootdir = @datarootdir@
63datadir = @datadir@
64htmldir = @htmldir@
65dvidir = @dvidir@
66pdfdir = @pdfdir@
67psdir = @psdir@
68localedir = @localedir@
69mandir = @mandir@
70
71.SUFFIXES: .scm .c @obj@ .o1
72
73RCFILES = makefile.in README ring.scm
74
75GENDISTFILES =
76
77DISTFILES = $(RCFILES) $(GENDISTFILES)
78
79all:
80
81all-pre:
82
83all-post:
84
85examples: ring.o1 run
86
87.scm.o1:
88	rm -f $*.o*
89	@SETDLPATH@ $(rootfromhere)/gsc/gsc -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -warnings $(srcdirpfx)$*.scm
90
91run:
92	@SETDLPATH@ $(rootfromhere)/gsi/gsi -:h200000,m200000,~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -e '(load "ring") (main "10000")'
93
94bootstrap-pre:
95
96bootstrap-post:
97
98install-pre:
99
100install-post: all
101
102uninstall-pre:
103
104uninstall-post:
105
106select-gen-for-commit-pre:
107
108select-gen-for-commit-post:
109
110deselect-gen-for-commit-pre:
111
112deselect-gen-for-commit-post:
113
114mostlyclean-pre:
115
116mostlyclean-post:
117	rm -f ring.c ring@obj@ ring.o1
118
119clean-pre: mostlyclean-pre
120
121clean-post: mostlyclean-post
122	rm -f *.gcov *.gcno *.gcda
123
124distclean-pre: clean-pre
125
126distclean-post: clean-post
127
128bootclean-pre: distclean-pre
129
130bootclean-post: distclean-post
131
132realclean-pre: bootclean-pre
133
134realclean-post: bootclean-post
135	rm -f makefile
136
137rc-setup-pre:
138	$(RC) add $(RCFILES)
139
140rc-setup-post:
141
142dist-pre dist-devel-pre:
143	mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
144	chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
145	@echo "  Copying distribution files:"
146	@for file in $(DISTFILES); do \
147	  echo "    $(herefromroot)/$$file"; \
148	  ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
149	    || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
150	done
151
152dist-post dist-devel-post:
153
154all-recursive bootstrap-recursive install-recursive uninstall-recursive select-gen-for-commit-recursive deselect-gen-for-commit-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive:
155	@if test -n "$(SUBDIRS)"; then \
156	  for subdir in ""$(SUBDIRS); do \
157	    target=`echo $@ | sed 's/-recursive//'`; \
158	    echo making $$target in $$subdir; \
159	    (cd $$subdir && $(MAKE) $$target) || exit 1; \
160	  done \
161	fi
162
163all: all-post
164
165all-post: all-recursive
166
167all-recursive: all-pre
168
169bootstrap: bootstrap-post
170
171bootstrap-post: bootstrap-recursive
172
173bootstrap-recursive: bootstrap-pre
174
175install: install-post
176
177install-post: install-recursive
178
179install-recursive: install-pre
180
181uninstall: uninstall-post
182
183uninstall-post: uninstall-recursive
184
185uninstall-recursive: uninstall-pre
186
187select-gen-for-commit: select-gen-for-commit-post
188
189select-gen-for-commit-post: select-gen-for-commit-recursive
190
191select-gen-for-commit-recursive: select-gen-for-commit-pre
192
193deselect-gen-for-commit: deselect-gen-for-commit-post
194
195deselect-gen-for-commit-post: deselect-gen-for-commit-recursive
196
197deselect-gen-for-commit-recursive: deselect-gen-for-commit-pre
198
199mostlyclean: mostlyclean-post
200
201mostlyclean-post: mostlyclean-recursive
202
203mostlyclean-recursive: mostlyclean-pre
204
205clean: clean-post
206
207clean-post: clean-recursive
208
209clean-recursive: clean-pre
210
211distclean: distclean-post
212
213distclean-post: distclean-recursive
214
215distclean-recursive: distclean-pre
216
217bootclean: bootclean-post
218
219bootclean-post: bootclean-recursive
220
221bootclean-recursive: bootclean-pre
222
223realclean: realclean-post
224
225realclean-post: realclean-recursive
226
227realclean-recursive: realclean-pre
228
229rc-setup: rc-setup-post
230
231rc-setup-post: rc-setup-recursive
232
233rc-setup-recursive: rc-setup-pre
234
235dist: dist-post
236
237dist-post: dist-recursive
238
239dist-recursive: dist-pre
240
241dist-devel: dist-devel-post
242
243dist-devel-post: dist-devel-recursive
244
245dist-devel-recursive: dist-devel-pre
246
247makefile: makefile.in $(rootfromhere)/config.status
248	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
249
250# Tell versions [3.59,3.63) of GNU make not to export all variables.
251# Otherwise a system limit (for SysV at least) may be exceeded.
252.NOEXPORT:
253