Routino SVN Repository Browser

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

ViewVC logotype

Contents of /trunk/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 109 - (show annotations) (download)
Sat Feb 7 15:56:08 2009 UTC (16 years, 1 month ago) by amb
File size: 1836 byte(s)
Split the extended data types from the normal data types.

1 # $Header: /home/amb/CVS/routino/src/Makefile,v 1.15 2009-02-07 15:56:07 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=-O3 -Wall -Wmissing-prototypes
20 CFLAGS=-pg -g -O0 -Wall -Wmissing-prototypes
21 #CFLAGS=-pg --coverage -g -O0 -Wall -Wmissing-prototypes
22 #LDFLAGS=-lm
23 LDFLAGS=-pg -static -lm -lc
24 #LDFLAGS=-pg --coverage -static -lm -lc
25
26 # Compilation targets
27
28 C=$(wildcard *.c)
29 D=$(foreach f,$(C),$(addprefix .deps/,$(addsuffix .d,$(basename $f))))
30
31 ########
32
33 EXE=planetsplitter filedumper router
34
35 all : $(EXE)
36
37 ########
38
39 PLANETSPLITTER_OBJ=planetsplitter.o files.o nodesx.o segmentsx.o waysx.o superx.o profiles.o results.o osmparser.o ways.o
40
41 planetsplitter : $(PLANETSPLITTER_OBJ)
42 $(LD) $(PLANETSPLITTER_OBJ) -o $@ $(LDFLAGS)
43
44 ########
45
46 FILEDUMPER_OBJ=filedumper.o files.o nodes.o segments.o ways.o results.o
47
48 filedumper : $(FILEDUMPER_OBJ)
49 $(LD) $(FILEDUMPER_OBJ) -o $@ $(LDFLAGS)
50
51 ########
52
53 ROUTER_OBJ=router.o files.o nodes.o segments.o ways.o profiles.o optimiser.o results.o
54
55 router : $(ROUTER_OBJ)
56 $(LD) $(ROUTER_OBJ) -o $@ $(LDFLAGS)
57
58 ########
59
60 %.o : %.c
61 $(CC) -c $(CFLAGS) $< -o $@ -MMD -MP -MF $(addprefix .deps/,$(addsuffix .d,$(basename $<)))
62
63 %.s : %.c
64 $(CC) -S $(CFLAGS) $< -o $@ -MMD -MP -MF $(addprefix .deps/,$(addsuffix .d,$(basename $<)))
65
66 ########
67
68 clean:
69 rm -f *.o
70 rm -f *.s
71 rm -f *~
72 rm -f *.gcno *.gcda *.gcov
73
74 ########
75
76 distclean: clean
77 -rm -f $(EXE)
78 -rm -f $(D)
79 -rm -f .deps
80
81 ########
82
83 .deps : .FORCE
84 @[ -d .deps ] || mkdir $@
85
86 $(D) : .FORCE
87 @touch $@
88
89 include $(D)
90
91 ########
92
93 .FORCE :

Properties

Name Value
cvs:description Makefile.