Routino SVN Repository Browser

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

ViewVC logotype

Contents of /branches/libroutino/Makefile.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1715 - (show annotations) (download)
Thu Jun 18 18:54:16 2015 UTC (9 years, 9 months ago) by amb
File size: 2192 byte(s)
Add stub files for Routino library exported functions and Makefile support.

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 # Extra flags for compiling libroutino shared library
57 CFLAGS_LIB=-fPIC -fvisibility=hidden
58 LDFLAGS_LIB=-fPIC -shared
59
60
61 # Required for multi-threaded support (comment these two lines out if not required)
62 CFLAGS+=-pthread -DUSE_PTHREADS
63 LDFLAGS+=-pthread -lpthread
64
65
66 ifndef MINGW
67 # Required for bzip2 support (comment these two lines out if not required)
68 CFLAGS+=-DUSE_BZIP2
69 LDFLAGS+=-lbz2
70 endif
71
72
73 # Required for gzip support (comment these two lines out if not required)
74 CFLAGS+=-DUSE_GZIP
75 LDFLAGS+=-lz
76
77
78 # Required for xz support (uncomment these two lines if required)
79 #CFLAGS+=-DUSE_XZ
80 #LDFLAGS+=-llzma
81
82
83 # Required to use stdio with files > 2GiB on 32-bit system.
84 CFLAGS+=-D_FILE_OFFSET_BITS=64
85
86
87 ifndef MINGW
88 # Required to compile on Linux without a warning about pread() and pwrite() functions.
89 CFLAGS+=-D_POSIX_C_SOURCE=200809L
90 endif