# Generated automatically from Makefile.in by configure.
# -*-makefile-*-
# <!!----------------------------------------------------------------------> 
# <!! Copyright (C) 1999 Dietmar Kuehl, Claas Solutions GmbH > 
# <!!> 
# <!! Permission to use, copy, modify, distribute and sell this > 
# <!! software for any purpose is hereby granted without fee, provided > 
# <!! that the above copyright notice appears in all copies and that > 
# <!! both that copyright notice and this permission notice appear in > 
# <!! supporting documentation. Dietmar Kuehl and Claas Solutions make no > 
# <!! representations about the suitability of this software for any > 
# <!! purpose. It is provided "as is" without express or implied warranty. > 
# <!!----------------------------------------------------------------------> 

# Author: Dietmar Kuehl dietmar.kuehl@claas-solutions.de
# Title:  The input file for the Makefile generation

TOOL = boost

prefix      = /usr/local
exec_prefix = ${prefix}
bindir      = ${exec_prefix}/bin

RUNTEST = runtest
RUNTESTFLAGS =
FLAGS_TO_PASS =



CXX      = c++
CC       = $(CXX)
CPPFLAGS = 
CXXFLAGS = -g -O2 -I..
LDFLAGS  =  -L..
LIBS     = 
LDLIBS   = $(LIBS)

srcdir = .

default: tst.o tst
all:	$(TOOL)_version

tst: ../libboost.a

$(TOOL)_version: Makefile
	@echo 'Making a trivial "version" file...'
	@-$(RM) $(TOOL)_version
	@touch $(TOOL)_version
	@echo "#!/bin/sh" >> $(TOOL)_version
	@echo 'echo $(TOOL) Version 0.0' >> $(TOOL)_version
	@chmod a+x $(TOOL)_version

check:  all site.exp
	$(RUNTEST) $(RUNTESTFLAGS) $(FLAGS_TO_PASS) --tool $(TOOL) --srcdir $(srcdir)

site.exp: Makefile
	@echo "Making a new config file..."
	-@rm -f ./tmp0
	@touch site.exp
	-@mv site.exp site.bak
	@echo "## these variables are automatically generated by make ##" > ./tmp0
	@echo "# Do not edit here. If you whish to override these values" >> ./tmp0
	@echo "# add them to the last section" >> ./tmp0
	@echo "set tool $(TOOL)" >> ./tmp0
	@echo "set srcdir $(src_dir)" >> ./tmp0
	@echo "set objdir `pwd`" >> ./tmp0
	@echo "set CXX $(CXX)" >> ./tmp0
	@echo "set CPPFLAGS \"$(CPPFLAGS)\"" >> ./tmp0
	@echo "set CXXFLAGS \"$(CXXFLAGS)\"" >> ./tmp0
	@echo "set LDFLAGS \"$(LDFLAGS)\"" >> ./tmp0
	@echo "set LIBS \"$(LIBS)\"" >> ./tmp0
	@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
	@cat ./tmp0 > site.exp
	@sed < site.bak -e '1,/^## All variables above.*##/d' >> site.exp
	@rm -f ./tmp0

# dummy targets:
install:
depend:

# clean up targets:
clean:
	$(RM) *~ core *.info*
	$(RM) lt*.cc bug
	$(RM) mkerr olderr $(TOOL).log $(TOOL).sum
	$(RM) site.bak

distclean: clean
	$(RM) site.exp $(TOOL)_version
	$(RM) Makefile config.cache config.log config.status
