mirror of https://github.com/CGAL/cgal
87 lines
2.8 KiB
Plaintext
87 lines
2.8 KiB
Plaintext
# This is the makefile for compiling a CGAL application.
|
|
#---------------------------------------------------------------------#
|
|
# include platform specific settings
|
|
#---------------------------------------------------------------------#
|
|
# Choose the right include file from the <cgalroot>/make directory.
|
|
|
|
CGAL_MAKEFILE=/0/net/proj/geometrica/home/CGAL/CGAL-I/make/makefile_i686_Linux-2.4.23_g++-3.3.3
|
|
#CGAL_MAKEFILE = /0/prisme_util/CGAL/CGAL-I/make/makefile_i686_Linux-2.2.18_g++-2.95_LEDA
|
|
#CGAL_MAKEFILE=/u/papillon/0/prisme_util/CGAL/CGAL-I/make/makefile_sparc_SunOS-5.6_g++-2.95
|
|
include $(CGAL_MAKEFILE)
|
|
|
|
#CGAL_CXX=purify /usr/local/bin/g++ -static
|
|
|
|
#---------------------------------------------------------------------#
|
|
# compiler flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
CXXFLAGS = \
|
|
-I../Triangulation_2/include \
|
|
-I./include \
|
|
-I../../include \
|
|
$(TESTSUITE_CXXFLAGS) \
|
|
$(CGAL_CXXFLAGS)\
|
|
$(LONG_NAME_PROBLEM_CXXFLAGS) \
|
|
-pedantic
|
|
|
|
#-pedantic -g
|
|
# -DCGAL_LFC_WALK -DCGAL_ZIG_ZAG_WALK \
|
|
# -DCGAL_NO_DEPRECTED_CODE
|
|
# -DCGAL_ZIG_ZAG_WALK \
|
|
# -DCGAL_NO_CONCEPT_CHECKING
|
|
|
|
|
|
#---------------------------------------------------------------------#
|
|
# linker flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
CGAL_LDFLAGS = \
|
|
$(CGAL_LD_LIBPATH) \
|
|
$(CUSTOM_LDFLAGS) \
|
|
-lCGAL -lgmpxx -lgmp -lm
|
|
|
|
LDFLAGS = $(TESTSUITE_LDFLAGS) \
|
|
$(CGAL_LDFLAGS)
|
|
# $(LONG_NAME_PROBLEM_LDFLAGS) \
|
|
|
|
#---------------------------------------------------------------------#
|
|
# target entries
|
|
#---------------------------------------------------------------------#
|
|
all: \
|
|
test_delaunay_triangulation_2 \
|
|
test_regular_triangulation_2 \
|
|
test_delaunay_hierarchy_2 \
|
|
test_regular_hierarchy_2
|
|
|
|
test_delaunay_triangulation_2: test_delaunay_triangulation_2.o
|
|
$(CGAL_CXX) -o test_delaunay_triangulation_2 test_delaunay_triangulation_2.o $(LDFLAGS)
|
|
|
|
test_regular_triangulation_2: test_regular_triangulation_2.o
|
|
$(CGAL_CXX) -o test_regular_triangulation_2 test_regular_triangulation_2.o $(LDFLAGS)
|
|
|
|
test_delaunay_hierarchy_2: test_delaunay_hierarchy_2.o
|
|
$(CGAL_CXX) -o test_delaunay_hierarchy_2 test_delaunay_hierarchy_2.o $(LDFLAGS)
|
|
|
|
test_regular_hierarchy_2: test_regular_hierarchy_2.o
|
|
$(CGAL_CXX) -o test_regular_hierarchy_2 test_regular_hierarchy_2.o $(LDFLAGS)
|
|
|
|
|
|
clean:
|
|
- rm -f *.o *.obj *.exe \
|
|
test_delaunay_triangulation_2 \
|
|
test_regular_triangulation_2 \
|
|
test_delaunay_hierarchy_2 \
|
|
test_regular_hierarchy_2 \
|
|
core \
|
|
T??.triangulation file_tds?
|
|
|
|
realclean: clean
|
|
- rm -f Program* Error* Compiler* error*
|
|
|
|
#---------------------------------------------------------------------#
|
|
# suffix rules
|
|
#---------------------------------------------------------------------#
|
|
|
|
.C.o:
|
|
$(CGAL_CXX) $(CXXFLAGS) -c $<
|