mirror of https://github.com/CGAL/cgal
53 lines
1.8 KiB
Makefile
53 lines
1.8 KiB
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 = \
|
|
$(EXTRA_FLAGS) \
|
|
$(CGAL_CXXFLAGS)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# linker flags
|
|
#---------------------------------------------------------------------#
|
|
|
|
LIBPATH = $(CGAL_LIBPATH)
|
|
|
|
LDFLAGS = $(CGAL_WINDOW_LDFLAGS)
|
|
|
|
|
|
#---------------------------------------------------------------------#
|
|
# target entries
|
|
#---------------------------------------------------------------------#
|
|
|
|
all: \
|
|
demo_Min_circle_2$(EXE_EXT) \
|
|
demo_Min_ellipse_2$(EXE_EXT)
|
|
|
|
demo_Min_circle_2$(EXE_EXT): demo_Min_circle_2$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)demo_Min_circle_2 demo_Min_circle_2$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
demo_Min_ellipse_2$(EXE_EXT): demo_Min_ellipse_2$(OBJ_EXT)
|
|
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)demo_Min_ellipse_2 demo_Min_ellipse_2$(OBJ_EXT) $(LDFLAGS)
|
|
|
|
clean: \
|
|
demo_Min_circle_2.clean \
|
|
demo_Min_ellipse_2.clean
|
|
|
|
#---------------------------------------------------------------------#
|
|
# suffix rules
|
|
#---------------------------------------------------------------------#
|
|
|
|
.C$(OBJ_EXT):
|
|
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<
|
|
|