# makefile for pthread example, Time-stamp: <2006-09-29 09:53:43 feeley> # Copyright (C) 1994-2006 by Marc Feeley, All Rights Reserved. herefromroot = examples/pthread rootfromhere = ../.. escrootfromhere = "..\/.." SUBDIRS = PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_SUBDIR = @PACKAGE_SUBDIR@ @SET_MAKE@ srcdir = @srcdir@ VPATH = @srcdir@ srcdirpfx = @srcdirpfx@ C_COMPILER = @C_COMPILER@ C_PREPROC = @C_PREPROC@ FLAGS_OBJ = @FLAGS_OBJ@ FLAGS_DYN = @FLAGS_DYN@ FLAGS_LIB = @FLAGS_LIB@ FLAGS_EXE = @FLAGS_EXE@ DEFS = @DEFS@ LIBS = @LIBS@ GAMBCLIB = @GAMBCLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_LIB = @INSTALL_LIB@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ LN_S = @LN_S@ RANLIB = @RANLIB@ prefix = @prefix@ exec_prefix = @exec_prefix@ includedir = $(prefix)$(PACKAGE_SUBDIR)/include libdir = $(prefix)$(PACKAGE_SUBDIR)/lib bindir = $(prefix)$(PACKAGE_SUBDIR)/bin docdir = $(prefix)$(PACKAGE_SUBDIR)/doc infodir = $(prefix)$(PACKAGE_SUBDIR)/info emacsdir = $(prefix)$(PACKAGE_SUBDIR)/share/emacs/site-lisp .SUFFIXES: .scm .c @obj@ DISTFILES = makefile.in README mylib.scm mylib.h pthread.c all: all-recursive all-local all-local: examples: run run: pthread@exe@ @SETDLPATH@ ./pthread@exe@ .c@obj@: $(C_COMPILER) $(INCLUDES) $(FLAGS_OBJ) -D___LIBRARY -c $(srcdirpfx)$*.c .scm.c: @SETDLPATH@ $(rootfromhere)/gsc/gsc -:=$(srcdirpfx)$(escrootfromhere) -f -c -check $(srcdirpfx)$*.scm mylib_.c: mylib.c @SETDLPATH@ $(rootfromhere)/gsc/gsc -:=$(srcdirpfx)$(escrootfromhere) -f -link -o mylib_.c mylib.c pthread@obj@: pthread.c mylib.h $(srcdirpfx)$(rootfromhere)/include/gambit.h pthread@exe@: mylib@obj@ mylib_@obj@ pthread@obj@ $(MAKE) link EXECUTABLE="pthread@exe@" \ OBJECTS="mylib@obj@ mylib_@obj@ pthread@obj@" \ OBJECTS_PLUS="+mylib@obj@ +mylib_@obj@ +pthread@obj@" \ OBJECTS_COMMA="mylib@obj@,mylib_@obj@,pthread@obj@" INCLUDES = -I$(srcdirpfx)$(rootfromhere)/include -I$(srcdir) link: @LINK@ install-local: all uninstall-local: mostlyclean-local: rm -f mylib.c mylib_.c mylib@obj@ mylib_@obj@ pthread@obj@ pthread@exe@ clean-local: mostlyclean-local distclean-local: clean-local rm -f makefile realclean-local: distclean-local all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive: @if test -n "$(SUBDIRS)"; then \ for subdir in ""$(SUBDIRS); do \ target=`echo $@ | sed 's/-recursive//'`; \ echo making $$target in $$subdir; \ (cd $$subdir && $(MAKE) $$target) || exit 1; \ done \ fi install: install-recursive install-local uninstall: uninstall-recursive uninstall-local mostlyclean: mostlyclean-recursive mostlyclean-local clean: clean-recursive clean-local distclean: distclean-recursive distclean-local realclean: realclean-recursive realclean-local dist: @if test -n "$(SUBDIRS)"; then \ for subdir in ""$(SUBDIRS); do \ echo making $@ in $$subdir; \ mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)/$$subdir; \ chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)/$$subdir; \ (cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \ done \ fi @echo "Copying distribution files" @for file in $(DISTFILES); do \ ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \ || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \ done makefile: makefile.in $(rootfromhere)/config.status cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: