[superlu] 02/11: Imported Debian patch 3.0-2

Nico Schlömer nschloe-guest at moszumanska.debian.org
Tue May 17 19:22:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

nschloe-guest pushed a commit to branch master
in repository superlu.

commit 64d99e97105423f33397ceecb7d9769472b84789
Author: Christophe Prud'homme <prudhomm at mit.edu>
Date:   Wed Aug 18 09:26:10 2004 +0200

    Imported Debian patch 3.0-2
---
 EXAMPLE/Makefile               |  85 ++++++++++++++++++-----------------
 SRC/Makefile                   |   2 +-
 TESTING/Makefile               |  18 ++++----
 debian/README.Debian           |  17 +++++++
 debian/changelog               |  12 +++++
 debian/compat                  |   1 +
 debian/control                 |  48 ++++++++++++++++++++
 debian/copyright               |  42 +++++++++++++++++
 debian/dirs                    |   2 +
 debian/docs                    |   1 +
 debian/libsuperlu3-dev.install |   8 ++++
 debian/libsuperlu3.install     |   2 +
 debian/rules                   | 100 +++++++++++++++++++++++++++++++++++++++++
 debian/runtests.sh             |  16 +++++++
 debian/watch                   |   3 ++
 make.inc                       |  20 ++++-----
 16 files changed, 315 insertions(+), 62 deletions(-)

diff --git a/EXAMPLE/Makefile b/EXAMPLE/Makefile
index f3275cc..6098a62 100644
--- a/EXAMPLE/Makefile
+++ b/EXAMPLE/Makefile
@@ -1,4 +1,5 @@
 include ../make.inc
+SUPERLULIB=-lsuperlu
 
 #######################################################################
 #  This makefile creates the example programs for the linear equation
@@ -67,89 +68,89 @@ double:    dlinsol dlinsol1 dlinsolx dlinsolx1 dlinsolx2 superlu
 complex:   clinsol clinsol1 clinsolx clinsolx1 clinsolx2
 complex16: zlinsol zlinsol1 zlinsolx zlinsolx1 zlinsolx2
 
