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
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@
65 .SUFFIXES
: .scm .c @obj@
67 RCFILES
= makefile.in README mylib.scm mylib.h pthread.c
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
=
97 @SETDLPATH@ .
/pthread@exe@
100 @BUILD_OBJ@
-D___LIBRARY
103 @SETDLPATH@
$(rootfromhere
)/gsc
/gsc
-:~~bin
=$(srcdirpfx
)$(rootfromhere
)/bin
,~~lib
=$(srcdirpfx
)$(rootfromhere
)/lib
,~~
include=$(srcdirpfx
)$(rootfromhere
)/include -f
-c
-check $(srcdirpfx
)$*.scm
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@
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
=""
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
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
); \
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; \
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
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
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.