iphreeqc/doc/examples/Makefile
Scott R Charlton 8cfffff789 added F90ClearAccumulatedLines
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4410 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-05-17 23:44:32 +00:00

91 lines
2.4 KiB
Makefile

CC = gcc
CPPFLAGS = -I../../include
CXX = g++
DEFS = -DNDEBUG=1 -DFC_FUNC\(name,NAME\)=name\ \#\#\ _ -DFC_FUNC_\(name,NAME\)=name\ \#\#\ _ -DFC_MAIN=MAIN__
F77 = gfortran
FC = gfortran
CFLAGS = -g -O2
FFLAGS = -I../../include -g -O2
FCLIBS = -L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1 -L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/../../.. -lgfortranbegin -lgfortran -lm
LIBTOOL = /bin/sh ../../_build/libtool
LDFLAGS =
IPHREEQC_LA = ../../_build/src/libiphreeqc.la
TARGETS = \
AccumulateLine \
CreateIPhreeqc \
GetComponent \
GetDumpString
F90_TARGETS = \
F90CreateIPhreeqc \
F90GetComponent \
F90GetDumpLine \
F90ClearAccumulatedLines
all: $(TARGETS) $(F90_TARGETS)
AccumulateLine: AccumulateLine.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA)
CreateIPhreeqc: CreateIPhreeqc.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA)
GetComponent: GetComponent.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA)
GetDumpString: GetDumpString.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA)
F90AccumulateLine: F90AccumulateLine.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA) $(FCLIBS)
F90CreateIPhreeqc: F90CreateIPhreeqc.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA) $(FCLIBS)
F90GetComponent: F90GetComponent.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA) $(FCLIBS)
F90GetDumpLine: F90GetDumpLine.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA) $(FCLIBS)
F90ClearAccumulatedLines: F90ClearAccumulatedLines.lo $(IPHREEQC_LA)
$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $< $(IPHREEQC_LA) $(FCLIBS)
.SUFFIXES: .c .cxx .f .f90 .lo
.c.lo:
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
.cxx.lo:
$(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
.f.lo:
$(LIBTOOL) --mode=compile $(F77) $(FFLAGS) -c -o $@ $<
.f90.lo:
$(LIBTOOL) --mode=compile $(FC) $(FFLAGS) -c -o $@ $<
LO_FILES = \
AccumulateLine.lo \
CreateIPhreeqc.lo \
DestroyIPhreeqc.lo \
GetComponent.lo \
GetDumpString.lo
F90_LO_FILES = \
F90AccumulateLine.lo \
F90CreateIPhreeqc.lo \
F90DestroyIPhreeqc.lo \
F90GetComponent.lo \
F90GetDumpLine.lo
clean:
$(LIBTOOL) --mode=clean rm -f *~ $(TARGETS) $(F90_TARGETS) $(LO_FILES) $(F90_LO_FILES)