two bug corrections in PolyhedronIncludes and DomainDifference (reported by skimo...
[polylib.git] / vars.mk
blob4afb47c19ae01285dec21949f5958536556ffd09
1 # Modified by Vincent Loechner, may 2000.
3 # Copyright (c) 2000 The Regents of the University of California.
4 # All rights reserved.
5 # Permission is hereby granted, without written agreement and without
6 # license or royalty fees, to use, copy, modify, and distribute this
7 # software and its documentation for any purpose, provided that the above
8 # copyright notice and the following two paragraphs appear in all copies
9 # of this software.
11 # IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
12 # FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
13 # ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
14 # THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
15 # SUCH DAMAGE.
17 # THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
18 # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
20 # PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
21 # CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
22 # ENHANCEMENTS, OR MODIFICATIONS.
24 # PT_COPYRIGHT_VERSION_2
25 # COPYRIGHTENDKEY
27 # Version identification:
28 # $Id: vars.mk,v 1.3 2001/11/19 13:24:10 loechner Exp $
29 # Date of creation: 7/31/96
30 # Author: Bart Kienhuis
32 VERSION = 5.0
34 # NOTE: Don't edit this file if it is called vars.mk, instead
35 # edit vars.mk.in, which is read by configure
37 # Default top-level directory.
38 prefix = /usr
40 # Usually the same as prefix.
41 # exec_prefix is part of the autoconf standard.
42 exec_prefix = ${prefix}
44 # Source directory we are building from.
45 srcdir = .
47 # Directory in which to install scripts
48 BIN_INSTALL_DIR = $(exec_prefix)/bin
50 # c compiler flags and defines
51 CC = gcc
52 CFLAGS = -g -O2
53 EXTRA_FLAGS =
54 DEFINES = -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_INT=4 -DSIZEOF_LONG_INT=4 -DSIZEOF_LONG_LONG_INT=8
56 # Linker flags and defines, both static and shared lib
57 LD = gcc
58 LDFLAGS =
60 # Additional libraries that need to be linked
61 LIBS =
63 # Additional tools needed when making libraries
64 LN_S = ln -s
65 RANLIB = ranlib
67 SHEXT = so
69 # defines needed for arithmetic lib
70 INT_AFLAGS = -DLINEAR_VALUE_IS_INT
71 LONG_AFLAGS = -DLINEAR_VALUE_PROTECT_MULTIPLY -DLINEAR_VALUE_ASSUME_SOFTWARE_IDIV -DLINEAR_VALUE_IS_LONGLONG
72 GMP_AFLAGS = -DGNUMP
73 INT_BITS = 32
74 LONG_BITS = 64
75 GMP_BITS = gmp
77 # Library type to construct
78 INSTALL_LIB =
80 # Commands used to install scripts and data
81 INSTALL = /usr/bin/install -c
82 INSTALL_PROGRAM = ${INSTALL}
83 INSTALL_DATA = ${INSTALL} -m 644
85 ## GNU-MP stuff
86 EXTRA_INCLUDES=
87 EXTRA_LIBS=
89 # Platform specific variables
90 OSTYPE = linux-gnu
91 HOST = pc
92 BUILD = i686
95 EXEC_EXTRA_SUFFIX =
97 ## make install puts everything here: relays on --prefix
98 INSTALLDIR = /usr
99 BINDIR = $(INSTALLDIR)/bin
100 LIBDIR = $(INSTALLDIR)/lib
101 INCLUDEDIR = $(INSTALLDIR)/include
102 MANDIR = $(INSTALLDIR)/man
103 DOCSDIR = $(INSTALLDIR)/doc/packages/polylib-$(VERSION)
105 # When compiling the tests, we need to link additional libraries
106 # include polylib
107 EXEC_EXTRA_LIBS= -L$(OBJ_DIR) -lpolylib$(BITS) $(LIBS)
108 SHAREDLIB_FLAG = -shared
109 LDCONFIG = ldconfig
111 LIBS_TO_BUILD = 64
112 EXEC_TO_BUILD = 64