Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Annotation of /trunk/src/Makefile
Parent Directory
|
Revision Log
Revision 287 -
(hide annotations)
(download)
Tue Oct 20 15:22:05 2009 UTC (15 years, 5 months ago) by amb
File size: 2398 byte(s)
Tue Oct 20 15:22:05 2009 UTC (15 years, 5 months ago) by amb
File size: 2398 byte(s)
Add sorting.o to the Makefile.
1 | amb | 287 | # $Header: /home/amb/CVS/routino/src/Makefile,v 1.25 2009-10-20 15:22:05 amb Exp $ |
2 | amb | 2 | # |
3 | # Makefile | ||
4 | # | ||
5 | amb | 151 | # Part of the Routino routing software. |
6 | amb | 2 | # |
7 | amb | 3 | # This file Copyright 2008,2009 Andrew M. Bishop |
8 | amb | 151 | # |
9 | # This program is free software: you can redistribute it and/or modify | ||
10 | # it under the terms of the GNU Affero General Public License as published by | ||
11 | # the Free Software Foundation, either version 3 of the License, or | ||
12 | # (at your option) any later version. | ||
13 | # | ||
14 | # This program is distributed in the hope that it will be useful, | ||
15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | # GNU Affero General Public License for more details. | ||
18 | # | ||
19 | # You should have received a copy of the GNU Affero General Public License | ||
20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
21 | # | ||
22 | amb | 2 | |
23 | # Programs | ||
24 | |||
25 | CC=gcc | ||
26 | LD=gcc | ||
27 | |||
28 | # Program options | ||
29 | |||
30 | amb | 240 | CFLAGS=-Wall -Wmissing-prototypes |
31 | #CFLAGS+= -Wextra -pedantic -std=c99 | ||
32 | LDFLAGS=-lm -lc | ||
33 | amb | 2 | |
34 | amb | 240 | CFLAGS+= -O3 |
35 | #CFLAGS+= -O0 -g | ||
36 | #CFLAGS+= -pg | ||
37 | #CFLAGS+= --coverage | ||
38 | |||
39 | LDFLAGS+= | ||
40 | #LDFLAGS+= -pg -static | ||
41 | #LDFLAGS+= --coverage | ||
42 | |||
43 | amb | 2 | # Compilation targets |
44 | |||
45 | C=$(wildcard *.c) | ||
46 | amb | 91 | D=$(foreach f,$(C),$(addprefix .deps/,$(addsuffix .d,$(basename $f)))) |
47 | amb | 2 | |
48 | ######## | ||
49 | |||
50 | EXE=planetsplitter filedumper router | ||
51 | |||
52 | all : $(EXE) | ||
53 | amb | 190 | [ -d ../web/bin ] && cp $(EXE) ../web/bin |
54 | amb | 2 | |
55 | ######## | ||
56 | |||
57 | amb | 161 | PLANETSPLITTER_OBJ=planetsplitter.o \ |
58 | nodesx.o segmentsx.o waysx.o superx.o \ | ||
59 | ways.o \ | ||
60 | amb | 287 | files.o profiles.o results.o queue.o sorting.o \ |
61 | amb | 240 | osmparser.o |
62 | amb | 2 | |
63 | planetsplitter : $(PLANETSPLITTER_OBJ) | ||
64 | $(LD) $(PLANETSPLITTER_OBJ) -o $@ $(LDFLAGS) | ||
65 | |||
66 | ######## | ||
67 | |||
68 | amb | 161 | FILEDUMPER_OBJ=filedumper.o \ |
69 | amb | 240 | nodes.o segments.o ways.o \ |
70 | amb | 186 | files.o \ |
71 | visualiser.o | ||
72 | amb | 2 | |
73 | filedumper : $(FILEDUMPER_OBJ) | ||
74 | $(LD) $(FILEDUMPER_OBJ) -o $@ $(LDFLAGS) | ||
75 | |||
76 | ######## | ||
77 | |||
78 | amb | 161 | ROUTER_OBJ=router.o \ |
79 | nodes.o segments.o ways.o \ | ||
80 | amb | 234 | files.o profiles.o optimiser.o output.o results.o queue.o |
81 | amb | 2 | |
82 | router : $(ROUTER_OBJ) | ||
83 | $(LD) $(ROUTER_OBJ) -o $@ $(LDFLAGS) | ||
84 | |||
85 | ######## | ||
86 | |||
87 | %.o : %.c | ||
88 | amb | 91 | $(CC) -c $(CFLAGS) $< -o $@ -MMD -MP -MF $(addprefix .deps/,$(addsuffix .d,$(basename $<))) |
89 | amb | 2 | |
90 | ######## | ||
91 | |||
92 | clean: | ||
93 | rm -f *.o | ||
94 | rm -f *~ | ||
95 | |||
96 | ######## | ||
97 | |||
98 | distclean: clean | ||
99 | amb | 192 | -[ -d ../web/bin ] && cd ../web/bin/ && rm -f $(EXE) |
100 | amb | 2 | -rm -f $(EXE) |
101 | -rm -f $(D) | ||
102 | amb | 153 | -rm -fr .deps |
103 | amb | 2 | |
104 | ######## | ||
105 | |||
106 | amb | 91 | .deps : .FORCE |
107 | amb | 94 | @[ -d .deps ] || mkdir $@ |
108 | amb | 91 | |
109 | amb | 153 | $(D) : .FORCE .deps |
110 | amb | 2 | @touch $@ |
111 | |||
112 | include $(D) | ||
113 | |||
114 | ######## | ||
115 | |||
116 | .FORCE : |
Properties
Name | Value |
---|---|
cvs:description | Makefile. |