aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/programs
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/programs
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/programs/Makefile497
-rw-r--r--src/others/mimesh/libg3d-0.0.8/programs/Makefile.am10
-rw-r--r--src/others/mimesh/libg3d-0.0.8/programs/Makefile.in497
-rw-r--r--src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c324
4 files changed, 1328 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/programs/Makefile b/src/others/mimesh/libg3d-0.0.8/programs/Makefile
new file mode 100644
index 0000000..ea3fdb5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/programs/Makefile
@@ -0,0 +1,497 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# programs/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
35bin_PROGRAMS = g3d-stat$(EXEEXT)
36subdir = programs
37DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__installdirs = "$(DESTDIR)$(bindir)"
50binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
51PROGRAMS = $(bin_PROGRAMS)
52am_g3d_stat_OBJECTS = g3d-stat.$(OBJEXT)
53g3d_stat_OBJECTS = $(am_g3d_stat_OBJECTS)
54DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
55depcomp = $(SHELL) $(top_srcdir)/config/depcomp
56am__depfiles_maybe = depfiles
57COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
58 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
59LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
61 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
62CCLD = $(CC)
63LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
65 $(LDFLAGS) -o $@
66SOURCES = $(g3d_stat_SOURCES)
67DIST_SOURCES = $(g3d_stat_SOURCES)
68ETAGS = etags
69CTAGS = ctags
70DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
71ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
72AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
73AR = ar
74AS = as
75AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
76AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
77AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
78AWK = gawk
79CC = gcc
80CCDEPMODE = depmode=gcc3
81CFLAGS = -g -O2
82CPP = gcc -E
83CPPFLAGS =
84CXX = g++
85CXXCPP = g++ -E
86CXXDEPMODE = depmode=gcc3
87CXXFLAGS = -g -O2
88CYGPATH_W = echo
89DBG_CFLAGS = -O2
90DEBUG = 0
91DEFS = -DHAVE_CONFIG_H
92DEPDIR = .deps
93DLLTOOL = dlltool
94ECHO = echo
95ECHO_C =
96ECHO_N = -n
97ECHO_T =
98EGREP = /bin/grep -E
99EXEEXT =
100F77 =
101FFLAGS =
102GDKPIXBUF_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
103GDKPIXBUF_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
104GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
105GLIB_GENMARSHAL = glib-genmarshal
106GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
107GLIB_MKENUMS = glib-mkenums
108GOBJECT_QUERY = gobject-query
109GREP = /bin/grep
110GTKDOC_CHECK = /usr/bin/gtkdoc-check
111GTK_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
112GTK_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
113HTML_DIR = ${datadir}/gtk-doc/html
114INSTALL = /usr/bin/install -c
115INSTALL_DATA = ${INSTALL} -m 644
116INSTALL_PROGRAM = ${INSTALL}
117INSTALL_SCRIPT = ${INSTALL}
118INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
119LDFLAGS =
120LEX = flex
121LEXLIB = -lfl
122LEX_OUTPUT_ROOT = lex.yy
123LIBGSF_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
124LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
125LIBOBJS =
126LIBS = -lm
127LIBTOOL = $(SHELL) $(top_builddir)/libtool
128LIBXML2_CFLAGS = -I/usr/include/libxml2
129LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
130LN_S = ln -s
131LTLIBOBJS =
132LTVERSION = 0:8:0
133MAGIC_LIBS = -lmagic
134MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
135MATH_LIBS = -lm
136MKDIR_P = /bin/mkdir -p
137OBJDUMP = objdump
138OBJEXT = o
139PACKAGE = libg3d
140PACKAGE_BUGREPORT =
141PACKAGE_NAME =
142PACKAGE_STRING =
143PACKAGE_TARNAME =
144PACKAGE_VERSION =
145PATH_SEPARATOR = :
146PKG_CONFIG = /usr/bin/pkg-config
147PLUGINS_LDFLAGS = -avoid-version -export-dynamic
148RANLIB = ranlib
149SET_MAKE =
150SHELL = /bin/bash
151STRIP = strip
152VERSION = 0.0.8
153XML2_CONFIG = /usr/bin/xml2-config
154XML_CPPFLAGS = -I/usr/include/libxml2
155XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
156Z_CFLAGS =
157Z_LIBS = -lz
158abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/programs
159abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/programs
160abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
161abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
162ac_ct_CC = gcc
163ac_ct_CXX = g++
164ac_ct_F77 =
165am__include = include
166am__leading_dot = .
167am__quote =
168am__tar = ${AMTAR} chof - "$$tardir"
169am__untar = ${AMTAR} xf -
170bindir = ${exec_prefix}/bin
171build = x86_64-unknown-linux-gnu
172build_alias =
173build_cpu = x86_64
174build_os = linux-gnu
175build_vendor = unknown
176builddir = .
177datadir = ${datarootdir}
178datarootdir = ${prefix}/share
179docdir = ${datarootdir}/doc/${PACKAGE}
180dvidir = ${docdir}
181exec_prefix = ${prefix}
182host = x86_64-unknown-linux-gnu
183host_alias =
184host_cpu = x86_64
185host_os = linux-gnu
186host_vendor = unknown
187htmldir = ${docdir}
188includedir = ${prefix}/include
189infodir = ${datarootdir}/info
190install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
191libdir = ${exec_prefix}/lib
192libexecdir = ${exec_prefix}/libexec
193localedir = ${datarootdir}/locale
194localstatedir = ${prefix}/var
195mandir = ${datarootdir}/man
196mkdir_p = /bin/mkdir -p
197oldincludedir = /usr/include
198pdfdir = ${docdir}
199prefix = /usr/local
200program_transform_name = s,x,x,
201psdir = ${docdir}
202sbindir = ${exec_prefix}/sbin
203sharedstatedir = ${prefix}/com
204srcdir = .
205sysconfdir = ${prefix}/etc
206target_alias =
207top_builddir = ..
208top_srcdir = ..
209AM_CFLAGS = \
210 -Wall -ansi -pedantic \
211 -I$(top_srcdir)/include \
212 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
213
214g3d_stat_SOURCES = g3d-stat.c
215g3d_stat_DEPENDENCIES = ../src/libg3d.la
216g3d_stat_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
217all: all-am
218
219.SUFFIXES:
220.SUFFIXES: .c .lo .o .obj
221$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
222 @for dep in $?; do \
223 case '$(am__configure_deps)' in \
224 *$$dep*) \
225 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
226 && exit 0; \
227 exit 1;; \
228 esac; \
229 done; \
230 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu programs/Makefile'; \
231 cd $(top_srcdir) && \
232 $(AUTOMAKE) --gnu programs/Makefile
233.PRECIOUS: Makefile
234Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
235 @case '$?' in \
236 *config.status*) \
237 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
238 *) \
239 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
240 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
241 esac;
242
243$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245
246$(top_srcdir)/configure: $(am__configure_deps)
247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
248$(ACLOCAL_M4): $(am__aclocal_m4_deps)
249 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
250install-binPROGRAMS: $(bin_PROGRAMS)
251 @$(NORMAL_INSTALL)
252 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
253 @list='$(bin_PROGRAMS)'; for p in $$list; do \
254 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
255 if test -f $$p \
256 || test -f $$p1 \
257 ; then \
258 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
259 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
260 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
261 else :; fi; \
262 done
263
264uninstall-binPROGRAMS:
265 @$(NORMAL_UNINSTALL)
266 @list='$(bin_PROGRAMS)'; for p in $$list; do \
267 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
268 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
269 rm -f "$(DESTDIR)$(bindir)/$$f"; \
270 done
271
272clean-binPROGRAMS:
273 @list='$(bin_PROGRAMS)'; for p in $$list; do \
274 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
275 echo " rm -f $$p $$f"; \
276 rm -f $$p $$f ; \
277 done
278g3d-stat$(EXEEXT): $(g3d_stat_OBJECTS) $(g3d_stat_DEPENDENCIES)
279 @rm -f g3d-stat$(EXEEXT)
280 $(LINK) $(g3d_stat_OBJECTS) $(g3d_stat_LDADD) $(LIBS)
281
282mostlyclean-compile:
283 -rm -f *.$(OBJEXT)
284
285distclean-compile:
286 -rm -f *.tab.c
287
288include ./$(DEPDIR)/g3d-stat.Po
289
290.c.o:
291 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
292 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
293# source='$<' object='$@' libtool=no \
294# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
295# $(COMPILE) -c $<
296
297.c.obj:
298 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
299 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
300# source='$<' object='$@' libtool=no \
301# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
302# $(COMPILE) -c `$(CYGPATH_W) '$<'`
303
304.c.lo:
305 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
307# source='$<' object='$@' libtool=yes \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(LTCOMPILE) -c -o $@ $<
310
311mostlyclean-libtool:
312 -rm -f *.lo
313
314clean-libtool:
315 -rm -rf .libs _libs
316
317ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
318 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
319 unique=`for i in $$list; do \
320 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
321 done | \
322 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
323 END { if (nonempty) { for (i in files) print i; }; }'`; \
324 mkid -fID $$unique
325tags: TAGS
326
327TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
328 $(TAGS_FILES) $(LISP)
329 tags=; \
330 here=`pwd`; \
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; nonempty = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
338 test -n "$$unique" || unique=$$empty_fix; \
339 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
340 $$tags $$unique; \
341 fi
342ctags: CTAGS
343CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 test -z "$(CTAGS_ARGS)$$tags$$unique" \
353 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
354 $$tags $$unique
355
356GTAGS:
357 here=`$(am__cd) $(top_builddir) && pwd` \
358 && cd $(top_srcdir) \
359 && gtags -i $(GTAGS_ARGS) $$here
360
361distclean-tags:
362 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
363
364distdir: $(DISTFILES)
365 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
366 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
367 list='$(DISTFILES)'; \
368 dist_files=`for file in $$list; do echo $$file; done | \
369 sed -e "s|^$$srcdirstrip/||;t" \
370 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
371 case $$dist_files in \
372 */*) $(MKDIR_P) `echo "$$dist_files" | \
373 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
374 sort -u` ;; \
375 esac; \
376 for file in $$dist_files; do \
377 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
378 if test -d $$d/$$file; then \
379 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
380 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
381 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
382 fi; \
383 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
384 else \
385 test -f $(distdir)/$$file \
386 || cp -p $$d/$$file $(distdir)/$$file \
387 || exit 1; \
388 fi; \
389 done
390check-am: all-am
391check: check-am
392all-am: Makefile $(PROGRAMS)
393installdirs:
394 for dir in "$(DESTDIR)$(bindir)"; do \
395 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
396 done
397install: install-am
398install-exec: install-exec-am
399install-data: install-data-am
400uninstall: uninstall-am
401
402install-am: all-am
403 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
404
405installcheck: installcheck-am
406install-strip:
407 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
408 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
409 `test -z '$(STRIP)' || \
410 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
411mostlyclean-generic:
412
413clean-generic:
414
415distclean-generic:
416 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
417
418maintainer-clean-generic:
419 @echo "This command is intended for maintainers to use"
420 @echo "it deletes files that may require special tools to rebuild."
421clean: clean-am
422
423clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
424
425distclean: distclean-am
426 -rm -rf ./$(DEPDIR)
427 -rm -f Makefile
428distclean-am: clean-am distclean-compile distclean-generic \
429 distclean-tags
430
431dvi: dvi-am
432
433dvi-am:
434
435html: html-am
436
437info: info-am
438
439info-am:
440
441install-data-am:
442
443install-dvi: install-dvi-am
444
445install-exec-am: install-binPROGRAMS
446
447install-html: install-html-am
448
449install-info: install-info-am
450
451install-man:
452
453install-pdf: install-pdf-am
454
455install-ps: install-ps-am
456
457installcheck-am:
458
459maintainer-clean: maintainer-clean-am
460 -rm -rf ./$(DEPDIR)
461 -rm -f Makefile
462maintainer-clean-am: distclean-am maintainer-clean-generic
463
464mostlyclean: mostlyclean-am
465
466mostlyclean-am: mostlyclean-compile mostlyclean-generic \
467 mostlyclean-libtool
468
469pdf: pdf-am
470
471pdf-am:
472
473ps: ps-am
474
475ps-am:
476
477uninstall-am: uninstall-binPROGRAMS
478
479.MAKE: install-am install-strip
480
481.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
482 clean-generic clean-libtool ctags distclean distclean-compile \
483 distclean-generic distclean-libtool distclean-tags distdir dvi \
484 dvi-am html html-am info info-am install install-am \
485 install-binPROGRAMS install-data install-data-am install-dvi \
486 install-dvi-am install-exec install-exec-am install-html \
487 install-html-am install-info install-info-am install-man \
488 install-pdf install-pdf-am install-ps install-ps-am \
489 install-strip installcheck installcheck-am installdirs \
490 maintainer-clean maintainer-clean-generic mostlyclean \
491 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
492 pdf pdf-am ps ps-am tags uninstall uninstall-am \
493 uninstall-binPROGRAMS
494
495# Tell versions [3.59,3.63) of GNU make to not export all variables.
496# Otherwise a system limit (for SysV at least) may be exceeded.
497.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/programs/Makefile.am b/src/others/mimesh/libg3d-0.0.8/programs/Makefile.am
new file mode 100644
index 0000000..28775f3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/programs/Makefile.am
@@ -0,0 +1,10 @@
1bin_PROGRAMS = g3d-stat
2
3AM_CFLAGS = \
4 -Wall -ansi -pedantic \
5 -I$(top_srcdir)/include \
6 @GLIB_CFLAGS@
7
8g3d_stat_SOURCES = g3d-stat.c
9g3d_stat_DEPENDENCIES =../src/libg3d.la
10g3d_stat_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/programs/Makefile.in b/src/others/mimesh/libg3d-0.0.8/programs/Makefile.in
new file mode 100644
index 0000000..1655792
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/programs/Makefile.in
@@ -0,0 +1,497 @@
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@
35bin_PROGRAMS = g3d-stat$(EXEEXT)
36subdir = programs
37DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__installdirs = "$(DESTDIR)$(bindir)"
50binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
51PROGRAMS = $(bin_PROGRAMS)
52am_g3d_stat_OBJECTS = g3d-stat.$(OBJEXT)
53g3d_stat_OBJECTS = $(am_g3d_stat_OBJECTS)
54DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
55depcomp = $(SHELL) $(top_srcdir)/config/depcomp
56am__depfiles_maybe = depfiles
57COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
58 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
59LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
61 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
62CCLD = $(CC)
63LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
65 $(LDFLAGS) -o $@
66SOURCES = $(g3d_stat_SOURCES)
67DIST_SOURCES = $(g3d_stat_SOURCES)
68ETAGS = etags
69CTAGS = ctags
70DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
71ACLOCAL = @ACLOCAL@
72AMTAR = @AMTAR@
73AR = @AR@
74AS = @AS@
75AUTOCONF = @AUTOCONF@
76AUTOHEADER = @AUTOHEADER@
77AUTOMAKE = @AUTOMAKE@
78AWK = @AWK@
79CC = @CC@
80CCDEPMODE = @CCDEPMODE@
81CFLAGS = @CFLAGS@
82CPP = @CPP@
83CPPFLAGS = @CPPFLAGS@
84CXX = @CXX@
85CXXCPP = @CXXCPP@
86CXXDEPMODE = @CXXDEPMODE@
87CXXFLAGS = @CXXFLAGS@
88CYGPATH_W = @CYGPATH_W@
89DBG_CFLAGS = @DBG_CFLAGS@
90DEBUG = @DEBUG@
91DEFS = @DEFS@
92DEPDIR = @DEPDIR@
93DLLTOOL = @DLLTOOL@
94ECHO = @ECHO@
95ECHO_C = @ECHO_C@
96ECHO_N = @ECHO_N@
97ECHO_T = @ECHO_T@
98EGREP = @EGREP@
99EXEEXT = @EXEEXT@
100F77 = @F77@
101FFLAGS = @FFLAGS@
102GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
103GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
104GLIB_CFLAGS = @GLIB_CFLAGS@
105GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
106GLIB_LIBS = @GLIB_LIBS@
107GLIB_MKENUMS = @GLIB_MKENUMS@
108GOBJECT_QUERY = @GOBJECT_QUERY@
109GREP = @GREP@
110GTKDOC_CHECK = @GTKDOC_CHECK@
111GTK_CFLAGS = @GTK_CFLAGS@
112GTK_LIBS = @GTK_LIBS@
113HTML_DIR = @HTML_DIR@
114INSTALL = @INSTALL@
115INSTALL_DATA = @INSTALL_DATA@
116INSTALL_PROGRAM = @INSTALL_PROGRAM@
117INSTALL_SCRIPT = @INSTALL_SCRIPT@
118INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
119LDFLAGS = @LDFLAGS@
120LEX = @LEX@
121LEXLIB = @LEXLIB@
122LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
123LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
124LIBGSF_LIBS = @LIBGSF_LIBS@
125LIBOBJS = @LIBOBJS@
126LIBS = @LIBS@
127LIBTOOL = @LIBTOOL@
128LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
129LIBXML2_LIBS = @LIBXML2_LIBS@
130LN_S = @LN_S@
131LTLIBOBJS = @LTLIBOBJS@
132LTVERSION = @LTVERSION@
133MAGIC_LIBS = @MAGIC_LIBS@
134MAKEINFO = @MAKEINFO@
135MATH_LIBS = @MATH_LIBS@
136MKDIR_P = @MKDIR_P@
137OBJDUMP = @OBJDUMP@
138OBJEXT = @OBJEXT@
139PACKAGE = @PACKAGE@
140PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
141PACKAGE_NAME = @PACKAGE_NAME@
142PACKAGE_STRING = @PACKAGE_STRING@
143PACKAGE_TARNAME = @PACKAGE_TARNAME@
144PACKAGE_VERSION = @PACKAGE_VERSION@
145PATH_SEPARATOR = @PATH_SEPARATOR@
146PKG_CONFIG = @PKG_CONFIG@
147PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
148RANLIB = @RANLIB@
149SET_MAKE = @SET_MAKE@
150SHELL = @SHELL@
151STRIP = @STRIP@
152VERSION = @VERSION@
153XML2_CONFIG = @XML2_CONFIG@
154XML_CPPFLAGS = @XML_CPPFLAGS@
155XML_LIBS = @XML_LIBS@
156Z_CFLAGS = @Z_CFLAGS@
157Z_LIBS = @Z_LIBS@
158abs_builddir = @abs_builddir@
159abs_srcdir = @abs_srcdir@
160abs_top_builddir = @abs_top_builddir@
161abs_top_srcdir = @abs_top_srcdir@
162ac_ct_CC = @ac_ct_CC@
163ac_ct_CXX = @ac_ct_CXX@
164ac_ct_F77 = @ac_ct_F77@
165am__include = @am__include@
166am__leading_dot = @am__leading_dot@
167am__quote = @am__quote@
168am__tar = @am__tar@
169am__untar = @am__untar@
170bindir = @bindir@
171build = @build@
172build_alias = @build_alias@
173build_cpu = @build_cpu@
174build_os = @build_os@
175build_vendor = @build_vendor@
176builddir = @builddir@
177datadir = @datadir@
178datarootdir = @datarootdir@
179docdir = @docdir@
180dvidir = @dvidir@
181exec_prefix = @exec_prefix@
182host = @host@
183host_alias = @host_alias@
184host_cpu = @host_cpu@
185host_os = @host_os@
186host_vendor = @host_vendor@
187htmldir = @htmldir@
188includedir = @includedir@
189infodir = @infodir@
190install_sh = @install_sh@
191libdir = @libdir@
192libexecdir = @libexecdir@
193localedir = @localedir@
194localstatedir = @localstatedir@
195mandir = @mandir@
196mkdir_p = @mkdir_p@
197oldincludedir = @oldincludedir@
198pdfdir = @pdfdir@
199prefix = @prefix@
200program_transform_name = @program_transform_name@
201psdir = @psdir@
202sbindir = @sbindir@
203sharedstatedir = @sharedstatedir@
204srcdir = @srcdir@
205sysconfdir = @sysconfdir@
206target_alias = @target_alias@
207top_builddir = @top_builddir@
208top_srcdir = @top_srcdir@
209AM_CFLAGS = \
210 -Wall -ansi -pedantic \
211 -I$(top_srcdir)/include \
212 @GLIB_CFLAGS@
213
214g3d_stat_SOURCES = g3d-stat.c
215g3d_stat_DEPENDENCIES = ../src/libg3d.la
216g3d_stat_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
217all: all-am
218
219.SUFFIXES:
220.SUFFIXES: .c .lo .o .obj
221$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
222 @for dep in $?; do \
223 case '$(am__configure_deps)' in \
224 *$$dep*) \
225 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
226 && exit 0; \
227 exit 1;; \
228 esac; \
229 done; \
230 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu programs/Makefile'; \
231 cd $(top_srcdir) && \
232 $(AUTOMAKE) --gnu programs/Makefile
233.PRECIOUS: Makefile
234Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
235 @case '$?' in \
236 *config.status*) \
237 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
238 *) \
239 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
240 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
241 esac;
242
243$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245
246$(top_srcdir)/configure: $(am__configure_deps)
247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
248$(ACLOCAL_M4): $(am__aclocal_m4_deps)
249 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
250install-binPROGRAMS: $(bin_PROGRAMS)
251 @$(NORMAL_INSTALL)
252 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
253 @list='$(bin_PROGRAMS)'; for p in $$list; do \
254 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
255 if test -f $$p \
256 || test -f $$p1 \
257 ; then \
258 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
259 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
260 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
261 else :; fi; \
262 done
263
264uninstall-binPROGRAMS:
265 @$(NORMAL_UNINSTALL)
266 @list='$(bin_PROGRAMS)'; for p in $$list; do \
267 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
268 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
269 rm -f "$(DESTDIR)$(bindir)/$$f"; \
270 done
271
272clean-binPROGRAMS:
273 @list='$(bin_PROGRAMS)'; for p in $$list; do \
274 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
275 echo " rm -f $$p $$f"; \
276 rm -f $$p $$f ; \
277 done
278g3d-stat$(EXEEXT): $(g3d_stat_OBJECTS) $(g3d_stat_DEPENDENCIES)
279 @rm -f g3d-stat$(EXEEXT)
280 $(LINK) $(g3d_stat_OBJECTS) $(g3d_stat_LDADD) $(LIBS)
281
282mostlyclean-compile:
283 -rm -f *.$(OBJEXT)
284
285distclean-compile:
286 -rm -f *.tab.c
287
288@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3d-stat.Po@am__quote@
289
290.c.o:
291@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
292@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
293@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
294@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
295@am__fastdepCC_FALSE@ $(COMPILE) -c $<
296
297.c.obj:
298@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
299@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
300@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
301@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
302@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
303
304.c.lo:
305@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
310
311mostlyclean-libtool:
312 -rm -f *.lo
313
314clean-libtool:
315 -rm -rf .libs _libs
316
317ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
318 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
319 unique=`for i in $$list; do \
320 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
321 done | \
322 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
323 END { if (nonempty) { for (i in files) print i; }; }'`; \
324 mkid -fID $$unique
325tags: TAGS
326
327TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
328 $(TAGS_FILES) $(LISP)
329 tags=; \
330 here=`pwd`; \
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; nonempty = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
338 test -n "$$unique" || unique=$$empty_fix; \
339 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
340 $$tags $$unique; \
341 fi
342ctags: CTAGS
343CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 test -z "$(CTAGS_ARGS)$$tags$$unique" \
353 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
354 $$tags $$unique
355
356GTAGS:
357 here=`$(am__cd) $(top_builddir) && pwd` \
358 && cd $(top_srcdir) \
359 && gtags -i $(GTAGS_ARGS) $$here
360
361distclean-tags:
362 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
363
364distdir: $(DISTFILES)
365 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
366 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
367 list='$(DISTFILES)'; \
368 dist_files=`for file in $$list; do echo $$file; done | \
369 sed -e "s|^$$srcdirstrip/||;t" \
370 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
371 case $$dist_files in \
372 */*) $(MKDIR_P) `echo "$$dist_files" | \
373 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
374 sort -u` ;; \
375 esac; \
376 for file in $$dist_files; do \
377 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
378 if test -d $$d/$$file; then \
379 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
380 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
381 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
382 fi; \
383 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
384 else \
385 test -f $(distdir)/$$file \
386 || cp -p $$d/$$file $(distdir)/$$file \
387 || exit 1; \
388 fi; \
389 done
390check-am: all-am
391check: check-am
392all-am: Makefile $(PROGRAMS)
393installdirs:
394 for dir in "$(DESTDIR)$(bindir)"; do \
395 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
396 done
397install: install-am
398install-exec: install-exec-am
399install-data: install-data-am
400uninstall: uninstall-am
401
402install-am: all-am
403 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
404
405installcheck: installcheck-am
406install-strip:
407 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
408 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
409 `test -z '$(STRIP)' || \
410 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
411mostlyclean-generic:
412
413clean-generic:
414
415distclean-generic:
416 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
417
418maintainer-clean-generic:
419 @echo "This command is intended for maintainers to use"
420 @echo "it deletes files that may require special tools to rebuild."
421clean: clean-am
422
423clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
424
425distclean: distclean-am
426 -rm -rf ./$(DEPDIR)
427 -rm -f Makefile
428distclean-am: clean-am distclean-compile distclean-generic \
429 distclean-tags
430
431dvi: dvi-am
432
433dvi-am:
434
435html: html-am
436
437info: info-am
438
439info-am:
440
441install-data-am:
442
443install-dvi: install-dvi-am
444
445install-exec-am: install-binPROGRAMS
446
447install-html: install-html-am
448
449install-info: install-info-am
450
451install-man:
452
453install-pdf: install-pdf-am
454
455install-ps: install-ps-am
456
457installcheck-am:
458
459maintainer-clean: maintainer-clean-am
460 -rm -rf ./$(DEPDIR)
461 -rm -f Makefile
462maintainer-clean-am: distclean-am maintainer-clean-generic
463
464mostlyclean: mostlyclean-am
465
466mostlyclean-am: mostlyclean-compile mostlyclean-generic \
467 mostlyclean-libtool
468
469pdf: pdf-am
470
471pdf-am:
472
473ps: ps-am
474
475ps-am:
476
477uninstall-am: uninstall-binPROGRAMS
478
479.MAKE: install-am install-strip
480
481.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
482 clean-generic clean-libtool ctags distclean distclean-compile \
483 distclean-generic distclean-libtool distclean-tags distdir dvi \
484 dvi-am html html-am info info-am install install-am \
485 install-binPROGRAMS install-data install-data-am install-dvi \
486 install-dvi-am install-exec install-exec-am install-html \
487 install-html-am install-info install-info-am install-man \
488 install-pdf install-pdf-am install-ps install-ps-am \
489 install-strip installcheck installcheck-am installdirs \
490 maintainer-clean maintainer-clean-generic mostlyclean \
491 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
492 pdf pdf-am ps ps-am tags uninstall uninstall-am \
493 uninstall-binPROGRAMS
494
495# Tell versions [3.59,3.63) of GNU make to not export all variables.
496# Otherwise a system limit (for SysV at least) may be exceeded.
497.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c b/src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c
new file mode 100644
index 0000000..af04835
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c
@@ -0,0 +1,324 @@
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#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <signal.h>
26#include <g3d/g3d.h>
27#include <g3d/plugins.h>
28
29typedef struct {
30 guint32 n_objects;
31 guint32 n_vertices;
32 guint32 n_faces;
33 guint32 n_textures;
34} FileStats;
35
36typedef struct {
37 guint32 n_success;
38 guint32 n_failure;
39 GSList *no_objects;
40 GSList *no_faces;
41 GSList *no_vertices;
42} PluginStats;
43
44typedef struct {
45 G3DContext *context;
46 gboolean use_color;
47 FILE *ftree;
48} Config;
49
50static gboolean quit = FALSE;
51
52static void show_help(void);
53static Config *get_config(gint *argc, gchar ***argv);
54static gboolean dir_stat(Config *config, const char *dirname);
55static gboolean file_stat(Config *config, const char *filename,
56 gboolean detailed, FileStats *stats, gchar **plugin_used);
57
58static void sighandler(int signal)
59{
60 quit = TRUE;
61 fprintf(stderr, "signal %d received, quitting\n", signal);
62}
63
64static void _g_print(const gchar *str)
65{
66#if 0
67 fputs(str, stderr);
68#endif
69}
70
71#define ANSI_RESET "\033[0m"
72#define ANSI_GREEN "\033[32m"
73#define ANSI_RED "\033[31m"
74
75static void log_handler(const gchar *log_domain, GLogLevelFlags log_level,
76 const gchar *message, gpointer user_data)
77{
78 Config *config = user_data;
79
80 if(message[0] == '\\') {
81 if(config->use_color)
82 fprintf(config->ftree, ANSI_GREEN "%s\n" ANSI_RESET, message + 1);
83 else
84 fprintf(config->ftree, "%s\n", message + 1);
85 } else if(message[0] == '|') {
86 printf("%s\n", message + 1);
87 } else {
88 if(config->use_color)
89 printf(ANSI_RED "%s\n" ANSI_RESET, message);
90 else
91 printf("%s\n", message);
92 }
93}
94
95int main(int argc, char **argv)
96{
97 Config *config;
98
99 signal(SIGINT, sighandler);
100#ifdef SIGQUIT
101 signal(SIGQUIT, sighandler);
102#endif
103
104 config = get_config(&argc, &argv);
105
106 if(argc < 1) {
107 show_help();
108 exit(EXIT_FAILURE);
109 }
110
111 g_set_print_handler(_g_print);
112 g_set_printerr_handler(_g_print);
113 g_log_set_handler("LibG3D", G_LOG_LEVEL_MASK, log_handler, config);
114
115 config->context = g3d_context_new();
116
117 if(g_file_test(argv[0], G_FILE_TEST_IS_DIR)) {
118 return dir_stat(config, argv[0]);
119 }
120 else {
121 return file_stat(config, argv[0], TRUE, NULL, NULL);
122 }
123}
124
125static Config *get_config(gint *argc, gchar ***argv)
126{
127 Config *config;
128 guint32 skip = 1; /* skip program name by default */
129 gint32 i;
130 gchar *opt;
131
132 config = g_new0(Config, 1);
133 config->use_color = TRUE;
134 config->ftree = stdout;
135
136 for(i = 1; i < *argc; i ++) {
137 if(strncmp((*argv)[i], "--", 2) != 0)
138 break;
139 skip ++;
140 opt = (*argv)[i] + 2;
141 if(strcmp(opt, "help") == 0) {
142 show_help();
143 exit(EXIT_FAILURE);
144 } else if(strcmp(opt, "nocolor") == 0) {
145 config->use_color = FALSE;
146 } else if(strncmp(opt, "tree=", 5) == 0) {
147 config->use_color = FALSE;
148 config->ftree = fopen(opt + 5, "w");
149 if(config->ftree == NULL) {
150 perror("error opening tree output file");
151 exit(EXIT_FAILURE);
152 }
153 }
154 }
155
156 *argc -= skip;
157 *argv = &((*argv)[skip]);
158
159 return config;
160}
161
162static void show_help(void)
163{
164 fprintf(stderr,
165 "usage: g3d-stat [<option> ...] (file|directory)\n"
166 "\n"
167 "options:\n"
168 " --help show this message\n"
169 " --nocolor disable ANSI color output\n"
170 " --tree=<filename> redirect tree output to file <filename>\n"
171 );
172}
173
174static gboolean dir_stat_1(Config *config, const char *dirname,
175 GHashTable *plugins)
176{
177 GDir *dir;
178 FileStats *fstats;
179 PluginStats *pstats;
180 const gchar *fname;
181 gchar *filename, *plugin_used;
182 gboolean retval;
183
184 dir = g_dir_open(dirname, 0, NULL);
185 g_return_val_if_fail(dir != NULL, FALSE);
186 while((fname = g_dir_read_name(dir)) != NULL) {
187 filename = g_strdup_printf("%s%c%s",
188 dirname, G_DIR_SEPARATOR, fname);
189 if(quit)
190 return FALSE;
191 if(g_file_test(filename, G_FILE_TEST_IS_DIR))
192 dir_stat_1(config, filename, plugins);
193 else {
194 fstats = g_new0(FileStats, 1);
195 plugin_used = NULL;
196 fprintf(stderr, "*** DEBUG: %s\n", filename);
197 retval = file_stat(config, filename, FALSE, fstats, &plugin_used);
198 if(plugin_used) {
199 pstats = g_hash_table_lookup(plugins, plugin_used);
200 if(pstats)
201 g_free(plugin_used);
202 else {
203 pstats = g_new0(PluginStats, 1);
204 g_hash_table_insert(plugins, plugin_used, pstats);
205 }
206
207 /* update pstats for plugin */
208 if(retval)
209 pstats->n_success ++;
210 else
211 pstats->n_failure ++;
212
213 if(fstats->n_objects == 0)
214 pstats->no_objects = g_slist_append(pstats->no_objects,
215 g_strdup(filename));
216 else if(fstats->n_vertices == 0)
217 pstats->no_vertices = g_slist_append(pstats->no_vertices,
218 g_strdup(filename));
219 else if(fstats->n_faces == 0)
220 pstats->no_faces = g_slist_append(pstats->no_faces,
221 g_strdup(filename));
222 } /* plugin_used */
223 g_free(fstats);
224 } /* !directory */
225 g_free(filename);
226 }
227 g_dir_close(dir);
228 return TRUE;
229}
230
231static void output_plugin_stats(gpointer key, gpointer value, gpointer data)
232{
233 gchar *name = (gchar *)key;
234 PluginStats *pstats = (PluginStats *)value;
235 GSList *item;
236
237 printf("%s:\n"
238 " num success: %d\n"
239 " num failure: %d\n"
240 " num no objects: %d\n",
241 name, pstats->n_success, pstats->n_failure,
242 g_slist_length(pstats->no_objects));
243 for(item = pstats->no_objects; item != NULL; item = item->next)
244 printf(" %s\n", (gchar *)item->data);
245 printf(" num no vertices: %d\n", g_slist_length(pstats->no_vertices));
246 for(item = pstats->no_vertices; item != NULL; item = item->next)
247 printf(" %s\n", (gchar *)item->data);
248 printf(" num no faces: %d\n", g_slist_length(pstats->no_faces));
249 for(item = pstats->no_faces; item != NULL; item = item->next)
250 printf(" %s\n", (gchar *)item->data);
251}
252
253static gboolean dir_stat(Config *config, const char *dirname)
254{
255 GHashTable *plugins;
256
257 plugins = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
258
259 dir_stat_1(config, dirname, plugins);
260
261 /* output statistics */
262 g_hash_table_foreach(plugins, output_plugin_stats, NULL);
263
264 g_hash_table_destroy(plugins);
265
266 return TRUE;
267}
268
269static gboolean objects_stat(GSList *objects, gboolean detailed,
270 FileStats *stats, guint32 indent)
271{
272 GSList *item;
273 G3DObject *object;
274 gchar *istr;
275
276 if(stats)
277 stats->n_objects += g_slist_length(objects);
278
279 for(item = objects; item != NULL; item = item->next) {
280 object = (G3DObject *)item->data;
281 g_return_val_if_fail(object != NULL, FALSE);
282
283 if(stats) {
284 stats->n_vertices += object->vertex_count;
285 stats->n_faces += g_slist_length(object->faces);
286 }
287
288 if(detailed) {
289 istr = g_strnfill(indent * 2, ' ');
290 printf("%sobject name: %s\n"
291 "%sobject num vertices: %d\n"
292 "%sobject num faces: %d\n"
293 "%sobject num subobjects: %d\n",
294 istr, object->name,
295 istr, object->vertex_count,
296 istr, g_slist_length(object->faces),
297 istr, g_slist_length(object->objects));
298 g_free(istr);
299 }
300
301 objects_stat(object->objects, detailed, stats, indent + 1);
302 }
303
304 return TRUE;
305}
306
307static gboolean file_stat(Config *config, const char *filename,
308 gboolean detailed, FileStats *stats, gchar **plugin_used)
309{
310 G3DModel *model;
311
312 model = g3d_model_load(config->context, filename);
313 if(model == NULL) {
314 return FALSE;
315 }
316
317 objects_stat(model->objects, detailed, stats, 0);
318 if(plugin_used && model->plugin)
319 *plugin_used = g_strdup(model->plugin->name);
320
321 g3d_model_free(model);
322
323 return TRUE;
324}