Commit 44a304a1 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: 2296
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 2f23535f
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.12 2007-06-05 09:04:56 tforb Exp $
# $Id: Makefile,v 1.13 2007-06-05 09:09:36 tforb Exp $
#
# Copyright (c) 2007 by Thomas Forbriger (BFO Schiltach)
#
......@@ -21,6 +21,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# ----
#
# some code in this library provides interfaces to other libraries like
# libpgplot or libgsl. All other code can be used without linking against
# additional libraries.
#
# REVISIONS and CHANGES
# 05/06/2007 V1.0 Thomas Forbriger
......@@ -28,31 +32,24 @@
# ============================================================================
#
all:
flist: Makefile
echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
edit: flist; vim $<
all: install libtf.doc
install: install-include libtf.a libtf77.a
.PHONY: clean
clean: ;
.PHONY: clean edit
clean:
-/bin/rm -fv *.o *.bak *.o77 flist *.xxx
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist
#
# $Id: Makefile,v 1.12 2007-06-05 09:04:56 tforb Exp $
#
# Makefile for prog/lib
edit: flist ; vim flist
flist: *.c *.h *.f Makefile ; echo $^ | tr ' ' '\n' | sort > $@
#
# note for AIX-system:
# FC=xlf
# 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-
......@@ -114,13 +111,6 @@ libtf.doc: $(DOCSRC)
.c.o:
$(CC) $(CFLAGS) $< -c -I${SERVERINCLUDEDIR}
.PHONY: clean edit
clean:
-/bin/rm -fv *.o *.bak *.o77 flist *.xxx
edit: flist ; vim flist
flist: *.c *.h *.f Makefile ; echo $^ | tr ' ' '\n' | sort > $@
install-include: libtf.h
/bin/bash -c 'for d in $^; \
do \
......@@ -160,5 +150,25 @@ rngtest:
testlibtf77 -rng -f -n 9900
$(MAKE) test_gaussian.sort.plot test_uniform.sort.plot
#======================================================================
# create package
# --------------
VERSIONCODE=$(shell date +'%Y%m%d')
PACKAGE=libtf$(VERSIONCODE)
PUBLICATIONPATH=$(HOME)/public_html/download/software
TMPPATH=$(HOME)/tmp/$(PACKAGE)
allpackage: all rngtest testlibtf teslibtf77
package:
/bin/rm -rfv $(TMPPATH); mkdir -pv $(TMPPATH)
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/libs/libtf
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/LICENSE.GPL
cd $(TMPPATH)/..; cvs export -r HEAD \
-d $(PACKAGE) thof/src/README.compile
/bin/bash -c 'cd $(TMPPATH); make allpackage; make clean'
cd $(TMPPATH)/..; tar cvf $(PUBLICATIONPATH)/$(PACKAGE).tar $(PACKAGE)
gzip --force -9 $(PUBLICATIONPATH)/$(PACKAGE).tar
cd $(TMPPATH)/..; tar cvf $(PUBLICATIONPATH)/$(PACKAGE).tar $(PACKAGE)
bzip2 -f $(PUBLICATIONPATH)/$(PACKAGE).tar
$(MAKE) install
# ----- 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