Routino SVN Repository Browser

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

ViewVC logotype

Annotation of /trunk/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (hide annotations) (download)
Sat Jan 10 11:53:49 2009 UTC (16 years, 3 months ago) by amb
File size: 1541 byte(s)
About to add the super-segment functionality using Segments data type to hold
them.

1 amb 26 # $Header: /home/amb/CVS/routino/src/Makefile,v 1.5 2009-01-10 11:53:48 amb Exp $
2 amb 2 #
3     # Makefile
4     #
5     # Written by Andrew M. Bishop
6     #
7 amb 3 # This file Copyright 2008,2009 Andrew M. Bishop
8 amb 2 # 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 amb 26 CFLAGS=-pg -g -O0 -Wall -Wmissing-prototypes
20     #CFLAGS=-pg --coverage -g -O0 -Wall -Wmissing-prototypes
21 amb 3 #LDFLAGS=-lm
22 amb 26 #LDFLAGS=-pg --coverage -static -lm -lc
23     LDFLAGS=-pg -static -lm -lc
24 amb 2
25     # Compilation targets
26    
27     C=$(wildcard *.c)
28     D=$(foreach f,$(C),$(addsuffix .d,$(basename $f)))
29    
30     ########
31    
32     EXE=planetsplitter filedumper router
33    
34     all : $(EXE)
35    
36     ########
37    
38 amb 26 PLANETSPLITTER_OBJ=planetsplitter.o files.o nodes.o ways.o segments.o supersegments.o osmparser.o optimiser.o
39 amb 2
40     planetsplitter : $(PLANETSPLITTER_OBJ)
41     $(LD) $(PLANETSPLITTER_OBJ) -o $@ $(LDFLAGS)
42    
43     ########
44    
45 amb 26 FILEDUMPER_OBJ=filedumper.o files.o nodes.o ways.o segments.o
46 amb 2
47     filedumper : $(FILEDUMPER_OBJ)
48     $(LD) $(FILEDUMPER_OBJ) -o $@ $(LDFLAGS)
49    
50     ########
51    
52 amb 26 ROUTER_OBJ=router.o files.o nodes.o ways.o segments.o optimiser.o
53 amb 2
54     router : $(ROUTER_OBJ)
55     $(LD) $(ROUTER_OBJ) -o $@ $(LDFLAGS)
56    
57     ########
58    
59     %.o : %.c
60     $(CC) -c $(CFLAGS) $< -o $@ -MMD -MP -MF $(addsuffix .d,$(basename $<))
61    
62     ########
63    
64     clean:
65     rm -f *.o
66     rm -f *~
67 amb 15 rm -f *.gcno *.gcda *.gcov
68 amb 2
69     ########
70    
71     distclean: clean
72     -rm -f $(EXE)
73     -rm -f $(D)
74    
75     ########
76    
77     $(D) : .FORCE
78     @touch $@
79    
80     include $(D)
81    
82     ########
83    
84     .FORCE :

Properties

Name Value
cvs:description Makefile.