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

Master 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.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1806
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent fb04d07b
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.2 2005-07-05 08:21:10 tforb Exp $
#
# Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)
#
# recompile all libraries
#
# REVISIONS and CHANGES
# 05/07/2005 V1.0 Thomas Forbriger
#
# ============================================================================
#
# Makefile for prog/lib
#
F2CLIB=-lm -lf2c -L${SERVERLIBDIR}
F2CFLAGS=-f -u
#CC=gcc
CFLAGS=-O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
LIBEMODSUB=psexdat.o readgemini.o efa.o readrefmet.o
LIBTFSUB=libtf.o pgp.o tfseconds.o libts.o
LIBCONVSUB=sffutil.o timeutil.o sffutilf.o
DOCS=libts.doc efa.doc libtime.doc libsffu.doc
LIBTS=libts.o libsffu.o
LIBTIMEOBS=libtime.o clibtime.o
LIBLINUXEXTRAS=tfseconds.o
LIBSUNF=sunfortran.o
docs: $(DOCS)
.f.o:
f2c $(F2CFLAGS) $<
$(CC) $(CFLAGS) $(<:.f=.c) -c
@rm $(<:.f=.c)
libseife.o: libseife.f
f2c -f $<
$(CC) $(CFLAGS) $(<:.f=.c) -c
@rm $(<:.f=.c)
readgemini.o: readgemini.f
f2c -f $<
$(CC) $(CFLAGS) $(<:.f=.c) -c
@rm $(<:.f=.c)
psexdat.o: psexdat.f
f2c -f $<
$(CC) $(CFLAGS) $(<:.f=.c) -c
@rm $(<:.f=.c)
clean:
-/bin/rm *.o *.bak
sffutil.o: sffutil.c sffutil.h
datatime.o: datatime.c datatime.h
timeutil.o: timeutil.c timeutil.h
clibtime.o: clibtime.c libtime.h
libsunf.a: $(LIBSUNF)
ar rcv $@ $^
ranlib $@
newlib $@
libtime.a: $(LIBTIMEOBS)
ar rcv libtime.a $(LIBTIMEOBS)
ranlib libtime.a
newlib libtime.a
libtfio.a: tfio.o
ar rcv libtfio.a tfio.o
ranlib libtfio.a
newlib libtfio.a
libseife.a: libseife.o
ar rcv libseife.a libseife.o
ranlib libseife.a
newlib libseife.a
libtf.a: $(LIBTFSUB)
ar rcv libtf.a $(LIBTFSUB)
ranlib libtf.a
newlib libtf.a
liblextra.a: $(LIBLINUXEXTRAS)
ar rcv liblextra.a $(LIBLINUXEXTRAS)
ranlib liblextra.a
newlib liblextra.a
libemod.a: $(LIBEMODSUB)
ar rcv libemod.a $(LIBEMODSUB)
ranlib libemod.a
newlib libemod.a
libts.a: $(LIBTS)
ar rcv libts.a $(LIBTS)
ranlib libts.a
newlib libts.a
libconv.a: $(LIBCONVSUB)
ar rcv libconv.a $(LIBCONVSUB)
ranlib libconv.a
newlib libconv.a
libts.doc: libts.f
extractdoc.tcl libts.f > libts.doc
libtime.doc: libtime.f
extractdoc.tcl libtime.f > libtime.doc
efa.doc: efa.f
extractdoc.tcl efa.f > efa.doc
libsffu.doc: libsffu.f
extractdoc.tcl libsffu.f > libsffu.doc
LIBDIRS=libaff \
libtime \
libbuggy \
libsff \
libsffu \
libgsexx \
libsffxx \
libdatreadxx \
libemod \
libfourier \
liblapex \
liblinearxx \
libnumrec \
libpgplot++ \
libseife \
libtf \
libtfxx \
libts \
libtsxx \
# libfcb \
# libqlibxx \
# misc
TARGETS=$(addsuffix .install,$(LIBDIRS))
all: $(TARGETS)
show: ; @echo $(TARGETS)
flist: $(shell find . -name Makefile)
echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
edit: flist; vim $<
.PHONY: clean
clean: ;
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist
%.install: %; cd $<; $(MAKE) install
# ----- END OF Makefile -----
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.16 2004-12-22 17:17:40 tforb Exp $
# $Id: Makefile,v 1.17 2005-07-05 08:21:11 tforb Exp $
#
# Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)
#
......@@ -55,7 +55,8 @@ CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
all: libdatreadxx.a doxybrief doxyfull
all: install doxybrief doxyfull
install: install-include libdatreadxx.a
flist: Makefile $(wildcard *.cfg contrib/*.h) $(HEADERS) $(LIBSRC)
echo $^ | tr ' ' '\n' | sort > $@
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.2 2005-06-16 11:18:12 tforb Exp $
# $Id: Makefile,v 1.3 2005-07-05 08:21:12 tforb Exp $
#
# Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)
#
......@@ -12,7 +12,8 @@
# ============================================================================
#
all:
all: install
install: libemod.a
flist: Makefile $(wildcard *.f)
echo $^ | tr ' ' '\n' | sort > $@
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.5 2003-01-05 20:37:19 forbrig Exp $
# $Id: Makefile,v 1.6 2005-07-05 08:21:13 tforb Exp $
#
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
#
......@@ -18,7 +18,8 @@
# ============================================================================
#
all: libfourier.a libfourier.doc install-include libfourierxx.a
all: install libfourier.doc
install: install-include libfourier.a libfourierxx.a
flist: Makefile $(wildcard *.f *.inc *.h *.cc)
echo $^ | tr ' ' '\n' | sort > $@
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.6 2003-12-15 07:53:33 tforb Exp $
# $Id: Makefile,v 1.7 2005-07-05 08:21:14 tforb Exp $
#
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
#
......@@ -21,7 +21,8 @@ CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
all: libgsexx.a doxybrief doxyfull
all: install doxybrief doxyfull
install: install-include libgsexx.a
flist: Makefile README $(wildcard *.h *.cc *.cfg)
echo $^ | tr ' ' '\n' | sort > $@
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.2 2004-02-08 15:35:42 tforb Exp $
# $Id: Makefile,v 1.3 2005-07-05 08:21:15 tforb Exp $
#
# Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)
#
......@@ -45,7 +45,8 @@ CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
all: liblinearxx.a doxybrief doxyfull
all: doxybrief doxyfull
install: install-include liblinearxx.a
flist: Makefile $(wildcard *.cfg contrib/*.h) $(HEADERS) $(LIBSRC)
echo $^ | tr ' ' '\n' | sort > $@
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# ($Id: Makefile,v 1.15 2005-05-02 09:50:34 tforb Exp $)
# ($Id: Makefile,v 1.16 2005-07-05 08:21:16 tforb Exp $)
#
# 05/06/2001 by Thomas Forbriger (IMGF Frankfurt)
#
......@@ -12,7 +12,8 @@
#
# ============================================================================
#
all: install libpgplotCpp.a
all: install example doxyfull
install: install-include libpgplotCpp.a
PGPLOTLIB=-lpgplotCpp -lcpgplot -lpgplot77 -lg2c -lm -lX11 -L$(SERVERLIBDIR) \
-L/usr/X11/lib
......@@ -33,10 +34,10 @@ edit: flist; vim $<
clean: ; /bin/rm -fv *.bak *.o flist XpgplotCpp
install: $(HEADERS)
install-include: $(HEADERS)
newinclude $^
example: all XpgplotCpp; XpgplotCpp; rm -fv XpgplotCpp XpgplotCpp.o
example: install XpgplotCpp; XpgplotCpp; rm -fv XpgplotCpp XpgplotCpp.o
libpgplotCpp.a: $(CODE:.cc=.o)
ar rcv $@ $^
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.5 2003-12-30 17:22:17 tforb Exp $
# $Id: Makefile,v 1.6 2005-07-05 08:21:18 tforb Exp $
#
# Copyright (c) 2003 by Thomas Forbriger (BFO Schiltach)
#
......@@ -13,7 +13,8 @@
#
LIBS=libsff.a libsff77.a
all: doc $(LIBS)
all: doc install
install: $(LIBS)
newlib $(LIBS)
flist: Makefile $(wildcard *.f *c)
......
......@@ -5,6 +5,8 @@
# 16/11/2001 make library g77-proof
#
install: install-include libsffu.a libsffu77.a
F2CLIB=-lm -lf2c -L${SERVERLIBDIR}
F2CFLAGS=-f -u
#CC=gcc
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.11 2005-01-26 17:14:27 tforb Exp $
# $Id: Makefile,v 1.12 2005-07-05 08:21:19 tforb Exp $
#
# Copyright (c) 2003 by Thomas Forbriger (BFO Schiltach)
#
......@@ -21,7 +21,8 @@ CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
all: libsffxx.a doxybrief doxyfull
all: install doxybrief doxyfull
install: install-include libsffxx.a
flist: Makefile README $(wildcard *.h *.cc *.cfg)
echo $^ | tr ' ' '\n' | sort > $@
......
#
# $Id: Makefile,v 1.6 2002-11-20 17:03:14 forbrig Exp $
# $Id: Makefile,v 1.7 2005-07-05 08:21:20 tforb Exp $
#
# Makefile for prog/lib
#
......@@ -8,6 +8,9 @@
# FCFLAGS=-qfixed=300
#
# check for cross compiler
all: install libtf.doc
install: install-include libtf.a libtf77.a
ifdef CROSS_BASE
BINPREFIX=$(CROSS_BASE)/bin/dos-
else
......@@ -75,7 +78,7 @@ clean:
edit: flist ; vim flist
flist: *.c *.h *.f Makefile ; echo $^ | tr ' ' '\n' | sort > $@
hinstall: libtf.h
install-include: libtf.h
/bin/bash -c 'for d in $^; \
do \
rm $(LOCINCLUDEDIR)/$$d; \
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.19 2005-07-04 13:06:09 tforb Exp $
# $Id: Makefile,v 1.20 2005-07-05 08:21:20 tforb Exp $
#
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
#
......@@ -69,7 +69,8 @@ CXXFLAGS=$(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS) -I$(BLITZINCLUDE)
all: install-include libtfxx.a doxydoc
all: install doxydoc
install: install-include libtfxx.a
flist: Makefile tests/Makefile doxybrief.cfg doxyfull.cfg $(README) \
$(HEADERS) $(SRC) $(TESTS) $(FTESTS)
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# Makefile for work/src/libs/libtime
# ($Id: Makefile,v 2.18 2004-02-07 17:38:14 tforb Exp $)
# ($Id: Makefile,v 2.19 2005-07-05 08:21:21 tforb Exp $)
#
# 06/08/2000 by Thomas Forbriger (IfG Stuttgart)
#
......@@ -39,9 +39,11 @@ LIBTIMETRAD=-ltime_trad -L$(LOCLIBDIR)
LIBSFFU=-lsffu -L$(LOCLIBDIR)
LIBSFFU77=-lsffu77 -L$(LOCLIBDIR)
all: install doc example exectests
install: install-headers libraries
doc: doxyview
example: tests/example++; tests/example++
all: libraries tests
exectests: tests
#======================================================================
#
......@@ -134,7 +136,7 @@ ALLCODE=$(KERNEL) $(FCODE) $(FHANDLER) $(CWRAPPER) $(CCODE) $(CHANDLER) \
#
# misc targets
# ------------
.PHONY: clean edit install
.PHONY: clean edit install-headers
clean:
find . \( -name \*.bak -o -name \*.o -o -name \*.o77 -o -name \*.d \) | \
......@@ -148,7 +150,7 @@ flist: $(KERNEL) $(FCODE) $(CWRAPPER) $(CCODE) $(wildcard Makefile README*) \
edit: flist; vim $<
install: $(HEADERS) ; newinclude $^
install-headers: $(HEADERS) ; newinclude $^
#======================================================================
#
......
......@@ -2,6 +2,10 @@
# Makefile for work/src/libs/libts
#
# check for cross compiler
all: install docs
install: libts.a libts77.a
ifdef CROSS_BASE
BINPREFIX=$(CROSS_BASE)/bin/dos-
else
......
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.8 2005-07-04 16:19:24 tforb Exp $
# $Id: Makefile,v 1.9 2005-07-05 08:21:22 tforb Exp $
#
# Copyright (c) 2003 by Thomas Forbriger (BFO Schiltach)
#
......@@ -42,7 +42,8 @@ CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
all: libtsxx.a doxyfull
all: install doxyfull
install: install-include libtsxx.a
flist: Makefile $(wildcard *.h *.cc *.cfg)
echo $^ | tr ' ' '\n' | sort > $@
......
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