# Include file fragment for linking with OpenMesh library,
#  www.openmesh.org
# Makefile by Orion Sky Lawlor, olawlor@acm.org, 2003/09/26

# This is the path just *before* the OpenMesh directory:
#   i.e., $(OPENMESH)/OpenMesh/Mesh/
OPENMESH=$(shell pwd)/$(TOPDIR)/ext

# Bizarre gcc compile flags used by OpenMesh:
#  (How much of this is really necessary?)
CFLAGS+=-pipe -ftemplate-depth-100 \
	-DARCH_LINUX -DINCLUDE_TEMPLATES -DDEBUG  \
	-I$(OPENMESH)

# Link in OpenMesh library.  I hate shared libraries,
# but OpenMesh's reading and writing don't work when
# linked statically-- the mesh formatting .o's are 
# stripped out by the .a linker, so nothing can be read.
LIBS+=-L$(OPENMESH)/OpenMesh/Linux_gcc_dbg \
	-Wl,-rpath,$(OPENMESH)/OpenMesh/Linux_gcc_dbg \
	-lOpenMesh

