mirror of https://github.com/CGAL/cgal
63 lines
2.5 KiB
Makefile
63 lines
2.5 KiB
Makefile
# Created by the script create_makefile
|
|
# This is the makefile for compiling a CGAL application.
|
|
|
|
#---------------------------------------------------------------------#
|
|
# include platform specific settings
|
|
#---------------------------------------------------------------------#
|
|
# CGAL_MAKEFILE = ENTER_YOUR_INCLUDE_MAKEFILE_HERE
|
|
!include $(CGAL_MAKEFILE)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# compiler flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
CXXFLAGS = \
|
|
$(EXTRA_FLAGS) \
|
|
$(CGAL_CXXFLAGS)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# linker flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
LIBPATH = \
|
|
$(CGAL_LIBPATH)
|
|
|
|
LDFLAGS = \
|
|
$(CGAL_LDFLAGS)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# target entries
|
|
#---------------------------------------------------------------------#
|
|
|
|
all: \
|
|
all_furthest_neighbors_2_example$(EXE_EXT) \
|
|
extremal_polygon_2_example$(EXE_EXT) \
|
|
rectangular_p_center_2_example$(EXE_EXT) \
|
|
sorted_matrix_search_example$(EXE_EXT)
|
|
|
|
all_furthest_neighbors_2_example$(EXE_EXT): all_furthest_neighbors_2_example$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)all_furthest_neighbors_2_example all_furthest_neighbors_2_example$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
extremal_polygon_2_example$(EXE_EXT): extremal_polygon_2_example$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)extremal_polygon_2_example extremal_polygon_2_example$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
rectangular_p_center_2_example$(EXE_EXT): rectangular_p_center_2_example$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)rectangular_p_center_2_example rectangular_p_center_2_example$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
sorted_matrix_search_example$(EXE_EXT): sorted_matrix_search_example$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)sorted_matrix_search_example sorted_matrix_search_example$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
clean: \
|
|
all_furthest_neighbors_2_example.clean \
|
|
extremal_polygon_2_example.clean \
|
|
rectangular_p_center_2_example.clean \
|
|
sorted_matrix_search_example.clean
|
|
|
|
#---------------------------------------------------------------------#
|
|
# suffix rules
|
|
#---------------------------------------------------------------------#
|
|
|
|
.C$(OBJ_EXT):
|
|
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<
|
|
|