Improve grd program in Gambit REPL iOS example (add "mv" command, on Windows provide...
[gambit-c.git] / examples / pthread / makefile.in
blob641658720a2aa44dab60ac93d24806481f38ffbf
1 # makefile for pthread example, Time-stamp: <2009-08-03 12:19:38 feeley>
3 # Copyright (c) 1994-2009 by Marc Feeley, All Rights Reserved.
5 herefromroot = examples/pthread
6 rootfromhere = ../..
7 SUBDIRS =
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@
16 @SET_MAKE@
18 srcdir = @srcdir@
19 VPATH = @srcdir@
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@
28 DEFS = @DEFS@
29 LIBS = @LIBS@
31 GAMBCLIB_DEFS = @GAMBCLIB_DEFS_MF@
32 LIB_PREFIX = @LIB_PREFIX@
33 LIB_EXTENSION = @LIB_EXTENSION@
34 GAMBCLIB = @GAMBCLIB@
35 GAMBCGSCLIB = @GAMBCGSCLIB@
36 GAMBCGSILIB = @GAMBCGSILIB@
37 INSTALL = @INSTALL@
38 INSTALL_DATA = @INSTALL_DATA@
39 INSTALL_LIB = @INSTALL_LIB@
40 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 LN_S = @LN_S@
42 RANLIB = @RANLIB@
43 RC = @RC@
44 GIT = @GIT@
45 HG = @HG@
47 prefix = @prefix@
48 exec_prefix = @exec_prefix@
49 includedir = @includedir@
50 libdir = @libdir@
51 bindir = @bindir@
52 docdir = @docdir@
53 infodir = @infodir@
54 emacsdir = @emacsdir@
55 libexecdir = @libexecdir@
56 datarootdir = @datarootdir@
57 datadir = @datadir@
58 htmldir = @htmldir@
59 dvidir = @dvidir@
60 pdfdir = @pdfdir@
61 psdir = @psdir@
62 localedir = @localedir@
63 mandir = @mandir@
65 .SUFFIXES: .scm .c @obj@
67 RCFILES = makefile.in README mylib.scm mylib.h pthread.c
69 GENDISTFILES =
71 DISTFILES = $(RCFILES) $(GENDISTFILES)
73 GAMBCDIR_INCLUDE = $(srcdirpfx)$(rootfromhere)/include
74 GAMBCDIR_LIB = $(srcdirpfx)$(rootfromhere)/lib
75 GAMBCDIR_LIB_GSI = $(srcdirpfx)$(rootfromhere)/gsi
76 GAMBCDIR_LIB_GSC = $(srcdirpfx)$(rootfromhere)/gsc
78 BUILD_OBJ_OUTPUT_FILENAME = $*@obj@
79 BUILD_OBJ_CC_OPTIONS = -I$(srcdir) $(DEFS)
80 BUILD_OBJ_INPUT_FILENAMES = $(srcdirpfx)$*.c
82 BUILD_EXE_OUTPUT_FILENAME = $(EXECUTABLE)
83 BUILD_EXE_CC_OPTIONS =
84 BUILD_EXE_LD_OPTIONS_PRELUDE =
85 BUILD_EXE_INPUT_FILENAMES = $(EXECUTABLE_OBJECTS)
86 BUILD_EXE_LD_OPTIONS =
88 all:
90 all-pre:
92 all-post:
94 examples: run
96 run: pthread@exe@
97 @SETDLPATH@ ./pthread@exe@
99 .c@obj@:
100 @BUILD_OBJ@ -D___LIBRARY
102 .scm.c:
103 @SETDLPATH@ $(rootfromhere)/gsc/gsc -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -f -c -check $(srcdirpfx)$*.scm
105 mylib_.c: mylib.c
106 @SETDLPATH@ $(rootfromhere)/gsc/gsc -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -f -link -o mylib_.c mylib.c
108 pthread@obj@: pthread.c mylib.h $(srcdirpfx)$(rootfromhere)/include/gambit.h
110 pthread@exe@: mylib@obj@ mylib_@obj@ pthread@obj@
111 $(MAKE) build_exe \
112 BUILD_EXE_OUTPUT_FILENAME="pthread@exe@" \
113 BUILD_EXE_CC_OPTIONS="" \
114 BUILD_EXE_LD_OPTIONS_PRELUDE="" \
115 BUILD_EXE_INPUT_FILENAMES="mylib@obj@ mylib_@obj@ pthread@obj@" \
116 BUILD_EXE_LD_OPTIONS=""
118 build_exe:
119 @BUILD_EXE@
121 install-pre:
123 install-post: all
125 uninstall-pre:
127 uninstall-post:
129 mostlyclean-pre:
131 mostlyclean-post:
132 rm -f mylib.c mylib_.c mylib@obj@ mylib_@obj@ pthread@obj@ pthread@exe@
134 clean-pre: mostlyclean-pre
136 clean-post: mostlyclean-post
137 rm -f *.gcov *.gcno *.gcda
139 distclean-pre: clean-pre
141 distclean-post: clean-post
143 bootclean-pre: distclean-pre
145 bootclean-post: distclean-post
147 realclean-pre: bootclean-pre
149 realclean-post: bootclean-post
150 rm -f makefile
152 rc-setup-pre:
153 $(RC) add $(RCFILES)
155 rc-setup-post:
157 dist-pre dist-devel-pre:
158 mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
159 chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
160 @echo " Copying distribution files:"
161 @for file in $(DISTFILES); do \
162 echo " $(herefromroot)/$$file"; \
163 ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
164 || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
165 done
167 dist-post dist-devel-post:
169 all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive:
170 @if test -n "$(SUBDIRS)"; then \
171 for subdir in ""$(SUBDIRS); do \
172 target=`echo $@ | sed 's/-recursive//'`; \
173 echo making $$target in $$subdir; \
174 (cd $$subdir && $(MAKE) $$target) || exit 1; \
175 done \
178 all: all-post
180 all-post: all-recursive
182 all-recursive: all-pre
184 install: install-post
186 install-post: install-recursive
188 install-recursive: install-pre
190 uninstall: uninstall-post
192 uninstall-post: uninstall-recursive
194 uninstall-recursive: uninstall-pre
196 mostlyclean: mostlyclean-post
198 mostlyclean-post: mostlyclean-recursive
200 mostlyclean-recursive: mostlyclean-pre
202 clean: clean-post
204 clean-post: clean-recursive
206 clean-recursive: clean-pre
208 distclean: distclean-post
210 distclean-post: distclean-recursive
212 distclean-recursive: distclean-pre
214 bootclean: bootclean-post
216 bootclean-post: bootclean-recursive
218 bootclean-recursive: bootclean-pre
220 realclean: realclean-post
222 realclean-post: realclean-recursive
224 realclean-recursive: realclean-pre
226 rc-setup: rc-setup-post
228 rc-setup-post: rc-setup-recursive
230 rc-setup-recursive: rc-setup-pre
232 dist: dist-post
234 dist-post: dist-recursive
236 dist-recursive: dist-pre
238 dist-devel: dist-devel-post
240 dist-devel-post: dist-devel-recursive
242 dist-devel-recursive: dist-devel-pre
244 makefile: makefile.in $(rootfromhere)/config.status
245 cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
247 # Tell versions [3.59,3.63) of GNU make not to export all variables.
248 # Otherwise a system limit (for SysV at least) may be exceeded.
249 .NOEXPORT: