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

migration

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: 2464
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 27d29d60
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.14 2007-11-23 17:21:16 tforb Exp $
# $Id: Makefile,v 1.15 2007-12-07 10:04:43 tforb Exp $
#
# Copyright (c) 2007 by Thomas Forbriger (BFO Schiltach)
#
......@@ -8,30 +8,43 @@
#
# REVISIONS and CHANGES
# 30/01/2007 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=damplo pamo polplot splot stuplo stuploxx susplo
F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot -lX11 -L/usr/X11/lib64
G77FLAGS=-Wall -ffixed-line-length-0 -fno-backslash
PGPLOTLIB77=-lpgplot77 -lpng -lX11 -L/usr/X11/lib64
#PGPLOTLIB=-lf2cpgplot -lX11 -L/usr/X11/lib
#PGPLOTLIB=-lpg -lgrx20
CC=gcc
DIRS=-L$(SERVERLIBDIR) -L$(LOCLIBDIR) -I$(SERVERINCLUDEDIR) -I$(LOCINCLUDEDIR)
F2CFLAGS=-f -u
CFLAGS=-O2
OPTFLAGS=-O2
PGPLOTF2CLIB=-l$(TF_f2c_PGPLOT) $(TF_LINK_PGPLOT)
PGPLOT77LIB=-l$(TF_g77_PGPLOT) $(TF_LINK_PGPLOT)
ifeq ($(TF_FALLBACK),yes)
PGPLOTLIB=$(PGPLOTF2CLIB)
else
PGPLOTLIB=$(PGPLOT77LIB)
endif
CC=gcc
FC=g77
FLAGS += $(MYFLAGS)
CFLAGS=-O2 $(FLAGS)
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)
FCFLAGS=-Wall -ffixed-line-length-0 -fno-backslash $(FLAGS)
DIRS=-L$(SERVERLIBDIR) -L$(LOCLIBDIR) -I$(SERVERINCLUDEDIR) -I$(LOCINCLUDEDIR)
all:
all: $(PROGRAMS)
flist: Makefile $(wildcard *.f *.cc)
echo $^ | tr ' ' '\n' | sort > $@
......@@ -45,15 +58,23 @@ clean: ;
-/bin/rm -vf flist
-/bin/rm *.o *.bak *.o77
ifeq ($(TF_FALLBACK),yes)
%.o: %.f
f2c $(F2CFLAGS) $<
$(CC) $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I$(LOCINCLUDEDIR)
@rm $(<:.f=.c)
%.o77: %.f
$(FC) -o $@ -c $< $(OPTFLAGS) $(G77FLAGS)
else
%.f2c.o: %.f
f2c $(F2CFLAGS) $<
$(CC) $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I$(LOCINCLUDEDIR)
@rm $(<:.f=.c)
%.o: %.f
$(FC) -o $@ -c $< $(FCFLAGS)
endif
ifeq ($(TF_FALLBACK),yes)
susplo: susplo.o
$(CC) $^ -o $@ -ltf -lsff $(PGPLOTLIB) $(F2CLIB) -L$(LOCLIBDIR)
newprog $@
......@@ -98,6 +119,14 @@ damplo: damplo.o
$(CC) damplo.o -o damplo -lsffu -ltime -lsff -ltf\
$(PGPLOTLIB) $(F2CLIB) -L$(LOCLIBDIR)
newprog damplo
else
stuplo splot susplo: %: %.o
$(FC) $< -o $@ -ltf -lsff $(PGPLOTLIB) -L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
pamo damplo: %: %.o
$(FC) $< -o $@ -ltf -lsffu -ltime -lsff $(PGPLOTLIB) -L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
endif
stuploxx: %: %.o
$(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -lpgplotCpp -lcpgplot -lpgplot77 \
......
......@@ -6,7 +6,7 @@ c V1.0 09/12/96 Thomas Forbriger
c
c----------------------------------------------------------------------
character*70 version
parameter(version='POLPLOT V1.0 particle motion'
parameter(version='POLPLOT V1.0 particle motion')
c datasets
integer maxsamples, maxtraces
parameter(maxsamples=2000000, maxtraces=4)
......@@ -14,7 +14,8 @@ c datasets
integer idata(maxsamples)
equivalence (fdata,idata)
integer firstsample(maxtraces)
real xmin(maxtraces), xmax(maxtraces), ymin(maxtraces), ymax(maxtraces)
real xmin(maxtraces), xmax(maxtraces)
real ymin(maxtraces), ymax(maxtraces)
c commandline
integer maxopt, lastarg, iargc
parameter(maxopt=4)
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.45 2007-12-07 09:49:34 tforb Exp $
# $Id: Makefile,v 1.46 2007-12-07 10:04:49 tforb Exp $
#
# Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)
#
......@@ -27,9 +27,10 @@ PROGRAMS=tsfilt stufi rotate coro xyz2uvw detect susei evelo tesiff teswf \
autocorr cross tidofi fredofi sigfit noisymize
F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
F2CFLAGS=-f -u
PGPLOTF2CLIB=-l$(TF_f2c_PGPLOT) $(TF_LINK_PGPLOT)
PGPLOT77LIB=-l$(TF_g77_PGPLOT) $(TF_LINK_PGPLOT)
F2CFLAGS=-f -u
CC=gcc
FC=g77
......
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