########################################################
#
# Makefile for plantElement's examples
#
# (c) 1996 a.cella (cella@marvin.conecta.it)
# please see the gnu GPL license v.2
#
# feel free to modify the variables to suit your needs
#
########################################################

# where do we have to get the various *.h files?
INCLUDEPATH=../../headers

# please compile with all warnings on... (can comment this)
# please don't use ``-pedantic'' as the compiler barfs out something
# like this:
# ...
# /usr/lib/g++-include/String.h:xxx: warning: ANSI C++ does not permit named return values
# /usr/lib/g++-include/String.h: In function `class String capitalize(const class String &)':
# ...
# but i think it's not my fault... :) well, at least i suppose so...

WARNINGS=-Wall


# optimize at level two (i heard rumors that gcc 2.7.2p sometimes
# goes berserk at levels tree and four... (can comment this)
# USE LEVELS -O3 and -O4 (with -mpentium) AT YOUR OWN RISK!
OPTIMIZE=-O2
#OPTIMIZE=-O4

# suit the code to my machine		(can comment this)
MACHINE=-mpentium
#MACHINE=-m486

#################################################
##
## you shouldn't need to modify these ones...
##
#################################################
CPPFLAGS= -c $(WARNINGS) $(OPTIMIZE) $(MACHINE) -I$(INCLUDEPATH)
LINKEROPT= -liostream -lm  -lg++ -lplant

PGMNAME=../Hexch
OBJECTS=exchanger.o

##################################################
##
## don't modify anything below this line
##
###################################################
all: $(PGMNAME)

$(PGMNAME) : $(OBJECTS)
	@cp fluid-v.0.8.1-Cp.table ..
	gcc -o $(PGMNAME) $(OBJECTS) $(LINKEROPT)

clean:
	@rm $(OBJECTS)

strip:	
	@strip $(PGMNAME)


