mirror of https://github.com/CGAL/cgal
66 lines
2.5 KiB
Makefile
66 lines
2.5 KiB
Makefile
# Created by the script 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 = -I../include \
|
|
$(CGAL_CXXFLAGS) \
|
|
$(LONG_NAME_PROBLEM_CXXFLAGS) \
|
|
$(DEBUG_OPT)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# linker flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
LIBPATH = \
|
|
$(CGAL_LIBPATH)
|
|
|
|
LDFLAGS = \
|
|
$(LONG_NAME_PROBLEM_LDFLAGS) \
|
|
$(CGAL_LDFLAGS)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# target entries
|
|
#---------------------------------------------------------------------#
|
|
|
|
all: \
|
|
shortest_path$(EXE_EXT) \
|
|
visibility_complex_polygon$(EXE_EXT) \
|
|
visibility_complex_segment$(EXE_EXT)
|
|
|
|
shortest_path$(EXE_EXT): shortest_path$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)shortest_path shortest_path$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
visibility_complex_polygon$(EXE_EXT): visibility_complex_polygon$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)visibility_complex_polygon visibility_complex_polygon$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
visibility_complex_segment$(EXE_EXT): visibility_complex_segment$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)visibility_complex_segment visibility_complex_segment$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
run: shortest_path$(EXE_EXT) visibility_complex_polygon$(EXE_EXT) \
|
|
visibility_complex_segment$(EXE_EXT)
|
|
./shortest_path$(EXE_EXT); ./visibility_complex_polygon$(EXE_EXT); ./visibility_complex_segment$(EXE_EXT)
|
|
|
|
clean: \
|
|
shortest_path.clean \
|
|
visibility_complex_polygon.clean \
|
|
visibility_complex_segment.clean
|
|
|
|
#---------------------------------------------------------------------#
|
|
# suffix rules
|
|
#---------------------------------------------------------------------#
|
|
|
|
.C$(OBJ_EXT):
|
|
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<
|
|
|