Commit 6a4bd272 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

refmet/sub: added README and reorganized Makefile

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.
parent 3e766169
......@@ -37,11 +37,20 @@ $(LOCLIBDIR)/%: install-include %
mkdir -pv $(LOCLIBDIR)
/bin/mv -fv $(word 2,$^) $(LOCLIBDIR)
#----------------------------------------------------------------------
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 +58,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