mirror of https://github.com/CGAL/cgal
61 lines
2.0 KiB
Makefile
61 lines
2.0 KiB
Makefile
# Created by the script cgal_create_makefile
|
|
# 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 = ENTER_YOUR_INCLUDE_MAKEFILE_HERE
|
|
include $(CGAL_MAKEFILE)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# compiler flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
CXXFLAGS = \
|
|
$(TESTSUITE_CXXFLAGS) \
|
|
$(EXTRA_FLAGS) \
|
|
$(CGAL_CXXFLAGS) \
|
|
$(LONG_NAME_PROBLEM_CXXFLAGS) \
|
|
$(DEBUG_OPT)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# linker flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
LIBPATH = \
|
|
$(TESTSUITE_LIBPATH) \
|
|
$(CGAL_LIBPATH)
|
|
|
|
LDFLAGS = \
|
|
$(TESTSUITE_LDFLAGS) \
|
|
$(LONG_NAME_PROBLEM_LDFLAGS) \
|
|
$(CGAL_LDFLAGS)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# target entries
|
|
#---------------------------------------------------------------------#
|
|
|
|
all: \
|
|
test_integers$(EXE_EXT) \
|
|
test_not_integers$(EXE_EXT)
|
|
|
|
test_integers$(EXE_EXT): test_integers$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_integers test_integers$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
test_not_integers$(EXE_EXT): test_not_integers$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_not_integers test_not_integers$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
clean: \
|
|
test_integers.clean \
|
|
test_not_integers.clean
|
|
|
|
#---------------------------------------------------------------------#
|
|
# suffix rules
|
|
#---------------------------------------------------------------------#
|
|
|
|
.C$(OBJ_EXT):
|
|
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<
|
|
|