Routino SVN Repository Browser

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

ViewVC logotype

Annotation of /branches/libroutino/extras/find-fixme/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1381 - (hide annotations) (download)
Wed Jun 5 17:42:41 2013 UTC (11 years, 9 months ago) by amb
Original Path: trunk/extras/find-fixme/Makefile
File size: 5033 byte(s)
Add an index.html page to redirect to fixme.html, copy in a style.css file,
slightly change the web page titles.

1 amb 1367 # find-fixme Makefile
2     #
3     # Part of the Routino routing software.
4     #
5     # This file Copyright 2013 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     # Web file paths
26    
27     WEBBINDIR=web/bin
28     WEBDATADIR=web/data
29     WEBWWWDIR=web/www
30    
31     # Compilation targets
32    
33     C=$(wildcard *.c)
34     D=$(wildcard .deps/*.d)
35    
36     ROUTINO=../../src
37    
38     EXE=fixme-finder fixme-finder-slim fixme-dumper fixme-dumper-slim
39     DATA=fixme.xml
40     WWW_COPY=$(notdir $(wildcard ../../$(webwwwdir)/maplayout*.css)) $(notdir $(wildcard ../../$(webwwwdir)/page-elements.*)) mapprops.js
41 amb 1381 DOC_COPY=$(notdir $(wildcard ../../doc/html/*.css))
42 amb 1367
43     ########
44    
45 amb 1371 all: all-routino $(EXE)
46 amb 1367 -@[ -d $(WEBBINDIR) ] && \
47     for file in $(EXE); do \
48     if [ ! -f $(WEBBINDIR)/$$file ] || [ $$file -nt $(WEBBINDIR)/$$file ]; then \
49     echo cp $$file $(WEBBINDIR) ;\
50     cp -f $$file $(WEBBINDIR) ;\
51     fi ;\
52     done
53     -@[ -d $(WEBDATADIR) ] && \
54     for file in $(DATA); do \
55     if [ ! -f $(WEBDATADIR)/$$file ] || [ $$file -nt $(WEBDATADIR)/$$file ]; then \
56     echo cp $$file $(WEBDATADIR) ;\
57     cp -f $$file $(WEBDATADIR) ;\
58     fi ;\
59     done
60     -@[ -d $(WEBWWWDIR) ] && \
61     for file in $(WWW_COPY); do \
62     if [ ! -f $(WEBWWWDIR)/$$file ] || [ ../../$(webwwwdir)/$$file -nt $(WEBWWWDIR)/$$file ]; then \
63     echo cp ../../$(webwwwdir)/$$file $(WEBWWWDIR) ;\
64     cp -f ../../$(webwwwdir)/$$file $(WEBWWWDIR) ;\
65     fi ;\
66     done
67 amb 1381 -@[ -d $(WEBWWWDIR) ] && \
68     for file in $(DOC_COPY); do \
69     if [ ! -f $(WEBWWWDIR)/$$file ] || [ ../../doc/html/$$file -nt $(WEBWWWDIR)/$$file ]; then \
70     echo cp ../../doc/html/$$file $(WEBWWWDIR) ;\
71     cp -f ../../doc/html/$$file $(WEBWWWDIR) ;\
72     fi ;\
73     done
74 amb 1367
75     all-routino:
76     cd $(ROUTINO) && $(MAKE) all
77    
78     ########
79    
80     FIXME_FINDER_OBJ=fixme-finder.o osmparser.o \
81     $(ROUTINO)/nodesx.o $(ROUTINO)/segmentsx.o $(ROUTINO)/waysx.o $(ROUTINO)/relationsx.o \
82     $(ROUTINO)/ways.o $(ROUTINO)/types.o \
83     $(ROUTINO)/files.o $(ROUTINO)/logging.o $(ROUTINO)/logerror.o $(ROUTINO)/errorlogx.o \
84     $(ROUTINO)/sorting.o \
85     $(ROUTINO)/xmlparse.o $(ROUTINO)/tagging.o \
86     $(ROUTINO)/uncompress.o $(ROUTINO)/osmxmlparse.o $(ROUTINO)/osmpbfparse.o $(ROUTINO)/osmo5mparse.o
87    
88     fixme-finder : $(FIXME_FINDER_OBJ)
89     $(LD) $(FIXME_FINDER_OBJ) -o $@ $(LDFLAGS)
90    
91     ########
92    
93     FIXME_FINDER_SLIM_OBJ=fixme-finder-slim.o osmparser.o \
94     $(ROUTINO)/nodesx-slim.o $(ROUTINO)/segmentsx-slim.o $(ROUTINO)/waysx-slim.o $(ROUTINO)/relationsx-slim.o \
95     $(ROUTINO)/ways.o $(ROUTINO)/types.o \
96     $(ROUTINO)/files.o $(ROUTINO)/logging.o $(ROUTINO)/logerror-slim.o $(ROUTINO)/errorlogx-slim.o \
97     $(ROUTINO)/sorting.o \
98     $(ROUTINO)/xmlparse.o $(ROUTINO)/tagging.o \
99     $(ROUTINO)/uncompress.o $(ROUTINO)/osmxmlparse.o $(ROUTINO)/osmpbfparse.o $(ROUTINO)/osmo5mparse.o
100    
101     fixme-finder-slim : $(FIXME_FINDER_SLIM_OBJ)
102     $(LD) $(FIXME_FINDER_SLIM_OBJ) -o $@ $(LDFLAGS)
103    
104     ########
105    
106     FIXME_DUMPER_OBJ=fixme-dumper.o \
107     $(ROUTINO)/errorlog.o \
108     $(ROUTINO)/files.o $(ROUTINO)/logging.o $(ROUTINO)/xmlparse.o
109    
110     fixme-dumper : $(FIXME_DUMPER_OBJ)
111     $(LD) $(FIXME_DUMPER_OBJ) -o $@ $(LDFLAGS)
112    
113     ########
114    
115     FIXME_DUMPER_SLIM_OBJ=fixme-dumper-slim.o \
116     $(ROUTINO)/errorlog-slim.o \
117     $(ROUTINO)/files.o $(ROUTINO)/logging.o $(ROUTINO)/xmlparse.o
118    
119     fixme-dumper-slim : $(FIXME_DUMPER_SLIM_OBJ)
120     $(LD) $(FIXME_DUMPER_SLIM_OBJ) -o $@ $(LDFLAGS)
121    
122     ########
123    
124     $(ROUTINO)/%.o :
125     cd $(ROUTINO) && $(MAKE) $(notdir $@)
126    
127     $(ROUTINO)/%-slim.o :
128     cd $(ROUTINO) && $(MAKE) $(notdir $@)
129    
130     %.o : %.c
131     @[ -d .deps ] || mkdir .deps
132     $(CC) -c $(CFLAGS) -DSLIM=0 -I$(ROUTINO) $< -o $@ -MMD -MP -MF $(addprefix .deps/,$(addsuffix .d,$(basename $@)))
133    
134     %-slim.o : %.c
135     @[ -d .deps ] || mkdir .deps
136     $(CC) -c $(CFLAGS) -DSLIM=1 -I$(ROUTINO) $< -o $@ -MMD -MP -MF $(addprefix .deps/,$(addsuffix .d,$(basename $@)))
137    
138     ########
139    
140     test:
141     @true
142    
143     ########
144    
145     install: all
146     @true
147    
148     ########
149    
150     clean:
151     rm -f *~
152     rm -f *.o
153     rm -f core
154    
155     ########
156    
157     distclean: clean
158     -cd $(WEBBINDIR) && rm -f $(EXE)
159     -cd $(WEBDATADIR) && rm -f $(DATA)
160     -cd $(WEBWWWDIR) && rm -f $(WWW_COPY)
161 amb 1381 -cd $(WEBWWWDIR) && rm -f $(DOC_COPY)
162 amb 1367 -rm -f $(EXE)
163     -rm -f $(D)
164     -rm -fr .deps
165    
166     ########
167    
168     include $(D)
169    
170     ########
171    
172 amb 1371 .PHONY:: all all-routino test install clean distclean