diff --git a/apps/gcc_make/Makefile.am b/apps/gcc_make/Makefile.am new file mode 100644 index 00000000..5ad61e2d --- /dev/null +++ b/apps/gcc_make/Makefile.am @@ -0,0 +1,4 @@ +LIBS = +CC_FLAGS = -Wall + +SUBDIRS = nexus metro tri_decimator shadevis diff --git a/apps/gcc_make/configure.ac b/apps/gcc_make/configure.ac new file mode 100644 index 00000000..a8aca96d --- /dev/null +++ b/apps/gcc_make/configure.ac @@ -0,0 +1,46 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.59) +AC_INIT(vcg, 0.1, ponchio@dm.unipi.it) +AM_INIT_AUTOMAKE +AC_CONFIG_SRCDIR([../tetra_decimator/main.cpp]) + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC + +# Checks for libraries. +# FIXME: Replace `main' with a function in `-lGL': +AC_CHECK_LIB([GL], [main]) +# FIXME: Replace `main' with a function in `-lGLU': +AC_CHECK_LIB([GLU], [main]) +# FIXME: Replace `main' with a function in `-lSDL': +AC_CHECK_LIB([SDL], [main]) +# FIXME: Replace `main' with a function in `-lm': +AC_CHECK_LIB([m], [main]) +# FIXME: Replace `main' with a function in `-lpthread': +AC_CHECK_LIB([pthread], [main]) + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_CONST +AC_C_INLINE +AC_HEADER_TIME +AC_STRUCT_TM + +# Checks for library functions. +AC_FUNC_VPRINTF +AC_CHECK_FUNCS([floor ftruncate gettimeofday pow sqrt strchr]) + +AC_CONFIG_FILES([Makefile + nexus/Makefile + metro/Makefile + tri_decimator/Makefile + shadevis/Makefile]) + +AC_OUTPUT diff --git a/apps/gcc_make/metro/Makefile.am b/apps/gcc_make/metro/Makefile.am new file mode 100644 index 00000000..706df949 --- /dev/null +++ b/apps/gcc_make/metro/Makefile.am @@ -0,0 +1,5 @@ +bin_PROGRAMS = metro + +metro_SOURCES = ../../metro/metro.cpp ../../../wrap/ply/plylib.cpp + +INCLUDES = -I../../../ diff --git a/apps/gcc_make/nexus/Makefile.am b/apps/gcc_make/nexus/Makefile.am new file mode 100644 index 00000000..ed22565d --- /dev/null +++ b/apps/gcc_make/nexus/Makefile.am @@ -0,0 +1,66 @@ +bin_PROGRAMS = ply2crd crdview voronoinxs nxsview nxsedit + + +SDL_FLAGS = -lSDL -lpthread -lGL -lGLU + + +ply2crd_SOURCES = ../../nexus/ply2crude.cpp \ + ../../nexus/crude.cpp \ + ../../nexus/file.cpp \ + ../../../wrap/ply/plylib.cpp + + + +crdview_SOURCES = ../../nexus/crudeview.cpp \ + ../../nexus/crude.cpp \ + ../../nexus/vert_remap.cpp \ + ../../nexus/mfhash.cpp \ + ../../nexus/file.cpp +crdview_LDADD = $(SDL_FLAGS) + + + +voronoinxs_SOURCES = ../../nexus/voronoinxs.cpp \ + ../../nexus/crude.cpp \ + ../../nexus/file.cpp \ + ../../nexus/vert_remap.cpp \ + ../../nexus/mfhash.cpp \ + ../../nexus/nexus.cpp \ + ../../nexus/patch.cpp \ + ../../nexus/patchserver.cpp \ + ../../nexus/borderserver.cpp \ + ../../nexus/decimate.cpp \ + ../../nexus/nxsbuild.cpp \ + ../../nexus/voronoichain.cpp \ + ../../nexus/pvoronoi.cpp \ + ../../../wrap/ply/plylib.cpp + + + +nxsview_SOURCES = ../../nexus/nexusview.cpp \ + ../../nexus/nexus.cpp \ + ../../nexus/patchserver.cpp \ + ../../nexus/borderserver.cpp \ + ../../nexus/file.cpp \ + ../../nexus/nexusmt.cpp \ + ../../nexus/patch.cpp \ + ../../../wrap/gui/trackball.cpp \ + ../../../wrap/gui/trackmode.cpp + +nxsview_LDFLAGS = $(SDL_FLAGS) -lGLEW + + + +nxsedit_SOURCES = ../../nexus/nxsedit.cpp \ + ../../nexus/nexus.cpp \ + ../../nexus/patch.cpp \ + ../../nexus/nxsalgo.cpp \ + ../../../wrap/strip/tristrip.cpp\ + ../../nexus/tristripper/tri_stripper.cpp \ + ../../nexus/file.cpp \ + ../../nexus/patchserver.cpp \ + ../../nexus/borderserver.cpp + + + +INCLUDES = -I../../../ diff --git a/apps/gcc_make/shadevis/Makefile.am b/apps/gcc_make/shadevis/Makefile.am new file mode 100644 index 00000000..21b1d264 --- /dev/null +++ b/apps/gcc_make/shadevis/Makefile.am @@ -0,0 +1,10 @@ +bin_PROGRAMS = shadevis + +shadevis_SOURCES = ../../shadevis/shadevis.cpp \ + ../../../wrap/ply/plylib.cpp \ + ../../../wrap/gui/trackball.cpp \ + ../../../wrap/gui/trackmode.cpp + +shadevis_LDADD = -lGL -lGLU -lglut -lGLEW + +INCLUDES = -I../../../ diff --git a/apps/gcc_make/tri_decimator/Makefile.am b/apps/gcc_make/tri_decimator/Makefile.am new file mode 100644 index 00000000..955678e4 --- /dev/null +++ b/apps/gcc_make/tri_decimator/Makefile.am @@ -0,0 +1,6 @@ +bin_PROGRAMS = tri_decimator + +tri_decimator_SOURCES = ../../tri_decimator/main.cpp \ + ../../../wrap/ply/plylib.cpp + +INCLUDES = -I../../../