[SCM] Debian packaging for libntl - Number Theory Library branch, master, updated. e41c78dc6ef2572ee21fc0a0ffb90bc2154ac16c

Bernhard R. Link brlink at debian.org
Tue Aug 9 15:43:15 UTC 2011


The following commit has been merged in the master branch:
commit 8c4be34dbd8a7e8d7de6aa005b920128e638d70e
Author: Bernhard R. Link <brlink at debian.org>
Date:   Tue Aug 9 17:06:26 2011 +0200

    remove files recreated/modified by the build process

diff --git a/include/NTL/config.h b/include/NTL/config.h
deleted file mode 100644
index b6afde7..0000000
--- a/include/NTL/config.h
+++ /dev/null
@@ -1,575 +0,0 @@
-
-#ifndef NTL_config__H
-#define NTL_config__H
-
-/*************************************************************************
-
-                          NTL Configuration File
-                          ----------------------
-
-This file may be modified prior to building NTL so as to specify
-some basic configuration options, and to customize
-how code is generated so as to improve performance.
-
-The Basic Configuration Options must be set by hand.  If you use the
-configuration wizard, then these flags should be set before
-the installation process begins;  there values will be retained
-by the wizard.
-
-The Performance Options can be set either by hand, by editing this 
-file, or (on most Unix platforms) can be set automatically using
-the configuration wizard which runs when NTL is installed.
-
-All NTL header files include this file.
-By setting these flags here, instead of on the compiler command line,
-it is easier to guarantee that NTL library and client code use
-consistent settings.  
-
-
-                                How to do it
-                                ------------
-
-To set a flag, just replace the pre-processor directive 
-'if 0' by 'if 1' for that flag, which causes the appropriate macro 
-to be defined.  Of course,  to unset a flag, just replace the 
-'if 1' by an 'if 0'.
-
-You can also do this more conveniently via the command line
-using the configure script.
-
-
- *************************************************************************/
-
-
-
-/*************************************************************************
- *
- * Basic Configuration Options
- *
- *************************************************************************/
-
-
- /* None of these flags are set by the configuration wizard;
-  * they must be set by hand, before installation begins.
-  */
-
-
-#if 1
-#define NTL_STD_CXX
-
-/* 
- * Use this flag if you want to use the "Standard C++" version of NTL.
- * In this version, all of NTL is "wrapped" inside the namespace NTL,
- * and are no longer directly accessible---you must either use
- * explicit qualification, or using directives, or using declarations.
- * However, note that all names that begin with "NTL_" are macros,
- * and as such do not belong to any namespace.
- * Additionally, instead of including the standard headers
- * <stdlib.h>, <math.h>, and <iostream.h>, the standard headers
- * <cstdlib>, <cmath>, and <iostream> are included.
- * These "wrap" some (but not all) names in namespace std.
- * Also, the 'nothrow' version on the 'new' operator is used.
- *
- * To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-/* The following three flags may be used if you want to use some
- * of the features of Standard C++, but your compiler is deficient.
- * Instead of setting the NTL_STD_CXX, you can set any subset 
- * of the these three.  Setting all three of these flags is equivalent
- * to setting NTL_STD_CXX.  No harm is done if NTL_STD_CXX is set
- * and some of the following three flags are set.
- *
- * To re-build after changing any of these flags: rm *.o; make ntl.a
- */
-
-#if 0
-#define NTL_PSTD_NNS
-
-/* Set if NTL library components are to be wrapped in namespace 'NTL'. */
-
-#endif
-
-#if 0
-#define NTL_PSTD_NHF
-
-/* Set if you want to use the new header files <cstdlib>, <cmath>, and 
- * <iostream>, instead of the traditional header files <stdlib.h>,
- * <math.h>, and <iostream.h>.
- * If new header files are used, then it is assumed that all standard 
- * library components are wrapped in namespace std; otherwise,
- * it is assumed that all standard library components are in the
- * global namespace.
- *
- * Also, when set, some internal NTL files use the header <fstream>
- * in place of <fstream.h>.                                                      
- */
-
-#endif
-
-#if 0
-#define NTL_PSTD_NTN
-
-/* Set if you want to use the 'nothrow' version of new. */
-
-#endif
-
-
-#if 0
-#define NTL_GMP_LIP
-
-/* 
- * Use this flag if you want to use GMP as the long integer package.
- * This can result in significantly faster code on some platforms.
- * It requires that the GMP package (version >= 3.1) has already been
- * installed.  You will also have to set the variables GMP_OPT_INCDIR,
- * GMP_OPT_LIBDIR, GMP_OPT_LIB in the makefile (these are set automatically
- * by the confiuration script when you pass the flag NTL_GMP_LIP=on
- * to that script.
- *
- * Beware that setting this flag can break some older NTL codes.
- * If you want complete backward compatability, but not quite
- * the full performance of GMP, use the flag NTL_GMP_HACK below.
- * See the full NTL documentation for more details.
- *
- * To re-build after changing this flag:
- *   rm *.o; make setup3; make ntl.a
- * You may also have to edit the makefile to modify the variables
- * GMP_OPT_INCDIR, GMP_OPT_LIBDIR, and GMP_OPT_LIB.
- */
-
-#elif 0
-#define NTL_GMP_HACK
-
-/* 
- * Use this flag if you want to use GMP as the long integer package.
- * This can result in significantly faster code on some platforms.
- * It requires that the GMP package (version >= 2.0.2) has already been
- * installed.  You will also have to set the variables GMP_OPT_INCDIR,
- * GMP_OPT_LIBDIR, GMP_OPT_LIB in the makefile (these are set automatically
- * by the confiuration script when you pass the flag NTL_GMP_HACK=on
- * to that script.
- *
- * Unlike the NTL_GMP_LIP flag above, setting this flag maintains
- * complete backward compatability with older NTL codes, but
- * you do not get the full performance of GMP.
- *
- * To re-build after changing this flag:
- *   rm lip.o; make setup3; make ntl.a
- * You may also have to edit the makefile to modify the variables
- * GMP_OPT_INCDIR, GMP_OPT_LIBDIR, and GMP_OPT_LIB.
- *
- */
-
-#endif
-
-#if 0
-#define NTL_GF2X_LIB
-
-/* 
- * Use this flag if you want to use the gf2x library for
- * faster GF2X arithmetic.
- * This can result in significantly faster code, especially
- * when working with polynomials of huge degree.
- * You will also have to set the variables GF2X_OPT_INCDIR,
- * GF2X_OPT_LIBDIR, GF2X_OPT_LIB in the makefile (these are set automatically
- * by the confiuration script when you pass the flag NTL_GF2X_LIB=on
- * to that script.
- *
- * To re-build after changing this flag:
- *   rm GF2X.o; GF2X1.o; make ntl.a
- * You may also have to edit the makefile to modify the variables
- * GF2X_OPT_INCDIR, GF2X_OPT_LIBDIR, and GF2X_OPT_LIB.
- */
-
-#endif
-
-#if 0
-#define NTL_LONG_LONG_TYPE long long
-
-/*
- *   If you set the flag NTL_LONG_LONG, then the value of
- *   NTL_LONG_LONG_TYPE will be used
- *   to declare 'double word' signed integer types.
- *   Irrelevant when NTL_GMP_LIP is set.
- *   If left undefined, some "ifdef magic" will attempt
- *   to find the best choice for your platform, depending
- *   on the compiler and wordsize.  On 32-bit machines,
- *   this is usually 'long long'.
- *
- *   To re-build after changing this flag: rm lip.o; make ntl.a
- */
-
-#endif
-
-
-#if 0
-#define NTL_UNSIGNED_LONG_LONG_TYPE unsigned long long
-
-/*
- *   If you set the flag NTL_SPMM_ULL, then the value of
- *   NTL_UNSIGNED_LONG_LONG_TYPE will be used
- *   to declare 'double word' unsigned integer types.
- *   If left undefined, some "ifdef magic" will attempt
- *   to find the best choice for your platform, depending
- *   on the compiler and wordsize.  On 32-bit machines,
- *   this is usually 'unsigned long long'.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-
-#if 0
-#define NTL_CXX_ONLY
-
-/*
- *   It is possible to compile everything using C++ only.
- *   If you want to do this, make CC and CXX in the makefile the same.
- *   You may also want to set this flag, which eliminates some
- *   "C" linkage that is no longer necessary.
- *   However, it should still work without it.
- *   
- *   This flag can be set independently of NTL_STD_CXX.
- *   All functions that may have "C" linkage are never wrapped in
- *   namespace NTL;  instead, their names always start with "_ntl_",
- *   and as such, they should not conflict with other global names.
- *   All such names are undocumented, and should never be used 
- *   by NTL clients under normal circumstances.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-#if 0
-#define NTL_CLEAN_INT
-
-/*
- *   This will disallow the use of some non-standard integer arithmetic
- *   that may improve performance somewhat.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-#if 0
-#define NTL_CLEAN_PTR
-
-/*
- *   This will disallow the use of some non-standard pointer arithmetic
- *   that may improve performance somewhat.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
- 
-#if 0
-#define NTL_RANGE_CHECK
-
-/*
- *   This will generate vector subscript range-check code.
- *   Useful for debugging, but it slows things down of course.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-
-
-
-
-#if 0
-#define NTL_NO_INIT_TRANS
-
-/*
- *   Without this flag, NTL uses a special code sequence to avoid
- *   copying large objects in return statements.  However, if your
- *   compiler optimizes away the return of a *named* local object,
- *   this is not necessary, and setting this flag will result
- *   in *slightly* more compact and efficient code.  Although
- *   the emeriging C++ standard allows compilers to perform
- *   this optimization, I know of none that currently do.
- *   Most will avoid copying *temporary* objects in return statements,
- *   and NTL's default code sequence exploits this fact.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-
-#if 0
-#define NTL_X86_FIX
-
-/*
- *  Forces the "x86 floating point fix", overriding the default behavior.
- *  By default, NTL will apply the "fix" if it looks like it is
- *  necessary, and if knows how to fix it.
- *  The problem addressed here is that x86 processors sometimes
- *  run in a mode where FP registers have more precision than doubles.
- *  This will cause code in quad_float.c some trouble.
- *  NTL can normally correctly detect the problem, and fix it,
- *  so you shouldn't need to worry about this or the next flag.
-
- *  To re-build after changing this flag: rm quad_float.o; make ntl.a
- *  
- */
-
-#elif 0
-#define NTL_NO_X86_FIX
-/*
- *  Forces no "x86 floating point fix", overriding the default behavior.
-
- *  To re-build after changing this flag: rm quad_float.o; make ntl.a
- */
-
-#endif
-
-
-
-
-/*************************************************************************
- *
- *  Performance Options
- *
- *************************************************************************/
-
-
-/* One can choose one of four different stragtegies for long integer
- * arithmetic: the default, NTL_LONG_LONG, NTL_AVOID_FLOAT, or NTL_SINGLE_MUL.
- * The configuration wizard will choose among the first three; the use of
- * NTL_SINGLE_MUL is only allowed if NTL_CLEAN_INT is not set, and its
- * use is not recommended.
- *
- * These flags are irrelevant when NTL_GMP_LIP is set, and are simply ignored,
- * except for NTL_SINGLE_MUL -- setting that causes a complie-time error.
- * 
- */
-
-#if 0
-#define NTL_LONG_LONG
-
-/*
- *
- *   For platforms that support it, this flag can be set to cause
- *   the low-level multiplication code to use the type "long long",
- *   which may yield a significant performance gain,
- *   but on others, it can yield no improvement and can even
- *   slow things down.
- *
- *
- *   See below (NTL_LONG_LONG_TYPE) for how to use a type name 
- *   other than "long long".
- *
- *   If you set NTL_LONG_LONG, you might also want to set
- *   the flag NTL_TBL_REM (see below).
- *
- *   To re-build after changing this flag:  rm lip.o; make ntl.a
- */
-
-#elif 0
-#define NTL_AVOID_FLOAT
-
-/*
- *
- *   On machines with slow floating point or---more comminly---slow int/float
- *   conversions, this flag can lead to faster code.
- *
- *   If you set NTL_AVOID_FLOAT, you should probably also
- *   set NTL_TBL_REM (see below).
- *
- *   To re-build after changing this flag:  rm lip.o; make ntl.a
- */
-
-#elif 0
-#define NTL_SINGLE_MUL 
-
-/*   This was developed originally to improve performance on
- *   ancient Sparc stations that did not have built-in integer mul
- *   instructions.  Unless you have such an old-timer, I would not
- *   recommend using this option.  This option only works on
- *   32-bit machines with IEEE floating point, and is not truly
- *   portable.  If you use this option, you get a 26-bit radix.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-
-/* There are four strategies to implmement single-precision
- * modular multiplication with precondinition (see the MulModPrecon
- * function in the ZZ module): the default, NTL_SPMM_UL, and NTL_SPMM_ULL,
- * and NTL_SPMM_ASM.
- * This plays a crucial role in the  "small prime FFT" used to 
- * implement polynomial arithmetic, and in other CRT-based methods 
- * (such as linear  algebra over ZZ), as well as polynomial andd matrix 
- * arithmetic over zz_p.  
- */
-
-
-#if 0
-#define NTL_SPMM_UL
-
-/*    The default MulModPrecon implementation uses a mix of
- *    int and float arithmetic, which may be slow on certain machines.
- *    This flag causes an "all integer" implementation to be used.
- *    It is entirely portable.
- *    To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-
-
-#elif 0
-#define NTL_SPMM_ULL
-
-/*    Like this previous flag, this also causes an "all integer"
- *    implementation of MulModPrecon to be used.
- *    It us usually a faster implementation,
- *    but it is not enturely portable.
- *    It relies on double-word unsigned multiplication
- *    (see NTL_UNSIGNED_LONG_LONG_TYPE above). 
- *
- *    To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#elif 0
-#define NTL_SPMM_ASM
-
-/*    Like this previous two flag, this also causes an "all integer"
- *    implementation of MulModPrecon to be used.
- *    It relies assembler code to do double-word unsigned multiplication.
- *    This is only supported on a select mechines under GCC. 
- *
- *    To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-
-#endif
-
-
-
-
-
-/* The next five flags NTL_AVOID_BRANCHING, NTL_TBL_REM,
- * NTL_GF2X_ALTCODE, NTL_GF2X_ALTCODE1, and NTL_GF2X_NOINLINE
- * are also set by the configuration wizard.  
- */
-
-
-
-#if 0
-#define NTL_AVOID_BRANCHING
-
-/*
- *   With this option, branches are replaced at several 
- *   key points with equivalent code using shifts and masks.
- *   It may speed things up on machines with 
- *   deep pipelines and high branch penalities.
- *   This flag mainly affects the implementation of the
- *   single-precision modular arithmetic routines.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-
-
-#if 0
-#define NTL_TBL_REM
-
-/*
- *
- *   With this flag, some divisions are avoided in the
- *   ZZ_pX multiplication routines.  If you use the NTL_AVOID_FLOAT 
- *   or NTL_LONG_LONG flags, then you should probably use this one too.
- *
- *   Irrelevent when NTL_GMP_LIP is set.
- *
- *   To re-build after changing this flag: 
- *      rm lip.o; make ntl.a
- */
-
-#endif
-
-
-#if 0
-#define NTL_GF2X_ALTCODE
-
-/*
- * With this option, the default strategy for implmenting low-level
- * GF2X multiplication is replaced with an alternative strategy.
- * This alternative strategy seems to work better on RISC machines
- * with deep pipelines and high branch penalties (like a powerpc),
- * but does no better (or even worse) on x86s.
- *
- * To re-build after changing this flag: rm GF2X.o; make ntl.a
- */
-
-#elif 0
-#define NTL_GF2X_ALTCODE1
-
-
-/*
- * Yest another alternative strategy for implementing GF2X
- * multiplication.
- *
- * To re-build after changing this flag: rm GF2X.o; make ntl.a
- */
-
-
-#endif
-
-#if 0
-#define NTL_GF2X_NOINLINE
-
-/*
- * By default, the low-level GF2X multiplication routine in inlined.
- * This can potentially lead to some trouble on some platforms,
- * and you can override the default by setting this flag.
- *
- * To re-build after changing this flag: rm GF2X.o; make ntl.a
- */
-
-#endif
-
-
-
-
-/* The following flag is not set by the configuration wizard;  its use
- * is not generally recommended.
- */
-
- 
-#if 0
-#define NTL_FAST_INT_MUL
-
-/*
- *   Really esoteric.
- *   If using NTL_SINGLE_MUL, and your machine
- *   has a fast integer multiply instruction, this might yield
- *   faster code.  Experiment!
- *
- *   Irrelevent when NTL_GMP_LIP is set.
- *
- *   To re-build after changing this flag: rm *.o; make ntl.a
- */
-
-#endif
-
-
-
-
-
-
-
-#endif
diff --git a/src/makefile b/src/makefile
deleted file mode 100644
index 05da9ea..0000000
--- a/src/makefile
+++ /dev/null
@@ -1,551 +0,0 @@
-###############################################################
-#
-#  First, choose a C and C++ compilers, and set compiler flags.
-#  This is done by setting the variables CXX, CC, CFLAGS, and
-#  CXXFLAGS.
-#
-###############################################################
-
-
-CC=gcc
-# A C or C++ compiler, e. g., gcc, cc, xlc.
-# There are a few components written in C which may be compiled
-# under C++, but C compilers tend to generate slightly better code.
-# The C++ and C compilers (if different) must generate
-# compatible code.
-
-
-CXX=g++
-# A C++ compiler, e.g., g++, CC, xlC
-
-
-CFLAGS=-O2
-# Flags for the C compiler
-# Some useful flags:
-#   -O2   --  recommended level of optimization
-#   -m64  --  needed to get 64-bit longs on some platforms
-#   -g    --  debugging
-#   -mcpu=v8  --  needed with gcc/g++ to get the full instruction set
-#                 of a SparcStation
-#   -qarch=ppc  -- needed with xlc/C to get the full instruction set
-#                  of a PowerPC
-
-
-
-CXXFLAGS=$(CFLAGS)
-# Flags for the C++ compiler (usually the same as CFLAGS)
-# Some useful flags:
-#   -+  -- needed with xlC to make it treat .c files as C++ files
-
-# Here are a few more variables for standard utilities.
-# The defaults should almost always be OK.
-
-
-AR=ar
-# command to make a library
-
-ARFLAGS=ruv
-# arguments for AR
-
-RANLIB=ranlib
-# set to echo if you want to disable it completely
-
-LDFLAGS=
-# arguments for linker for C programs
-
-LDFLAGS_CXX=$(LDFLAGS)
-# libraries for linking C++ programs
-
-LDLIBS=-lm
-# libraries for linking C programs
-
-LDLIBS_CXX=$(LDLIBS)
-# libraries for linking C++ programs
-
-CPPFLAGS=
-# arguments for the C preprocessor
-
-LIBTOOL=libtool
-# libtool command
-
-DEF_PREFIX=/usr/local
-
-PREFIX=$(DEF_PREFIX)
-LIBDIR=$(PREFIX)/lib
-INCLUDEDIR=$(PREFIX)/include
-DOCDIR=$(PREFIX)/share/doc
-# where to install NTL
-
-###############################################################
-#
-#  Second, if you want to use GMP (the GNU Multi-Precision library),
-#  define the variables GMP_OPT_INCDIR, GMP_OPT_LIBDIR, GMP_OPT_LIB below.
-#  You also will have to set either NTL_GMP_LIP or NTL_GMP_HACK
-#  in the config.h file.
-#
-#  Using GMP can lead to significant performance gains on some
-#  platforms.  You can obtain GMP from http://www.swox.com/gmp.
-#  Once you unpack it into a directory, just execute
-#     ./configure; make
-#  in that directory.
-#
-###############################################################
-
-
-GMP_PREFIX=$(DEF_PREFIX)
-
-GMP_INCDIR=$(GMP_PREFIX)/include
-# directory containing gmp.h if using GMP 
-
-GMP_LIBDIR=$(GMP_PREFIX)/lib
-# directory containing libgmp.a if using GMP 
-
-GMP_OPT_INCDIR=# -I$(GMP_INCDIR) # GMP
-GMP_OPT_LIBDIR=# -L$(GMP_LIBDIR) # GMP
-GMP_OPT_LIB=# -lgmp # GMP
-# uncomment these if using GMP
-
-
-###############################################################
-#
-#  Third, if you want to use gf2x (a library for fast
-#  multiplication over GF(2)[X]), you need to
-#  define the variables GF2X_OPT_INCDIR, GF2X_OPT_LIBDIR, GF2X_OPT_LIB below.
-#  You also will have to set NTL_GF2X_LIB 
-#  in the config.h file.
-#
-###############################################################
-
-GF2X_PREFIX=$(DEF_PREFIX)
-
-GF2X_INCDIR=$(GF2X_PREFIX)/include
-# directory containing gf2x.h if using gf2x
-
-GF2X_LIBDIR=$(GF2X_PREFIX)/lib
-# directory containing libgf2x.a
-
-GF2X_OPT_INCDIR=# -I$(GF2X_INCDIR) # GF2X
-GF2X_OPT_LIBDIR=# -L$(GF2X_LIBDIR) # GF2X
-GF2X_OPT_LIB=# -lgf2x # GF2X
-# uncomment these if using gf2x
-
-
-###############################################################
-#
-# Fourth, if you do not want to run the wizard that automagically
-# sets some performace related flags in config.h, set the flag below.
-#
-###############################################################
-
-
-WIZARD=on
-# Set to off if you want to bypass the wizard; otherwise, set to on.
-
-
-#################################################################
-#
-#  That's it!  You can ignore everything else in this file!
-#
-#################################################################
-
-
-# object files
-
-O01=FFT.o FacVec.o GF2.o GF2E.o GF2EX.o GF2EXFactoring.o GF2X.o GF2X1.o
-O02=$(O01) GF2XFactoring.o GF2XVec.o GetTime.o HNF.o ctools.o LLL.o LLL_FP.o
-O03=$(O02) LLL_QP.o LLL_RR.o LLL_XD.o RR.o WordVector.o ZZ.o ZZVec.o
-O04=$(O03) ZZX.o ZZX1.o ZZXCharPoly.o ZZXFactoring.o ZZ_p.o ZZ_pE.o ZZ_pEX.o
-O05=$(O04) ZZ_pEXFactoring.o ZZ_pX.o ZZ_pX1.o ZZ_pXCharPoly.o ZZ_pXFactoring.o
-O06=$(O05) fileio.o lip.o lzz_p.o lzz_pE.o lzz_pEX.o lzz_pEXFactoring.o
-O07=$(O06) lzz_pX.o lzz_pX1.o lzz_pXCharPoly.o lzz_pXFactoring.o
-O08=$(O07) mat_GF2.o mat_GF2E.o mat_RR.o mat_ZZ.o mat_ZZ_p.o
-O09=$(O08) mat_ZZ_pE.o mat_lzz_p.o mat_lzz_pE.o mat_poly_ZZ.o
-O10=$(O09) mat_poly_ZZ_p.o mat_poly_lzz_p.o pair_GF2EX_long.o
-O11=$(O10) pair_GF2X_long.o pair_ZZX_long.o pair_ZZ_pEX_long.o
-O12=$(O11) pair_ZZ_pX_long.o pair_lzz_pEX_long.o pair_lzz_pX_long.o
-O13=$(O12) quad_float.o tools.o vec_GF2.o vec_GF2E.o vec_GF2XVec.o
-O14=$(O13) vec_RR.o vec_ZZ.o vec_ZZVec.o vec_ZZ_p.o vec_ZZ_pE.o
-O15=$(O14) vec_double.o vec_long.o vec_lzz_p.o vec_lzz_pE.o vec_quad_float.o
-O16=$(O15) vec_vec_GF2.o vec_vec_GF2E.o vec_vec_RR.o vec_vec_ZZ.o
-O17=$(O16) vec_vec_ZZ_p.o vec_vec_ZZ_pE.o vec_vec_long.o vec_vec_lzz_p.o
-O18=$(O17) vec_vec_lzz_pE.o vec_xdouble.o xdouble.o
-O19=$(O18) G_LLL_FP.o G_LLL_QP.o G_LLL_XD.o G_LLL_RR.o vec_ulong.o vec_vec_ulong.o
-
-OBJ=$(O19)
-
-# library source files
-
-
-S01=FFT.c FacVec.c GF2.c GF2E.c GF2EX.c GF2EXFactoring.c GF2X.c GF2X1.c
-S02=$(S01) GF2XFactoring.c GF2XVec.c HNF.c ctools.c LLL.c LLL_FP.c LLL_QP.c
-S03=$(S02) LLL_RR.c LLL_XD.c RR.c WordVector.c ZZ.c ZZVec.c ZZX.c ZZX1.c
-S04=$(S03) ZZXCharPoly.c ZZXFactoring.c ZZ_p.c ZZ_pE.c ZZ_pEX.c 
-S05=$(S04) ZZ_pEXFactoring.c ZZ_pX.c ZZ_pX1.c ZZ_pXCharPoly.c
-S06=$(S05) ZZ_pXFactoring.c fileio.c lip.c lzz_p.c lzz_pE.c lzz_pEX.c
-S07=$(S06) lzz_pEXFactoring.c lzz_pX.c lzz_pX1.c
-S08=$(S07) lzz_pXCharPoly.c lzz_pXFactoring.c mat_GF2.c mat_GF2E.c
-S09=$(S08) mat_RR.c mat_ZZ.c mat_ZZ_p.c mat_ZZ_pE.c mat_lzz_p.c mat_lzz_pE.c
-S10=$(S09) mat_poly_ZZ.c mat_poly_ZZ_p.c mat_poly_lzz_p.c pair_GF2EX_long.c
-S11=$(S10) pair_GF2X_long.c pair_ZZX_long.c pair_ZZ_pEX_long.c
-S12=$(S11) pair_ZZ_pX_long.c pair_lzz_pEX_long.c pair_lzz_pX_long.c
-S13=$(S12) quad_float.c tools.c vec_GF2.c vec_GF2E.c vec_GF2XVec.c vec_RR.c
-S14=$(S13) vec_ZZ.c vec_ZZVec.c vec_ZZ_p.c vec_ZZ_pE.c vec_double.c
-S15=$(S14) vec_long.c vec_lzz_p.c vec_lzz_pE.c vec_quad_float.c
-S16=$(S15) vec_vec_GF2.c vec_vec_GF2E.c vec_vec_RR.c vec_vec_ZZ.c
-S17=$(S16) vec_vec_ZZ_p.c vec_vec_ZZ_pE.c vec_vec_long.c vec_vec_lzz_p.c
-S18=$(S17) vec_vec_lzz_pE.c vec_xdouble.c xdouble.c
-S19=$(S18) G_LLL_FP.c G_LLL_QP.c G_LLL_XD.c G_LLL_RR.c 
-S20=$(S19) vec_ulong.c vec_vec_ulong.c 
-
-SRC = $(S20)
-
-# library source files that are header files
-
-SINC = c_lip_impl.h g_lip_impl.h
-
-
-
-
-
-# library header files
-
-IN01= FFT.h FacVec.h GF2.h GF2E.h GF2EX.h GF2EXFactoring.h GF2X.h
-IN02=$(IN01) GF2XFactoring.h GF2XVec.h HNF.h ctools.h LLL.h 
-IN03=$(IN02) RR.h SPMM_ASM.h WordVector.h ZZ.h ZZVec.h ZZX.h ZZXFactoring.h 
-IN04=$(IN03) ZZ_p.h ZZ_pE.h ZZ_pEX.h ZZ_pEXFactoring.h ZZ_pX.h ZZ_pXFactoring.h
-IN05=$(IN04) fileio.h lip.h lzz_p.h lzz_pE.h lzz_pEX.h lzz_pEXFactoring.h
-IN06=$(IN05) lzz_pX.h lzz_pXFactoring.h mat_GF2.h mat_GF2E.h mat_RR.h
-IN07=$(IN06) mat_ZZ.h mat_ZZ_p.h mat_ZZ_pE.h mat_lzz_p.h mat_lzz_pE.h
-IN08=$(IN07) mat_poly_ZZ.h mat_poly_ZZ_p.h mat_poly_lzz_p.h matrix.h
-IN09=$(IN08) pair.h vector.h pair_GF2EX_long.h pair_GF2X_long.h
-IN10=$(IN09) pair_ZZX_long.h pair_ZZ_pEX_long.h pair_ZZ_pX_long.h
-IN11=$(IN10) pair_lzz_pEX_long.h pair_lzz_pX_long.h quad_float.h
-IN12=$(IN11) tools.h vec_GF2.h vec_GF2E.h vec_GF2XVec.h vec_RR.h
-IN13=$(IN12) vec_ZZ.h vec_ZZVec.h vec_ZZ_p.h vec_ZZ_pE.h vec_double.h
-IN14=$(IN13) vec_long.h vec_lzz_p.h vec_lzz_pE.h vec_quad_float.h
-IN15=$(IN14) vec_vec_GF2.h vec_vec_GF2E.h vec_vec_RR.h vec_vec_ZZ.h
-IN16=$(IN15) vec_vec_ZZ_p.h vec_vec_ZZ_pE.h vec_vec_long.h vec_vec_lzz_p.h
-IN17=$(IN16) vec_vec_lzz_pE.h vec_xdouble.h xdouble.h config.h version.h
-IN18=$(IN17) def_config.h new.h vec_ulong.h vec_vec_ulong.h c_lip.h g_lip.h
-
-INCL=$(IN18)
-
-
-
-# test data
-
-TD1=BerlekampTestIn BerlekampTestOut CanZassTestIn CanZassTestOut 
-TD2=$(TD1) ZZXFacTestIn ZZXFacTestOut MoreFacTestIn LLLTestIn LLLTestOut RRTestIn RRTestOut 
-TD3=$(TD2) MatrixTestIn MatrixTestOut CharPolyTestIn  
-TD4=$(TD3) CharPolyTestOut QuadTestIn QuadTestOut
-
-TD = $(TD4)
-
-# test source files
-
-TS1=QuickTest.c BerlekampTest.c CanZassTest.c ZZXFacTest.c MoreFacTest.c LLLTest.c
-TS2=$(TS1) subset.c MatrixTest.c CharPolyTest.c RRTest.c QuadTest.c
-TS3=$(TS2) GF2XTest.c GF2EXTest.c BitMatTest.c ZZ_pEXTest.c lzz_pEXTest.c
-
-TS = $(TS3)
-
-# scripts
-
-SCRIPTS1=MakeGetTime TestScript dosify unixify RemoveProg 
-SCRIPTS2=$(SCRIPTS1) configure DoConfig mfile cfile
-
-SCRIPTS=$(SCRIPTS2)
-
-# auxilliary source
-
-MD=MakeDesc.c MakeDescAux.c newnames.c gen_lip_gmp_aux.c gen_gmp_aux.c
-
-GT=GetTime1.c GetTime2.c GetTime3.c GetTime4.c GetTime5.c TestGetTime.c
-
-
-# documentation
-
-
-D01=copying.txt GF2.txt GF2E.txt GF2EX.txt GF2EXFactoring.txt GF2X.txt
-D02=$(D01) GF2XFactoring.txt GF2XVec.txt HNF.txt LLL.txt RR.txt
-D03=$(D02) ZZ.txt ZZVec.txt ZZX.txt ZZXFactoring.txt ZZ_p.txt ZZ_pE.txt
-D04=$(D03) ZZ_pEX.txt ZZ_pEXFactoring.txt ZZ_pX.txt ZZ_pXFactoring.txt
-D05=$(D04) conversions.txt flags.txt lzz_p.txt lzz_pE.txt lzz_pEX.txt
-D06=$(D05) lzz_pEXFactoring.txt lzz_pX.txt lzz_pXFactoring.txt mat_GF2.txt
-D07=$(D06) mat_GF2E.txt mat_RR.txt mat_ZZ.txt mat_ZZ_p.txt mat_ZZ_pE.txt
-D08=$(D07) mat_lzz_p.txt mat_lzz_pE.txt mat_poly_ZZ.txt mat_poly_ZZ_p.txt
-D09=$(D08) mat_poly_lzz_p.txt matrix.txt pair.txt vector.txt
-D10=$(D09) quad_float.txt sedscript.txt tools.txt vec_GF2.txt
-D11=$(D10) vec_GF2E.txt vec_RR.txt vec_ZZ.txt vec_ZZ_p.txt vec_ZZ_pE.txt
-D12=$(D11) vec_lzz_p.txt vec_lzz_pE.txt xdouble.txt names.txt
-D13=$(D12) tour-ack.html tour-intro.html tour-time.html tour-changes.html
-D14=$(D13) tour-modules.html tour-stdcxx.html tour-unix.html tour-examples.html
-D15=$(D14) tour-roadmap.html tour-win.html tour-impl.html tour-struct.html
-D16=$(D15) tour.html tour-ex1.html tour-ex2.html tour-ex3.html tour-ex4.html
-D17=$(D16) tour-ex5.html tour-ex6.html arrow1.gif arrow2.gif arrow3.gif
-D18=$(D17) tour-gmp.html tour-gf2x.html tour-tips.html config.txt version.txt
-
-DOC = $(D18)
-
-
-
-# test program executables
-
-PROG1=QuickTest BerlekampTest CanZassTest ZZXFacTest MoreFacTest LLLTest  BitMatTest
-PROG2=$(PROG1) MatrixTest CharPolyTest RRTest QuadTest 
-PROG3=$(PROG2) GF2XTest GF2EXTest subset ZZ_pEXTest lzz_pEXTest
-PROGS = $(PROG3)
-
-# things to save to a tar file
-
-SFI1=makefile $(SRC) $(SINC) $(SCRIPTS) $(MD) $(GT) $(TS) $(TD) mach_desc.win 
-SFI2=$(SFI1) MulTimeTest.c PolyTimeTest.c Poly1TimeTest.c GF2XTimeTest.c  
-SFI3=$(SFI2) InitSettings.c DispSettings.c  WizardAux Wizard def_makefile
-SFILES=$(SFI3)
-
-
-#################################################################
-#
-#  Rules for compiling the library
-#
-#################################################################
-
-
-NTL_INCLUDE = -I../include -I.
-# NTL needs this to find its include files
-
-COMPILE = $(CC) $(NTL_INCLUDE) $(CPPFLAGS) $(CFLAGS) -c
-COMPILE_CXX = $(CXX) $(NTL_INCLUDE) $(CPPFLAGS) $(CXXFLAGS) -c
-
-LINK = $(CC) $(NTL_INCLUDE) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
-LINK_CXX = $(CXX) $(NTL_INCLUDE) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS_CXX)
-
-
-
-# 'make all' does a complete make, including all setup.
-# It also creates the file 'all', which means you should
-# run 'make clobber' before running 'make' or 'make all'
-# again.
-
-all:
-	make setup1
-	make setup2
-	make setup3
-	make setup4
-	make ntl.a
-	touch all
-
-
-# setup1 generates the file ../incluse/NTL/mach_desc.h
-
-setup1:
-	$(COMPILE) MakeDescAux.c
-	$(LINK) -o MakeDesc MakeDesc.c MakeDescAux.o $(LDLIBS)
-	./MakeDesc
-	mv mach_desc.h ../include/NTL/mach_desc.h
-
-# setup2 generates the file GetTime.c
-
-setup2:
-	sh MakeGetTime "$(LINK)" "$(LDLIBS)"
-
-# setup3 generates the files lip_gmp_aux_impl.h and ../include/NTL/gmp_aux.h
-# The file lip_gmp_aux_impl.h is included when lip.c when NTL_GMP_HACK is set.
-# The file ../include/NTL/gmp_aux.h is included in ../include/NTL/lip.h
-# when NTL_GMP_LIP is set.
-# When these flags are not set, empty files are produced.
-
-setup3:
-	$(LINK) $(GMP_OPT_INCDIR) -o gen_lip_gmp_aux gen_lip_gmp_aux.c $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(LDLIBS)
-	./gen_lip_gmp_aux > lip_gmp_aux_impl.h
-	$(LINK) $(GMP_OPT_INCDIR) -o gen_gmp_aux gen_gmp_aux.c $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(LDLIBS)
-	./gen_gmp_aux > ../include/NTL/gmp_aux.h
-
-# setup4 runs the wizard
-
-setup4:
-	sh Wizard $(WIZARD)
-
-
-ntl.a:	$(OBJ) 
-	$(AR) $(ARFLAGS) ntl.a $(OBJ) #LSTAT
-	- $(RANLIB) ntl.a #LSTAT
-# 	$(LIBTOOL) --mode=link $(LINK_CXX) -o libntl.la $(OBJ:.o=.lo) $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB) $(LDLIBS_CXX) -rpath $(LIBDIR) -version-info `cat VERSION_INFO` #LSHAR
-
-LCOMP= #LSTAT
-# LCOMP=$(LIBTOOL) --mode=compile #LSHAR
-
-lip.o:	lip.c g_lip_impl.h c_lip_impl.h lip_gmp_aux_impl.h
-	$(LCOMP) $(COMPILE) $(GMP_OPT_INCDIR) lip.c
-
-ctools.o:	ctools.c
-	$(LCOMP) $(COMPILE) ctools.c
-
-
-GetTime.o: GetTime.c 
-	$(LCOMP) $(COMPILE) GetTime.c
-
-
-
-.c.o: 
-	$(LCOMP) $(COMPILE_CXX) $(GF2X_OPT_INCDIR) $<
-
-.c: 
-	$(LINK_CXX) -o $@ $< ntl.a $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB) $(LDLIBS_CXX) #LSTAT
-# 	$(LIBTOOL) --mode=link $(LINK_CXX) -o $@ $< libntl.la #LSHAR
-
-#################################################################
-#
-# Rule for running tests
-# make check runs a series of tests
-#
-#################################################################
-
-check:
-	sh RemoveProg $(PROGS)
-	make QuickTest
-	./QuickTest
-	sh RemoveProg QuickTest
-	sh TestScript
-
-#################################################################
-#
-# Rule for installing
-# make install just does a simple copy of the include file
-#   and library.  The -p option is used to preserve file attributes.
-#   This helps avoid some problems (especially when copying ntl.a).
-#   Also, an attempt is made to make everything that is
-#   installed readable by everyone.
-#   
-# make uninstall removes these files
-#   
-#################################################################
-
-
-
-
-install:
-	mkdir -p -m 755 $(INCLUDEDIR)
-	rm -rf $(INCLUDEDIR)/NTL
-	mkdir -m 755 $(INCLUDEDIR)/NTL
-	cp -p ../include/NTL/*.h $(INCLUDEDIR)/NTL
-	- chmod -R a+r $(INCLUDEDIR)/NTL
-	mkdir -p -m 755 $(DOCDIR)
-	rm -rf $(DOCDIR)/NTL
-	mkdir -m 755 $(DOCDIR)/NTL
-	cp -p ../doc/*.txt $(DOCDIR)/NTL
-	cp -p ../doc/*.html $(DOCDIR)/NTL
-	cp -p ../doc/*.gif $(DOCDIR)/NTL
-	- chmod -R a+r $(DOCDIR)/NTL
-	mkdir -p -m 755 $(LIBDIR)
-	cp -p ntl.a $(LIBDIR)/libntl.a #LSTAT
-	- chmod a+r $(LIBDIR)/libntl.a #LSTAT
-# 	$(LIBTOOL) --mode=install cp -p libntl.la $(LIBDIR) #LSHAR
-
-
-uninstall:
-	rm -f $(LIBDIR)/libntl.a #LSTAT
-# 	$(LIBTOOL) --mode=uninstall rm -f $(LIBDIR)/libntl.la #LSHAR
-	rm -rf $(INCLUDEDIR)/NTL
-	rm -rf $(DOCDIR)/NTL
-
-#################################################################
-#
-#  Rules for cleaning up
-#
-#  make clobber removes *everything* created by make,
-#    but it does not restore config.h to its default.
-#
-#  make clean tidies up a bit
-#
-#################################################################
-
-clobber:	
-	rm -f ntl.a mach_desc.h ../include/NTL/mach_desc.h  GetTime.c 
-	rm -f lip_gmp_aux_impl.h ../include/NTL/gmp_aux.h
-	sh RemoveProg $(PROGS) MakeDesc TestGetTime gen_lip_gmp_aux gen_gmp_aux
-	rm -f *.o
-	rm -rf small
-	rm -f cfileout mfileout
-	rm -rf .libs *.lo libntl.la
-	rm -f all
-
-clean:
-	sh RemoveProg MakeDesc TestGetTime gen_lip_gmp_aux gen_gmp_aux
-	rm -f *.o 
-	rm -rf small
-# 	- $(LIBTOOL) --mode=clean rm -f libntl.la *.lo #LSHAR
-
-#################################################################
-#
-#  Rules for making tar and zip files
-#
-#  make package creates a tar.gz file suitable for Unix
-#
-#  make winpack creates a zip file suitable for Windows
-#
-#################################################################
-
-
-package:
-	sh unixify "$(SFILES) DIRNAME WINDIR VERSION_INFO NOTES" "$(INCL)" "$(DOC)" 
-	rm -rf `cat DIRNAME`
-	rm -f `cat DIRNAME`.tar
-	rm -f `cat DIRNAME`.tar.gz
-	mv unix `cat DIRNAME`
-	chmod -R a+rX `cat DIRNAME`
-	tar -cvf `cat DIRNAME`.tar `cat DIRNAME`
-	gzip `cat DIRNAME`.tar
-	rm -rf `cat DIRNAME`
-
-winpack:
-	sh dosify "$(SRC)" "$(INCL)" "$(DOC)" "$(TS)" "$(TD)" "$(SINC)"
-	rm -rf `cat WINDIR`
-	rm -f `cat WINDIR`.zip 
-	mv dos `cat WINDIR`
-	chmod -R a+rX `cat WINDIR`
-	find ./`cat WINDIR` '!' -name '*.gif' -print | zip -l `cat WINDIR` -@
-	find ./`cat WINDIR` -name '*.gif' -print | zip -u `cat WINDIR` -@
-	rm -rf `cat WINDIR`
-
-
-######################################################################
-#
-#  config wizard related stuff
-#
-######################################################################
-
-WO1 = FFT.o  GetTime.o ctools.o ZZ.o ZZVec.o ZZ_p.o ZZ_pX.o
-WO2 = $(WO1) ZZ_pX1.o lip.o tools.o vec_ZZ.o vec_ZZ_p.o vec_long.o
-WO3 = $(WO2) GF2.o WordVector.o vec_GF2.o GF2X.o GF2X1.o
-
-WOBJ = $(WO3)
-
-# wntl.a: LCOMP= #LSHAR
-wntl.a:	$(WOBJ) 
-	$(AR) $(ARFLAGS) wntl.a $(WOBJ)
-	- $(RANLIB) wntl.a
-
-MulTimeTest:
-	$(LINK_CXX) -o MulTimeTest MulTimeTest.c wntl.a  $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB)  $(LDLIBS_CXX)
-
-PolyTimeTest:
-	$(LINK_CXX) -o PolyTimeTest PolyTimeTest.c wntl.a  $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(LDLIBS_CXX)
-
-Poly1TimeTest:
-	$(LINK_CXX) -o Poly1TimeTest Poly1TimeTest.c wntl.a  $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(LDLIBS_CXX)
-
-
-GF2XTimeTest:
-	$(LINK_CXX) -o GF2XTimeTest GF2XTimeTest.c wntl.a  $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(LDLIBS_CXX)
-
-InitSettings:
-	$(LINK_CXX) -o InitSettings InitSettings.c  $(LDLIBS_CXX)
-
-
-DispSettings:
-	$(LINK_CXX) -o DispSettings DispSettings.c $(LDLIBS_CXX)
-
-
-
-

-- 
Debian packaging for libntl - Number Theory Library



More information about the debian-science-commits mailing list