diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/programs')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/programs/Makefile | 497 | ||||
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/programs/Makefile.am | 10 | ||||
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/programs/Makefile.in | 497 | ||||
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c | 324 |
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 | |||
18 | pkgdatadir = $(datadir)/libg3d | ||
19 | pkglibdir = $(libdir)/libg3d | ||
20 | pkgincludedir = $(includedir)/libg3d | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = x86_64-unknown-linux-gnu | ||
34 | host_triplet = x86_64-unknown-linux-gnu | ||
35 | bin_PROGRAMS = g3d-stat$(EXEEXT) | ||
36 | subdir = programs | ||
37 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
39 | am__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 | ||
44 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
45 | $(ACLOCAL_M4) | ||
46 | mkinstalldirs = $(install_sh) -d | ||
47 | CONFIG_HEADER = $(top_builddir)/include/g3d/config.h | ||
48 | CONFIG_CLEAN_FILES = | ||
49 | am__installdirs = "$(DESTDIR)$(bindir)" | ||
50 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | ||
51 | PROGRAMS = $(bin_PROGRAMS) | ||
52 | am_g3d_stat_OBJECTS = g3d-stat.$(OBJEXT) | ||
53 | g3d_stat_OBJECTS = $(am_g3d_stat_OBJECTS) | ||
54 | DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d | ||
55 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
56 | am__depfiles_maybe = depfiles | ||
57 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
58 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
59 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
60 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
61 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
62 | CCLD = $(CC) | ||
63 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
64 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
65 | $(LDFLAGS) -o $@ | ||
66 | SOURCES = $(g3d_stat_SOURCES) | ||
67 | DIST_SOURCES = $(g3d_stat_SOURCES) | ||
68 | ETAGS = etags | ||
69 | CTAGS = ctags | ||
70 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
71 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 | ||
72 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar | ||
73 | AR = ar | ||
74 | AS = as | ||
75 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf | ||
76 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader | ||
77 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 | ||
78 | AWK = gawk | ||
79 | CC = gcc | ||
80 | CCDEPMODE = depmode=gcc3 | ||
81 | CFLAGS = -g -O2 | ||
82 | CPP = gcc -E | ||
83 | CPPFLAGS = | ||
84 | CXX = g++ | ||
85 | CXXCPP = g++ -E | ||
86 | CXXDEPMODE = depmode=gcc3 | ||
87 | CXXFLAGS = -g -O2 | ||
88 | CYGPATH_W = echo | ||
89 | DBG_CFLAGS = -O2 | ||
90 | DEBUG = 0 | ||
91 | DEFS = -DHAVE_CONFIG_H | ||
92 | DEPDIR = .deps | ||
93 | DLLTOOL = dlltool | ||
94 | ECHO = echo | ||
95 | ECHO_C = | ||
96 | ECHO_N = -n | ||
97 | ECHO_T = | ||
98 | EGREP = /bin/grep -E | ||
99 | EXEEXT = | ||
100 | F77 = | ||
101 | FFLAGS = | ||
102 | GDKPIXBUF_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 | ||
103 | GDKPIXBUF_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 | ||
104 | GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
105 | GLIB_GENMARSHAL = glib-genmarshal | ||
106 | GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
107 | GLIB_MKENUMS = glib-mkenums | ||
108 | GOBJECT_QUERY = gobject-query | ||
109 | GREP = /bin/grep | ||
110 | GTKDOC_CHECK = /usr/bin/gtkdoc-check | ||
111 | GTK_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 | ||
112 | GTK_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 | ||
113 | HTML_DIR = ${datadir}/gtk-doc/html | ||
114 | INSTALL = /usr/bin/install -c | ||
115 | INSTALL_DATA = ${INSTALL} -m 644 | ||
116 | INSTALL_PROGRAM = ${INSTALL} | ||
117 | INSTALL_SCRIPT = ${INSTALL} | ||
118 | INSTALL_STRIP_PROGRAM = $(install_sh) -c -s | ||
119 | LDFLAGS = | ||
120 | LEX = flex | ||
121 | LEXLIB = -lfl | ||
122 | LEX_OUTPUT_ROOT = lex.yy | ||
123 | LIBGSF_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 | ||
124 | LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 | ||
125 | LIBOBJS = | ||
126 | LIBS = -lm | ||
127 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | ||
128 | LIBXML2_CFLAGS = -I/usr/include/libxml2 | ||
129 | LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
130 | LN_S = ln -s | ||
131 | LTLIBOBJS = | ||
132 | LTVERSION = 0:8:0 | ||
133 | MAGIC_LIBS = -lmagic | ||
134 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo | ||
135 | MATH_LIBS = -lm | ||
136 | MKDIR_P = /bin/mkdir -p | ||
137 | OBJDUMP = objdump | ||
138 | OBJEXT = o | ||
139 | PACKAGE = libg3d | ||
140 | PACKAGE_BUGREPORT = | ||
141 | PACKAGE_NAME = | ||
142 | PACKAGE_STRING = | ||
143 | PACKAGE_TARNAME = | ||
144 | PACKAGE_VERSION = | ||
145 | PATH_SEPARATOR = : | ||
146 | PKG_CONFIG = /usr/bin/pkg-config | ||
147 | PLUGINS_LDFLAGS = -avoid-version -export-dynamic | ||
148 | RANLIB = ranlib | ||
149 | SET_MAKE = | ||
150 | SHELL = /bin/bash | ||
151 | STRIP = strip | ||
152 | VERSION = 0.0.8 | ||
153 | XML2_CONFIG = /usr/bin/xml2-config | ||
154 | XML_CPPFLAGS = -I/usr/include/libxml2 | ||
155 | XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
156 | Z_CFLAGS = | ||
157 | Z_LIBS = -lz | ||
158 | abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/programs | ||
159 | abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/programs | ||
160 | abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
161 | abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
162 | ac_ct_CC = gcc | ||
163 | ac_ct_CXX = g++ | ||
164 | ac_ct_F77 = | ||
165 | am__include = include | ||
166 | am__leading_dot = . | ||
167 | am__quote = | ||
168 | am__tar = ${AMTAR} chof - "$$tardir" | ||
169 | am__untar = ${AMTAR} xf - | ||
170 | bindir = ${exec_prefix}/bin | ||
171 | build = x86_64-unknown-linux-gnu | ||
172 | build_alias = | ||
173 | build_cpu = x86_64 | ||
174 | build_os = linux-gnu | ||
175 | build_vendor = unknown | ||
176 | builddir = . | ||
177 | datadir = ${datarootdir} | ||
178 | datarootdir = ${prefix}/share | ||
179 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
180 | dvidir = ${docdir} | ||
181 | exec_prefix = ${prefix} | ||
182 | host = x86_64-unknown-linux-gnu | ||
183 | host_alias = | ||
184 | host_cpu = x86_64 | ||
185 | host_os = linux-gnu | ||
186 | host_vendor = unknown | ||
187 | htmldir = ${docdir} | ||
188 | includedir = ${prefix}/include | ||
189 | infodir = ${datarootdir}/info | ||
190 | install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh | ||
191 | libdir = ${exec_prefix}/lib | ||
192 | libexecdir = ${exec_prefix}/libexec | ||
193 | localedir = ${datarootdir}/locale | ||
194 | localstatedir = ${prefix}/var | ||
195 | mandir = ${datarootdir}/man | ||
196 | mkdir_p = /bin/mkdir -p | ||
197 | oldincludedir = /usr/include | ||
198 | pdfdir = ${docdir} | ||
199 | prefix = /usr/local | ||
200 | program_transform_name = s,x,x, | ||
201 | psdir = ${docdir} | ||
202 | sbindir = ${exec_prefix}/sbin | ||
203 | sharedstatedir = ${prefix}/com | ||
204 | srcdir = . | ||
205 | sysconfdir = ${prefix}/etc | ||
206 | target_alias = | ||
207 | top_builddir = .. | ||
208 | top_srcdir = .. | ||
209 | AM_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 | |||
214 | g3d_stat_SOURCES = g3d-stat.c | ||
215 | g3d_stat_DEPENDENCIES = ../src/libg3d.la | ||
216 | g3d_stat_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic | ||
217 | all: 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 | ||
234 | Makefile: $(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 | ||
250 | install-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 | |||
264 | uninstall-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 | |||
272 | clean-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 | ||
278 | g3d-stat$(EXEEXT): $(g3d_stat_OBJECTS) $(g3d_stat_DEPENDENCIES) | ||
279 | @rm -f g3d-stat$(EXEEXT) | ||
280 | $(LINK) $(g3d_stat_OBJECTS) $(g3d_stat_LDADD) $(LIBS) | ||
281 | |||
282 | mostlyclean-compile: | ||
283 | -rm -f *.$(OBJEXT) | ||
284 | |||
285 | distclean-compile: | ||
286 | -rm -f *.tab.c | ||
287 | |||
288 | include ./$(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 | |||
311 | mostlyclean-libtool: | ||
312 | -rm -f *.lo | ||
313 | |||
314 | clean-libtool: | ||
315 | -rm -rf .libs _libs | ||
316 | |||
317 | ID: $(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 | ||
325 | tags: TAGS | ||
326 | |||
327 | TAGS: $(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 | ||
342 | ctags: CTAGS | ||
343 | CTAGS: $(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 | |||
356 | GTAGS: | ||
357 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
358 | && cd $(top_srcdir) \ | ||
359 | && gtags -i $(GTAGS_ARGS) $$here | ||
360 | |||
361 | distclean-tags: | ||
362 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
363 | |||
364 | distdir: $(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 | ||
390 | check-am: all-am | ||
391 | check: check-am | ||
392 | all-am: Makefile $(PROGRAMS) | ||
393 | installdirs: | ||
394 | for dir in "$(DESTDIR)$(bindir)"; do \ | ||
395 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
396 | done | ||
397 | install: install-am | ||
398 | install-exec: install-exec-am | ||
399 | install-data: install-data-am | ||
400 | uninstall: uninstall-am | ||
401 | |||
402 | install-am: all-am | ||
403 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
404 | |||
405 | installcheck: installcheck-am | ||
406 | install-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 | ||
411 | mostlyclean-generic: | ||
412 | |||
413 | clean-generic: | ||
414 | |||
415 | distclean-generic: | ||
416 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
417 | |||
418 | maintainer-clean-generic: | ||
419 | @echo "This command is intended for maintainers to use" | ||
420 | @echo "it deletes files that may require special tools to rebuild." | ||
421 | clean: clean-am | ||
422 | |||
423 | clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am | ||
424 | |||
425 | distclean: distclean-am | ||
426 | -rm -rf ./$(DEPDIR) | ||
427 | -rm -f Makefile | ||
428 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
429 | distclean-tags | ||
430 | |||
431 | dvi: dvi-am | ||
432 | |||
433 | dvi-am: | ||
434 | |||
435 | html: html-am | ||
436 | |||
437 | info: info-am | ||
438 | |||
439 | info-am: | ||
440 | |||
441 | install-data-am: | ||
442 | |||
443 | install-dvi: install-dvi-am | ||
444 | |||
445 | install-exec-am: install-binPROGRAMS | ||
446 | |||
447 | install-html: install-html-am | ||
448 | |||
449 | install-info: install-info-am | ||
450 | |||
451 | install-man: | ||
452 | |||
453 | install-pdf: install-pdf-am | ||
454 | |||
455 | install-ps: install-ps-am | ||
456 | |||
457 | installcheck-am: | ||
458 | |||
459 | maintainer-clean: maintainer-clean-am | ||
460 | -rm -rf ./$(DEPDIR) | ||
461 | -rm -f Makefile | ||
462 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
463 | |||
464 | mostlyclean: mostlyclean-am | ||
465 | |||
466 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
467 | mostlyclean-libtool | ||
468 | |||
469 | pdf: pdf-am | ||
470 | |||
471 | pdf-am: | ||
472 | |||
473 | ps: ps-am | ||
474 | |||
475 | ps-am: | ||
476 | |||
477 | uninstall-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 @@ | |||
1 | bin_PROGRAMS = g3d-stat | ||
2 | |||
3 | AM_CFLAGS = \ | ||
4 | -Wall -ansi -pedantic \ | ||
5 | -I$(top_srcdir)/include \ | ||
6 | @GLIB_CFLAGS@ | ||
7 | |||
8 | g3d_stat_SOURCES = g3d-stat.c | ||
9 | g3d_stat_DEPENDENCIES =../src/libg3d.la | ||
10 | g3d_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 | |||
17 | VPATH = @srcdir@ | ||
18 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
19 | pkglibdir = $(libdir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = @build@ | ||
34 | host_triplet = @host@ | ||
35 | bin_PROGRAMS = g3d-stat$(EXEEXT) | ||
36 | subdir = programs | ||
37 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
39 | am__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 | ||
44 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
45 | $(ACLOCAL_M4) | ||
46 | mkinstalldirs = $(install_sh) -d | ||
47 | CONFIG_HEADER = $(top_builddir)/include/g3d/config.h | ||
48 | CONFIG_CLEAN_FILES = | ||
49 | am__installdirs = "$(DESTDIR)$(bindir)" | ||
50 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | ||
51 | PROGRAMS = $(bin_PROGRAMS) | ||
52 | am_g3d_stat_OBJECTS = g3d-stat.$(OBJEXT) | ||
53 | g3d_stat_OBJECTS = $(am_g3d_stat_OBJECTS) | ||
54 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d | ||
55 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
56 | am__depfiles_maybe = depfiles | ||
57 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
58 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
59 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
60 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
61 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
62 | CCLD = $(CC) | ||
63 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
64 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
65 | $(LDFLAGS) -o $@ | ||
66 | SOURCES = $(g3d_stat_SOURCES) | ||
67 | DIST_SOURCES = $(g3d_stat_SOURCES) | ||
68 | ETAGS = etags | ||
69 | CTAGS = ctags | ||
70 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
71 | ACLOCAL = @ACLOCAL@ | ||
72 | AMTAR = @AMTAR@ | ||
73 | AR = @AR@ | ||
74 | AS = @AS@ | ||
75 | AUTOCONF = @AUTOCONF@ | ||
76 | AUTOHEADER = @AUTOHEADER@ | ||
77 | AUTOMAKE = @AUTOMAKE@ | ||
78 | AWK = @AWK@ | ||
79 | CC = @CC@ | ||
80 | CCDEPMODE = @CCDEPMODE@ | ||
81 | CFLAGS = @CFLAGS@ | ||
82 | CPP = @CPP@ | ||
83 | CPPFLAGS = @CPPFLAGS@ | ||
84 | CXX = @CXX@ | ||
85 | CXXCPP = @CXXCPP@ | ||
86 | CXXDEPMODE = @CXXDEPMODE@ | ||
87 | CXXFLAGS = @CXXFLAGS@ | ||
88 | CYGPATH_W = @CYGPATH_W@ | ||
89 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
90 | DEBUG = @DEBUG@ | ||
91 | DEFS = @DEFS@ | ||
92 | DEPDIR = @DEPDIR@ | ||
93 | DLLTOOL = @DLLTOOL@ | ||
94 | ECHO = @ECHO@ | ||
95 | ECHO_C = @ECHO_C@ | ||
96 | ECHO_N = @ECHO_N@ | ||
97 | ECHO_T = @ECHO_T@ | ||
98 | EGREP = @EGREP@ | ||
99 | EXEEXT = @EXEEXT@ | ||
100 | F77 = @F77@ | ||
101 | FFLAGS = @FFLAGS@ | ||
102 | GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ | ||
103 | GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ | ||
104 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
105 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
106 | GLIB_LIBS = @GLIB_LIBS@ | ||
107 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
108 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
109 | GREP = @GREP@ | ||
110 | GTKDOC_CHECK = @GTKDOC_CHECK@ | ||
111 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
112 | GTK_LIBS = @GTK_LIBS@ | ||
113 | HTML_DIR = @HTML_DIR@ | ||
114 | INSTALL = @INSTALL@ | ||
115 | INSTALL_DATA = @INSTALL_DATA@ | ||
116 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
117 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
118 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
119 | LDFLAGS = @LDFLAGS@ | ||
120 | LEX = @LEX@ | ||
121 | LEXLIB = @LEXLIB@ | ||
122 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
123 | LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ | ||
124 | LIBGSF_LIBS = @LIBGSF_LIBS@ | ||
125 | LIBOBJS = @LIBOBJS@ | ||
126 | LIBS = @LIBS@ | ||
127 | LIBTOOL = @LIBTOOL@ | ||
128 | LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ | ||
129 | LIBXML2_LIBS = @LIBXML2_LIBS@ | ||
130 | LN_S = @LN_S@ | ||
131 | LTLIBOBJS = @LTLIBOBJS@ | ||
132 | LTVERSION = @LTVERSION@ | ||
133 | MAGIC_LIBS = @MAGIC_LIBS@ | ||
134 | MAKEINFO = @MAKEINFO@ | ||
135 | MATH_LIBS = @MATH_LIBS@ | ||
136 | MKDIR_P = @MKDIR_P@ | ||
137 | OBJDUMP = @OBJDUMP@ | ||
138 | OBJEXT = @OBJEXT@ | ||
139 | PACKAGE = @PACKAGE@ | ||
140 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
141 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
142 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
143 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
144 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
145 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
146 | PKG_CONFIG = @PKG_CONFIG@ | ||
147 | PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ | ||
148 | RANLIB = @RANLIB@ | ||
149 | SET_MAKE = @SET_MAKE@ | ||
150 | SHELL = @SHELL@ | ||
151 | STRIP = @STRIP@ | ||
152 | VERSION = @VERSION@ | ||
153 | XML2_CONFIG = @XML2_CONFIG@ | ||
154 | XML_CPPFLAGS = @XML_CPPFLAGS@ | ||
155 | XML_LIBS = @XML_LIBS@ | ||
156 | Z_CFLAGS = @Z_CFLAGS@ | ||
157 | Z_LIBS = @Z_LIBS@ | ||
158 | abs_builddir = @abs_builddir@ | ||
159 | abs_srcdir = @abs_srcdir@ | ||
160 | abs_top_builddir = @abs_top_builddir@ | ||
161 | abs_top_srcdir = @abs_top_srcdir@ | ||
162 | ac_ct_CC = @ac_ct_CC@ | ||
163 | ac_ct_CXX = @ac_ct_CXX@ | ||
164 | ac_ct_F77 = @ac_ct_F77@ | ||
165 | am__include = @am__include@ | ||
166 | am__leading_dot = @am__leading_dot@ | ||
167 | am__quote = @am__quote@ | ||
168 | am__tar = @am__tar@ | ||
169 | am__untar = @am__untar@ | ||
170 | bindir = @bindir@ | ||
171 | build = @build@ | ||
172 | build_alias = @build_alias@ | ||
173 | build_cpu = @build_cpu@ | ||
174 | build_os = @build_os@ | ||
175 | build_vendor = @build_vendor@ | ||
176 | builddir = @builddir@ | ||
177 | datadir = @datadir@ | ||
178 | datarootdir = @datarootdir@ | ||
179 | docdir = @docdir@ | ||
180 | dvidir = @dvidir@ | ||
181 | exec_prefix = @exec_prefix@ | ||
182 | host = @host@ | ||
183 | host_alias = @host_alias@ | ||
184 | host_cpu = @host_cpu@ | ||
185 | host_os = @host_os@ | ||
186 | host_vendor = @host_vendor@ | ||
187 | htmldir = @htmldir@ | ||
188 | includedir = @includedir@ | ||
189 | infodir = @infodir@ | ||
190 | install_sh = @install_sh@ | ||
191 | libdir = @libdir@ | ||
192 | libexecdir = @libexecdir@ | ||
193 | localedir = @localedir@ | ||
194 | localstatedir = @localstatedir@ | ||
195 | mandir = @mandir@ | ||
196 | mkdir_p = @mkdir_p@ | ||
197 | oldincludedir = @oldincludedir@ | ||
198 | pdfdir = @pdfdir@ | ||
199 | prefix = @prefix@ | ||
200 | program_transform_name = @program_transform_name@ | ||
201 | psdir = @psdir@ | ||
202 | sbindir = @sbindir@ | ||
203 | sharedstatedir = @sharedstatedir@ | ||
204 | srcdir = @srcdir@ | ||
205 | sysconfdir = @sysconfdir@ | ||
206 | target_alias = @target_alias@ | ||
207 | top_builddir = @top_builddir@ | ||
208 | top_srcdir = @top_srcdir@ | ||
209 | AM_CFLAGS = \ | ||
210 | -Wall -ansi -pedantic \ | ||
211 | -I$(top_srcdir)/include \ | ||
212 | @GLIB_CFLAGS@ | ||
213 | |||
214 | g3d_stat_SOURCES = g3d-stat.c | ||
215 | g3d_stat_DEPENDENCIES = ../src/libg3d.la | ||
216 | g3d_stat_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@ | ||
217 | all: 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 | ||
234 | Makefile: $(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 | ||
250 | install-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 | |||
264 | uninstall-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 | |||
272 | clean-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 | ||
278 | g3d-stat$(EXEEXT): $(g3d_stat_OBJECTS) $(g3d_stat_DEPENDENCIES) | ||
279 | @rm -f g3d-stat$(EXEEXT) | ||
280 | $(LINK) $(g3d_stat_OBJECTS) $(g3d_stat_LDADD) $(LIBS) | ||
281 | |||
282 | mostlyclean-compile: | ||
283 | -rm -f *.$(OBJEXT) | ||
284 | |||
285 | distclean-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 | |||
311 | mostlyclean-libtool: | ||
312 | -rm -f *.lo | ||
313 | |||
314 | clean-libtool: | ||
315 | -rm -rf .libs _libs | ||
316 | |||
317 | ID: $(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 | ||
325 | tags: TAGS | ||
326 | |||
327 | TAGS: $(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 | ||
342 | ctags: CTAGS | ||
343 | CTAGS: $(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 | |||
356 | GTAGS: | ||
357 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
358 | && cd $(top_srcdir) \ | ||
359 | && gtags -i $(GTAGS_ARGS) $$here | ||
360 | |||
361 | distclean-tags: | ||
362 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
363 | |||
364 | distdir: $(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 | ||
390 | check-am: all-am | ||
391 | check: check-am | ||
392 | all-am: Makefile $(PROGRAMS) | ||
393 | installdirs: | ||
394 | for dir in "$(DESTDIR)$(bindir)"; do \ | ||
395 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
396 | done | ||
397 | install: install-am | ||
398 | install-exec: install-exec-am | ||
399 | install-data: install-data-am | ||
400 | uninstall: uninstall-am | ||
401 | |||
402 | install-am: all-am | ||
403 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
404 | |||
405 | installcheck: installcheck-am | ||
406 | install-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 | ||
411 | mostlyclean-generic: | ||
412 | |||
413 | clean-generic: | ||
414 | |||
415 | distclean-generic: | ||
416 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
417 | |||
418 | maintainer-clean-generic: | ||
419 | @echo "This command is intended for maintainers to use" | ||
420 | @echo "it deletes files that may require special tools to rebuild." | ||
421 | clean: clean-am | ||
422 | |||
423 | clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am | ||
424 | |||
425 | distclean: distclean-am | ||
426 | -rm -rf ./$(DEPDIR) | ||
427 | -rm -f Makefile | ||
428 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
429 | distclean-tags | ||
430 | |||
431 | dvi: dvi-am | ||
432 | |||
433 | dvi-am: | ||
434 | |||
435 | html: html-am | ||
436 | |||
437 | info: info-am | ||
438 | |||
439 | info-am: | ||
440 | |||
441 | install-data-am: | ||
442 | |||
443 | install-dvi: install-dvi-am | ||
444 | |||
445 | install-exec-am: install-binPROGRAMS | ||
446 | |||
447 | install-html: install-html-am | ||
448 | |||
449 | install-info: install-info-am | ||
450 | |||
451 | install-man: | ||
452 | |||
453 | install-pdf: install-pdf-am | ||
454 | |||
455 | install-ps: install-ps-am | ||
456 | |||
457 | installcheck-am: | ||
458 | |||
459 | maintainer-clean: maintainer-clean-am | ||
460 | -rm -rf ./$(DEPDIR) | ||
461 | -rm -f Makefile | ||
462 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
463 | |||
464 | mostlyclean: mostlyclean-am | ||
465 | |||
466 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
467 | mostlyclean-libtool | ||
468 | |||
469 | pdf: pdf-am | ||
470 | |||
471 | pdf-am: | ||
472 | |||
473 | ps: ps-am | ||
474 | |||
475 | ps-am: | ||
476 | |||
477 | uninstall-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 | |||
29 | typedef struct { | ||
30 | guint32 n_objects; | ||
31 | guint32 n_vertices; | ||
32 | guint32 n_faces; | ||
33 | guint32 n_textures; | ||
34 | } FileStats; | ||
35 | |||
36 | typedef struct { | ||
37 | guint32 n_success; | ||
38 | guint32 n_failure; | ||
39 | GSList *no_objects; | ||
40 | GSList *no_faces; | ||
41 | GSList *no_vertices; | ||
42 | } PluginStats; | ||
43 | |||
44 | typedef struct { | ||
45 | G3DContext *context; | ||
46 | gboolean use_color; | ||
47 | FILE *ftree; | ||
48 | } Config; | ||
49 | |||
50 | static gboolean quit = FALSE; | ||
51 | |||
52 | static void show_help(void); | ||
53 | static Config *get_config(gint *argc, gchar ***argv); | ||
54 | static gboolean dir_stat(Config *config, const char *dirname); | ||
55 | static gboolean file_stat(Config *config, const char *filename, | ||
56 | gboolean detailed, FileStats *stats, gchar **plugin_used); | ||
57 | |||
58 | static void sighandler(int signal) | ||
59 | { | ||
60 | quit = TRUE; | ||
61 | fprintf(stderr, "signal %d received, quitting\n", signal); | ||
62 | } | ||
63 | |||
64 | static 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 | |||
75 | static 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 | |||
95 | int 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 | |||
125 | static 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 | |||
162 | static 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 | |||
174 | static 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 | |||
231 | static 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 | |||
253 | static 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 | |||
269 | static 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 | |||
307 | static 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 | } | ||