Commit 43b7041c authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

gfortran

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2918
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent b2ca8e51
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.2 2007-12-14 08:08:20 tforb Exp $
# $Id: Makefile,v 1.3 2009-11-20 07:51:00 tforb Exp $
#
# Copyright (c) 2007 by Thomas Forbriger (BFO Schiltach)
#
......@@ -8,28 +8,46 @@
#
# REVISIONS and CHANGES
# 12/06/2007 V1.0 Thomas Forbriger
# 20/11/2009 V1.1 use gfortran
#
# ============================================================================
#
PROGRAMS=dccal
F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
CC=gcc
CFLAGS=-O2
F2CFLAGS=-f -u
FLAGS=
PGPLOTF2CLIB=-l$(TF_f2c_PGPLOT) $(TF_LINK_PGPLOT)
PGPLOT77LIB=-l$(TF_g77_PGPLOT) $(TF_LINK_PGPLOT)
FORTRANLIB=$(TF_LINK_FORTRAN)
FLAGS += $(MYFLAGS)
CFLAGS += -O2 $(FLAGS)
FFLAGS += -ff2c -Wall -ffixed-line-length-0 $(FLAGS)
# use STATIC=-static to produce statically linked binaries
STATIC=
CXXFLAGS=-fhonor-std -Wall $(FLAGS)
CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
LDFLAGS=-L$(LOCLIBDIR) $(STATIC)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
ifeq ($(TF_FALLBACK),yes)
.f.o:
f2c $(F2CFLAGS) $<
gcc $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
@rm $(<:.f=.c)
all:
%.o77: %.f; $(FC) -c -o $@ $<
else
%.f2c.o: %.f
f2c $(F2CFLAGS) $<
gcc $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
@rm $(<:.f=.c)
%.o: %.f; $(FC) -c -o $@ $< $(FFLAGS)
endif
all: $(PROGRAMS)
.PHONY: clean
clean: ;
......@@ -47,7 +65,7 @@ dccal: \
$(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -lfourier -ldrfftw -ldfftw -lm \
-lsffxx -ldatreadxx -llinearxx \
-ltsxx -ltfxx -lsffxx -lgsexx -ltime++ -laff \
-llapack -lblas -lcseife -lsffxx -lg2c -lm\
-llapack -lblas -lcseife -lsffxx $(TF_LINK_FORTRAN) -lm\
-L$(LOCLIBDIR) $(CXXFLAGS) $(FLAGS)
/bin/mv -fv $@ $(LOCBINDIR)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment