Debian Codegraph @

debian/external_deps/fetk/gamer/src/tetgen/src_c/makefile

raw
1 # makefile for TetGen
2 #
3 # Type "make" to compile TetGen into an executable program (tetgen).
4 # Type "make tetlib" to compile TetGen into a library (libtet.a).
5 # Type "make distclean" to delete all object (*.o) files.
6
7 # CC should be set to the name of your favorite C++ compiler.
8
9 CC = g++
10
11 # OPT is the level of optimiztion, default is -O. One should try -O2, -O3
12 # ... to find the best optimization level.
13
14 OPT = -g
15
16 # CFLAGS is a list of switches to compile TetGen.
17 #
18 # By default, TetGen uses double precision floating point numbers. If you
19 # prefer single precision, use the -DSINGLE switch.
20 #
21 # The source code of TetGen includes a lot of assertions, which are mainly
22 # used for catching bugs at that places. These assertions somewhat slow
23 # down the speed of TetGen. They can be skipped by define the -DNDEBUG
24 # switch.
25
26 CFLAGS = -Wall -DSELF_CHECK
27
28 #CFLAGS = -funroll-all-loops -fomit-frame-pointer\
29 # -Wall -Wabi -Wctor-dtor-privacy \
30 # -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo \
31 # -Wsynth -Wchar-subscripts -Wconversion -Wsign-compare \
32 # -Wcomment -Wimplicit -Wmissing-braces -Wparentheses \
33 # -Wreturn-type -Wswitch -Wswitch-default \
34 # -Wswitch-enum -Wtrigraphs -W
35
36 # RM should be set to the name of your favorite rm (file deletion program).
37
38 RM = /bin/rm
39
40 # The action starts here.
41
42 tetgen: tetgen.cxx predicates.o
43 $(CC) $(CFLAGS) $(OPT) -o tetgen tetgen.cxx predicates.o -lm
44
45 tetlib: tetgen.cxx predicates.o
46 $(CC) $(CFLAGS) $(OPT) -DTETLIBRARY -c tetgen.cxx
47 ar r libtet.a tetgen.o predicates.o
48
49 predicates.o: predicates.cxx
50 $(CC) $(CFLAGS) -g -c predicates.cxx
51
52 distclean:
53 $(RM) $(SRC)*.o $(SRC)*.a
54
55
56
57