1 # Modified by Vincent Loechner, may 2000.
3 # Copyright (c) 2000 The Regents of the University of California.
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
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
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
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
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.
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.
47 # Directory in which to install scripts
48 BIN_INSTALL_DIR
= $(exec_prefix)/bin
50 # c compiler flags and defines
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
60 # Additional libraries that need to be linked
63 # Additional tools needed when making libraries
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
77 # Library type to construct
80 # Commands used to install scripts and data
81 INSTALL
= /usr
/bin
/install -c
82 INSTALL_PROGRAM
= ${INSTALL}
83 INSTALL_DATA
= ${INSTALL} -m
644
89 # Platform specific variables
97 ## make install puts everything here: relays on --prefix
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
107 EXEC_EXTRA_LIBS
= -L
$(OBJ_DIR
) -lpolylib
$(BITS
) $(LIBS
)
108 SHAREDLIB_FLAG
= -shared