Commit 27d29d60 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

proceeding

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: 2463
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 0fb7c06c
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.44 2007-11-23 17:21:17 tforb Exp $
# $Id: Makefile,v 1.45 2007-12-07 09:49:34 tforb Exp $
#
# Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)
#
......@@ -14,32 +14,51 @@
#
# REVISIONS and CHANGES
# 11/07/2005 V1.0 Thomas Forbriger
# 07/12/2007 V1.1 default Fortran compiler now is g77
#
# ============================================================================
#
# NOTICE: fallback solution (f2c is default) can be activated by the
# environment variable TF_FALLBACK
# This option will disappear somewhere in the future!
PROGRAMS=tsfilt stufi rotate coro xyz2uvw detect susei evelo tesiff teswf \
phasedsignals hamres siggen smoos dise foutra teseco resaseda gatherdiff \
autocorr cross tidofi fredofi sigfit noisymize
F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
CC=gcc
CFLAGS=-O2
PGPLOTF2CLIB=-l$(TF_f2c_PGPLOT) $(TF_LINK_PGPLOT)
PGPLOT77LIB=-l$(TF_g77_PGPLOT) $(TF_LINK_PGPLOT)
F2CFLAGS=-f -u
CC=gcc
FC=g77
FLAGS += $(MYFLAGS)
CFLAGS=-O2 $(FLAGS)
# use STATIC=-static to produce statically linked binaries
STATIC=
FLAGS=
CXXFLAGS=-fhonor-std -Wall $(FLAGS)
CXXFLAGS=-Wall $(FLAGS)
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)
%.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 $@ $<
endif
all:
all: $(PROGRAMS)
.PHONY: clean
clean: ;
......@@ -52,6 +71,7 @@ flist: $(wildcard *.f *.inc Makefile *.cc)
.PHONY: edit
edit: flist; vim $<
ifeq ($(TF_FALLBACK),yes)
tsfilt: tsfilt.o
$(CC) $(CFLAGS) $< -o $@ -lseife -ltf \
$(F2CLIB) -L$(LOCLIBDIR) -static
......@@ -79,6 +99,21 @@ phasedsignals hamres siggen smoos dise: %: %.o
-lgslcblas $(F2CLIB) \
-L$(LOCLIBDIR)
newprog $@
else
tsfilt: %: %.o
$(FC) $(FCFLAGS) $(LDFLAGS) $< -o $@ -lseife -ltf
/bin/mv -fv $@ $(LOCBINDIR)
stufi: %: %.o
$(FC) $(FCFLAGS) $(LDFLAGS) $< -o $@ -lseife -ltf -lsff
/bin/mv -fv $@ $(LOCBINDIR)
susei evelo tesiff teswf rotate coro xyz2uvw detect: %: %.o
$(FC) $(FCFLAGS) $(LDFLAGS) $< -o $@ -ltf -lsff
/bin/mv -fv $@ $(LOCBINDIR)
phasedsignals hamres siggen smoos dise: %: %.o
$(FC) $(FCFLAGS) $(LDFLAGS) $< -o $@ \
-ltf -lsffu -ltime -lsff -lgsl -lm -lgslblas
/bin/mv -fv $@ $(LOCBINDIR)
endif
foutra: \
%: %.o
......
Markdown is supported
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