Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /trunk/src/Makefile
Parent Directory
|
Revision Log
Revision 6 -
(show annotations)
(download)
Sat Jan 3 12:25:24 2009 UTC (16 years, 2 months ago) by amb
File size: 1412 byte(s)
Sat Jan 3 12:25:24 2009 UTC (16 years, 2 months ago) by amb
File size: 1412 byte(s)
Added the ways to the output.
1 | # $Header: /home/amb/CVS/routino/src/Makefile,v 1.3 2009-01-03 12:25:23 amb Exp $ |
2 | # |
3 | # Makefile |
4 | # |
5 | # Written by Andrew M. Bishop |
6 | # |
7 | # This file Copyright 2008,2009 Andrew M. Bishop |
8 | # It may be distributed under the GNU Public License, version 2, or |
9 | # any higher version. See section COPYING of the GNU Public license |
10 | # for conditions under which this file may be redistributed. |
11 | |
12 | # Programs |
13 | |
14 | CC=gcc |
15 | LD=gcc |
16 | |
17 | # Program options |
18 | |
19 | CFLAGS=-pg -g -O0 -Wall -Wmissing-prototypes |
20 | #LDFLAGS=-lm |
21 | LDFLAGS=-static -lm -lc -pg |
22 | |
23 | # Compilation targets |
24 | |
25 | C=$(wildcard *.c) |
26 | D=$(foreach f,$(C),$(addsuffix .d,$(basename $f))) |
27 | |
28 | ######## |
29 | |
30 | EXE=planetsplitter filedumper router |
31 | |
32 | all : $(EXE) |
33 | |
34 | ######## |
35 | |
36 | PLANETSPLITTER_OBJ=planetsplitter.o files.o nodes.o ways.o segments.o osmparser.o |
37 | |
38 | planetsplitter : $(PLANETSPLITTER_OBJ) |
39 | $(LD) $(PLANETSPLITTER_OBJ) -o $@ $(LDFLAGS) |
40 | |
41 | ######## |
42 | |
43 | FILEDUMPER_OBJ=filedumper.o files.o nodes.o ways.o segments.o osmparser.o |
44 | |
45 | filedumper : $(FILEDUMPER_OBJ) |
46 | $(LD) $(FILEDUMPER_OBJ) -o $@ $(LDFLAGS) |
47 | |
48 | ######## |
49 | |
50 | ROUTER_OBJ=router.o files.o nodes.o ways.o segments.o osmparser.o optimiser.o |
51 | |
52 | router : $(ROUTER_OBJ) |
53 | $(LD) $(ROUTER_OBJ) -o $@ $(LDFLAGS) |
54 | |
55 | ######## |
56 | |
57 | %.o : %.c |
58 | $(CC) -c $(CFLAGS) $< -o $@ -MMD -MP -MF $(addsuffix .d,$(basename $<)) |
59 | |
60 | ######## |
61 | |
62 | clean: |
63 | rm -f *.o |
64 | rm -f *~ |
65 | |
66 | ######## |
67 | |
68 | distclean: clean |
69 | -rm -f $(EXE) |
70 | -rm -f $(D) |
71 | |
72 | ######## |
73 | |
74 | $(D) : .FORCE |
75 | @touch $@ |
76 | |
77 | include $(D) |
78 | |
79 | ######## |
80 | |
81 | .FORCE : |
Properties
Name | Value |
---|---|
cvs:description | Makefile. |