# makefile for GUIDE library.

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

herefromroot = lib/guide
rootfromhere = ../..
SUBDIRS = images

PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_TARNAME = @PACKAGE_TARNAME@

@SET_MAKE@

srcdir = @srcdir@
VPATH = @srcdir@
srcdirpfx = @srcdirpfx@

C_COMPILER = @C_COMPILER_MF@
C_PREPROC = @C_PREPROC_MF@
FLAGS_OBJ = @FLAGS_OBJ_MF@
FLAGS_DYN = @FLAGS_DYN_MF@
FLAGS_LIB = @FLAGS_LIB_MF@
FLAGS_EXE = @FLAGS_EXE_MF@
DEFS = @DEFS@
LIBS = @LIBS@

GAMBCLIB_DEFS = @GAMBCLIB_DEFS_MF@
LIB_PREFIX = @LIB_PREFIX@
LIB_VERSION_SUFFIX = @LIB_VERSION_SUFFIX@
LIB_MAJOR_VERSION_SUFFIX = @LIB_MAJOR_VERSION_SUFFIX@

LIB_EXTENSION = @LIB_EXTENSION@
GAMBCLIB = @GAMBCLIB@
GAMBCGSCLIB = @GAMBCGSCLIB@
GAMBCGSILIB = @GAMBCGSILIB@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_LIB = @INSTALL_LIB@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LN_S = @LN_S@
RANLIB = @RANLIB@
AR = @AR@
RC = @RC@
GIT = @GIT@
HG = @HG@

prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
bindir = @bindir@
docdir = @docdir@
infodir = @infodir@
emacsdir = @emacsdir@
libexecdir = @libexecdir@
datarootdir = @datarootdir@
datadir = @datadir@
htmldir = @htmldir@
dvidir = @dvidir@
pdfdir = @pdfdir@
psdir = @psdir@
localedir = @localedir@
mandir = @mandir@

GAMBCDIR_INCLUDE = $(rootfromhere)/include
GAMBCDIR_LIB = $(rootfromhere)/lib
GAMBCDIR_LIB_GSI = $(rootfromhere)/gsi
GAMBCDIR_LIB_GSC = $(rootfromhere)/gsc

BUILD_OBJ_OUTPUT_FILENAME = $*@obj@
BUILD_OBJ_CC_OPTIONS =  -I$(srcdir) $(DEFS) $(GAMBCLIB_DEFS) -D___PRIMAL
BUILD_OBJ_INPUT_FILENAMES = $(srcdirpfx)$*.c

.SUFFIXES:
.SUFFIXES: .scm .c .cpp .in @obj@

.c@obj@:
	@BUILD_OBJ@ -D___LIBRARY

.scm.c:
	@SETDLPATHBOOT@ $(rootfromhere)/gsc-boot -:=$(srcdirpfx)$(rootfromhere) -f -warnings -c -check $(srcdirpfx)$*.scm

