# makefile for web-repl example, Time-stamp: <2007-07-25 19:52:29 feeley>

# Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved.

herefromroot = examples/web-repl
rootfromhere = ../..
SUBDIRS =

PACKAGE_SHORTNAME = gambc
PACKAGE_NAME = Gambit-C
PACKAGE_VERSION = v4.3.2
PACKAGE_STRING = Gambit-C v4.3.2
PACKAGE_BUGREPORT = gambit@iro.umontreal.ca
PACKAGE_TARNAME = gambc-v4_3_2
PACKAGE_SUBDIR = /v4.3.2



srcdir = .

srcdirpfx = 

C_COMPILER = gcc
C_PREPROC = gcc -E
FLAGS_OBJ = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mminimal-toc -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fmodulo-sched -freschedule-modulo-scheduled-loops -fomit-frame-pointer -fPIC -fno-common
FLAGS_DYN =  -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fmodulo-sched -freschedule-modulo-scheduled-loops -fomit-frame-pointer -fPIC -fno-common -rdynamic -shared
FLAGS_LIB =  -rdynamic -shared
FLAGS_EXE =  -rdynamic
DEFS = -DHAVE_CONFIG_H
LIBS = -lutil -ldl -lm 

GAMBCLIB = libgambc.a
GAMBCCOMPLIB = @GAMBCCOMPLIB@
INSTALL = install -p
INSTALL_DATA = install -m 644 -p
INSTALL_LIB = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
LN_S = ln -s
RANLIB = ranlib
RC = git
GIT = git
HG = hg

prefix = /usr/lib64/gambit-c
exec_prefix = /usr
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 .o .o1

RCFILES = makefile.in README web-repl.scm Repl.java index.html

GENDISTFILES =

DISTFILES = $(RCFILES) $(GENDISTFILES)

all: all-pre all-recursive all-post

all-pre:

all-post:

examples: web-repl.o1 run

.scm.o1:
	rm -f $*.o*
	 $(rootfromhere)/gsc/gsc -:=$(srcdirpfx)$(rootfromhere) $(srcdirpfx)$*.scm

run:
	 $(rootfromhere)/gsi/gsi web-repl &
	javac Repl.java
	java Repl

install-pre:

install-post: all

uninstall-pre:

uninstall-post:

mostlyclean-pre:

mostlyclean-post:
	rm -f web-repl.c web-repl.o web-repl.o1

clean-pre: mostlyclean-pre

clean-post: mostlyclean-post

distclean-pre: clean-pre

distclean-post: clean-post
	rm -f makefile

realclean-pre: distclean-pre

realclean-post: distclean-post

rc-setup-pre:
	$(RC) add $(RCFILES)

rc-setup-post:

dist-pre:
	mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
	chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
	@echo "  Copying distribution files:"
	@for file in $(DISTFILES); do \
	  echo "    $(herefromroot)/$$file"; \
	  ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
	    || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
	done

dist-post:

dist-devel-pre: dist-pre

dist-devel-post: dist-post

all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-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-pre install-recursive install-post

uninstall: uninstall-pre uninstall-recursive uninstall-post

mostlyclean: mostlyclean-pre mostlyclean-recursive mostlyclean-post

clean: clean-pre clean-recursive clean-post

distclean: distclean-pre distclean-recursive distclean-post

realclean: realclean-pre realclean-recursive realclean-post

rc-setup: rc-setup-pre rc-setup-recursive rc-setup-post

dist: dist-pre dist-recursive dist-post

dist-devel: dist-devel-pre dist-devel-recursive dist-devel-post

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:
