Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /branches/MS-Windows/Makefile.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1698 - (show annotations) (download)
Sun May 31 16:34:57 2015 UTC (9 years, 9 months ago) by amb
File size: 2073 byte(s)
Merge changes from trunk: remove -Wfloat-conversion option, change
web/Makefile order, ensure allocated strings are long enough.

1 # Configuration Makefile
2 #
3 # Part of the Routino routing software.
4 #
5 # This file Copyright 2013-2015 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 # Compilation programs
30
31 CC=gcc
32 LD=gcc
33
34
35 # Language dialect selection
36 CFLAGS=-std=c99
37
38 # Warning options
39 CFLAGS+=-Wall -Wmissing-prototypes -Wextra -Wno-unused-parameter -pedantic
40
41 # Optimisation options
42 CFLAGS+=-O3
43 CFLAGS+=-ffast-math
44
45 # Optimisation option (only works if compilation and execution use exactly the same CPU architecture).
46 #CFLAGS+=-march=native
47
48 # Debugging symbols
49 #CFLAGS+=-g
50
51
52 # Maths library
53 LDFLAGS=-lm
54
55
56 # Required for multi-threaded support (comment these two lines out if not required)
57 CFLAGS+=-pthread -DUSE_PTHREADS
58 LDFLAGS+=-pthread -lpthread
59
60
61 ifndef MINGW
62 # Required for bzip2 support (comment these two lines out if not required)
63 CFLAGS+=-DUSE_BZIP2
64 LDFLAGS+=-lbz2
65 endif
66
67
68 # Required for gzip support (comment these two lines out if not required)
69 CFLAGS+=-DUSE_GZIP
70 LDFLAGS+=-lz
71
72
73 # Required for xz support (uncomment these two lines if required)
74 #CFLAGS+=-DUSE_XZ
75 #LDFLAGS+=-llzma
76
77
78 # Required to use stdio with files > 2GiB on 32-bit system.
79 CFLAGS+=-D_FILE_OFFSET_BITS=64
80
81
82 ifndef MINGW
83 # Required to compile on Linux without a warning about pread() and pwrite() functions.
84 CFLAGS+=-D_POSIX_C_SOURCE=200809L
85 endif