# makefile for Gambit-C bin directory.

# Copyright (C) 1994-2006 by Marc Feeley, All Rights Reserved.

herefromroot = bin
rootfromhere = ..
SUBDIRS =

PACKAGE_SHORTNAME = gambc
PACKAGE_NAME = Gambit-C
PACKAGE_VERSION = 4.0b20
PACKAGE_STRING = Gambit-C 4.0b20
PACKAGE_BUGREPORT = gambit@iro.umontreal.ca
PACKAGE_TARNAME = gambc-4.0b20
PACKAGE_SUBDIR = 



srcdir = .

srcdirpfx = 

C_COMPILER = cc
C_PREPROC = cc -E
FLAGS_OBJ = -fno-common -O1
FLAGS_DYN =  -O1 -shared
FLAGS_LIB =  -shared
FLAGS_EXE = 
DEFS = -DHAVE_CONFIG_H
LIBS = 

GAMBCLIB = libgambc.a
INSTALL = $(rootfromhere)/install-sh -c
INSTALL_DATA = $(rootfromhere)/install-sh -c -m 644
INSTALL_LIB = $(rootfromhere)/install-sh -c -m 644
INSTALL_PROGRAM = $(rootfromhere)/install-sh -c -m 755
LN_S = ln -s
RANLIB = ranlib

