mirror of https://github.com/CGAL/cgal
74 lines
2.2 KiB
Makefile
74 lines
2.2 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 = \
|
|
-DNO_DISPLAY \
|
|
$(EXTRA_FLAGS) \
|
|
-Iinclude \
|
|
$(CGAL_CXXFLAGS)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# linker flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
LIBPATH = \
|
|
$(CGAL_LIBPATH)
|
|
|
|
LDFLAGS = \
|
|
$(CGAL_LDFLAGS)
|
|
|
|
WINDOW_LDFLAGS = \
|
|
$(CGAL_WINDOW_LDFLAGS)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# target entries
|
|
#---------------------------------------------------------------------#
|
|
|
|
all: \
|
|
ch_example_from_cin_to_cout \
|
|
ch_example_timing \
|
|
ch_of_polyline
|
|
|
|
ch_example_from_cin_to_cout$(EXE_EXT): ch_example_from_cin_to_cout$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)ch_example_from_cin_to_cout ch_example_from_cin_to_cout$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
ch_example_timing$(EXE_EXT): ch_example_timing$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)ch_example_timing ch_example_timing$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
|
|
clean: \
|
|
ch_example_from_cin_to_cout.clean \
|
|
ch_example_timing.clean \
|
|
ch_of_polyline.clean
|
|
|
|
#---------------------------------------------------------------------#
|
|
# suffix rules
|
|
#---------------------------------------------------------------------#
|
|
|
|
.C$(OBJ_EXT):
|
|
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<
|
|
|
|
|
|
|
|
# the following may fail if no LEDA is used
|
|
|
|
|
|
.IGNORE:
|
|
|
|
ch_of_polyline$(EXE_EXT): ch_of_polyline$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)ch_of_polyline ch_of_polyline$(OBJ_EXT) $(WINDOW_LDFLAGS)
|
|
|
|
|