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

Merge branch 'reflib': librefread subdirectory prepared for separate export

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: 5498
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parents b4e7c5c1 d7db3e03
......@@ -52,7 +52,7 @@ Joachim Ungerer. Currently supported binary executables:
============================================================================
nstallation
Installation
------------
For compilation instructions see README.1st in the root directory of the
......
this is <COPYING>
============================================================================
Copying and Copyright information for librefread
------------------------------------------------
$Id: $
============================================================================
Copyright (c) 1997, 2007, 2008, 2013 by Thomas Forbriger
----
These program codes are free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
These program codes are distributed in the hope that they will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
----
----- END OF COPYING -----
......@@ -37,11 +37,26 @@ $(LOCLIBDIR)/%: install-include %
mkdir -pv $(LOCLIBDIR)
/bin/mv -fv $(word 2,$^) $(LOCLIBDIR)
#----------------------------------------------------------------------
# standard edit targets
flist: Makefile $(wildcard *.f *.c) COPYING README
echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
edit: flist; vim $<
clean:
-/bin/rm *.o *.bak *.o77 *.f2c.o
#----------------------------------------------------------------------
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
$(call CHECKVARS,LOCINCLUDEDIR LOCLIBDIR LOCBINDIR)
#----------------------------------------------------------------------
FLAGS += $(MYFLAGS)
CFLAGS += -O2 $(FLAGS)
FFLAGS += -ff2c -Wall -ffixed-line-length-none $(FLAGS) \
......@@ -49,37 +64,23 @@ FFLAGS += -ff2c -Wall -ffixed-line-length-none $(FLAGS) \
# use STATIC=-static to produce statically linked binaries
STATIC=
CXXFLAGS=-fhonor-std -Wall $(FLAGS)
CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR) $(STATIC)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
%.o: %.f; $(FC) -c -o $@ $< $(FFLAGS)
#----------------------------------------------------------------------
# install-include is provided for compatibility with other Makefile
# but is not used here
.PHONY: install-include
install-include:
#----------------------------------------------------------------------
REAMPOBS=refmet_basinf.o refmet_rmod.o refmet_rmain.o refmet_rsource.o refmet_rrcv.o
REFMETOBS=refmet_output.o refmet_preptrace.o refmet_wtrace.o lmath.o\
refmet_basinf.o refmet_rmain.o refmet_rmod.o refmet_rsource.o refmet_rrcv.o\
refmet_intro.o refmet_comments.o
REFMUOBS=ref2mu.o
REFMATOBS=refmat_basinf.o refmet_rmain.o refmet_rmod.o\
refmet_rsource.o refmet_intro.o refmet_comments.o
RESUSOBS=refmet_output.o refmet_preptrace.o refmet_wtrace.o lmath.o\
resus_basinf.o refmet_rmain.o refmet_rsource.o refmet_rrcv.o\
refmet_intro.o refmet_comments.o
GRESYSUB=gresy.o refmet_rrcv.o
LIBREFMETOBS=refmet_basinf.o refmet_rmain.o refmet_rmod.o refmet_rsource.o\
refmet_rrcv.o\
refmet_intro.o refmet_comments.o
.c.o:
$(CC) $(CFLAGS) $< -c -I${SERVERINCLUDEDIR}
clean:
-/bin/rm *.o *.bak *.o77 *.f2c.o
.PHONY: install-include
install-include:
librefread.a: $(LIBREFMETOBS)
ar rcv librefread.a $(LIBREFMETOBS)
ranlib librefread.a
......
this is <README>
============================================================================
Reflectivity method by Joahim Ungerer (1990) - utility library
--------------------------------------------------------------
$Id: $
============================================================================
This subdirectory contains utility functions for the program refmet
(Reflectivity method implemented by Joahim Ungerer). Some of these functions
(primarily file i/o functions) are also by other programs. They are provided
through library librefread.a
Source code in this subdirectory:
(Check Makefile for functions included in librefread.a)
usage texts for main programs
sub/refmat_basinf.f
sub/refmet_basinf.f
sub/refmet_comments.f
sub/refmet_intro.f
sub/refmet_preptrace.f
sub/resus_basinf.f
sub/resusnoise_basinf.f
Fortran interface to C Bessel functions
sub/lmath.c
Time series output functions
sub/refmet_output.f
sub/refmet_wtrace.f
Functions to read configuration files
sub/refmet_rmain.f
sub/refmet_rmod.f
sub/refmet_rrcv.f
sub/refmet_rsource.f
============================================================================
Installation
------------
For compilation instructions see README.1st in the root directory of the
tar-ball or
http://gpitrsvn.gpi.uni-karlsruhe.de:8000/TFSoftware/wiki/docs/installation
The Makefile supports program compilation and linking. Some binary libraries
are required.
The command
make all
will compile and install the binary executables.
Environment variables control where the results are stored and where
libraries and library header files are expected:
LOCLIBDIR defines location of binary libraries
Dependencies:
Compilers required to build the programs:
Fortran compiler
============================================================================
The home of this software suite is
http://gpitrsvn.gpi.uni-karlsruhe.de:8000/TFSoftware/wiki/trunk/src/synt/ref/refmet
Please send bug reports and suggestions to
Thomas.Forbriger@kit.edu
----- END OF README -----
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