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

migrated to SVN scheme; removed incdep dependency

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: 3392
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 29993d13
......@@ -12,20 +12,27 @@
# 08/10/2010 V1.1 migrate to SVN environment
# check environment
# discard f2c fallback option
# NOTICE: librheologyxx.a is not yet migrated!
# 17/11/2010 V1.2 migrated to SVN scheme
# removed incdep dependency
#
# ============================================================================
#
# moved to gfortran
#
all: install
install: librheology.a rhetest
install: librheology.a rhetest install-include librheologyxx.a doxydoc
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
$(call CHECKVARS,LOCINCLUDEDIR LOCLIBDIR LOCBINDIR)
# compiler and preprocessor flags
FLAGS=
CXXFLAGS=-Wall -pedantic $(FLAGS) -O3
CXXFLAGS=-Wall $(FLAGS) -O3
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
CC=gcc
CFLAGS=-O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
FLAGS += $(MYFLAGS)
......@@ -50,27 +57,18 @@ flist: $(wildcard *.f) Makefile $(wildcard cxx/*.h cxx/*.cc)
edit: flist; vim $<
#----------------------------------------------------------------------
%.o: %.f; $(FC) -c -o $@ $< $(FFLAGS)
%.d: %.f
echo $<: $(shell cat $< | egrep '^ +include' | cut -f 2 -d \' | sort | uniq) > $@
-include $(patsubst %.f,%.d,$(wildcard *.f))
make.dep: *.f
incdep > make.dep
olist:
'( /bin/rm make.ofiles ; \
for d in *.f ; \
do \
echo `basename \$d .f`.o >> make.ofiles ; \
done ;)'
include make.dep
docs: $(DOCS)
%.o: %.f; $(FC) -c -o $@ $< $(FFLAGS)
LIBOBS=rl_sls.o rl_qtrans.o
librheology.a: $(LIBOBS)
ar rcv $@ $^
ranlib $@
/bin/mv -fv $@ $(LOCLIBDIR)
rhetest: rhetest.o librheology.a
$(FC) -o $(LOCBINDIR)/rhetest rhetest.o -lrheology \
-ltf -L$(LOCLIBDIR)
......@@ -97,8 +95,6 @@ CXXDIR=cxx
#
# You will find the installed library header files in $(LOCINCLUDEDIR)/aff
allcxx: install-include librheologyxx.a doxydoc
# files
# -----
......@@ -122,32 +118,15 @@ STRIPHEADER=$(addsuffix .strip,$(notdir $(HEADERS)))
# include directory)
INSTHEADER=$(addprefix $(INCINSTALLPATH)/,$(patsubst $(CXXDIR)/%,%,$(HEADERS)))
# if defined, empty lines are kept in comment-stripped headers
# to synchronize line numbers (necessary during library debugging)
# if defined, empty lines are kept in stripped comment headers
# to synchronize line numbers
EMPTYPRINT=1
#EMPTYPRINT=0
# define this to be cat in case you do not have remcmmnt available
REMCMMNT=remcmmnt
#REMCMMNT=cat
# compiler and preprocessor flags
FLAGS=
CXXFLAGS=-Wall -pedantic $(FLAGS) -O3
CXXFLAGS=-Wall $(FLAGS) -O3
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
#----------------------------------------------------------------------
# create the binary library
# -------------------------
LIBOBS=$(patsubst %.cc,%.o,$(SRC))
librheologyxx.a: install-include $(LIBOBS)
ar rcv $@ $(LIBOBS)
ranlib $@
cp -vpf $@ $(LIBINSTALLPATH)
ifndef TF_REMCMMNT
TF_REMCMMNT=cat
endif
#======================================================================
# dependencies
......@@ -192,57 +171,50 @@ librheologyxx.a: install-include $(LIBOBS)
$(INCINSTALLPATH)/%.h: $(CXXDIR)/%.h.strip
mkdir -vp $(dir $@)
-rm -fv $@
ln -svf $$(pwd)/$< $@
/bin/cp -vpd $< $@
# install header files
.PHONY: install-include
install-include: $(INSTHEADER)
#----------------------------------------------------------------------
# create the binary library
# -------------------------
LIBOBS=$(patsubst %.cc,%.o,$(SRC))
librheologyxx.a: install-include $(LIBOBS)
ar rcv $@ $(LIBOBS)
ranlib $@
cp -vpf $@ $(LIBINSTALLPATH)
#======================================================================
# documentation part
# ------------------
#
# targets commonly used:
# ----------------------
#
# make doxyclean removes all documentation
# make doxydoc creates doxygen documentation in the DOXYWWWPATH
# make doxyview creates doxygen documentation and launches netscape to
# browse in the documentation
# make doxyfullconf edit the doxygen configuration file
#
# The targets are prepared for two documentation configurations. There is a
# "full" configuration defined in doxyfull.cfg and a "brief" configuration in
# doxybrief.cfg. However doxygen itself does not really support to distinguish
# between brief and full just due to the config-file. So just use the doxyfull
# target.
#
# If you launch "make doxyfull" the documentation will be written to
# DOXYWWWPATH (see below). This is meant to export the documentation through
# your homepage. The doxyfull directory is just a symbolic link to this
# directory.
#
DOXYWWWPATH=$(WWWBASEDIR)/librheology
.PHONY: doxyclean doxyview doxybriefview doxyfullconf doxybriefconf
$(call CHECKVARS,TF_WWWBASEDIR TF_BROWSER)
DOXYWWWPATH=$(TF_WWWBASEDIR)/librheology
doxyclean: ;/bin/rm -rfv docfull/* docbrief docfull
.PHONY: doxyclean doxyview doxydoc doxyconf
DOXYSRC=$(README) $(HEADERS) $(SRC)
doxyclean: ;/bin/rm -rfv $(DOXYWWWPATH)
doc%/html/index.html: $(CXXDIR)/doxy%.cfg $(DOXYSRC)
DOXYSRC=$(README) $(HEADERS) $(SRC) \
# create doxygen intermediate configuration
PWD=$(shell env pwd)
doxydoc.xxx: doxydoc.cfg
sed 's,<OUTPUTDIRECTORY>,$(DOXYWWWPATH),g;s,<STRIPFROMPATH>,$(PWD),g' \
$< > $@
$(DOXYWWWPATH)/html/index.html: doxydoc.xxx $(DOXYSRC)
mkdir -vp $(DOXYWWWPATH)
ln -sfv $(DOXYWWWPATH) $(patsubst $(CXXDIR)/doxy%.cfg,doc%,$<)
doxygen $<
doxybriefconf doxyfullconf: doxy%conf:
doxywizard $(CXXDIR)/$(patsubst doxy%conf,doxy%.cfg,$@)
doxyfull doxybrief: doxy%: doxyclean doc%/html/index.html
doxydoc: doxyfull
doxydoc: $(DOXYWWWPATH)/html/index.html
doxyfullview doxybriefview: doxy%view: doxy%
netscape doc$(patsubst doxy%view,%,$@)/html/index.html &
doxyview: doxydoc doxyfullview
doxyview: $(DOXYWWWPATH)/html/index.html
$(TF_BROWSER) file:$< &
# ----- END OF Makefile -----
......@@ -4,7 +4,7 @@
#---------------------------------------------------------------------------
PROJECT_NAME = LIBRHEOLOGY
PROJECT_NUMBER =
OUTPUT_DIRECTORY = docfull
OUTPUT_DIRECTORY = <OUTPUTDIRECTORY>
OUTPUT_LANGUAGE = English
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
......@@ -15,8 +15,7 @@ BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = YES
ALWAYS_DETAILED_SEC = YES
FULL_PATH_NAMES = YES
STRIP_FROM_PATH = /home/theo1/forbrig/work/ \
/home/thof/work/
STRIP_FROM_PATH = <STRIPFROMPATH>
INTERNAL_DOCS = YES
CLASS_DIAGRAMS = YES
SOURCE_BROWSER = YES
......
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