1 |
include $(top_srcdir)/Makefile.inc
|
2 |
comma=,
|
3 |
SUBDIRS=fib-1.1 support
|
4 |
if PLUGINS
|
5 |
SUBDIRS += .
|
6 |
endif
|
7 |
DIST_SUBDIRS=autoload binding map maptool fib-1.1 font fonts gui graphics osd plugin speech vehicle support maps
|
8 |
SUBDIRS+=autoload binding map font gui graphics osd plugin speech vehicle
|
9 |
|
10 |
MODULES = $(wildcard $(top_builddir)/navit/binding/*/*.la $(top_builddir)/navit/font/*/*.la $(top_builddir)/navit/graphics/*/*.la $(top_builddir)/navit/gui/*/*.la $(top_builddir)/navit/map/*/*.la $(top_builddir)/navit/osd/*/*.la $(top_builddir)/navit/speech/*/*.la $(top_builddir)/navit/vehicle/*/*.la)
|
11 |
|
12 |
if FONTS
|
13 |
SUBDIRS += fonts
|
14 |
endif
|
15 |
if !PLUGINS
|
16 |
SUBDIRS += .
|
17 |
endif
|
18 |
|
19 |
if MAPTOOL
|
20 |
SUBDIRS += maptool
|
21 |
endif
|
22 |
|
23 |
if BUILD_SAMPLEMAP
|
24 |
SUBDIRS += maps
|
25 |
endif
|
26 |
|
27 |
|
28 |
AM_CPPFLAGS = -I$(top_srcdir)/navit/fib-1.1 @NAVIT_CFLAGS@ @ZLIB_CFLAGS@ -DPREFIX=\"@prefix@\" -DLIBDIR=\"@libdir@\" -DMODULE=navit
|
29 |
BUILT_SOURCES = version.h navit_config.h
|
30 |
|
31 |
if BIN_NAVIT
|
32 |
bin_PROGRAMS = navit
|
33 |
endif
|
34 |
|
35 |
if SHARED_LIBNAVIT
|
36 |
lib_LTLIBRARIES = lib@LIBNAVIT@.la
|
37 |
lib@LIBNAVIT@_la_LDFLAGS = -avoid-version @MODULE_LDFLAGS@ @NAVIT_SOCKET_LDFLAGS@ -no-undefined -Wl,--no-undefined
|
38 |
else
|
39 |
noinst_LTLIBRARIES = lib@LIBNAVIT@.la
|
40 |
endif
|
41 |
lib@LIBNAVIT@_la_LIBADD = @NAVIT_LIBS@ @WORDEXP_LIBS@ @ZLIB_LIBS@ @INTLLIBS@ -Lfib-1.1 -lfib @MODULE_LIBADD@ @CRYPTO_LIBS@
|
42 |
|
43 |
if SUPPORT_WIN32CE
|
44 |
lib@LIBNAVIT@_la_LIBADD += -Lsupport/libc -lsupport_libc
|
45 |
endif
|
46 |
|
47 |
pkgdata_DATA = navit.xml
|
48 |
|
49 |
EXTRA_DIST = navit_shipped.xml navit.dtd
|
50 |
|
51 |
lib@LIBNAVIT@_la_SOURCES = announcement.c atom.c attr.c cache.c callback.c command.c compass.c config_.c coord.c country.c data_window.c debug.c \
|
52 |
event.c event_glib.h file.c graphics.c gui.c item.c layout.c log.c main.c map.c \
|
53 |
linguistics.c mapset.c maptype.c menu.c messages.c bookmarks.c bookmarks.h navit.c navigation.c osd.c param.c phrase.c plugin.c popup.c \
|
54 |
profile.c projection.c roadprofile.c route.c routech.c search.c speech.c start_real.c transform.c track.c \
|
55 |
util.c vehicle.c vehicleprofile.c xmlconfig.c announcement.h atom.h attr.h attr_def.h cache.h callback.h color.h command.h compass.h config_.h coord.h country.h \
|
56 |
android.h data.h data_window.h data_window_int.h debug.h destination.h draw_info.h endianess.h event.h \
|
57 |
file.h graphics.h gtkext.h gui.h item.h item_def.h keys.h log.h layer.h layout.h linguistics.h main.h map-share.h map.h\
|
58 |
map_data.h mapset.h maptype.h menu.h messages.h navigation.h navit.h osd.h \
|
59 |
param.h phrase.h plugin.h point.h plugin_def.h projection.h popup.h route.h profile.h roadprofile.h search.h speech.h start_real.h \
|
60 |
transform.h track.h types.h util.h vehicle.h vehicleprofile.h window.h xmlconfig.h zipfile.h \
|
61 |
navit_nls.h sunriset.c sunriset.h glib_slice.h maptool/miniz.c \
|
62 |
coffeecatch.c coffeejni.c \
|
63 |
snprintf.c snprintf.h
|
64 |
|
65 |
|
66 |
if SUPPORT_ANDROID
|
67 |
lib@LIBNAVIT@_la_SOURCES += vehicle/android/vehicle_android.c \
|
68 |
vehicle/demo/vehicle_demo.c \
|
69 |
gui/internal/gui_internal.c \
|
70 |
graphics/android/graphics_android.c \
|
71 |
map/binfile/binfile.c \
|
72 |
map/csv/csv.c \
|
73 |
map/csv/quadtree.c \
|
74 |
map/textfile/textfile.c \
|
75 |
osd/core/osd_core.c \
|
76 |
speech/android/speech_android.c
|
77 |
endif
|
78 |
|
79 |
|
80 |
XSLTS=@XSLTS@
|
81 |
navit.xml: navit_shipped.xml $(foreach xslt, $(subst $(comma), ,$(XSLTS)), $(addsuffix .xslt,$(addprefix xslt/,$(xslt)))) navit_android_xml
|
82 |
cp $< navit.xml.new
|
83 |
if [ ! -f navit.dtd ]; then cp -f $(top_srcdir)/navit/navit.dtd .; fi
|
84 |
for i in $^; do if [ "$${i%.xslt}" != "$$i" ]; then echo "Applying $$i" ; @SAXON@ -snone navit.xml.new $$i >navit.xml.tmp || exit ; mv navit.xml.tmp navit.xml.new || exit ; fi ; done
|
85 |
mv navit.xml.new navit.xml
|
86 |
rm -f navit.xml.tmp
|
87 |
|
88 |
navit_android_xml: navit_shipped.xml
|
89 |
if SUPPORT_ANDROID
|
90 |
# new android xml files for (mdpi,ldpi,hdpi)
|
91 |
cp $(srcdir)/navit_shipped.xml navit_android.xml.new
|
92 |
if [ ! -f navit.dtd ]; then cp -f $(top_srcdir)/navit/navit.dtd .; fi
|
93 |
|
94 |
# # now apply any other xslt files (this would allow for pedestrian plugin)
|
95 |
# for i in $(foreach xslt, $(subst $(comma), ,$(XSLTS)), $(addsuffix .xslt,$(addprefix xslt/,$(xslt)))); do if [ "$${i%.xslt}" != "$$i" ]; then j=`basename $$i` ; if [ "$$j" != "android.xslt" ] ; then echo "Android: Applying $$i" ; @SAXON@ -snone navit_android.xml.new $(srcdir)/"$$i" >navit_android.xml.new.tmp || exit ; mv navit_android.xml.new.tmp navit_android.xml.new || exit ; fi ; fi ; done
|
96 |
# # for now disable pedestrian plugin (zoff99)
|
97 |
|
98 |
@SAXON@ -snone navit_android.xml.new $(srcdir)/xslt/android_mdpi.xslt >navit_android_mdpi.xml.tmp
|
99 |
@SAXON@ -snone navit_android.xml.new $(srcdir)/xslt/android_ldpi.xslt >navit_android_ldpi.xml.tmp
|
100 |
@SAXON@ -snone navit_android.xml.new $(srcdir)/xslt/android_hdpi.xslt >navit_android_hdpi.xml.tmp
|
101 |
rm -f navit_android.xml.new
|
102 |
rm -f navit_android.xml.new.tmp
|
103 |
mv navit_android_mdpi.xml.tmp navit_android_mdpi.xml
|
104 |
mv navit_android_ldpi.xml.tmp navit_android_ldpi.xml
|
105 |
mv navit_android_hdpi.xml.tmp navit_android_hdpi.xml
|
106 |
rm -f navit_android_mdpi.xml.tmp
|
107 |
rm -f navit_android_ldpi.xml.tmp
|
108 |
rm -f navit_android_hdpi.xml.tmp
|
109 |
else
|
110 |
echo "no Android support"
|
111 |
endif
|
112 |
|
113 |
if SUPPORT_ANDROID
|
114 |
lib@LIBNAVIT@_la_SOURCES += android.c
|
115 |
navit_SOURCES =
|
116 |
navit_LDADD =
|
117 |
|
118 |
v_int = $$(cat $(srcdir)/android/Android_Market_Version_int.txt|grep v_int|cut -d ":" -f 2)
|
119 |
# v_name = "1.0.0-"$$(LANG=C svnversion $(top_srcdir) 2> /dev/null|tr -d ":A-Z" 2> /dev/null)
|
120 |
v_name = $$(cat $(srcdir)/android/Android_Market_Version_int.txt|grep v_name|cut -d ":" -f 2)
|
121 |
b_arch = $(shell if [ "$(DO_X86_BUILD)" == "1" ]; then echo "x86"; elif [ "$(DO_ARMV7_BUILD)" == "1" ]; then echo "armeabi-v7a"; else echo "armeabi"; fi)
|
122 |
|
123 |
|
124 |
android/AndroidManifest.xml:
|
125 |
echo "making::android/AndroidManifest.xml"
|
126 |
mkdir -p $(builddir)/android
|
127 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -v $(srcdir)/android/AndroidManifest.xml.in $(builddir)/android/AndroidManifest.xml.in ; fi
|
128 |
sed -e "s/@ANDROID_VERSION_INT@/$(v_int)/" <android/AndroidManifest.xml.in >android/AndroidManifest.xml.tmp
|
129 |
mv android/AndroidManifest.xml.tmp android/AndroidManifest.xml.in
|
130 |
sed -e "s/@ANDROID_VERSION_NAME@/$(v_name)/" <android/AndroidManifest.xml.in >android/AndroidManifest.xml.tmp
|
131 |
mv android/AndroidManifest.xml.tmp android/AndroidManifest.xml
|
132 |
|
133 |
android/build.xml: android/AndroidManifest.xml android/dummy.txt
|
134 |
# this is needed, otherwise somehow the files cant be deleted
|
135 |
|
136 |
echo "making::android/build.xml"
|
137 |
touch $(builddir)/android/build.xml
|
138 |
|
139 |
mkdir -p $(builddir)/android/src/
|
140 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android/src/; fi
|
141 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android/src/; fi
|
142 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android/* $(builddir)/android; fi
|
143 |
|
144 |
# if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android/lib/; fi
|
145 |
# mkdir -p $(builddir)/android/lib/
|
146 |
# if [ "$(builddir)" != "$(srcdir)" ]; then cp -pf $(srcdir)/android/tagsoup-1.2.1.jar $(builddir)/android/lib/; fi
|
147 |
|
148 |
touch $(srcdir)/android/dummy.txt
|
149 |
touch $(builddir)/android/dummy.txt
|
150 |
|
151 |
|
152 |
######## --------------------------
|
153 |
mkdir -p $(builddir)/android-about-page/src/
|
154 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-about-page/src/; fi
|
155 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-about-page/src/; fi
|
156 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-about-page/* $(builddir)/android-about-page/; fi
|
157 |
touch $(srcdir)/android-about-page/dummy.txt
|
158 |
touch $(builddir)/android-about-page/dummy.txt
|
159 |
######## --------------------------
|
160 |
|
161 |
|
162 |
######## --------------------------
|
163 |
mkdir -p $(builddir)/android-support-animated-vector-drawable/src/
|
164 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-animated-vector-drawable/src/; fi
|
165 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-animated-vector-drawable/src/; fi
|
166 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-animated-vector-drawable/* $(builddir)/android-support-animated-vector-drawable/; fi
|
167 |
touch $(srcdir)/android-support-animated-vector-drawable/dummy.txt
|
168 |
touch $(builddir)/android-support-animated-vector-drawable/dummy.txt
|
169 |
######## --------------------------
|
170 |
|
171 |
|
172 |
######## --------------------------
|
173 |
mkdir -p $(builddir)/android-support-annotations/src/
|
174 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-annotations/src/; fi
|
175 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-annotations/src/; fi
|
176 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-annotations/* $(builddir)/android-support-annotations/; fi
|
177 |
touch $(srcdir)/android-support-annotations/dummy.txt
|
178 |
touch $(builddir)/android-support-annotations/dummy.txt
|
179 |
######## --------------------------
|
180 |
|
181 |
|
182 |
######## --------------------------
|
183 |
mkdir -p $(builddir)/android-support-compat/src/
|
184 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-compat/src/; fi
|
185 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-compat/src/; fi
|
186 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-compat/* $(builddir)/android-support-compat/; fi
|
187 |
touch $(srcdir)/android-support-compat/dummy.txt
|
188 |
touch $(builddir)/android-support-compat/dummy.txt
|
189 |
######## --------------------------
|
190 |
|
191 |
######## --------------------------
|
192 |
mkdir -p $(builddir)/android-support-core-ui/src/
|
193 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-core-ui/src/; fi
|
194 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-core-ui/src/; fi
|
195 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-core-ui/* $(builddir)/android-support-core-ui/; fi
|
196 |
touch $(srcdir)/android-support-core-ui/dummy.txt
|
197 |
touch $(builddir)/android-support-core-ui/dummy.txt
|
198 |
######## --------------------------
|
199 |
|
200 |
######## --------------------------
|
201 |
mkdir -p $(builddir)/android-support-core-utils/src/
|
202 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-core-utils/src/; fi
|
203 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-core-utils/src/; fi
|
204 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-core-utils/* $(builddir)/android-support-core-utils/; fi
|
205 |
touch $(srcdir)/android-support-core-utils/dummy.txt
|
206 |
touch $(builddir)/android-support-core-utils/dummy.txt
|
207 |
######## --------------------------
|
208 |
|
209 |
######## --------------------------
|
210 |
mkdir -p $(builddir)/android-support-design/src/
|
211 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-design/src/; fi
|
212 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-design/src/; fi
|
213 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-design/* $(builddir)/android-support-design/; fi
|
214 |
touch $(srcdir)/android-support-design/dummy.txt
|
215 |
touch $(builddir)/android-support-design/dummy.txt
|
216 |
######## --------------------------
|
217 |
|
218 |
|
219 |
######## --------------------------
|
220 |
mkdir -p $(builddir)/android-support-fragment/src/
|
221 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-fragment/src/; fi
|
222 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-fragment/src/; fi
|
223 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-fragment/* $(builddir)/android-support-fragment/; fi
|
224 |
touch $(srcdir)/android-support-fragment/dummy.txt
|
225 |
touch $(builddir)/android-support-fragment/dummy.txt
|
226 |
######## --------------------------
|
227 |
|
228 |
######## --------------------------
|
229 |
mkdir -p $(builddir)/android-support-media-compat/src/
|
230 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-media-compat/src/; fi
|
231 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-media-compat/src/; fi
|
232 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-media-compat/* $(builddir)/android-support-media-compat/; fi
|
233 |
touch $(srcdir)/android-support-media-compat/dummy.txt
|
234 |
touch $(builddir)/android-support-media-compat/dummy.txt
|
235 |
######## --------------------------
|
236 |
|
237 |
######## --------------------------
|
238 |
mkdir -p $(builddir)/android-support-v4/src/
|
239 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-v4/src/; fi
|
240 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-v4/src/; fi
|
241 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-v4/* $(builddir)/android-support-v4/; fi
|
242 |
touch $(srcdir)/android-support-v4/dummy.txt
|
243 |
touch $(builddir)/android-support-v4/dummy.txt
|
244 |
######## --------------------------
|
245 |
|
246 |
|
247 |
######## --------------------------
|
248 |
mkdir -p $(builddir)/android-support-v7-appcompat/src/
|
249 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-v7-appcompat/src/; fi
|
250 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-v7-appcompat/src/; fi
|
251 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-v7-appcompat/* $(builddir)/android-support-v7-appcompat/; fi
|
252 |
touch $(srcdir)/android-support-v7-appcompat/dummy.txt
|
253 |
touch $(builddir)/android-support-v7-appcompat/dummy.txt
|
254 |
######## --------------------------
|
255 |
|
256 |
|
257 |
######## --------------------------
|
258 |
mkdir -p $(builddir)/android-support-v7-recyclerview/src/
|
259 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-v7-recyclerview/src/; fi
|
260 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-v7-recyclerview/src/; fi
|
261 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-v7-recyclerview/* $(builddir)/android-support-v7-recyclerview/; fi
|
262 |
touch $(srcdir)/android-support-v7-recyclerview/dummy.txt
|
263 |
touch $(builddir)/android-support-v7-recyclerview/dummy.txt
|
264 |
######## --------------------------
|
265 |
|
266 |
|
267 |
######## --------------------------
|
268 |
mkdir -p $(builddir)/android-support-vector-drawable/src/
|
269 |
if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-vector-drawable/src/; fi
|
270 |
if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-vector-drawable/src/; fi
|
271 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-vector-drawable/* $(builddir)/android-support-vector-drawable/; fi
|
272 |
touch $(srcdir)/android-support-vector-drawable/dummy.txt
|
273 |
touch $(builddir)/android-support-vector-drawable/dummy.txt
|
274 |
######## --------------------------
|
275 |
|
276 |
if [ "$(builddir)" != "$(srcdir)" ]; then mkdir -p $(builddir)/android/src/com/zoffcc/applications/zanavi_msg/ ; fi
|
277 |
echo "+++ move aidl files +++"
|
278 |
echo "+++ move aidl files +++"
|
279 |
if [ "$(builddir)" != "$(srcdir)" ]; then cp -pf $(builddir)/android/aidl/com/zoffcc/applications/zanavi_msg/*.aidl $(builddir)/android/src/com/zoffcc/applications/zanavi_msg/ ; fi
|
280 |
|
281 |
|
282 |
apkg-all: all android/build.xml navit.xml
|
283 |
|
284 |
echo "making::apkg-all"
|
285 |
|
286 |
mkdir -p android/nativelibs/$(b_arch)
|
287 |
|
288 |
# remove old libs
|
289 |
# ls -al android/libs/$(b_arch)/lib*.so
|
290 |
rm -f android/nativelibs/$(b_arch)/libgraphics_android.so
|
291 |
rm -f android/nativelibs/$(b_arch)/libgraphics_null.so
|
292 |
rm -f android/nativelibs/$(b_arch)/libgui_internal.so
|
293 |
rm -f android/nativelibs/$(b_arch)/libmap_binfile.so
|
294 |
rm -f android/nativelibs/$(b_arch)/libmap_csv.so
|
295 |
rm -f android/nativelibs/$(b_arch)/libmap_filter.so
|
296 |
rm -f android/nativelibs/$(b_arch)/libmap_mg.so
|
297 |
rm -f android/nativelibs/$(b_arch)/libmap_shapefile.so
|
298 |
rm -f android/nativelibs/$(b_arch)/libmap_textfile.so
|
299 |
rm -f android/nativelibs/$(b_arch)/libosd_core.so
|
300 |
rm -f android/nativelibs/$(b_arch)/libspeech_android.so
|
301 |
rm -f android/nativelibs/$(b_arch)/libvehicle_android.so
|
302 |
rm -f android/nativelibs/$(b_arch)/libvehicle_demo.so
|
303 |
rm -f android/nativelibs/$(b_arch)/libvehicle_file.so
|
304 |
rm -f android/nativelibs/$(b_arch)/libvehicle_pipe.so
|
305 |
rm -f android/nativelibs/$(b_arch)/libvehicle_serial.so
|
306 |
rm -f android/nativelibs/$(b_arch)/libvehicle_socket.so
|
307 |
|
308 |
mkdir -p android/res/raw
|
309 |
for i in $(shell cd ../po && echo *.mo); do cp ../po/$$i android/res/raw/$$( echo $$i | tr "[A-Z]" "[a-z]") ; done
|
310 |
cp navit_android_mdpi.xml android/res/raw/navitmdpi.xml
|
311 |
cp navit_android_ldpi.xml android/res/raw/navitldpi.xml
|
312 |
cp navit_android_hdpi.xml android/res/raw/navithdpi.xml
|
313 |
|
314 |
# cleanup svn dirs, they should never be in build dir
|
315 |
if [ "$(builddir)" != "$(srcdir)" ]; then find $(builddir) -type d -name '\.svn' -exec rm -Rf {} \; ; fi; echo "ignore the find errors!!"
|
316 |
|
317 |
if [ "$(DO_RELEASE_BUILD)" != "1" ]; then mkdir -p android/nativelibs/$(b_arch) ; fi
|
318 |
if [ "$(DO_RELEASE_BUILD)" != "1" ]; then install -p $(NDK)/prebuilt/android-arm/gdbserver/gdbserver android/nativelibs/$(b_arch)/gdbserver ; fi
|
319 |
if [ "$(DO_RELEASE_BUILD)" != "1" ]; then mkdir -p android/nativelibs/$(b_arch) ; fi
|
320 |
if [ "$(DO_RELEASE_BUILD)" != "1" ]; then mkdir -p android/obj/local/$(b_arch) ; fi
|
321 |
if [ "$(DO_RELEASE_BUILD)" != "1" ]; then cp android/nativelibs/$(b_arch)/*.so android/obj/local/$(b_arch)/ ; fi
|
322 |
if [ "$(DO_RELEASE_BUILD)" != "1" ]; then echo "set solib-search-path $(builddir)/obj/local/$(b_arch)" > android/nativelibs/$(b_arch)/gdb.setup ; fi
|
323 |
if [ "$(DO_RELEASE_BUILD)" != "1" ]; then echo "directory $(NDK)/platforms/android-""$(AND_API_LEVEL_C)""/arch-arm/usr/include $(NDK)/sources/cxx-stl/system" >> android/nativelibs/$(b_arch)/gdb.setup ; fi
|
324 |
|
325 |
|
326 |
apkg: apkg-all
|
327 |
echo "making::apkg"
|
328 |
touch $(srcdir)/android/dummy.txt
|
329 |
touch $(builddir)/android/dummy.txt
|
330 |
cd android && echo "debug"
|
331 |
|
332 |
apkg-release: apkg-all
|
333 |
echo "making::apkg-release"
|
334 |
touch $(srcdir)/android/dummy.txt
|
335 |
touch $(builddir)/android/dummy.txt
|
336 |
cd android && echo "release"
|
337 |
else
|
338 |
navit_SOURCES = start.c
|
339 |
navit_LDADD = lib@LIBNAVIT@.la
|
340 |
|
341 |
endif
|
342 |
|
343 |
|
344 |
if EVENT_GLIB
|
345 |
lib@LIBNAVIT@_la_SOURCES += event_glib.c
|
346 |
endif
|
347 |
|
348 |
if !PLUGINS
|
349 |
lib@LIBNAVIT@_la_SOURCES += builtin.c
|
350 |
lib@LIBNAVIT@_la_LIBADD += $(MODULES)
|
351 |
endif
|
352 |
|
353 |
navit_LDFLAGS = -export-dynamic
|
354 |
|
355 |
navit_LDADD += @NAVIT_LIBS@ @WORDEXP_LIBS@ @ZLIB_LIBS@ @CRYPTO_LIBS@ @INTLLIBS@
|
356 |
|
357 |
if SUPPORT_WIN32
|
358 |
navit_LDADD += resource.rsc
|
359 |
if SUPPORT_WIN32CE
|
360 |
navit_LDADD += -lcommctrl -Lsupport/libc
|
361 |
else
|
362 |
navit_LDADD += -lgdi32 -lcomctl32 -lwinmm
|
363 |
endif
|
364 |
|
365 |
|
366 |
resource.rsc: $(top_srcdir)/navit/gui/win32/resources/resource.rc
|
367 |
$(WINDRES) -I $(top_srcdir)/navit/gui/win32/resources $(top_srcdir)/navit/gui/win32/resources/resource.rc resource.rsc
|
368 |
endif
|
369 |
|
370 |
.PHONY: version.h.tmp
|
371 |
|
372 |
version.h.tmp:
|
373 |
echo "#include \"config.h\"" >version.h.tmp
|
374 |
if SOURCE_MODE_SVN
|
375 |
echo "#define SVN_VERSION \"$$(LANG=C svnversion $(top_srcdir) 2>/dev/null)\"" >>version.h.tmp
|
376 |
else
|
377 |
echo "#define SVN_VERSION \"@SOURCE_MODE@\"" >>version.h.tmp
|
378 |
endif
|
379 |
echo "#define NAVIT_VARIANT \"@NAVIT_VARIANT@\"" >>version.h.tmp
|
380 |
if ! diff version.h.tmp version.h >/dev/null 2>/dev/null; \
|
381 |
then \
|
382 |
mv version.h.tmp version.h; \
|
383 |
fi
|
384 |
|
385 |
version.h: version.h.tmp
|
386 |
|
387 |
navit_config.h: ../config.h
|
388 |
cp ../config.h navit_config.h.tmp
|
389 |
if ! diff navit_config.h.tmp navit_config.h >/dev/null 2>/dev/null; \
|
390 |
then \
|
391 |
mv navit_config.h.tmp navit_config.h; \
|
392 |
fi
|
393 |
|
394 |
|
395 |
distclean-local:
|
396 |
rm -f version.h version.h.tmp navit_config.h navit_config.h.tmp builtin.c support-builtin.c navit.xml
|
397 |
if [ "$(top_builddir)" != "$(top_srcdir)" ]; then rm -f navit.dtd; fi
|
398 |
|
399 |
builtin.c: $(top_builddir)/config.h
|
400 |
ls $(top_builddir)/navit/*/*/*.la | sed -e "s/\.la/_init(void);/" -e "s/.*lib/extern void module_/" >builtin.c
|
401 |
echo "extern void builtin_init(void);" >>builtin.c
|
402 |
echo "void builtin_init(void) {" >>builtin.c
|
403 |
ls $(top_builddir)/navit/*/*/*.la | sed -e "s/\.la/_init();/" -e "s/.*\\/lib/ module_/" >>builtin.c
|
404 |
echo "}" >>builtin.c
|
405 |
support-builtin.c: $(top_builddir)/config.h
|
406 |
ls $(top_builddir)/navit/support/*/*.la | sed -e "s/\.la/_init(void);/" -e "s/.*lib/extern void module_/" >support-builtin.c
|
407 |
echo "extern void builtin_init(void);" >>support-builtin.c
|
408 |
echo "void builtin_init(void) {" >>support-builtin.c
|
409 |
ls $(top_builddir)/navit/support/*/*.la | sed -e "s/\.la/_init();/" -e "s/.*\\/lib/ module_/" >>support-builtin.c
|
410 |
echo "}" >>support-builtin.c
|
411 |
|
412 |
|