aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c200
4 files changed, 1242 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile
new file mode 100644
index 0000000..bc7cf94
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_stl/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_stl
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_stl_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_stl_la_OBJECTS = imp_stl.lo
59imp_stl_la_OBJECTS = $(am_imp_stl_la_OBJECTS)
60#am_imp_stl_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_stl_la_SOURCES)
74DIST_SOURCES = $(imp_stl_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_stl.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_stl_la_SOURCES = imp_stl.c
230imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_stl.la: $(imp_stl_la_OBJECTS) $(imp_stl_la_DEPENDENCIES)
292 $(LINK) $(am_imp_stl_la_rpath) $(imp_stl_la_OBJECTS) $(imp_stl_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_stl.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am
new file mode 100644
index 0000000..3171c69
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_stl.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_stl_la_SOURCES = imp_stl.c
22imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in
new file mode 100644
index 0000000..8f437e5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in
@@ -0,0 +1,510 @@
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_stl
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_stl_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_stl_la_OBJECTS = imp_stl.lo
59imp_stl_la_OBJECTS = $(am_imp_stl_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_stl_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_stl_la_SOURCES)
74DIST_SOURCES = $(imp_stl_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_stl.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_stl_la_SOURCES = imp_stl.c
230imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_stl.la: $(imp_stl_la_OBJECTS) $(imp_stl_la_DEPENDENCIES)
292 $(LINK) $(am_imp_stl_la_rpath) $(imp_stl_la_OBJECTS) $(imp_stl_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_stl.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c
new file mode 100644
index 0000000..04a0f4a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c
@@ -0,0 +1,200 @@
1/*
2 libg3d - 3D object loading library
3
4 Copyright (C) 2006 Oliver Dippel <o.dippel@gmx.de>
5 2008 Markus Dahms <mad@automagically.de>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library 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 GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20*/
21
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <locale.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30
31/*
32 Infos for the STL(A)-Format:
33 http://www.csit.fsu.edu/~burkardt/data/stla/stla.html
34 Infos for the STL(B)-Format:
35 http://www.csit.fsu.edu/~burkardt/data/stlb/stlb.html
36*/
37
38#define STL_ASCII 0
39#define STL_BINARY 1
40
41static gboolean stl_load_binary(G3DContext *context, G3DModel *model,
42 G3DStream *stream);
43static gboolean stl_load_text(G3DContext *context, G3DModel *model,
44 G3DStream *stream);
45
46EAPI
47gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
48 G3DModel *model, gpointer user_data)
49{
50 gchar line[1024];
51 guint32 type;
52
53 /* Check Filetype (ASCII or BINARY) */
54 type = STL_BINARY;
55 while(!g3d_stream_eof(stream)) {
56 if(!g3d_stream_read_line(stream, line, 1023))
57 break;
58 if(strstr(line, "solid")) {
59 setlocale(LC_NUMERIC, "C");
60 type = STL_ASCII;
61 break;
62 }
63 }
64 /* rewind */
65 g3d_stream_seek(stream, 0, G_SEEK_SET);
66
67 if (type == STL_BINARY)
68 return stl_load_binary(context, model, stream);
69 else
70 return stl_load_text(context, model, stream);
71}
72
73EAPI
74gchar *plugin_description(G3DContext *context)
75{
76 return g_strdup("STLA and STLB stereolithography models.\n"
77 "Author: Oliver Dippel");
78}
79
80EAPI
81gchar **plugin_extensions(G3DContext *context)
82{
83 return g_strsplit("stl:stla:stlb", ":", 0);
84}
85
86/*****************************************************************************/
87
88static gboolean stl_load_binary(G3DContext *context, G3DModel *model,
89 G3DStream *stream)
90{
91 G3DObject *object;
92 G3DMaterial *material;
93 G3DFace *face;
94 gchar name[81];
95 guint32 num_faces, index = 0;
96 gint32 n, i, j;
97
98#if DEBUG > 0
99 g_debug("STL: format is BINARY");
100#endif
101
102 g3d_stream_read(stream, name, 80);
103 name[80] = 0;
104 num_faces = g3d_stream_read_int32_le(stream);
105
106 object = g_new0(G3DObject, 1);
107 object->name = g_strdup("STL-Model");
108 model->objects = g_slist_append(model->objects, object);
109
110 material = g3d_material_new();
111 material->name = g_strdup("default material");
112 object->materials = g_slist_append(object->materials, material);
113
114 object->vertex_count = num_faces * 3;
115#if DEBUG > 2
116 g_debug("STL: BINARY: vertex_count: %i", object->vertex_count);
117#endif
118 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
119 for(n = 0; n < num_faces; n ++) {
120 face = g_new0(G3DFace, 1);
121 face->material = material;
122 face->vertex_count = 3;
123 face->vertex_indices = g_new0(guint32, face->vertex_count);
124 face->vertex_indices[0] = index + 0;
125 face->vertex_indices[1] = index + 1;
126 face->vertex_indices[2] = index + 2;
127 object->faces = g_slist_prepend(object->faces, face);
128 /* normal */
129 for(j = 0; j < 3; j ++)
130 g3d_stream_read_float_le(stream);
131 /* triangle */
132 for(i = 0; i < 3; i ++) {
133 for(j = 0; j < 3; j ++)
134 object->vertex_data[index * 3 + j] =
135 g3d_stream_read_float_le(stream);
136 index ++;
137 }
138 /* 2 Byte Dummy read */
139 g3d_stream_read_int16_le(stream);
140 }
141 return TRUE;
142}
143
144static gboolean stl_load_text(G3DContext *context, G3DModel *model,
145 G3DStream *stream)
146{
147 G3DObject *object;
148 G3DMaterial *material;
149 G3DFace *face;
150 gchar line[1024];
151 guint32 index = 0;
152 G3DFloat x, y, z;
153
154#if DEBUG > 0
155 g_debug("STL: format is ASCII");
156#endif
157
158 object = g_new0(G3DObject, 1);
159 object->name = g_strdup("STL-Model");
160 model->objects = g_slist_append(model->objects, object);
161 material = g3d_material_new();
162 material->name = g_strdup("default material");
163 object->materials = g_slist_append(object->materials, material);
164 object->vertex_count = 0;
165 while(!g3d_stream_eof(stream)) {
166 line[0] = 0;
167 if(!g3d_stream_read_line(stream, line, 1023))
168 break;
169 g_strstrip(line);
170 if(strncmp(line, "solid", 5) == 0) {
171 g_free(object->name);
172 object->name = g_strdup(line + 6);
173 } else if(strncmp(line, "vertex", 6) == 0) {
174 object->vertex_count ++;
175 object->vertex_data = g_realloc(object->vertex_data,
176 object->vertex_count * 3 * sizeof(G3DFloat));
177 if(sscanf(line + 7, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &x, &y, &z) == 3) {
178 object->vertex_data[(object->vertex_count - 1) * 3 + 0] = x;
179 object->vertex_data[(object->vertex_count - 1) * 3 + 1] = y;
180 object->vertex_data[(object->vertex_count - 1) * 3 + 2] = z;
181 } else {
182#if DEBUG > 0
183 g_debug("imp_stl: parse error in vertex line: %s", line);
184#endif
185 }
186 } else if(strncmp(line, "facet", 5) == 0) {
187 face = g_new0(G3DFace, 1);
188 face->material = material;
189 face->vertex_count = 3;
190 face->vertex_indices = g_new0(guint32, face->vertex_count);
191 face->vertex_indices[0] = index + 0;
192 face->vertex_indices[1] = index + 1;
193 face->vertex_indices[2] = index + 2;
194 object->faces = g_slist_prepend(object->faces, face);
195 index += 3;
196 }
197 }
198 return TRUE;
199}
200