NORMAL_C =
NORMAL_CPP = guideuicodeformat.cpp guideuirepl.cpp guideuihighlighter.cpp guideuihighlighterscheme.cpp guideuischeme.cpp guideuiconsoleinfo.cpp guideuitextedit.cpp guideuicont.cpp guideuienv.cpp guideuiinspector.cpp guide.cpp
NORMAL_H = guideuicodeformat.h guideuirepl.h guideuitableitem.h guideuihighlighter.h guideuihighlighterscheme.h guideuischeme.h guideuiconsoleinfo.h guideuitextedit.h guideuicont.h guideuienv.h guideuiinspector.h _guide.h guide.h
NORMAL_UI = guideuimainwindow.ui guideuifileeditor.ui guideuiformatchooser.ui guideuisearchdialog.ui guideuiabout.ui
NORMAL_O = guideuicodeformat@obj@ guideuirepl@obj@ guideuihighlighter@obj@ guideuihighlighterscheme@obj@ guideuischeme@obj@ guideuiconsoleinfo@obj@ guideuitextedit@obj@ guideuicont@obj@ guideuienv@obj@ guideuiinspector@obj@ guide@obj@
NORMAL_O_PLUS = +guideuicodeformat@obj@ +guideuirepl@obj@ +guideuihighlighter@obj@ +guideuihighlighterscheme@obj@ +guideuischeme@obj@ +guideuiconsoleinfo@obj@ +guideuitextedit@obj@ +guideuicont@obj@ +guideuienv@obj@ +guideuiinspector@obj@ +guide@obj@
NORMAL_O_COMMA = guideuicodeformat@obj@,guideuirepl@obj@,guideuihighlighter@obj@,guideuihighlighterscheme@obj@,guideuischeme@obj@,guideuiconsoleinfo@obj@,guideuitextedit@obj@,guideuicont@obj@,guideuienv@obj@,guideuiinspector@obj@,guide@obj@
NORMAL_SOURCES = $(NORMAL_C) $(NORMAL_CPP) $(NORMAL_H) $(NORMAL_UI)

HEADERS_SCM = "_guide\#.scm"
MODULES = _guide
MODULES_SCM = _guide.scm
MODULES_C = _guide.c
MODULES_O = _guide@obj@
MODULES_O_PLUS = +_guide@obj@
MODULES_O_COMMA = _guide@obj@

OBJECTS = $(NORMAL_O) $(MODULES_O)
OBJECTS_PLUS = $(NORMAL_O_PLUS) $(MODULES_O_PLUS)
OBJECTS_COMMA = $(NORMAL_O_COMMA),$(MODULES_O_COMMA)

RCFILES = makefile.in guidepro.in $(MODULES_SCM) $(HEADERS_SCM) \
$(NORMAL_SOURCES)

GENDISTFILES = $(MODULES_C)

DISTFILES = $(RCFILES) $(GENDISTFILES)

all:

all-pre:

all-post: guidemak $(MODULES_O)
	$(MAKE) -f guidemak $(MDEFINES)

$(MODULES_C): $(srcdirpfx)$(rootfromhere)/lib/header.scm

$(MODULES_O): $(srcdirpfx)$(rootfromhere)/include/gambit.h

bootstrap-pre:

bootstrap-post:

install-pre:

install-post: all

uninstall-pre:

uninstall-post:

select-gen-for-commit-pre:

select-gen-for-commit-post:
	# $(RC) update-index --no-assume-unchanged $(MODULES_C)

deselect-gen-for-commit-pre:

deselect-gen-for-commit-post:
	# $(RC) update-index --assume-unchanged $(MODULES_C)

mostlyclean-pre:

mostlyclean-post:
	rm -f $(OBJECTS)

clean-pre: mostlyclean-pre

clean-post: mostlyclean-post
	rm -f *.da *.bb *.bbg *.gcov

distclean-pre: clean-pre

distclean-post: clean-post

bootclean-pre: distclean-pre

bootclean-post: distclean-post
	# rm -f $(MODULES_C)

realclean-pre: bootclean-pre

realclean-post: bootclean-post
	rm -f guidemak guidepro 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:

all-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

#all: all-post

#all-post: all-recursive

#all-recursive: all-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-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-recursive: deselect-gen-for-commit-pre

mostlyclean: mostlyclean-post

mostlyclean-post: mostlyclean-recursive

mostlyclean-recursive: mostlyclean-pre

clean: clean-post

clean-post: clean-recursive

clean-recursive: clean-pre

distclean: distclean-post

distclean-post: distclean-recursive

distclean-recursive: distclean-pre

bootclean: bootclean-post

bootclean-post: bootclean-recursive

bootclean-recursive: bootclean-pre

realclean: realclean-post

realclean-post: realclean-recursive

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

guidepro: guidepro.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

guidemak: guidepro
	qmake -o guidemak guidepro

# 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:
