Commit 3a3bb44f authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

proceeding towards gfortran on fenoglio

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: 2498
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 4fcc763e
# this is <Makefile> # this is <Makefile>
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# $Id: Makefile,v 1.16 2007-12-14 16:40:39 tforb Exp $ # $Id: Makefile,v 1.17 2007-12-17 16:44:22 tforb Exp $
# #
# Copyright (c) 2007 by Thomas Forbriger (BFO Schiltach) # Copyright (c) 2007 by Thomas Forbriger (BFO Schiltach)
# #
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
# REVISIONS and CHANGES # REVISIONS and CHANGES
# 30/01/2007 V1.0 Thomas Forbriger # 30/01/2007 V1.0 Thomas Forbriger
# 07/12/2007 V1.1 default Fortran compiler now is g77 # 07/12/2007 V1.1 default Fortran compiler now is g77
# 17/12/2007 V1.2 moved to gfortran
# #
# ============================================================================ # ============================================================================
# #
...@@ -30,18 +31,16 @@ else ...@@ -30,18 +31,16 @@ else
PGPLOTLIB=$(PGPLOT77LIB) PGPLOTLIB=$(PGPLOT77LIB)
endif endif
CC=gcc
FC=g77
FLAGS += $(MYFLAGS) FLAGS += $(MYFLAGS)
CFLAGS=-O2 $(FLAGS) CFLAGS += -O2 $(FLAGS)
# use STATIC=-static to produce statically linked binaries # use STATIC=-static to produce statically linked binaries
STATIC= STATIC=
CXXFLAGS=-fhonor-std -Wall $(FLAGS) #CXXFLAGS += -fhonor-std -Wall $(FLAGS)
CXXFLAGS=-Wall $(FLAGS) CXXFLAGS += -Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR) $(STATIC) LDFLAGS += -L$(LOCLIBDIR) $(STATIC)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS) CPPFLAGS += -I$(LOCINCLUDEDIR) $(FLAGS)
FCFLAGS=-Wall -ffixed-line-length-0 -fno-backslash $(FLAGS) FFLAGS += -ff2c -Wall -ffixed-line-length-0 -fno-backslash $(FLAGS)
DIRS=-L$(SERVERLIBDIR) -L$(LOCLIBDIR) -I$(SERVERINCLUDEDIR) -I$(LOCINCLUDEDIR) DIRS=-L$(SERVERLIBDIR) -L$(LOCLIBDIR) -I$(SERVERINCLUDEDIR) -I$(LOCINCLUDEDIR)
...@@ -73,7 +72,7 @@ else ...@@ -73,7 +72,7 @@ else
-I${SERVERINCLUDEDIR} -I$(LOCINCLUDEDIR) -I${SERVERINCLUDEDIR} -I$(LOCINCLUDEDIR)
@rm $(<:.f=.c) @rm $(<:.f=.c)
%.o: %.f %.o: %.f
$(FC) -o $@ -c $< $(FCFLAGS) $(FC) -o $@ -c $< $(FFLAGS)
endif endif
ifeq ($(TF_FALLBACK),yes) ifeq ($(TF_FALLBACK),yes)
......
# this is <Makefile> # this is <Makefile>
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# $Id: Makefile,v 2.13 2007-12-14 08:08:21 tforb Exp $ # $Id: Makefile,v 2.14 2007-12-17 16:44:23 tforb Exp $
# #
# Copyright (c) 2007 by Thomas Forbriger (BFO Schiltach) # Copyright (c) 2007 by Thomas Forbriger (BFO Schiltach)
# #
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
# REVISIONS and CHANGES # REVISIONS and CHANGES
# 21/06/2007 V1.0 Thomas Forbriger # 21/06/2007 V1.0 Thomas Forbriger
# 13/12/2007 V1.1 g77 is now the default Fortran compiler # 13/12/2007 V1.1 g77 is now the default Fortran compiler
# 17/12/2007 V1.2 moved to gfortran
# #
# ============================================================================ # ============================================================================
# #
...@@ -70,7 +71,7 @@ edit: flist ...@@ -70,7 +71,7 @@ edit: flist
clean: clean:
-/bin/rm flist -/bin/rm flist
find . \( -name \*.o -o -name \*.bak \) | xargs rm -v find . \( -name \*.o -o -name \*.bak -o -name \*.o77 \) | xargs rm -v
ifeq ($(TF_FALLBACK),yes) ifeq ($(TF_FALLBACK),yes)
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
...@@ -83,11 +84,8 @@ LINLIB=-llapex -lblasex ...@@ -83,11 +84,8 @@ LINLIB=-llapex -lblasex
FLAGS += $(MYFLAGS) FLAGS += $(MYFLAGS)
F2CLIB=-lf2c -lm -L${SERVERLIBDIR} F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
F2CFLAGS=-f -u -Iinclude F2CFLAGS=-f -u -Iinclude
CFLAGS=-O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR} $(FLAGS) CFLAGS += -O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR} $(FLAGS)
FCFLAGS=-Wall -ffixed-line-length-0 -fno-backslash $(FLAGS) FFLAGS += -ff2c -Wall -ffixed-line-length-0 -fno-backslash $(FLAGS)
CC=gcc
FC=g77
REFSUB=refract_readdata.o refract_skipdata.o refract_setdefaults.o \ REFSUB=refract_readdata.o refract_skipdata.o refract_setdefaults.o \
refract_mpc.o refract_setfullrange.o refract_pgframe.o refract_settracevp.o \ refract_mpc.o refract_setfullrange.o refract_pgframe.o refract_settracevp.o \
...@@ -140,7 +138,7 @@ else ...@@ -140,7 +138,7 @@ else
@rm $(notdir $(<:.f=.c)) @rm $(notdir $(<:.f=.c))
%.o: %.f %.o: %.f
$(FC) -o $@ -c $< -O2 $(FCFLAGS) -Iinclude $(FC) -o $@ -c $< -O2 $(FFLAGS) -Iinclude
refract: $(REFOBS) refract: $(REFOBS)
$(FC) -o refract $(REFOBS) \ $(FC) -o refract $(REFOBS) \
......
# this is <Makefile> # this is <Makefile>
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# $Id: Makefile,v 1.48 2007-12-17 14:44:30 tforb Exp $ # $Id: Makefile,v 1.49 2007-12-17 16:44:23 tforb Exp $
# #
# Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach) # Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)
# #
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# REVISIONS and CHANGES # REVISIONS and CHANGES
# 11/07/2005 V1.0 Thomas Forbriger # 11/07/2005 V1.0 Thomas Forbriger
# 07/12/2007 V1.1 default Fortran compiler now is g77 # 07/12/2007 V1.1 default Fortran compiler now is g77
# 17/12/2007 V1.2 moved to gfortran
# #
# ============================================================================ # ============================================================================
# #
...@@ -31,12 +32,11 @@ F2CFLAGS=-f -u ...@@ -31,12 +32,11 @@ F2CFLAGS=-f -u
PGPLOTF2CLIB=-l$(TF_f2c_PGPLOT) $(TF_LINK_PGPLOT) PGPLOTF2CLIB=-l$(TF_f2c_PGPLOT) $(TF_LINK_PGPLOT)
PGPLOT77LIB=-l$(TF_g77_PGPLOT) $(TF_LINK_PGPLOT) PGPLOT77LIB=-l$(TF_g77_PGPLOT) $(TF_LINK_PGPLOT)
FORTRANLIB=$(TF_LINK_FORTRAN)
CC=gcc
FC=g77
FLAGS += $(MYFLAGS) FLAGS += $(MYFLAGS)
CFLAGS=-O2 $(FLAGS) CFLAGS += -O2 $(FLAGS)
FCFLAGS=-O2 -ffixed-line-length-none $(FLAGS) FFLAGS += -ff2c -O2 -ffixed-line-length-none $(FLAGS)
# use STATIC=-static to produce statically linked binaries # use STATIC=-static to produce statically linked binaries
STATIC= STATIC=
...@@ -57,7 +57,7 @@ else ...@@ -57,7 +57,7 @@ else
f2c $(F2CFLAGS) $< f2c $(F2CFLAGS) $<
gcc $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR} gcc $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
@rm $(<:.f=.c) @rm $(<:.f=.c)
%.o: %.f; $(FC) -c -o $@ $< $(FCFLAGS) %.o: %.f; $(FC) -c -o $@ $< $(FFLAGS)
endif endif
all: $(PROGRAMS) all: $(PROGRAMS)
...@@ -103,16 +103,16 @@ phasedsignals hamres siggen smoos dise: %: %.o ...@@ -103,16 +103,16 @@ phasedsignals hamres siggen smoos dise: %: %.o
newprog $@ newprog $@
else else
tsfilt: %: %.o tsfilt: %: %.o
$(FC) $(FCFLAGS) $(LDFLAGS) $< -o $@ -lseife -ltf $(FC) $(FFLAGS) $(LDFLAGS) $< -o $@ -lseife -ltf
/bin/mv -fv $@ $(LOCBINDIR) /bin/mv -fv $@ $(LOCBINDIR)
stufi: %: %.o stufi: %: %.o
$(FC) $(FCFLAGS) $(LDFLAGS) $< -o $@ -lseife -ltf -lsff $(FC) $(FFLAGS) $(LDFLAGS) $< -o $@ -lseife -ltf -lsff
/bin/mv -fv $@ $(LOCBINDIR) /bin/mv -fv $@ $(LOCBINDIR)
susei evelo tesiff teswf rotate coro xyz2uvw detect: %: %.o susei evelo tesiff teswf rotate coro xyz2uvw detect: %: %.o
$(FC) $(FCFLAGS) $(LDFLAGS) $< -o $@ -ltf -lsff $(FC) $(FFLAGS) $(LDFLAGS) $< -o $@ -ltf -lsff
/bin/mv -fv $@ $(LOCBINDIR) /bin/mv -fv $@ $(LOCBINDIR)
phasedsignals hamres siggen smoos dise: %: %.o phasedsignals hamres siggen smoos dise: %: %.o
$(FC) $(FCFLAGS) $(LDFLAGS) $< -o $@ \ $(FC) $(FFLAGS) $(LDFLAGS) $< -o $@ \
-ltf -lsffu -ltime -lsff -lgsl -lm -lgslblas -ltf -lsffu -ltime -lsff -lgsl -lm -lgslblas
/bin/mv -fv $@ $(LOCBINDIR) /bin/mv -fv $@ $(LOCBINDIR)
endif endif
...@@ -122,9 +122,9 @@ foutra: \ ...@@ -122,9 +122,9 @@ foutra: \
$(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -lfourierxx -ldrfftw -ldfftw -lm \ $(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -lfourierxx -ldrfftw -ldfftw -lm \
-lsffxx -ldatreadxx -llinearxx \ -lsffxx -ldatreadxx -llinearxx \
-ltsxx -ltfxx -lsffxx -lgsexx -ltime++ -laff \ -ltsxx -ltfxx -lsffxx -lgsexx -ltime++ -laff \
-llapack -lblas -lcseife -lsffxx -lg2c -lm\ -llapack -lblas -lcseife -lsffxx $(FOTRANLIB) -lm\
-L$(LOCLIBDIR) $(CXXFLAGS) $(FLAGS) $(LDFLAGS) -L$(LOCLIBDIR) $(CXXFLAGS) $(FLAGS) $(LDFLAGS)
newprog $@ /bin/mv -fv $@ $(LOCBINDIR)
teseco resaseda gatherdiff autocorr cross tidofi fredofi sigfit: \ teseco resaseda gatherdiff autocorr cross tidofi fredofi sigfit: \
%: %.o %: %.o
......
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