# makefile for Tcl/Tk example.

# Copyright (c) 1997-2021 by Marc Feeley, All Rights Reserved.

herefromroot = examples/tcltk
rootfromhere = ../..
SUBDIRS =

PACKAGE_SHORTNAME = gambit
PACKAGE_NAME = Gambit
PACKAGE_VERSION = v4.9.7
PACKAGE_STRING = Gambit v4.9.7
PACKAGE_BUGREPORT = gambit@iro.umontreal.ca
PACKAGE_TARNAME = gambit-v4_9_7



srcdir = .

srcdirpfx = 

C_COMPILER = x86_64-alt-linux-gcc
C_PREPROC = x86_64-alt-linux-gcc -E
FLAGS_OBJ = -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O1    -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -foptimize-sibling-calls -fomit-frame-pointer -fipa-ra -fmove-loop-invariants -fPIC -fno-common -mpc64  
FLAGS_DYN =  -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O1    -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -foptimize-sibling-calls -fomit-frame-pointer -fipa-ra -fmove-loop-invariants -fPIC -fno-common -mpc64    -rdynamic -shared
FLAGS_LIB =  -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O1      -rdynamic -shared -Wl,-soname,$(LIBRARY)$(LIB_MAJOR_VERSION_SUFFIX)
FLAGS_EXE =  -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O1    -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -foptimize-sibling-calls -fomit-frame-pointer -fipa-ra -fmove-loop-invariants -fPIC -fno-common -mpc64     -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -foptimize-sibling-calls -fomit-frame-pointer -fipa-ra -fmove-loop-invariants -fPIC -fno-common -mpc64    -rdynamic
FLAGS_OPT =  -O1 -fexpensive-optimizations -fno-gcse --param max-gcse-memory=400000
FLAGS_OPT_RTS =  -O3
DEFS = -DHAVE_CONFIG_H
LIBS = -lm  

GAMBITLIB_DEFS =  -D___GAMBITDIR="\"/usr\"" -D___GAMBITDIR_BIN="\"/usr/bin\"" -D___GAMBITDIR_INCLUDE="\"/usr/include\"" -D___GAMBITDIR_LIB="\"/usr/lib64\"" -D___GAMBITDIR_DOC="\"/usr/share/doc/gambit-4.9.7\"" -D___GAMBITDIR_INFO="\"/usr/share/info\"" -D___GAMBITDIR_SHARE="\"/usr/share\"" -D___GAMBITDIR_MODULE="\"/usr/lib64/gambit\"" -D___GAMBITDIR_USERLIB="\"\176/.gambit_userlib\"" -D___GAMBITDIR_INSTLIB="\"\176\176userlib\"" -D___SYS_TYPE_CPU="\"x86_64\"" -D___SYS_TYPE_VENDOR="\"alt\"" -D___SYS_TYPE_OS="\"linux-gnu\"" -D___CONFIGURE_COMMAND="\"./configure '--build=x86_64-alt-linux' '--host=x86_64-alt-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-silent-rules' '--runstatedir=/var/run' '--without-included-gettext' '--enable-single-host' '--enable-shared' '--disable-absolute-shared-libs' '--enable-dynamic-clib' '--docdir=/usr/share/doc/gambit-4.9.7' '--enable-moduledir=/usr/lib64/gambit' '--enable-trust-c-tco' 'build_alias=x86_64-alt-linux' 'host_alias=x86_64-alt-linux' 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O1' 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O1'"\" -D___OBJ_EXTENSION="\".o\"" -D___EXE_EXTENSION="\"\"" -D___BAT_EXTENSION="\"\""
LIB_PREFIX = lib
LIB_VERSION_SUFFIX = 
LIB_MAJOR_VERSION_SUFFIX = 

LIB_EXTENSION = .so
GAMBITLIB = gambit
GAMBITGSCLIB = gambitgsc
GAMBITGSILIB = gambitgsi
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
AR = ar
RC = git
GIT = git
HG = hg

prefix = /usr
exec_prefix = /usr
includedir = /usr/include
libdir = /usr/lib64
bindir = /usr/bin
docdir = /usr/share/doc/gambit-4.9.7
infodir = /usr/share/info
emacsdir = ${datadir}/emacs/site-lisp
libexecdir = /usr/lib
datarootdir = ${prefix}/share
datadir = /usr/share
htmldir = ${docdir}
dvidir = ${docdir}
pdfdir = ${docdir}
psdir = ${docdir}
localedir = ${datarootdir}/locale
mandir = /usr/share/man