prefix = 
exec_prefix = ${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:

DISTFILES = makefile.in

all: all-recursive all-local

all-local: gsc-cc-o six gsi-script gsc-script six-script scheme-srfi-0 scheme-r5rs scheme-r4rs scheme-ieee-1178-1990

gsc-cc-o: makefile
	rm -f gsc-cc-o
	if test "" = ""; then \
	  echo "#! /bin/sh" > gsc-cc-o; \
	  echo "GSC_CC_O_ARG1=\$$1" >> gsc-cc-o; \
	  echo "shift" >> gsc-cc-o; \
	  echo "GSC_CC_O_ARG2=\$$1" >> gsc-cc-o; \
	  echo "shift" >> gsc-cc-o; \
	  echo "GSC_CC_O_ARG3=\$$1" >> gsc-cc-o; \
	  echo "shift" >> gsc-cc-o; \
	  echo "cc  -O1 -shared -I\$${GSC_CC_O_ARG1}include -D___DYNAMIC -o \$${GSC_CC_O_ARG2} \$$* \$${GSC_CC_O_ARG3}" >> gsc-cc-o; \
	  chmod +x gsc-cc-o; \
	else \
	  echo "@set GSC_CC_O_ARG1=%1" > gsc-cc-o; \
	  echo "@shift" >> gsc-cc-o; \
	  echo "@set GSC_CC_O_ARG2=%1" >> gsc-cc-o; \
	  echo "@shift" >> gsc-cc-o; \
	  echo "@set GSC_CC_O_ARG3=%1" >> gsc-cc-o; \
	  echo "@shift" >> gsc-cc-o; \
	  echo "@set GSC_CC_O_REST=%1 %2 %3 %4 %5 %6 %7 %8 %9" >> gsc-cc-o; \
	  echo "@ cc  -O1 -shared -I\$${GSC_CC_O_ARG1}include -D___DYNAMIC -o \$${GSC_CC_O_ARG2} \$$* \$${GSC_CC_O_ARG3}" >> gsc-cc-o; \
	fi

six: makefile
	rm -f six six.lnk
	if test "" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/gsi six; \
	else \
	  cp $(rootfromhere)/gsi/gsi six; \
	fi

gsi-script: makefile
	rm -f gsi-script gsi-script.lnk
	if test "" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/gsi gsi-script; \
	else \
	  echo "@gsi %*" > gsi-script; \
	fi

gsc-script: makefile
	rm -f gsc-script gsc-script.lnk
	if test "" = ""; then \
	  $(LN_S) $(rootfromhere)/gsc/gsc gsc-script; \
	else \
	  echo "@gsc %*" > gsc-script; \
	fi

six-script: makefile
	rm -f six-script six-script.lnk
	if test "" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/gsi six-script; \
	else \
	  echo "@gsi %*" > six-script; \
	fi

scheme-srfi-0: makefile
	rm -f scheme-srfi-0 scheme-srfi-0.lnk
	if test "" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/gsi scheme-srfi-0; \
	else \
	  echo "@gsi %*" > scheme-srfi-0; \
	fi

scheme-r5rs: makefile
	rm -f scheme-r5rs scheme-r5rs.lnk
	if test "" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/gsi scheme-r5rs; \
	else \
	  echo "@gsi %*" > scheme-r5rs; \
	fi

scheme-r4rs: makefile
	rm -f scheme-r4rs scheme-r4rs.lnk
	if test "" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/gsi scheme-r4rs; \
	else \
	  echo "@gsi %*" > scheme-r4rs; \
	fi

scheme-ieee-1178-1990: makefile
	rm -f scheme-ieee-1178-1990 scheme-ieee-1178-1990.lnk
	if test "" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/gsi scheme-ieee-1178-1990; \
	else \
	  echo "@gsi %*" > scheme-ieee-1178-1990; \
	fi

install-local: all
	$(srcdirpfx)$(rootfromhere)/mkidirs $(bindir)
	rm -f $(bindir)/gsc-cc-o \
	  $(bindir)/six $(bindir)/six.lnk \
	  $(bindir)/gsi-script $(bindir)/gsi-script.lnk \
	  $(bindir)/gsc-script $(bindir)/gsc-script.lnk \
	  $(bindir)/six-script $(bindir)/six-script.lnk \
	  $(bindir)/scheme-srfi-0 $(bindir)/scheme-srfi-0.lnk \
	  $(bindir)/scheme-r5rs $(bindir)/scheme-r5rs.lnk \
	  $(bindir)/scheme-r4rs $(bindir)/scheme-r4rs.lnk \
	  $(bindir)/scheme-ieee-1178-1990 $(bindir)/scheme-ieee-1178-1990.lnk
	$(INSTALL_PROGRAM) gsc-cc-o $(bindir)/gsc-cc-o
	if test "" = ""; then \
	  (cd $(bindir) && $(LN_S) gsi six); \
	  (cd $(bindir) && $(LN_S) gsi gsi-script); \
	  (cd $(bindir) && $(LN_S) gsi gsc-script); \
	  (cd $(bindir) && $(LN_S) gsi six-script); \
	  (cd $(bindir) && $(LN_S) gsi scheme-srfi-0); \
	  (cd $(bindir) && $(LN_S) gsi scheme-r5rs); \
	  (cd $(bindir) && $(LN_S) gsi scheme-r4rs); \
	  (cd $(bindir) && $(LN_S) gsi scheme-ieee-1178-1990); \
	else \
	  $(INSTALL_PROGRAM) six $(bindir)/six; \
	  $(INSTALL_PROGRAM) gsi-script $(bindir)/gsi-script; \
	  $(INSTALL_PROGRAM) gsc-script $(bindir)/gsc-script; \
	  $(INSTALL_PROGRAM) six-script $(bindir)/six-script; \
	  $(INSTALL_PROGRAM) scheme-srfi-0 $(bindir)/scheme-srfi-0; \
	  $(INSTALL_PROGRAM) scheme-r5rs $(bindir)/scheme-r5rs; \
	  $(INSTALL_PROGRAM) scheme-r4rs $(bindir)/scheme-r4rs; \
	  $(INSTALL_PROGRAM) scheme-ieee-1178-1990 $(bindir)/scheme-ieee-1178-1990; \
	fi

uninstall-local:
	rm -f $(bindir)/gsc-cc-o \
	  $(bindir)/six $(bindir)/six.lnk \
	  $(bindir)/gsi-script $(bindir)/gsi-script.lnk \
	  $(bindir)/gsc-script $(bindir)/gsc-script.lnk \
	  $(bindir)/six-script $(bindir)/six-script.lnk \
	  $(bindir)/scheme-srfi-0 $(bindir)/scheme-srfi-0.lnk \
	  $(bindir)/scheme-r5rs $(bindir)/scheme-r5rs.lnk \
	  $(bindir)/scheme-r4rs $(bindir)/scheme-r4rs.lnk \
	  $(bindir)/scheme-ieee-1178-1990 $(bindir)/scheme-ieee-1178-1990.lnk

mostlyclean-local:
	rm -f gsc-cc-o \
	  six six.lnk \
	  gsi-script gsi-script.lnk \
	  gsc-script gsc-script.lnk \
	  six-script six-script.lnk \
	  scheme-srfi-0 scheme-srfi-0.lnk \
	  scheme-r5rs scheme-r5rs.lnk \
	  scheme-r4rs scheme-r4rs.lnk \
	  scheme-ieee-1178-1990 scheme-ieee-1178-1990.lnk

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:


syntax highlighted by Code2HTML, v. 0.9.1