Commit c52273bc 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: 1975
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 5eb93faf
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.8 2006-01-25 09:44:12 tforb Exp $
# $Id: Makefile,v 1.9 2006-01-25 10:31:45 tforb Exp $
#
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
#
# GSE++ library to read and write GSE waveforms
#
# Installation instructions
# -------------------------
#
# To install the library use target install
#
# To instell the library together with the doxygen documentation,
# use target all. Note that this requires doxygen to be installed.
#
# Look at gsexx_write_example.cc for a brief example on using the code.
#
# The binary library libgsexx.a will be placed in $(LOCLIBDIR). The prototype
# file gsexx.h will be linked to a copy in $(LOCINCLUDEDIR). If these
# variables are not set in your environment, they will be set to reasonable
# values below. Please check.
#
# The doxygen documentation will be placed in $(DOXYWWWPATH). In case
# $(LOCLIBDIR) is not set in your environment, this will be set to a default
# value too.
#
# REVISIONS and CHANGES
# 16/03/2002 V1.0 Thomas Forbriger
# 14/11/2002 V1.1 place doxygen docu on WWW
# 25/01/2006 V1.2 - added target gsexx_write_example
# - reorganized installation procedure and
# installation path definitions
#
# ============================================================================
# general part
# ------------
#
ifndef LOCLIBDIR
LOCLIBDIR=$(shell pwd)/lib
DOXYWWWPATH=$(shell pwd)/doxydoc
else
DOXYWWWPATH=$(HOME)/public_html/txt/cxx/libgsexx
endif
ifndef LOCINCLUDEDIR
LOCINCLUDEDIR=$(shell pwd)/include
endif
FLAGS=
CXXFLAGS=-fhonor-std -Wall $(FLAGS)
......@@ -21,7 +52,7 @@ CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
all: install doxybrief doxyfull
all: install doxyfull
install: install-include libgsexx.a
flist: Makefile README $(wildcard *.h *.cc *.cfg)
......@@ -55,40 +86,51 @@ INCSRC=gsexx.h gsexx_diff.h gsexx_TDAT2.h
-include $(patsubst %.cc,%.d,$(LIBSRC))
libgsexx.a: $(patsubst %.cc,%.o,$(LIBSRC))
ar rcv $@ $^
$(LOCLIBDIR) $(LOCINCLUDEDIR): ; mkdir -pv $@
libgsexx.a: $(patsubst %.cc,%.o,$(LIBSRC)) $(LOCLIBDIR)
ar rcv $@ $(patsubst %.cc,%.o,$(LIBSRC))
ranlib $@
newlib $@
/bin/mv -fv $@ $(LOCLIBDIR)
install-include: ; newinclude gsexx.h
install-include: $(LOCINCLUDEDIR)
ln -sfv $(shell pwd)/gsexx.h $<
#======================================================================
# documentation part
# ------------------
DOXYWWWPATH=$(HOME)/public_html/txt/cxx/libgsexx
.PHONY: doxyclean doxyview doxybriefview doxyfullconf doxybriefconf
.PHONY: doxyclean doxyview doxyfullconf
doxyclean: ;/bin/rm -rfv doc docbrief
doxyclean: ;/bin/rm -rfv doc
DOXYSRC=README $(LIBSRC) $(INCSRC) gsexx_tests.cc
DOXYSRC=README $(LIBSRC) $(INCSRC) gsexx_tests.cc gsexx_write_example.cc
doc/%: doxyfull.cfg $(DOXYSRC)
mkdir -vp $(DOXYWWWPATH)
ln -sfv $(DOXYWWWPATH) doc
doxygen $<
docbrief/%: doxybrief.cfg $(DOXYSRC); doxygen $<
doxybriefconf doxyfullconf: doxy%conf:
doxywizard $(patsubst doxy%conf,doxy%.cfg,$@)
doxybrief: docbrief/html/index.html
doxyfull: doc/html/index.html
doxydoc: doxybrief doxyfull
doxydoc: doxyfull
doxyfullview: doxyfull; mozilla file:$(DOXYWWWPATH)/html/index.html &
doxybriefview: doxybrief; mozilla file:/docbrief/html/index.html &
doxyview: doxyfullview doxybrief
doxyview: doxyfullview
#======================================================================
# create package
# --------------
VERSIONCODE=$(shell date +'%Y%m%d')
PACKAGE=libgsexx$(VERSIONCODE)
PUBLICATIONPATH=$(HOME)/public_html/download/software
TMPPATH=$(HOME)/tmp/$(PACKAGE)
package:
/bin/rm -rfv $(TMPPATH); mkdir -pv $(TMPPATH)
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/libs/libgsexx
/bin/bash -c 'cd $(TMPPATH); \
unset LOCINCLUDEDIR; unset LOCLIBDIR; \
make all'
cd $(TMPPATH)/..; tar cvf $(PUBLICATIONPATH)/$(PACKAGE).tar $(PACKAGE)
bzip2 -f $(PUBLICATIONPATH)/$(PACKAGE).tar
#======================================================================
# test code
......@@ -98,4 +140,11 @@ gsexx_write_example gsexx_tests: %: %.cc
$(CXX) -o $@ $< -I$(LOCINCLUDEDIR) -lgsexx -L$(LOCLIBDIR)
tests: gsexx_tests; $<; rm -fv $<
# Target examples requires SFF programs gse2sff and stuplo to be installed
# to plot the data. Use gsexx_write_example separately to check GSE
# data by other means.
examples: gsexx_write_example
$<; gse2sff example.gse example.sff -o; stuplo example.sff
rm -fv $< example.gse example.sff
# ----- END OF Makefile -----
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