-slinsol: $(SLINEXM) ../$(SUPERLULIB)
+slinsol: $(SLINEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(SLINEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-slinsol1: $(SLINEXM1) ../$(SUPERLULIB)
+slinsol1: $(SLINEXM1) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(SLINEXM1) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-slinsolx: $(SLINXEXM) ../$(SUPERLULIB)
+slinsolx: $(SLINXEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(SLINXEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-slinsolx1: $(SLINXEXM1) ../$(SUPERLULIB)
+slinsolx1: $(SLINXEXM1) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(SLINXEXM1) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-slinsolx2: $(SLINXEXM2) ../$(SUPERLULIB)
+slinsolx2: $(SLINXEXM2) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(SLINXEXM2) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-dlinsol: $(DLINEXM) ../$(SUPERLULIB)
+dlinsol: $(DLINEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(DLINEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-dlinsol1: $(DLINEXM1) ../$(SUPERLULIB)
+dlinsol1: $(DLINEXM1) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(DLINEXM1) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-dlinsolx: $(DLINXEXM) ../$(SUPERLULIB)
+dlinsolx: $(DLINXEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(DLINXEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-dlinsolx1: $(DLINXEXM1) ../$(SUPERLULIB)
+dlinsolx1: $(DLINXEXM1) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(DLINXEXM1) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-dlinsolx2: $(DLINXEXM2) ../$(SUPERLULIB)
+dlinsolx2: $(DLINXEXM2) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(DLINXEXM2) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-superlu: $(SUPERLUEXM) ../$(SUPERLULIB)
+superlu: $(SUPERLUEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(SUPERLUEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-clinsol: $(CLINEXM) ../$(SUPERLULIB)
+clinsol: $(CLINEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(CLINEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-clinsol1: $(CLINEXM1) ../$(SUPERLULIB)
+clinsol1: $(CLINEXM1) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(CLINEXM1) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-clinsolx: $(CLINXEXM) ../$(SUPERLULIB)
+clinsolx: $(CLINXEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(CLINXEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-clinsolx1: $(CLINXEXM1) ../$(SUPERLULIB)
+clinsolx1: $(CLINXEXM1) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(CLINXEXM1) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-clinsolx2: $(CLINXEXM2) ../$(SUPERLULIB)
+clinsolx2: $(CLINXEXM2) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(CLINXEXM2) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-zlinsol: $(ZLINEXM) ../$(SUPERLULIB)
+zlinsol: $(ZLINEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(ZLINEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-zlinsol1: $(ZLINEXM1) ../$(SUPERLULIB)
+zlinsol1: $(ZLINEXM1) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(ZLINEXM1) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-zlinsolx: $(ZLINXEXM) ../$(SUPERLULIB)
+zlinsolx: $(ZLINXEXM) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(ZLINXEXM) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-zlinsolx1: $(ZLINXEXM1) ../$(SUPERLULIB)
+zlinsolx1: $(ZLINXEXM1) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(ZLINXEXM1) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
-zlinsolx2: $(ZLINXEXM2) ../$(SUPERLULIB)
+zlinsolx2: $(ZLINXEXM2) $(SUPERLULIB)
 	$(LOADER) $(LOADOPTS) $(ZLINXEXM2) \
-        ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(SUPERLULIB)  -o $@
 
 .c.o:
 	$(CC) $(CFLAGS) -I$(HEADER) -c $< $(VERBOSE)
diff --git a/SRC/Makefile b/SRC/Makefile
index 30840c0..7abb53f 100644
--- a/SRC/Makefile
+++ b/SRC/Makefile
@@ -112,4 +112,4 @@ superlu_timer.o:  superlu_timer.c ; $(CC) -c $(NOOPTS) $<
 	$(CC) $(CFLAGS) $(CDEFS) $(BLASDEF) -c $< $(VERBOSE)
 
 clean:	
-	rm -f *.o ../superlu$(PLAT).a
+	rm -f *.o libsuperlu.*
diff --git a/TESTING/Makefile b/TESTING/Makefile
index e8967e4..be6c484 100644
--- a/TESTING/Makefile
+++ b/TESTING/Makefile
@@ -1,5 +1,5 @@
 include ../make.inc
-
+SUPERLULIB=-lsuperlu
 #######################################################################
 #  This makefile creates the test programs for the linear equation
 #  routines in SuperLU.  The test files are grouped as follows:
@@ -53,9 +53,9 @@ all:    single double complex complex16
 
 single: ./stest stest.out
 
-./stest: $(SLINTST) $(ALINTST) ../$(SUPERLULIB) $(TMGLIB)
+./stest: $(SLINTST) $(ALINTST)  $(TMGLIB)
 	$(LOADER) $(LOADOPTS) $(SLINTST) $(ALINTST) \
-        $(TMGLIB) ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@
 
 stest.out: stest stest.csh
 	@echo Testing SINGLE PRECISION linear equation routines 
@@ -63,9 +63,9 @@ stest.out: stest stest.csh
 
 double: ./dtest dtest.out
 
-./dtest: $(DLINTST) $(ALINTST) ../$(SUPERLULIB) $(TMGLIB)
+./dtest: $(DLINTST) $(ALINTST)  $(TMGLIB)
 	$(LOADER) $(LOADOPTS) $(DLINTST) $(ALINTST) \
-        $(TMGLIB) ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+        $(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@
 
 dtest.out: dtest dtest.csh
 	@echo Testing DOUBLE PRECISION linear equation routines 
@@ -73,9 +73,9 @@ dtest.out: dtest dtest.csh
 
 complex: ./ctest ctest.out
 
-./ctest: $(CLINTST) $(ALINTST) ../$(SUPERLULIB) $(TMGLIB)
+./ctest: $(CLINTST) $(ALINTST)  $(TMGLIB)
 	$(LOADER) $(LOADOPTS) $(CLINTST) $(ALINTST) \
-	$(TMGLIB) ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+	$(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@
 
 ctest.out: ctest ctest.csh
 	@echo Testing SINGLE COMPLEX linear equation routines 
@@ -83,9 +83,9 @@ ctest.out: ctest ctest.csh
 
 complex16: ./ztest ztest.out
 
-./ztest: $(ZLINTST) $(ALINTST) ../$(SUPERLULIB) $(TMGLIB)
+./ztest: $(ZLINTST) $(ALINTST)  $(TMGLIB)
 	$(LOADER) $(LOADOPTS) $(ZLINTST) $(ALINTST) \
-	$(TMGLIB) ../$(SUPERLULIB) $(BLASLIB) -lm -o $@
+	$(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@
 
 ztest.out: ztest ztest.csh
 	@echo Testing DOUBLE COMPLEX linear equation routines 
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..83a1448
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,17 @@
+SuperLU for Debian
+------------------
+
+SuperLU might be useful in conjunction with some other packages like:
+petsc or arpack. Otherwise it is widely used in the scientific
+computing community.
+
+I wrote a little script so that you can run the SuperLU tests.
+Just type:
+
+sh /usr/share/doc/libsuperlu-dev/runtests.sh /tmp
+
+it will run all the tests in /tmp/tests. Check the .out files to see
+what happened in each tests.
+
+
+ -- Christophe Prud'homme <prudhomm at mit.edu>, Thu Aug 12 10:25:04 2004
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f821b1a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,12 @@
+superlu (3.0-2) unstable; urgency=low
+
+  * fixed inconsistencies: libsuperlu3-dev vs libsuperlu-dev
+
+ -- Christophe Prud'homme <prudhomm at mit.edu>  Wed, 18 Aug 2004 09:26:10 +0200
+
+superlu (3.0-1) unstable; urgency=low
+
+  * Initial Release. (closes: #265217)
+
+ -- Christophe Prud'homme <prudhomm at mit.edu>  Thu, 12 Aug 2004 11:05:16 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4377e04
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,48 @@
+Source: superlu
+Priority: optional
+Section: devel
+Maintainer: Christophe Prud'homme <prudhomm at mit.edu>
+Build-Depends: debhelper (>= 4.0.0), gcc( >= 3.0 ), refblas3-dev | atlas3-base-dev
+Standards-Version: 3.6.1
+
+Package: libsuperlu3-dev
+Section: libdevel
+Architecture: any
+Depends: libsuperlu3 (= ${Source-Version}), refblas3-dev | atlas3-base-dev
+Description: Direct solution of large, sparse systems of linear equations
+ SuperLU is a general purpose library for the direct solution of
+ large, sparse, nonsymmetric systems of linear equations on high
+ performance machines. The library is written in C and is callable from
+ either C or Fortran. The library routines will perform an LU
+ decomposition with partial pivoting and triangular system solves
+ through forward and back substitution. The LU factorization routines
+ can handle non-square matrices but the triangular solves are performed
+ only for square matrices. The matrix columns may be preordered (before
+ factorization) either through library or user supplied routines. This
+ preordering for sparsity is completely separate from the
+ factorization. Working precision iterative refinement subroutines are
+ provided for improved backward stability. Routines are also provided
+ to equilibrate the system, estimate the condition number, calculate
+ the relative backward error, and estimate error bounds for the refined
+ solutions.  
+ 
+Package: libsuperlu3
+Section: libs
+Architecture: any
+Depends: refblas3 | atlas3-base | libblas-3.so, ${shlibs:Depends}
+Description: Direct solution of large, sparse systems of linear equations
+ SuperLU is a general purpose library for the direct solution of
+ large, sparse, nonsymmetric systems of linear equations on high
+ performance machines. The library is written in C and is callable from
+ either C or Fortran. The library routines will perform an LU
+ decomposition with partial pivoting and triangular system solves
+ through forward and back substitution. The LU factorization routines
+ can handle non-square matrices but the triangular solves are performed
+ only for square matrices. The matrix columns may be preordered (before
+ factorization) either through library or user supplied routines. This
+ preordering for sparsity is completely separate from the
+ factorization. Working precision iterative refinement subroutines are
+ provided for improved backward stability. Routines are also provided
+ to equilibrate the system, estimate the condition number, calculate
+ the relative backward error, and estimate error bounds for the refined
+ solutions.  
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c2e036b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,42 @@
+This package was debianized by Christophe Prud'homme <prudhomm at mit.edu> on
+Mon, 26 Jul 2004 14:14:12 +0200.
+
+It was downloaded from http://crd.lbl.gov/~xiaoye/SuperLU/superlu_3.0.tar.gz
+
+Upstream Authors: 
+Jim Demmel
+John Gilbert
+Xiaoye (Sherry) Li
+
+Copyright:
+
+Copyright (c) 2003, The Regents of the University of California, through
+Lawrence Berkeley National Laboratory (subject to receipt of any required 
+approvals from U.S. Dept. of Energy) 
+
+All rights reserved. 
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met: 
+
+(1) Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer. 
+(2) Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution. 
+(3) Neither the name of Lawrence Berkeley National Laboratory, U.S. Dept. of
+Energy nor the names of its contributors may be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+  
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/libsuperlu3-dev.install b/debian/libsuperlu3-dev.install
new file mode 100644
index 0000000..000f620
--- /dev/null
+++ b/debian/libsuperlu3-dev.install
@@ -0,0 +1,8 @@
+shared/SRC/libsuperlu.so /usr/lib
+static/libsuperlu.a /usr/lib
+SRC/*.h /usr/include/superlu
+README /usr/share/doc/libsuperlu3-dev
+EXAMPLE/* /usr/share/doc/libsuperlu3-dev/examples
+TESTING/* /usr/share/doc/libsuperlu3-dev/tests
+make.inc /usr/share/doc/libsuperlu3-dev/
+debian/runtests.sh /usr/share/doc/libsuperlu3-dev/
diff --git a/debian/libsuperlu3.install b/debian/libsuperlu3.install
new file mode 100644
index 0000000..3e51560
--- /dev/null
+++ b/debian/libsuperlu3.install
@@ -0,0 +1,2 @@
+shared/SRC/libsuperlu.so.* /usr/lib
+README /usr/share/doc/libsuperlu3
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d20d11f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,100 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+# shared library versions, option 1
+version=3.0.0
+major=3
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+#version=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+#major=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+
+	touch configure-stamp
+
+
+build: build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+
+	-mkdir -p shared/SRC static/SRC
+#
+# First build the shared library
+#
+	cd shared/SRC ; \
+	    srcdir=../../SRC; \
+	    $(MAKE)  -f $$srcdir/Makefile -I $$srcdir VPATH="$$srcdir" srcdir="$srcdir" NOOPTS="-fPIC" CFLAGS="-O3 -fPIC -pipe" DEBUGFLAGS="-DNDEBUG" ; \
+	    gcc -shared -Wl,-soname,libsuperlu.so.$(major) -o libsuperlu.so.$(version) `ls *.o` -lblas -lm
+
+	cd static/SRC ; \
+	srcdir=../../SRC; \
+	$(MAKE) -f   $$srcdir/Makefile -I $$srcdir VPATH="$$srcdir" srcdir="$$srcdir" CFLAGS="-O3 -pipe" DEBUGFLAGS="-DNDEBUG" LDFLAGS="-s" ; 
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	-rm -rf shared static
+
+	-$(MAKE) clean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	( cd shared/SRC && ln -sf libsuperlu.so.$(version) libsuperlu.so.$(major) )
+	( cd shared/SRC && ln -sf libsuperlu.so.$(version) libsuperlu.so )
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs 
+	dh_install
+	dh_link
+	dh_strip
+	dh_compress -X.c -XMakefile
+	dh_fixperms
+	dh_makeshlibs -V
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/debian/runtests.sh b/debian/runtests.sh
new file mode 100644
index 0000000..b01be12
--- /dev/null
+++ b/debian/runtests.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+# set -x
+if test ! -z $1; then 
+    test -d $1 && cp -r /usr/share/doc/libsuperlu-dev/tests $1
+    cp -r /usr/share/doc/libsuperlu-dev/examples $1/EXAMPLE
+    gunzip $1/EXAMPLE/g10.gz
+    cp  /usr/share/doc/libsuperlu-dev/make.inc $1
+    cd $1/tests/MATGEN
+    make CFLAGS="-I/usr/include/superlu" 
+    cd $1/tests/
+    make CFLAGS="-I/usr/include/superlu" 
+    cd $1/EXAMPLE/
+    make CFLAGS="-I/usr/include/superlu" 
+else
+    echo "usage: $0 <test directory>"
+fi
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ff8f5d6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+# watch control file for uscan
+# Site                  Directory         Pattern                 Version Script
+crd.lbl.gov             /~xiaoye/SuperLU/ superlu_(.*)\.tar\.gz   debian  uupdate
diff --git a/make.inc b/make.inc
index 51fda64..ee8f7da 100644
--- a/make.inc
+++ b/make.inc
@@ -16,14 +16,14 @@
 #
 #  The machine (platform) identifier to append to the library names
 #
-PLAT = _solaris
+PLAT = 
 
 #
 #  The name of the libraries to be created/linked to
 #
-TMGLIB       = tmglib$(PLAT).a
-SUPERLULIB   = superlu$(PLAT).a
-BLASLIB      = ../blas$(PLAT).a
+TMGLIB       = libtmglib$(PLAT).a
+SUPERLULIB   = libsuperlu$(PLAT).a
+BLASLIB      = -lblas
 
 #
 #  The archiver and the flag(s) to use when building archive (library)
@@ -33,12 +33,12 @@ ARCH         = ar
 ARCHFLAGS    = cr
 RANLIB       = ranlib
 
-CC           = cc
-CFLAGS       = -xO3 -xcg92
-FORTRAN	     = f77
+CC           = gcc
+CFLAGS       = -O2
+FORTRAN	     = g77
 FFLAGS       = -O
-LOADER       = cc
-LOADOPTS     = -xO3
+LOADER       = gcc
+LOADOPTS     = 
 
 #
 #  C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)
@@ -47,4 +47,4 @@ CDEFS        = -DAdd_
 #
 # The directory in which Matlab is installed
 #
-MATLAB	     = /usr/sww/matlab
+MATLAB	     = /opt/matlab

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/superlu.git



More information about the debian-science-commits mailing list