aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-03-29 02:16:55 +1000
committerDavid Walter Seikel2016-03-29 02:16:55 +1000
commitcb3716ffb584fe0f593b6f1669a8efdba1305104 (patch)
tree5d1ebc4b6fc17b30f4b34e7e64a2d9514893459b /src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm
parentAdd Prosody build script. (diff)
downloadSledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.zip
SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.gz
SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.bz2
SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.xz
Added my version of libg3d and friends.
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile511
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in511
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c334
4 files changed, 1380 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile
new file mode 100644
index 0000000..fd1df87
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile
@@ -0,0 +1,511 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_osm/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_osm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_osm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_osm_la_OBJECTS = imp_osm.lo
59imp_osm_la_OBJECTS = $(am_imp_osm_la_OBJECTS)
60#am_imp_osm_la_rpath = -rpath \
61# $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_osm_la_SOURCES)
75DIST_SOURCES = $(imp_osm_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
111GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
120GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_osm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_osm_la_SOURCES = imp_osm.c
231imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -L/usr/lib/x86_64-linux-gnu -lxml2
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_osm.la: $(imp_osm_la_OBJECTS) $(imp_osm_la_DEPENDENCIES)
293 $(LINK) $(am_imp_osm_la_rpath) $(imp_osm_la_OBJECTS) $(imp_osm_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_osm.Plo
302
303.c.o:
304 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
305 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
306# source='$<' object='$@' libtool=no \
307# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
308# $(COMPILE) -c $<
309
310.c.obj:
311 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
312 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313# source='$<' object='$@' libtool=no \
314# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
315# $(COMPILE) -c `$(CYGPATH_W) '$<'`
316
317.c.lo:
318 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
319 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
320# source='$<' object='$@' libtool=yes \
321# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
322# $(LTCOMPILE) -c -o $@ $<
323
324mostlyclean-libtool:
325 -rm -f *.lo
326
327clean-libtool:
328 -rm -rf .libs _libs
329
330ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 mkid -fID $$unique
338tags: TAGS
339
340TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
341 $(TAGS_FILES) $(LISP)
342 tags=; \
343 here=`pwd`; \
344 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
345 unique=`for i in $$list; do \
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347 done | \
348 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
349 END { if (nonempty) { for (i in files) print i; }; }'`; \
350 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
351 test -n "$$unique" || unique=$$empty_fix; \
352 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
353 $$tags $$unique; \
354 fi
355ctags: CTAGS
356CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
357 $(TAGS_FILES) $(LISP)
358 tags=; \
359 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
360 unique=`for i in $$list; do \
361 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
362 done | \
363 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
364 END { if (nonempty) { for (i in files) print i; }; }'`; \
365 test -z "$(CTAGS_ARGS)$$tags$$unique" \
366 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
367 $$tags $$unique
368
369GTAGS:
370 here=`$(am__cd) $(top_builddir) && pwd` \
371 && cd $(top_srcdir) \
372 && gtags -i $(GTAGS_ARGS) $$here
373
374distclean-tags:
375 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
376
377distdir: $(DISTFILES)
378 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 list='$(DISTFILES)'; \
381 dist_files=`for file in $$list; do echo $$file; done | \
382 sed -e "s|^$$srcdirstrip/||;t" \
383 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
384 case $$dist_files in \
385 */*) $(MKDIR_P) `echo "$$dist_files" | \
386 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
387 sort -u` ;; \
388 esac; \
389 for file in $$dist_files; do \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 if test -d $$d/$$file; then \
392 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
395 fi; \
396 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
397 else \
398 test -f $(distdir)/$$file \
399 || cp -p $$d/$$file $(distdir)/$$file \
400 || exit 1; \
401 fi; \
402 done
403check-am: all-am
404check: check-am
405all-am: Makefile $(LTLIBRARIES)
406installdirs:
407 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
408 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
409 done
410install: install-am
411install-exec: install-exec-am
412install-data: install-data-am
413uninstall: uninstall-am
414
415install-am: all-am
416 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
417
418installcheck: installcheck-am
419install-strip:
420 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
421 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
422 `test -z '$(STRIP)' || \
423 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
424mostlyclean-generic:
425
426clean-generic:
427
428distclean-generic:
429 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
430
431maintainer-clean-generic:
432 @echo "This command is intended for maintainers to use"
433 @echo "it deletes files that may require special tools to rebuild."
434clean: clean-am
435
436clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
437 mostlyclean-am
438
439distclean: distclean-am
440 -rm -rf ./$(DEPDIR)
441 -rm -f Makefile
442distclean-am: clean-am distclean-compile distclean-generic \
443 distclean-tags
444
445dvi: dvi-am
446
447dvi-am:
448
449html: html-am
450
451info: info-am
452
453info-am:
454
455install-data-am: install-pluginimpLTLIBRARIES
456
457install-dvi: install-dvi-am
458
459install-exec-am:
460
461install-html: install-html-am
462
463install-info: install-info-am
464
465install-man:
466
467install-pdf: install-pdf-am
468
469install-ps: install-ps-am
470
471installcheck-am:
472
473maintainer-clean: maintainer-clean-am
474 -rm -rf ./$(DEPDIR)
475 -rm -f Makefile
476maintainer-clean-am: distclean-am maintainer-clean-generic
477
478mostlyclean: mostlyclean-am
479
480mostlyclean-am: mostlyclean-compile mostlyclean-generic \
481 mostlyclean-libtool
482
483pdf: pdf-am
484
485pdf-am:
486
487ps: ps-am
488
489ps-am:
490
491uninstall-am: uninstall-pluginimpLTLIBRARIES
492
493.MAKE: install-am install-strip
494
495.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
496 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
497 distclean-compile distclean-generic distclean-libtool \
498 distclean-tags distdir dvi dvi-am html html-am info info-am \
499 install install-am install-data install-data-am install-dvi \
500 install-dvi-am install-exec install-exec-am install-html \
501 install-html-am install-info install-info-am install-man \
502 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
503 install-ps install-ps-am install-strip installcheck \
504 installcheck-am installdirs maintainer-clean \
505 maintainer-clean-generic mostlyclean mostlyclean-compile \
506 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
507 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
508
509# Tell versions [3.59,3.63) of GNU make to not export all variables.
510# Otherwise a system limit (for SysV at least) may be exceeded.
511.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am
new file mode 100644
index 0000000..1e6b4ae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4if HAVE_LIBXML2
5pluginimp_LTLIBRARIES = imp_osm.la
6endif
7endif
8
9AM_CFLAGS = \
10 -Wall -ansi -pedantic \
11 -DG_LOG_DOMAIN=\"LibG3D\" \
12 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
13 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
14
15INCLUDES = -I$(top_srcdir)/include
16
17AM_LDFLAGS = \
18 -no-undefined -module \
19 @PLUGINS_LDFLAGS@
20
21LIBTOOL += --quiet
22
23imp_osm_la_SOURCES = imp_osm.c
24imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in
new file mode 100644
index 0000000..a875726
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in
@@ -0,0 +1,511 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_osm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_osm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_osm_la_OBJECTS = imp_osm.lo
59imp_osm_la_OBJECTS = $(am_imp_osm_la_OBJECTS)
60@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@am_imp_osm_la_rpath = -rpath \
61@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@ $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_osm_la_SOURCES)
75DIST_SOURCES = $(imp_osm_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_osm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_osm_la_SOURCES = imp_osm.c
231imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_osm.la: $(imp_osm_la_OBJECTS) $(imp_osm_la_DEPENDENCIES)
293 $(LINK) $(am_imp_osm_la_rpath) $(imp_osm_la_OBJECTS) $(imp_osm_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_osm.Plo@am__quote@
302
303.c.o:
304@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
305@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
308@am__fastdepCC_FALSE@ $(COMPILE) -c $<
309
310.c.obj:
311@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
312@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
316
317.c.lo:
318@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
319@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
323
324mostlyclean-libtool:
325 -rm -f *.lo
326
327clean-libtool:
328 -rm -rf .libs _libs
329
330ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 mkid -fID $$unique
338tags: TAGS
339
340TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
341 $(TAGS_FILES) $(LISP)
342 tags=; \
343 here=`pwd`; \
344 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
345 unique=`for i in $$list; do \
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347 done | \
348 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
349 END { if (nonempty) { for (i in files) print i; }; }'`; \
350 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
351 test -n "$$unique" || unique=$$empty_fix; \
352 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
353 $$tags $$unique; \
354 fi
355ctags: CTAGS
356CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
357 $(TAGS_FILES) $(LISP)
358 tags=; \
359 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
360 unique=`for i in $$list; do \
361 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
362 done | \
363 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
364 END { if (nonempty) { for (i in files) print i; }; }'`; \
365 test -z "$(CTAGS_ARGS)$$tags$$unique" \
366 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
367 $$tags $$unique
368
369GTAGS:
370 here=`$(am__cd) $(top_builddir) && pwd` \
371 && cd $(top_srcdir) \
372 && gtags -i $(GTAGS_ARGS) $$here
373
374distclean-tags:
375 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
376
377distdir: $(DISTFILES)
378 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 list='$(DISTFILES)'; \
381 dist_files=`for file in $$list; do echo $$file; done | \
382 sed -e "s|^$$srcdirstrip/||;t" \
383 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
384 case $$dist_files in \
385 */*) $(MKDIR_P) `echo "$$dist_files" | \
386 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
387 sort -u` ;; \
388 esac; \
389 for file in $$dist_files; do \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 if test -d $$d/$$file; then \
392 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
395 fi; \
396 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
397 else \
398 test -f $(distdir)/$$file \
399 || cp -p $$d/$$file $(distdir)/$$file \
400 || exit 1; \
401 fi; \
402 done
403check-am: all-am
404check: check-am
405all-am: Makefile $(LTLIBRARIES)
406installdirs:
407 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
408 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
409 done
410install: install-am
411install-exec: install-exec-am
412install-data: install-data-am
413uninstall: uninstall-am
414
415install-am: all-am
416 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
417
418installcheck: installcheck-am
419install-strip:
420 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
421 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
422 `test -z '$(STRIP)' || \
423 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
424mostlyclean-generic:
425
426clean-generic:
427
428distclean-generic:
429 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
430
431maintainer-clean-generic:
432 @echo "This command is intended for maintainers to use"
433 @echo "it deletes files that may require special tools to rebuild."
434clean: clean-am
435
436clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
437 mostlyclean-am
438
439distclean: distclean-am
440 -rm -rf ./$(DEPDIR)
441 -rm -f Makefile
442distclean-am: clean-am distclean-compile distclean-generic \
443 distclean-tags
444
445dvi: dvi-am
446
447dvi-am:
448
449html: html-am
450
451info: info-am
452
453info-am:
454
455install-data-am: install-pluginimpLTLIBRARIES
456
457install-dvi: install-dvi-am
458
459install-exec-am:
460
461install-html: install-html-am
462
463install-info: install-info-am
464
465install-man:
466
467install-pdf: install-pdf-am
468
469install-ps: install-ps-am
470
471installcheck-am:
472
473maintainer-clean: maintainer-clean-am
474 -rm -rf ./$(DEPDIR)
475 -rm -f Makefile
476maintainer-clean-am: distclean-am maintainer-clean-generic
477
478mostlyclean: mostlyclean-am
479
480mostlyclean-am: mostlyclean-compile mostlyclean-generic \
481 mostlyclean-libtool
482
483pdf: pdf-am
484
485pdf-am:
486
487ps: ps-am
488
489ps-am:
490
491uninstall-am: uninstall-pluginimpLTLIBRARIES
492
493.MAKE: install-am install-strip
494
495.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
496 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
497 distclean-compile distclean-generic distclean-libtool \
498 distclean-tags distdir dvi dvi-am html html-am info info-am \
499 install install-am install-data install-data-am install-dvi \
500 install-dvi-am install-exec install-exec-am install-html \
501 install-html-am install-info install-info-am install-man \
502 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
503 install-ps install-ps-am install-strip installcheck \
504 installcheck-am installdirs maintainer-clean \
505 maintainer-clean-generic mostlyclean mostlyclean-compile \
506 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
507 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
508
509# Tell versions [3.59,3.63) of GNU make to not export all variables.
510# Otherwise a system limit (for SysV at least) may be exceeded.
511.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c
new file mode 100644
index 0000000..f541925
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c
@@ -0,0 +1,334 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <locale.h>
25#include <math.h>
26
27#include <libxml/parser.h>
28#include <libxml/tree.h>
29
30#include <g3d/types.h>
31#include <g3d/stream.h>
32#include <g3d/material.h>
33#include <g3d/object.h>
34#include <g3d/vector.h>
35#include <g3d/matrix.h>
36#include <g3d/primitive.h>
37
38typedef struct {
39 guint32 length;
40 guint32 *ids;
41} OSMNodeTransList;
42
43typedef struct {
44 const gchar *name;
45 gdouble r, g, b, a;
46} OSMMaterial;
47
48static OSMMaterial osm_materials[] = {
49 { "default", 0.7, 0.7, 0.7, 0.7 },
50 { "highway:primary", 1.0, 0.8, 0.1, 1.0 },
51 { "highway:secondary", 1.0, 0.2, 0.2, 1.0 },
52 { "highway:footway", 0.2, 1.0, 0.2, 1.0 },
53 { "waterway:canal", 0.0, 0.1, 1.0, 0.7 },
54 { "waterway:river", 0.0, 0.4, 1.0, 0.7 },
55 { "waterway:riverbank", 0.0, 0.4, 1.0, 0.7 },
56 { NULL, 0.0, 0.0, 0.0, 0.0 }
57};
58
59static int osm_input_read_cb(gpointer ctx, gchar *buffer, gint len);
60static void osm_add_node(G3DObject *object, OSMNodeTransList *translist,
61 xmlNodePtr node);
62static void osm_add_way(G3DObject *object, OSMNodeTransList *translist,
63 xmlNodePtr node, GHashTable *materials);
64
65EAPI
66gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
67 G3DModel *model)
68{
69 xmlDocPtr xmldoc;
70 xmlNodePtr rootnode, node;
71 OSMNodeTransList *translist;
72 G3DObject *object;
73 GHashTable *materials;
74 G3DMaterial *material;
75 OSMMaterial *mentry;
76
77 setlocale(LC_NUMERIC, "C");
78
79 xmlInitParser();
80
81 xmldoc = xmlReadIO(osm_input_read_cb, NULL, stream, stream->uri, NULL, 0);
82 if(xmldoc == NULL) {
83 g_warning("OSM: failed to parse XML file '%s'", stream->uri);
84 xmlCleanupParser();
85 return FALSE;
86 }
87
88 /* create material table */
89 materials = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
90 for(mentry = osm_materials; mentry->name != NULL; mentry ++) {
91 material = g3d_material_new();
92 material->name = g_strdup(mentry->name);
93 material->r = mentry->r;
94 material->g = mentry->g;
95 material->b = mentry->b;
96 material->a = mentry->a;
97 model->materials = g_slist_append(model->materials, material);
98 g_hash_table_insert(materials, g_strdup(material->name), material);
99 }
100
101 translist = g_new0(OSMNodeTransList, 1);
102 object = g_new0(G3DObject, 1);
103 object->name = g_strdup("OpenStreetMap object");
104 model->objects = g_slist_append(model->objects, object);
105
106 rootnode = xmlDocGetRootElement(xmldoc);
107 for(node = rootnode->children; node != NULL; node = node->next) {
108 /* skip non-element nodes */
109 if(node->type != XML_ELEMENT_NODE)
110 continue;
111
112 if(xmlStrcmp((xmlChar *)"node", node->name) == 0) {
113 /* "node" nodes */
114 osm_add_node(object, translist, node);
115 } else if(xmlStrcmp((xmlChar *)"way", node->name) == 0) {
116 /* "way" nodes */
117 osm_add_way(object, translist, node, materials);
118 } else if(xmlStrcmp((xmlChar *)"relation", node->name) == 0) {
119 /* "relation" nodes */
120 }
121 }
122
123 /* clean up */
124 if(object->vertex_data) {
125 /* reference points not needed anymore */
126 g_free(object->vertex_data);
127 object->vertex_data = NULL;
128 object->vertex_count = 0;
129 }
130 g_hash_table_destroy(materials);
131 if(translist->ids)
132 g_free(translist->ids);
133 g_free(translist);
134 xmlFreeDoc(xmldoc);
135 xmlCleanupParser();
136
137 return TRUE;
138}
139
140EAPI
141char *plugin_description(void)
142{
143 return g_strdup("OpenStreetMap maps.");
144}
145
146EAPI
147char **plugin_extensions(void)
148{
149 return g_strsplit("osm", ":", 0);
150}
151
152/*****************************************************************************/
153/* helper functions
154 *****************************************************************************/
155
156static int osm_input_read_cb(gpointer ctx, gchar *buffer, gint len)
157{
158 return g3d_stream_read((G3DStream *)ctx, buffer, len);
159}
160
161#if 0
162#define G(i) (gdouble)(i)
163
164static gdouble misc_angle(gdouble x1, gdouble y1, gdouble x2, gdouble y2)
165{
166 gdouble at;
167
168 if(x1 == x2) {
169 if(y1 > y2)
170 return G_PI * 1.5;
171 else
172 return G_PI / 2.0;
173 }
174 at = atan((G(y2) - G(y1)) / (G(x2) - G(x1)));
175 if(x2 < x1)
176 return G_PI + at;
177 else
178 return at;
179}
180
181static gdouble misc_delta(gdouble x1, gdouble y1, gdouble x2, gdouble y2)
182{
183 gdouble a, b;
184
185 a = ABS(G(x2) - G(x1));
186 b = ABS(G(y2) - G(y1));
187 return sqrt(a * a + b * b);
188}
189#endif
190
191/*****************************************************************************/
192/* OSM specific functions
193 *****************************************************************************/
194
195static gint32 osm_translist_lookup(OSMNodeTransList *translist, guint32 id)
196{
197 gint32 i;
198
199 for(i = 0; i < translist->length; i ++)
200 if(translist->ids[i] == id)
201 return i;
202 return -1;
203}
204
205static void osm_add_node(G3DObject *object, OSMNodeTransList *translist,
206 xmlNodePtr node)
207{
208 gdouble lat, lon;
209
210 lat = strtod((char *)xmlGetProp(node, (xmlChar *)"lat"), NULL);
211 lon = strtod((char *)xmlGetProp(node, (xmlChar *)"lon"), NULL);
212
213 translist->length ++;
214 translist->ids = g_realloc(translist->ids,
215 translist->length * sizeof(guint32));
216 translist->ids[translist->length - 1] = strtoul(
217 (char *)xmlGetProp(node, (xmlChar *)"id"), NULL, 10);
218
219 object->vertex_count ++;
220 object->vertex_data = g_realloc(object->vertex_data,
221 object->vertex_count * sizeof(gdouble) * 3);
222 object->vertex_data[(object->vertex_count - 1) * 3 + 0] =
223 (lat * G_PI / 180) * cos(lon * G_PI / 180) * 180 / G_PI;
224 object->vertex_data[(object->vertex_count - 1) * 3 + 1] = 0.0;
225 object->vertex_data[(object->vertex_count - 1) * 3 + 2] =
226 (lat * G_PI / 180) * sin(lon * G_PI / 180) * 180 / G_PI;
227}
228
229static void osm_add_street(G3DObject *object, OSMNodeTransList *translist,
230 guint32 refcount, guint32 *refdata,
231 GHashTable *tags, GHashTable *materials)
232{
233 gint32 i, n;
234 gdouble *vdata;
235 G3DFloat matrix[16];
236 G3DObject *ostreet = NULL;
237 gchar *name, *mname;
238 G3DMaterial *material = NULL;
239
240 /* lookup material */
241 name = g_hash_table_lookup(tags, "highway");
242 if(name != NULL) {
243 mname = g_strdup_printf("highway:%s", name);
244 material = g_hash_table_lookup(materials, mname);
245 g_free(mname);
246 } else {
247 name = g_hash_table_lookup(tags, "waterway");
248 if(name != NULL) {
249 mname = g_strdup_printf("waterway:%s", name);
250 material = g_hash_table_lookup(materials, mname);
251 g_free(mname);
252 }
253 }
254 if(material == NULL) {
255 material = g_hash_table_lookup(materials, "default");
256 g_return_if_fail(material != NULL);
257 }
258
259 /* create strip */
260 vdata = g_new0(gdouble, refcount * 2);
261 for(i = 0; i < refcount; i ++) {
262 n = osm_translist_lookup(translist, refdata[i]);
263 if(n == -1) {
264 g_warning("OSM: looking up reference %d failed", refdata[i]);
265 continue;
266 }
267 vdata[i * 2 + 0] = object->vertex_data[n * 3 + 0];
268 vdata[i * 2 + 1] = object->vertex_data[n * 3 + 2];
269 }
270 ostreet = g3d_primitive_box_strip_2d(refcount, vdata, 0.00003, 0.0003,
271 material);
272 g_free(vdata);
273
274 if(ostreet == NULL)
275 return;
276
277 /* bridge? */
278 name = g_hash_table_lookup(tags, "bridge");
279 if(name && (strcmp(name, "true") == 0)) {
280 g3d_matrix_identity(matrix);
281 g3d_matrix_translate(0.0, 0.00005, 0.0, matrix);
282 g3d_object_transform(ostreet, matrix);
283 }
284
285 /* name? */
286 name = g_hash_table_lookup(tags, "name");
287 if(name == NULL)
288 ostreet->name = g_strdup("unnamed street");
289 else
290 ostreet->name = g_strdup(name);
291 object->objects = g_slist_append(object->objects, ostreet);
292}
293
294static void osm_add_way(G3DObject *object, OSMNodeTransList *translist,
295 xmlNodePtr node, GHashTable *materials)
296{
297 guint32 refcount = 0;
298 guint32 *refdata = NULL;
299 GHashTable *tags;
300 xmlNodePtr subnode;
301
302 tags = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
303
304 /* parse subnodes */
305 for(subnode = node->children; subnode != NULL; subnode = subnode->next) {
306 if(subnode->type != XML_ELEMENT_NODE)
307 continue;
308
309 if(xmlStrcmp((xmlChar *)"nd", subnode->name) == 0) {
310 refcount ++;
311 refdata = g_realloc(refdata, refcount * sizeof(guint32));
312 refdata[refcount - 1] = strtoul(
313 (char *)xmlGetProp(subnode, (xmlChar *)"ref"), NULL, 10);
314 } else if(xmlStrcmp((xmlChar *)"tag", subnode->name) == 0) {
315 g_hash_table_insert(tags,
316 g_strdup((char *)xmlGetProp(subnode, (xmlChar *)"k")),
317 g_strdup((char *)xmlGetProp(subnode, (xmlChar *)"v")));
318 } else {
319 /* unknown "way" subnode */
320 g_debug("OSM: 'way': unknown subnode '%s'",
321 (gchar *)subnode->name);
322 }
323 }
324
325 /* do something with the collected data */
326 if((g_hash_table_lookup(tags, "highway") != NULL) ||
327 (g_hash_table_lookup(tags, "waterway") != NULL))
328 osm_add_street(object, translist, refcount, refdata, tags, materials);
329
330 /* clean up */
331 g_hash_table_destroy(tags);
332 if(refdata)
333 g_free(refdata);
334}