1
0
Fork 0
terragear/src/Lib/TriangleJRS/Makefile.am
2005-10-31 18:47:46 +00:00

37 lines
1 KiB
Makefile

# CPPFLAGS is a list of definitions used to compile an object code version
# of Triangle (triangle.o) to be called by another program. The file
# "triangle.h" contains detailed information on how to call triangle.o.
#
# The -DTRILIBRARY should always be used when compiling Triangle into an
# object file.
#
# An example DEFS line is:
#
# CPPFLAGS = -DTRILIBRARY -DREDUCED -DCDT_ONLY
#
# WARNING: I have had some problems compiling with -O2 (gcc) leading to
# segfaults. This problem seems to go away when I compile without -O2.
# This usually indicates some sort of bug in the source code (*very* rarely
# is it a compiler optimization bug) however this is not my code ...
#
AM_CFLAGS = -DTRILIBRARY
noinst_LIBRARIES = libTriangleJRS.a
libTriangleJRS_a_SOURCES = \
triangle.c triangle.h \
tri_support.c tri_support.h
if HAVE_XWINDOWS
bin_PROGRAMS = showme
showme_SOURCES = showme.c
showme_LDADD = -lX11
endif
noinst_PROGRAMS = test_triangle
test_triangle_SOURCES = test_triangle.c
test_triangle_LDADD = libTriangleJRS.a