Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /trunk/Makefile.conf
Parent Directory
|
Revision Log
Revision 1373 -
(show annotations)
(download)
Mon Jun 3 17:58:46 2013 UTC (11 years, 9 months ago) by amb
File size: 1966 byte(s)
Mon Jun 3 17:58:46 2013 UTC (11 years, 9 months ago) by amb
File size: 1966 byte(s)
Use the -ffast-math compilation option (trivial changes to estimated journey times and distances).
1 | # Configuration Makefile |
2 | # |
3 | # Part of the Routino routing software. |
4 | # |
5 | # This file Copyright 2013 Andrew M. Bishop |
6 | # |
7 | # This program is free software: you can redistribute it and/or modify |
8 | # it under the terms of the GNU Affero General Public License as published by |
9 | # the Free Software Foundation, either version 3 of the License, or |
10 | # (at your option) any later version. |
11 | # |
12 | # This program is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # GNU Affero General Public License for more details. |
16 | # |
17 | # You should have received a copy of the GNU Affero General Public License |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | # |
20 | |
21 | # Installation locations (edit if required) |
22 | |
23 | prefix=/usr/local |
24 | bindir=$(prefix)/bin |
25 | docdir=$(prefix)/doc/routino |
26 | datadir=$(prefix)/share/routino |
27 | |
28 | |
29 | # Locations in the source distribution (do not edit) |
30 | |
31 | webdatadir=web/data |
32 | webbindir=web/bin |
33 | webwwwdir=web/www/routino |
34 | webdocdir=web/www/routino/documentation |
35 | |
36 | |
37 | # Compilation programs |
38 | |
39 | CC=gcc |
40 | LD=gcc |
41 | |
42 | |
43 | # Compilation options |
44 | |
45 | CFLAGS=-Wall -Wmissing-prototypes -std=c99 |
46 | CFLAGS+=-Wextra -Wno-unused-parameter |
47 | |
48 | CFLAGS+=-O3 -ffast-math |
49 | |
50 | LDFLAGS=-lm |
51 | |
52 | |
53 | # Optional for increased performance if compilation and execution use the same CPU architecture. |
54 | #CFLAGS+=-march=native |
55 | |
56 | |
57 | # Required for multi-threaded support (comment these two lines out if not required) |
58 | CFLAGS+=-pthread -DUSE_PTHREADS |
59 | LDFLAGS+=-pthread -lpthread |
60 | |
61 | |
62 | # Required for bzip2 support (comment these two lines out if not required) |
63 | CFLAGS+=-DUSE_BZIP2 |
64 | LDFLAGS+=-lbz2 |
65 | |
66 | |
67 | # Required for gzip support (comment these two lines out if not required) |
68 | CFLAGS+=-DUSE_GZIP |
69 | LDFLAGS+=-lz |
70 | |
71 | |
72 | # Required to use stdio with files > 2GiB on 32-bit system. |
73 | CFLAGS+=-D_FILE_OFFSET_BITS=64 |
74 | |
75 | |
76 | # Required to compile on Linux without a warning about pread() and pwrite() functions. |
77 | CFLAGS+=-D_POSIX_C_SOURCE=200809L |