aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/Makefile538
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/Makefile.am32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/Makefile.in538
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/test_buf.c59
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/test_cxx.cxx40
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/test_imgdump.c72
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/test_lib.c99
7 files changed, 1378 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/Makefile b/src/others/mimesh/libg3d-0.0.8/tests/Makefile
new file mode 100644
index 0000000..2151058
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/Makefile
@@ -0,0 +1,538 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# tests/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
35noinst_PROGRAMS = test_lib$(EXEEXT) test_buf$(EXEEXT) \
36 test_imgdump$(EXEEXT) $(am__EXEEXT_1)
37#am__append_1 = test_cxx
38subdir = tests
39DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
42 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
43 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
44 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
45 $(top_srcdir)/configure.in
46am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48mkinstalldirs = $(install_sh) -d
49CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
50CONFIG_CLEAN_FILES =
51#am__EXEEXT_1 = test_cxx$(EXEEXT)
52PROGRAMS = $(noinst_PROGRAMS)
53am_test_buf_OBJECTS = test_buf.$(OBJEXT)
54test_buf_OBJECTS = $(am_test_buf_OBJECTS)
55am_test_cxx_OBJECTS = test_cxx.$(OBJEXT)
56test_cxx_OBJECTS = $(am_test_cxx_OBJECTS)
57am_test_imgdump_OBJECTS = test_imgdump.$(OBJEXT)
58test_imgdump_OBJECTS = $(am_test_imgdump_OBJECTS)
59am_test_lib_OBJECTS = test_lib.$(OBJEXT)
60test_lib_OBJECTS = $(am_test_lib_OBJECTS)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
74 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
75LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
76 --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
77 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
78CXXLD = $(CXX)
79CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
80 --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
81 $(LDFLAGS) -o $@
82SOURCES = $(test_buf_SOURCES) $(test_cxx_SOURCES) \
83 $(test_imgdump_SOURCES) $(test_lib_SOURCES)
84DIST_SOURCES = $(test_buf_SOURCES) $(test_cxx_SOURCES) \
85 $(test_imgdump_SOURCES) $(test_lib_SOURCES)
86ETAGS = etags
87CTAGS = ctags
88DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
89ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
90AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
91AR = ar
92AS = as
93AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
94AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
95AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
96AWK = gawk
97CC = gcc
98CCDEPMODE = depmode=gcc3
99CFLAGS = -g -O2
100CPP = gcc -E
101CPPFLAGS =
102CXX = g++
103CXXCPP = g++ -E
104CXXDEPMODE = depmode=gcc3
105CXXFLAGS = -g -O2
106CYGPATH_W = echo
107DBG_CFLAGS = -O2
108DEBUG = 0
109DEFS = -DHAVE_CONFIG_H
110DEPDIR = .deps
111DLLTOOL = dlltool
112ECHO = echo
113ECHO_C =
114ECHO_N = -n
115ECHO_T =
116EGREP = /bin/grep -E
117EXEEXT =
118F77 =
119FFLAGS =
120GDKPIXBUF_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
121GDKPIXBUF_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
122GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
123GLIB_GENMARSHAL = glib-genmarshal
124GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
125GLIB_MKENUMS = glib-mkenums
126GOBJECT_QUERY = gobject-query
127GREP = /bin/grep
128GTKDOC_CHECK = /usr/bin/gtkdoc-check
129GTK_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
130GTK_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
131HTML_DIR = ${datadir}/gtk-doc/html
132INSTALL = /usr/bin/install -c
133INSTALL_DATA = ${INSTALL} -m 644
134INSTALL_PROGRAM = ${INSTALL}
135INSTALL_SCRIPT = ${INSTALL}
136INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
137LDFLAGS =
138LEX = flex
139LEXLIB = -lfl
140LEX_OUTPUT_ROOT = lex.yy
141LIBGSF_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
142LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
143LIBOBJS =
144LIBS = -lm
145LIBTOOL = $(SHELL) $(top_builddir)/libtool
146LIBXML2_CFLAGS = -I/usr/include/libxml2
147LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
148LN_S = ln -s
149LTLIBOBJS =
150LTVERSION = 0:8:0
151MAGIC_LIBS = -lmagic
152MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
153MATH_LIBS = -lm
154MKDIR_P = /bin/mkdir -p
155OBJDUMP = objdump
156OBJEXT = o
157PACKAGE = libg3d
158PACKAGE_BUGREPORT =
159PACKAGE_NAME =
160PACKAGE_STRING =
161PACKAGE_TARNAME =
162PACKAGE_VERSION =
163PATH_SEPARATOR = :
164PKG_CONFIG = /usr/bin/pkg-config
165PLUGINS_LDFLAGS = -avoid-version -export-dynamic
166RANLIB = ranlib
167SET_MAKE =
168SHELL = /bin/bash
169STRIP = strip
170VERSION = 0.0.8
171XML2_CONFIG = /usr/bin/xml2-config
172XML_CPPFLAGS = -I/usr/include/libxml2
173XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
174Z_CFLAGS =
175Z_LIBS = -lz
176abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/tests
177abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/tests
178abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
179abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
180ac_ct_CC = gcc
181ac_ct_CXX = g++
182ac_ct_F77 =
183am__include = include
184am__leading_dot = .
185am__quote =
186am__tar = ${AMTAR} chof - "$$tardir"
187am__untar = ${AMTAR} xf -
188bindir = ${exec_prefix}/bin
189build = x86_64-unknown-linux-gnu
190build_alias =
191build_cpu = x86_64
192build_os = linux-gnu
193build_vendor = unknown
194builddir = .
195datadir = ${datarootdir}
196datarootdir = ${prefix}/share
197docdir = ${datarootdir}/doc/${PACKAGE}
198dvidir = ${docdir}
199exec_prefix = ${prefix}
200host = x86_64-unknown-linux-gnu
201host_alias =
202host_cpu = x86_64
203host_os = linux-gnu
204host_vendor = unknown
205htmldir = ${docdir}
206includedir = ${prefix}/include
207infodir = ${datarootdir}/info
208install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
209libdir = ${exec_prefix}/lib
210libexecdir = ${exec_prefix}/libexec
211localedir = ${datarootdir}/locale
212localstatedir = ${prefix}/var
213mandir = ${datarootdir}/man
214mkdir_p = /bin/mkdir -p
215oldincludedir = /usr/include
216pdfdir = ${docdir}
217prefix = /usr/local
218program_transform_name = s,x,x,
219psdir = ${docdir}
220sbindir = ${exec_prefix}/sbin
221sharedstatedir = ${prefix}/com
222srcdir = .
223sysconfdir = ${prefix}/etc
224target_alias =
225top_builddir = ..
226top_srcdir = ..
227AM_CFLAGS = \
228 -Wall -ansi -pedantic \
229 -I$(top_srcdir)/include \
230 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
231
232AM_CXXFLAGS = \
233 -Wall \
234 -I$(top_srcdir)/include \
235 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
236
237test_lib_DEPENDENCIES = ../src/libg3d.la
238test_lib_SOURCES = test_lib.c
239test_lib_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
240test_buf_DEPENDENCIES = ../src/libg3d.la
241test_buf_SOURCES = test_buf.c
242test_buf_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
243test_imgdump_DEPENDENCIES = ../src/libg3d.la
244test_imgdump_SOURCES = test_imgdump.c
245test_imgdump_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
246test_cxx_DEPENDENCIES = ../src/libg3d.la
247test_cxx_SOURCES = test_cxx.cxx
248test_cxx_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
249all: all-am
250
251.SUFFIXES:
252.SUFFIXES: .c .cxx .lo .o .obj
253$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
254 @for dep in $?; do \
255 case '$(am__configure_deps)' in \
256 *$$dep*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
258 && exit 0; \
259 exit 1;; \
260 esac; \
261 done; \
262 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
263 cd $(top_srcdir) && \
264 $(AUTOMAKE) --gnu tests/Makefile
265.PRECIOUS: Makefile
266Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
267 @case '$?' in \
268 *config.status*) \
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
270 *) \
271 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
272 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
273 esac;
274
275$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
276 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
277
278$(top_srcdir)/configure: $(am__configure_deps)
279 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
280$(ACLOCAL_M4): $(am__aclocal_m4_deps)
281 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
282
283clean-noinstPROGRAMS:
284 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
285 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
286 echo " rm -f $$p $$f"; \
287 rm -f $$p $$f ; \
288 done
289test_buf$(EXEEXT): $(test_buf_OBJECTS) $(test_buf_DEPENDENCIES)
290 @rm -f test_buf$(EXEEXT)
291 $(LINK) $(test_buf_OBJECTS) $(test_buf_LDADD) $(LIBS)
292test_cxx$(EXEEXT): $(test_cxx_OBJECTS) $(test_cxx_DEPENDENCIES)
293 @rm -f test_cxx$(EXEEXT)
294 $(CXXLINK) $(test_cxx_OBJECTS) $(test_cxx_LDADD) $(LIBS)
295test_imgdump$(EXEEXT): $(test_imgdump_OBJECTS) $(test_imgdump_DEPENDENCIES)
296 @rm -f test_imgdump$(EXEEXT)
297 $(LINK) $(test_imgdump_OBJECTS) $(test_imgdump_LDADD) $(LIBS)
298test_lib$(EXEEXT): $(test_lib_OBJECTS) $(test_lib_DEPENDENCIES)
299 @rm -f test_lib$(EXEEXT)
300 $(LINK) $(test_lib_OBJECTS) $(test_lib_LDADD) $(LIBS)
301
302mostlyclean-compile:
303 -rm -f *.$(OBJEXT)
304
305distclean-compile:
306 -rm -f *.tab.c
307
308include ./$(DEPDIR)/test_buf.Po
309include ./$(DEPDIR)/test_cxx.Po
310include ./$(DEPDIR)/test_imgdump.Po
311include ./$(DEPDIR)/test_lib.Po
312
313.c.o:
314 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
315 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316# source='$<' object='$@' libtool=no \
317# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
318# $(COMPILE) -c $<
319
320.c.obj:
321 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
322 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
323# source='$<' object='$@' libtool=no \
324# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
325# $(COMPILE) -c `$(CYGPATH_W) '$<'`
326
327.c.lo:
328 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
329 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
330# source='$<' object='$@' libtool=yes \
331# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
332# $(LTCOMPILE) -c -o $@ $<
333
334.cxx.o:
335 $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
336 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
337# source='$<' object='$@' libtool=no \
338# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
339# $(CXXCOMPILE) -c -o $@ $<
340
341.cxx.obj:
342 $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
343 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
344# source='$<' object='$@' libtool=no \
345# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
346# $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
347
348.cxx.lo:
349 $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
350 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
351# source='$<' object='$@' libtool=yes \
352# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
353# $(LTCXXCOMPILE) -c -o $@ $<
354
355mostlyclean-libtool:
356 -rm -f *.lo
357
358clean-libtool:
359 -rm -rf .libs _libs
360
361ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369tags: TAGS
370
371TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 tags=; \
374 here=`pwd`; \
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
380 END { if (nonempty) { for (i in files) print i; }; }'`; \
381 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
382 test -n "$$unique" || unique=$$empty_fix; \
383 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
384 $$tags $$unique; \
385 fi
386ctags: CTAGS
387CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
388 $(TAGS_FILES) $(LISP)
389 tags=; \
390 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
391 unique=`for i in $$list; do \
392 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
393 done | \
394 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
395 END { if (nonempty) { for (i in files) print i; }; }'`; \
396 test -z "$(CTAGS_ARGS)$$tags$$unique" \
397 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
398 $$tags $$unique
399
400GTAGS:
401 here=`$(am__cd) $(top_builddir) && pwd` \
402 && cd $(top_srcdir) \
403 && gtags -i $(GTAGS_ARGS) $$here
404
405distclean-tags:
406 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
407
408distdir: $(DISTFILES)
409 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
410 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411 list='$(DISTFILES)'; \
412 dist_files=`for file in $$list; do echo $$file; done | \
413 sed -e "s|^$$srcdirstrip/||;t" \
414 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
415 case $$dist_files in \
416 */*) $(MKDIR_P) `echo "$$dist_files" | \
417 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
418 sort -u` ;; \
419 esac; \
420 for file in $$dist_files; do \
421 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
422 if test -d $$d/$$file; then \
423 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
424 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
425 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
426 fi; \
427 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
428 else \
429 test -f $(distdir)/$$file \
430 || cp -p $$d/$$file $(distdir)/$$file \
431 || exit 1; \
432 fi; \
433 done
434check-am: all-am
435check: check-am
436all-am: Makefile $(PROGRAMS)
437installdirs:
438install: install-am
439install-exec: install-exec-am
440install-data: install-data-am
441uninstall: uninstall-am
442
443install-am: all-am
444 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
445
446installcheck: installcheck-am
447install-strip:
448 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
449 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
450 `test -z '$(STRIP)' || \
451 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
452mostlyclean-generic:
453
454clean-generic:
455
456distclean-generic:
457 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
458
459maintainer-clean-generic:
460 @echo "This command is intended for maintainers to use"
461 @echo "it deletes files that may require special tools to rebuild."
462clean: clean-am
463
464clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
465 mostlyclean-am
466
467distclean: distclean-am
468 -rm -rf ./$(DEPDIR)
469 -rm -f Makefile
470distclean-am: clean-am distclean-compile distclean-generic \
471 distclean-tags
472
473dvi: dvi-am
474
475dvi-am:
476
477html: html-am
478
479info: info-am
480
481info-am:
482
483install-data-am:
484
485install-dvi: install-dvi-am
486
487install-exec-am:
488
489install-html: install-html-am
490
491install-info: install-info-am
492
493install-man:
494
495install-pdf: install-pdf-am
496
497install-ps: install-ps-am
498
499installcheck-am:
500
501maintainer-clean: maintainer-clean-am
502 -rm -rf ./$(DEPDIR)
503 -rm -f Makefile
504maintainer-clean-am: distclean-am maintainer-clean-generic
505
506mostlyclean: mostlyclean-am
507
508mostlyclean-am: mostlyclean-compile mostlyclean-generic \
509 mostlyclean-libtool
510
511pdf: pdf-am
512
513pdf-am:
514
515ps: ps-am
516
517ps-am:
518
519uninstall-am:
520
521.MAKE: install-am install-strip
522
523.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
524 clean-libtool clean-noinstPROGRAMS ctags distclean \
525 distclean-compile distclean-generic distclean-libtool \
526 distclean-tags distdir dvi dvi-am html html-am info info-am \
527 install install-am install-data install-data-am install-dvi \
528 install-dvi-am install-exec install-exec-am install-html \
529 install-html-am install-info install-info-am install-man \
530 install-pdf install-pdf-am install-ps install-ps-am \
531 install-strip installcheck installcheck-am installdirs \
532 maintainer-clean maintainer-clean-generic mostlyclean \
533 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
534 pdf pdf-am ps ps-am tags uninstall uninstall-am
535
536# Tell versions [3.59,3.63) of GNU make to not export all variables.
537# Otherwise a system limit (for SysV at least) may be exceeded.
538.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/Makefile.am b/src/others/mimesh/libg3d-0.0.8/tests/Makefile.am
new file mode 100644
index 0000000..21e2637
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/Makefile.am
@@ -0,0 +1,32 @@
1noinst_PROGRAMS = \
2 test_lib \
3 test_buf \
4 test_imgdump
5
6if HAVE_CXX
7noinst_PROGRAMS += test_cxx
8endif
9
10AM_CFLAGS = \
11 -Wall -ansi -pedantic \
12 -I$(top_srcdir)/include \
13 @GLIB_CFLAGS@
14
15AM_CXXFLAGS = \
16 -Wall \
17 -I$(top_srcdir)/include \
18 @GLIB_CFLAGS@
19
20test_lib_DEPENDENCIES = ../src/libg3d.la
21test_lib_SOURCES = test_lib.c
22test_lib_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
23test_buf_DEPENDENCIES = ../src/libg3d.la
24test_buf_SOURCES = test_buf.c
25test_buf_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
26test_imgdump_DEPENDENCIES = ../src/libg3d.la
27test_imgdump_SOURCES = test_imgdump.c
28test_imgdump_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
29test_cxx_DEPENDENCIES = ../src/libg3d.la
30test_cxx_SOURCES = test_cxx.cxx
31test_cxx_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
32
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/Makefile.in b/src/others/mimesh/libg3d-0.0.8/tests/Makefile.in
new file mode 100644
index 0000000..167ecea
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/Makefile.in
@@ -0,0 +1,538 @@
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@
35noinst_PROGRAMS = test_lib$(EXEEXT) test_buf$(EXEEXT) \
36 test_imgdump$(EXEEXT) $(am__EXEEXT_1)
37@HAVE_CXX_TRUE@am__append_1 = test_cxx
38subdir = tests
39DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
42 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
43 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
44 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
45 $(top_srcdir)/configure.in
46am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48mkinstalldirs = $(install_sh) -d
49CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
50CONFIG_CLEAN_FILES =
51@HAVE_CXX_TRUE@am__EXEEXT_1 = test_cxx$(EXEEXT)
52PROGRAMS = $(noinst_PROGRAMS)
53am_test_buf_OBJECTS = test_buf.$(OBJEXT)
54test_buf_OBJECTS = $(am_test_buf_OBJECTS)
55am_test_cxx_OBJECTS = test_cxx.$(OBJEXT)
56test_cxx_OBJECTS = $(am_test_cxx_OBJECTS)
57am_test_imgdump_OBJECTS = test_imgdump.$(OBJEXT)
58test_imgdump_OBJECTS = $(am_test_imgdump_OBJECTS)
59am_test_lib_OBJECTS = test_lib.$(OBJEXT)
60test_lib_OBJECTS = $(am_test_lib_OBJECTS)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
74 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
75LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
76 --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
77 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
78CXXLD = $(CXX)
79CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
80 --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
81 $(LDFLAGS) -o $@
82SOURCES = $(test_buf_SOURCES) $(test_cxx_SOURCES) \
83 $(test_imgdump_SOURCES) $(test_lib_SOURCES)
84DIST_SOURCES = $(test_buf_SOURCES) $(test_cxx_SOURCES) \
85 $(test_imgdump_SOURCES) $(test_lib_SOURCES)
86ETAGS = etags
87CTAGS = ctags
88DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
89ACLOCAL = @ACLOCAL@
90AMTAR = @AMTAR@
91AR = @AR@
92AS = @AS@
93AUTOCONF = @AUTOCONF@
94AUTOHEADER = @AUTOHEADER@
95AUTOMAKE = @AUTOMAKE@
96AWK = @AWK@
97CC = @CC@
98CCDEPMODE = @CCDEPMODE@
99CFLAGS = @CFLAGS@
100CPP = @CPP@
101CPPFLAGS = @CPPFLAGS@
102CXX = @CXX@
103CXXCPP = @CXXCPP@
104CXXDEPMODE = @CXXDEPMODE@
105CXXFLAGS = @CXXFLAGS@
106CYGPATH_W = @CYGPATH_W@
107DBG_CFLAGS = @DBG_CFLAGS@
108DEBUG = @DEBUG@
109DEFS = @DEFS@
110DEPDIR = @DEPDIR@
111DLLTOOL = @DLLTOOL@
112ECHO = @ECHO@
113ECHO_C = @ECHO_C@
114ECHO_N = @ECHO_N@
115ECHO_T = @ECHO_T@
116EGREP = @EGREP@
117EXEEXT = @EXEEXT@
118F77 = @F77@
119FFLAGS = @FFLAGS@
120GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
121GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
122GLIB_CFLAGS = @GLIB_CFLAGS@
123GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
124GLIB_LIBS = @GLIB_LIBS@
125GLIB_MKENUMS = @GLIB_MKENUMS@
126GOBJECT_QUERY = @GOBJECT_QUERY@
127GREP = @GREP@
128GTKDOC_CHECK = @GTKDOC_CHECK@
129GTK_CFLAGS = @GTK_CFLAGS@
130GTK_LIBS = @GTK_LIBS@
131HTML_DIR = @HTML_DIR@
132INSTALL = @INSTALL@
133INSTALL_DATA = @INSTALL_DATA@
134INSTALL_PROGRAM = @INSTALL_PROGRAM@
135INSTALL_SCRIPT = @INSTALL_SCRIPT@
136INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
137LDFLAGS = @LDFLAGS@
138LEX = @LEX@
139LEXLIB = @LEXLIB@
140LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
141LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
142LIBGSF_LIBS = @LIBGSF_LIBS@
143LIBOBJS = @LIBOBJS@
144LIBS = @LIBS@
145LIBTOOL = @LIBTOOL@
146LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
147LIBXML2_LIBS = @LIBXML2_LIBS@
148LN_S = @LN_S@
149LTLIBOBJS = @LTLIBOBJS@
150LTVERSION = @LTVERSION@
151MAGIC_LIBS = @MAGIC_LIBS@
152MAKEINFO = @MAKEINFO@
153MATH_LIBS = @MATH_LIBS@
154MKDIR_P = @MKDIR_P@
155OBJDUMP = @OBJDUMP@
156OBJEXT = @OBJEXT@
157PACKAGE = @PACKAGE@
158PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
159PACKAGE_NAME = @PACKAGE_NAME@
160PACKAGE_STRING = @PACKAGE_STRING@
161PACKAGE_TARNAME = @PACKAGE_TARNAME@
162PACKAGE_VERSION = @PACKAGE_VERSION@
163PATH_SEPARATOR = @PATH_SEPARATOR@
164PKG_CONFIG = @PKG_CONFIG@
165PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
166RANLIB = @RANLIB@
167SET_MAKE = @SET_MAKE@
168SHELL = @SHELL@
169STRIP = @STRIP@
170VERSION = @VERSION@
171XML2_CONFIG = @XML2_CONFIG@
172XML_CPPFLAGS = @XML_CPPFLAGS@
173XML_LIBS = @XML_LIBS@
174Z_CFLAGS = @Z_CFLAGS@
175Z_LIBS = @Z_LIBS@
176abs_builddir = @abs_builddir@
177abs_srcdir = @abs_srcdir@
178abs_top_builddir = @abs_top_builddir@
179abs_top_srcdir = @abs_top_srcdir@
180ac_ct_CC = @ac_ct_CC@
181ac_ct_CXX = @ac_ct_CXX@
182ac_ct_F77 = @ac_ct_F77@
183am__include = @am__include@
184am__leading_dot = @am__leading_dot@
185am__quote = @am__quote@
186am__tar = @am__tar@
187am__untar = @am__untar@
188bindir = @bindir@
189build = @build@
190build_alias = @build_alias@
191build_cpu = @build_cpu@
192build_os = @build_os@
193build_vendor = @build_vendor@
194builddir = @builddir@
195datadir = @datadir@
196datarootdir = @datarootdir@
197docdir = @docdir@
198dvidir = @dvidir@
199exec_prefix = @exec_prefix@
200host = @host@
201host_alias = @host_alias@
202host_cpu = @host_cpu@
203host_os = @host_os@
204host_vendor = @host_vendor@
205htmldir = @htmldir@
206includedir = @includedir@
207infodir = @infodir@
208install_sh = @install_sh@
209libdir = @libdir@
210libexecdir = @libexecdir@
211localedir = @localedir@
212localstatedir = @localstatedir@
213mandir = @mandir@
214mkdir_p = @mkdir_p@
215oldincludedir = @oldincludedir@
216pdfdir = @pdfdir@
217prefix = @prefix@
218program_transform_name = @program_transform_name@
219psdir = @psdir@
220sbindir = @sbindir@
221sharedstatedir = @sharedstatedir@
222srcdir = @srcdir@
223sysconfdir = @sysconfdir@
224target_alias = @target_alias@
225top_builddir = @top_builddir@
226top_srcdir = @top_srcdir@
227AM_CFLAGS = \
228 -Wall -ansi -pedantic \
229 -I$(top_srcdir)/include \
230 @GLIB_CFLAGS@
231
232AM_CXXFLAGS = \
233 -Wall \
234 -I$(top_srcdir)/include \
235 @GLIB_CFLAGS@
236
237test_lib_DEPENDENCIES = ../src/libg3d.la
238test_lib_SOURCES = test_lib.c
239test_lib_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
240test_buf_DEPENDENCIES = ../src/libg3d.la
241test_buf_SOURCES = test_buf.c
242test_buf_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
243test_imgdump_DEPENDENCIES = ../src/libg3d.la
244test_imgdump_SOURCES = test_imgdump.c
245test_imgdump_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
246test_cxx_DEPENDENCIES = ../src/libg3d.la
247test_cxx_SOURCES = test_cxx.cxx
248test_cxx_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
249all: all-am
250
251.SUFFIXES:
252.SUFFIXES: .c .cxx .lo .o .obj
253$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
254 @for dep in $?; do \
255 case '$(am__configure_deps)' in \
256 *$$dep*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
258 && exit 0; \
259 exit 1;; \
260 esac; \
261 done; \
262 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
263 cd $(top_srcdir) && \
264 $(AUTOMAKE) --gnu tests/Makefile
265.PRECIOUS: Makefile
266Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
267 @case '$?' in \
268 *config.status*) \
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
270 *) \
271 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
272 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
273 esac;
274
275$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
276 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
277
278$(top_srcdir)/configure: $(am__configure_deps)
279 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
280$(ACLOCAL_M4): $(am__aclocal_m4_deps)
281 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
282
283clean-noinstPROGRAMS:
284 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
285 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
286 echo " rm -f $$p $$f"; \
287 rm -f $$p $$f ; \
288 done
289test_buf$(EXEEXT): $(test_buf_OBJECTS) $(test_buf_DEPENDENCIES)
290 @rm -f test_buf$(EXEEXT)
291 $(LINK) $(test_buf_OBJECTS) $(test_buf_LDADD) $(LIBS)
292test_cxx$(EXEEXT): $(test_cxx_OBJECTS) $(test_cxx_DEPENDENCIES)
293 @rm -f test_cxx$(EXEEXT)
294 $(CXXLINK) $(test_cxx_OBJECTS) $(test_cxx_LDADD) $(LIBS)
295test_imgdump$(EXEEXT): $(test_imgdump_OBJECTS) $(test_imgdump_DEPENDENCIES)
296 @rm -f test_imgdump$(EXEEXT)
297 $(LINK) $(test_imgdump_OBJECTS) $(test_imgdump_LDADD) $(LIBS)
298test_lib$(EXEEXT): $(test_lib_OBJECTS) $(test_lib_DEPENDENCIES)
299 @rm -f test_lib$(EXEEXT)
300 $(LINK) $(test_lib_OBJECTS) $(test_lib_LDADD) $(LIBS)
301
302mostlyclean-compile:
303 -rm -f *.$(OBJEXT)
304
305distclean-compile:
306 -rm -f *.tab.c
307
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_buf.Po@am__quote@
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_cxx.Po@am__quote@
310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_imgdump.Po@am__quote@
311@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_lib.Po@am__quote@
312
313.c.o:
314@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
315@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318@am__fastdepCC_FALSE@ $(COMPILE) -c $<
319
320.c.obj:
321@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
322@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
324@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
326
327.c.lo:
328@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
329@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
330@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
331@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
332@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
333
334.cxx.o:
335@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
336@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
337@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
338@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
339@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
340
341.cxx.obj:
342@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
343@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
344@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
345@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
347
348.cxx.lo:
349@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
350@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
351@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
352@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
353@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
354
355mostlyclean-libtool:
356 -rm -f *.lo
357
358clean-libtool:
359 -rm -rf .libs _libs
360
361ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369tags: TAGS
370
371TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 tags=; \
374 here=`pwd`; \
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
380 END { if (nonempty) { for (i in files) print i; }; }'`; \
381 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
382 test -n "$$unique" || unique=$$empty_fix; \
383 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
384 $$tags $$unique; \
385 fi
386ctags: CTAGS
387CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
388 $(TAGS_FILES) $(LISP)
389 tags=; \
390 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
391 unique=`for i in $$list; do \
392 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
393 done | \
394 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
395 END { if (nonempty) { for (i in files) print i; }; }'`; \
396 test -z "$(CTAGS_ARGS)$$tags$$unique" \
397 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
398 $$tags $$unique
399
400GTAGS:
401 here=`$(am__cd) $(top_builddir) && pwd` \
402 && cd $(top_srcdir) \
403 && gtags -i $(GTAGS_ARGS) $$here
404
405distclean-tags:
406 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
407
408distdir: $(DISTFILES)
409 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
410 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411 list='$(DISTFILES)'; \
412 dist_files=`for file in $$list; do echo $$file; done | \
413 sed -e "s|^$$srcdirstrip/||;t" \
414 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
415 case $$dist_files in \
416 */*) $(MKDIR_P) `echo "$$dist_files" | \
417 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
418 sort -u` ;; \
419 esac; \
420 for file in $$dist_files; do \
421 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
422 if test -d $$d/$$file; then \
423 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
424 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
425 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
426 fi; \
427 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
428 else \
429 test -f $(distdir)/$$file \
430 || cp -p $$d/$$file $(distdir)/$$file \
431 || exit 1; \
432 fi; \
433 done
434check-am: all-am
435check: check-am
436all-am: Makefile $(PROGRAMS)
437installdirs:
438install: install-am
439install-exec: install-exec-am
440install-data: install-data-am
441uninstall: uninstall-am
442
443install-am: all-am
444 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
445
446installcheck: installcheck-am
447install-strip:
448 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
449 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
450 `test -z '$(STRIP)' || \
451 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
452mostlyclean-generic:
453
454clean-generic:
455
456distclean-generic:
457 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
458
459maintainer-clean-generic:
460 @echo "This command is intended for maintainers to use"
461 @echo "it deletes files that may require special tools to rebuild."
462clean: clean-am
463
464clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
465 mostlyclean-am
466
467distclean: distclean-am
468 -rm -rf ./$(DEPDIR)
469 -rm -f Makefile
470distclean-am: clean-am distclean-compile distclean-generic \
471 distclean-tags
472
473dvi: dvi-am
474
475dvi-am:
476
477html: html-am
478
479info: info-am
480
481info-am:
482
483install-data-am:
484
485install-dvi: install-dvi-am
486
487install-exec-am:
488
489install-html: install-html-am
490
491install-info: install-info-am
492
493install-man:
494
495install-pdf: install-pdf-am
496
497install-ps: install-ps-am
498
499installcheck-am:
500
501maintainer-clean: maintainer-clean-am
502 -rm -rf ./$(DEPDIR)
503 -rm -f Makefile
504maintainer-clean-am: distclean-am maintainer-clean-generic
505
506mostlyclean: mostlyclean-am
507
508mostlyclean-am: mostlyclean-compile mostlyclean-generic \
509 mostlyclean-libtool
510
511pdf: pdf-am
512
513pdf-am:
514
515ps: ps-am
516
517ps-am:
518
519uninstall-am:
520
521.MAKE: install-am install-strip
522
523.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
524 clean-libtool clean-noinstPROGRAMS ctags distclean \
525 distclean-compile distclean-generic distclean-libtool \
526 distclean-tags distdir dvi dvi-am html html-am info info-am \
527 install install-am install-data install-data-am install-dvi \
528 install-dvi-am install-exec install-exec-am install-html \
529 install-html-am install-info install-info-am install-man \
530 install-pdf install-pdf-am install-ps install-ps-am \
531 install-strip installcheck installcheck-am installdirs \
532 maintainer-clean maintainer-clean-generic mostlyclean \
533 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
534 pdf pdf-am ps ps-am tags uninstall uninstall-am
535
536# Tell versions [3.59,3.63) of GNU make to not export all variables.
537# Otherwise a system limit (for SysV at least) may be exceeded.
538.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/test_buf.c b/src/others/mimesh/libg3d-0.0.8/tests/test_buf.c
new file mode 100644
index 0000000..70551ba
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/test_buf.c
@@ -0,0 +1,59 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <glib.h>
25#include <g3d/g3d.h>
26#include <g3d/stream.h>
27
28static guint8 test_buffer[] = {
29 0x01, 0x23, 0x45, 0x67, /* 0x01234567 MSB */
30 0x67, 0x45, 0x23, 0x01, /* 0x01234567 LSB */
31 0x00
32};
33static gsize tbsize = sizeof(test_buffer);
34
35int main(int argc, char *argv[])
36{
37 G3DStream *stream;
38 guint32 u;
39
40 stream = g3d_stream_from_buffer(test_buffer, tbsize, "testbuf", FALSE);
41
42 /* read 2 x 32-bit integer */
43 u = g3d_stream_read_int32_be(stream);
44 g_print("MSB value: 0x%08x\n", u);
45 u = g3d_stream_read_int32_le(stream);
46 g_print("LSB value: 0x%08x\n", u);
47 /* seek back 4 bytes */
48 g3d_stream_seek(stream, -4, G_SEEK_CUR);
49 u = g3d_stream_read_int32_le(stream);
50 g_print("LSB value: 0x%08x\n", u);
51 /* rewind stream */
52 g3d_stream_seek(stream, 0, G_SEEK_SET);
53 u = g3d_stream_read_int32_be(stream);
54 g_print("MSB value: 0x%08x\n", u);
55
56 g3d_stream_close(stream);
57
58 return 0;
59}
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/test_cxx.cxx b/src/others/mimesh/libg3d-0.0.8/tests/test_cxx.cxx
new file mode 100644
index 0000000..f2d3001
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/test_cxx.cxx
@@ -0,0 +1,40 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2008 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <iostream>
24
25#include <g3d/g3d.h>
26
27using namespace std;
28
29int main(int argc, char *argv[])
30{
31 G3DContext *context;
32
33 context = g3d_context_new();
34 if(context) {
35 cout << "got context" << endl;
36 g3d_context_free(context);
37 }
38
39 return 0;
40}
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/test_imgdump.c b/src/others/mimesh/libg3d-0.0.8/tests/test_imgdump.c
new file mode 100644
index 0000000..530d20f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/test_imgdump.c
@@ -0,0 +1,72 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25
26#include <g3d/g3d.h>
27#include <g3d/texture.h>
28
29int main(int argc, char *argv[])
30{
31 G3DContext *context;
32 G3DImage *tex;
33 FILE *ppm;
34 gchar *outfile;
35 guint32 x, y;
36
37 context = g3d_context_new();
38
39 if(argc > 1) {
40/* tex = g3d_texture_load(context, argv[1]); */
41tex = NULL;
42 if(tex != NULL) {
43 outfile = g_strdup_printf("%s.ppm", argv[1]);
44 ppm = fopen(outfile, "w");
45 if(ppm != NULL) {
46 fprintf(ppm, "P3\n%u %u\n255\n",
47 tex->width, tex->height);
48 for(y = 0; y < tex->height; y ++) {
49 for(x = 0; x < tex->width; x ++) {
50 fprintf(ppm, "%u %u %u\n",
51 tex->pixeldata[(y * tex->width + x) * 4 + 0],
52 tex->pixeldata[(y * tex->width + x) * 4 + 1],
53 tex->pixeldata[(y * tex->width + x) * 4 + 2]);
54 }
55 }
56 fclose(ppm);
57 } else {
58 fprintf(stderr, "%s: failed to write to '%s'\n",
59 argv[0], outfile);
60 }
61 g3d_texture_free(tex);
62 g_free(outfile);
63 } else {
64 fprintf(stderr, "%s: failed to load image '%s'\n",
65 argv[0], argv[1]);
66 }
67 }
68
69 g3d_context_free(context);
70
71 return EXIT_SUCCESS;
72}
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/test_lib.c b/src/others/mimesh/libg3d-0.0.8/tests/test_lib.c
new file mode 100644
index 0000000..335c540
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/test_lib.c
@@ -0,0 +1,99 @@
1/* $Id: test_lib.c,v 1.1.2.2 2006/01/23 17:04:37 dahms Exp $ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25
26#include <g3d/g3d.h>
27
28#if 0
29#define DEBUG_MEM 1
30#endif
31
32#ifdef DEBUG_MEM
33static gpointer (*def_malloc)(gsize size) = NULL;
34
35static void break_here(gsize size)
36{
37 g_printerr("I'm here (%d bytes)\n", size);
38}
39
40static gpointer malloc_debug(gsize size)
41{
42 if(size == 84)
43 {
44 break_here(size);
45 }
46
47 return def_malloc(size);
48}
49#endif
50
51int main(int argc, char *argv[])
52{
53 G3DContext *context;
54 G3DModel *model;
55 G3DObject *object;
56 GSList *oitem;
57 guint32 i;
58
59#ifdef DEBUG_MEM
60 atexit(g_mem_profile);
61 def_malloc = glib_mem_profiler_table->malloc;
62 glib_mem_profiler_table->malloc = malloc_debug;
63 g_mem_set_vtable(glib_mem_profiler_table);
64#endif
65
66 context = g3d_context_new();
67
68 if(argc > 1)
69 {
70 model = g3d_model_load(context, argv[1]);
71
72 if(model)
73 {
74 g_print("%s: %d objects:\n", argv[1],
75 g_slist_length(model->objects));
76
77 i = 0;
78 oitem = model->objects;
79 while(oitem)
80 {
81 object = (G3DObject *)oitem->data;
82 g_print(" [%2u] %-50s (%d faces, %d mats)\n",
83 i,
84 object->name ? object->name : "(NULL)",
85 g_slist_length(object->faces),
86 g_slist_length(object->materials));
87
88 oitem = oitem->next;
89 i ++;
90 }
91
92 g3d_model_free(model);
93 }
94 }
95
96 g3d_context_free(context);
97
98 return EXIT_SUCCESS;
99}