.SUFFIXES: .scm .c .o .o1

RCFILES = makefile.in README tcltk.scm "tcltk\#.scm" test.scm \
fig16-1.scm fig16-2.scm fig16-3.scm fig16-6.scm fig16-7.scm \
fig16-8.scm fig16-9.scm fig16-10.scm fig16-11.scm fig16-12.scm \
fig16-13.scm fig16-14.scm fig16-15.scm fig16-16.scm fig16-17.scm fig17-9.scm

GENDISTFILES =

DISTFILES = $(RCFILES) $(GENDISTFILES)

all: core

core:

core-pre:

core-post:

examples: test.o1 run

.scm.o1:
	rm -f $*.o*
	LD_LIBRARY_PATH=$(rootfromhere)/lib:$(rootfromhere)/gsi:$(rootfromhere)/gsc:${LD_LIBRARY_PATH} $(rootfromhere)/gsc/gsc -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -warnings -cc-options "" -ld-options "   -ltcl -ltk -lX11" $(srcdirpfx)$*.scm

run: tcltk.o1
	LD_LIBRARY_PATH=$(rootfromhere)/lib:$(rootfromhere)/gsi:$(rootfromhere)/gsc:${LD_LIBRARY_PATH} $(rootfromhere)/gsi/gsi -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include tcltk -e '(load "test") (main)'

bootstrap-pre:

bootstrap-post:

install-pre:

install-post: core

uninstall-pre:

uninstall-post:

select-gen-for-commit-pre:

select-gen-for-commit-post select-gen-for-commit-post-nonrec:

deselect-gen-for-commit-pre:

deselect-gen-for-commit-post deselect-gen-for-commit-post-nonrec:

mostlyclean-pre:

mostlyclean-post mostlyclean-post-nonrec:
	rm -f tcltk.c tcltk.o tcltk.o1 test.c test.o test.o1

clean-pre: mostlyclean-pre

clean-post clean-post-nonrec: mostlyclean-post-nonrec
	rm -f *.gcov *.gcno *.gcda

distclean-pre: clean-pre

distclean-post distclean-post-nonrec: clean-post-nonrec

bootclean-pre: distclean-pre

bootclean-post bootclean-post-nonrec: distclean-post-nonrec

realclean-pre: bootclean-pre

realclean-post realclean-post-nonrec: bootclean-post-nonrec
	rm -f makefile

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

rc-setup-post:

dist-pre dist-devel-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-post:

core-recursive bootstrap-recursive install-recursive uninstall-recursive select-gen-for-commit-recursive deselect-gen-for-commit-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-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

core: core-post

core-post: core-recursive

core-recursive: core-pre

bootstrap: bootstrap-post

bootstrap-post: bootstrap-recursive

bootstrap-recursive: bootstrap-pre

install: install-post

install-post: install-recursive

install-recursive: install-pre

uninstall: uninstall-post

uninstall-post: uninstall-recursive

uninstall-recursive: uninstall-pre

select-gen-for-commit: select-gen-for-commit-post

select-gen-for-commit-post: select-gen-for-commit-recursive

select-gen-for-commit-post-nonrec select-gen-for-commit-recursive: select-gen-for-commit-pre

deselect-gen-for-commit: deselect-gen-for-commit-post

deselect-gen-for-commit-post: deselect-gen-for-commit-recursive

deselect-gen-for-commit-post-nonrec deselect-gen-for-commit-recursive: deselect-gen-for-commit-pre

mostlyclean: mostlyclean-post

mostlyclean-post: mostlyclean-recursive

mostlyclean-post-nonrec mostlyclean-recursive: mostlyclean-pre

clean: clean-post

clean-post: clean-recursive

clean-post-nonrec clean-recursive: clean-pre

distclean: distclean-post

distclean-post: distclean-recursive

distclean-post-nonrec distclean-recursive: distclean-pre

bootclean: bootclean-post

bootclean-post: bootclean-recursive

bootclean-post-nonrec bootclean-recursive: bootclean-pre

realclean: realclean-post

realclean-post: realclean-recursive

realclean-post-nonrec realclean-recursive: realclean-pre

rc-setup: rc-setup-post

rc-setup-post: rc-setup-recursive

rc-setup-recursive: rc-setup-pre

dist: dist-post

dist-post: dist-recursive

dist-recursive: dist-pre

dist-devel: dist-devel-post

dist-devel-post: dist-devel-recursive

dist-devel-recursive: dist-devel-pre

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:
