Routino SVN Repository Browser

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

ViewVC logotype

Contents of /branches/destination-access/extras/statistics/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1957 - (show annotations) (download)
Fri Sep 21 17:29:51 2018 UTC (6 years, 5 months ago) by amb
File size: 2521 byte(s)
Merge from trunk.  Also update tagging for 'destination' access.

1 # database-stats Makefile
2 #
3 # Part of the Routino routing software.
4 #
5 # This file Copyright 2008-2017 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 # All configuration is in the top-level Makefile.conf
22
23 include ../../Makefile.conf
24
25 # Compilation targets
26
27 DEPDIR=.deps
28
29 C=$(wildcard *.c)
30 D=$(wildcard $(DEPDIR)/*.d)
31
32 ROUTINO_SRC=../../src
33
34 EXE=dumper$(.EXE) dumper-slim$(.EXE)
35
36 ########
37
38 all : $(EXE)
39
40 ########
41
42 DUMPER_OBJ=dumper.o \
43 $(ROUTINO_SRC)/nodes.o $(ROUTINO_SRC)/segments.o $(ROUTINO_SRC)/ways.o \
44 $(ROUTINO_SRC)/files.o $(ROUTINO_SRC)/fakes.o $(ROUTINO_SRC)/logging.o \
45 $(ROUTINO_SRC)/sorting.o
46
47 ifeq ($(HOST),MINGW)
48 DUMPER_OBJ+=$(ROUTINO_SRC)/mman-win32.o
49 endif
50
51 dumper$(.EXE) : $(DUMPER_OBJ)
52 $(LD) $^ -o $@ $(LDFLAGS)
53
54 DUMPER_SLIM_OBJ=dumper-slim.o \
55 $(ROUTINO_SRC)/nodes-slim.o $(ROUTINO_SRC)/segments-slim.o $(ROUTINO_SRC)/ways-slim.o \
56 $(ROUTINO_SRC)/files.o $(ROUTINO_SRC)/fakes.o $(ROUTINO_SRC)/logging.o \
57 $(ROUTINO_SRC)/sorting.o
58
59 ifeq ($(HOST),MINGW)
60 DUMPER_SLIM_OBJ+=$(ROUTINO_SRC)/mman-win32.o
61 endif
62
63 dumper-slim$(.EXE) : $(DUMPER_SLIM_OBJ)
64 $(LD) $^ -o $@ $(LDFLAGS)
65
66 ########
67
68 $(ROUTINO_SRC)/%.o :
69 cd $(ROUTINO_SRC) && $(MAKE) $(notdir $@)
70
71 $(ROUTINO_SRC)/%-slim.o :
72 cd $(ROUTINO_SRC) && $(MAKE) $(notdir $@)
73
74 %.o : %.c
75 -@[ -d $(DEPDIR) ] || mkdir $(DEPDIR) || true
76 $(CC) -c $(CFLAGS) -DSLIM=0 -I$(ROUTINO_SRC) $< -o $@ -MMD -MP -MF $(addprefix $(DEPDIR)/,$(addsuffix .d,$(basename $@)))
77
78 %-slim.o : %.c
79 -@[ -d $(DEPDIR) ] || mkdir $(DEPDIR) || true
80 $(CC) -c $(CFLAGS) -DSLIM=1 -I$(ROUTINO_SRC) $< -o $@ -MMD -MP -MF $(addprefix $(DEPDIR)/,$(addsuffix .d,$(basename $@)))
81
82 ########
83
84 test:
85
86 ########
87
88 install:
89
90 ########
91
92 clean:
93 rm -f *~
94 rm -f *.o
95 rm -f $(EXE)
96 rm -f $(D)
97 rm -fr $(DEPDIR)
98 rm -f core
99 rm -f *.png
100
101 ########
102
103 distclean: clean
104
105 ########
106
107 include $(D)
108
109 ########
110
111 .PHONY:: all test install clean distclean