cgal/Packages/Installation/examples/makefile

59 lines
2.0 KiB
Makefile

# This is a sample makefile for compiling a CGAL application.
#
#---------------------------------------------------------------------#
# include platform specific settings
#---------------------------------------------------------------------#
# The variable CGAL_MAKEFILE is an include file with platform dependent
# makefile settings. This is done to make this makefile suitable for
# more than one compiler.
#
# The include files with platform dependent makefile settings are located
# in the <cgalroot>/make directory. They are automatically generated by the
# install_cgal script. You should choose one from this directory. It is
# recommended to use the full pathname! Another possibility is to define
# an environment variable CGAL_MAKEFILE.
CGAL_MAKEFILE = PLEASE_EDIT_MAKEFILE_AND_CUSTOMIZE_CGAL_MAKEFILE
include $(CGAL_MAKEFILE)
#---------------------------------------------------------------------#
# compiler flags
#---------------------------------------------------------------------#
CXXFLAGS = \
$(CGAL_CXXFLAGS) \
$(LONG_NAME_PROBLEM_CXXFLAGS) \
$(DEBUG_OPT)
#---------------------------------------------------------------------#
# linker flags
#---------------------------------------------------------------------#
LIBPATH = \
$(CGAL_LIBPATH)
LDFLAGS = \
$(LONG_NAME_PROBLEM_LDFLAGS) \
$(CGAL_LDFLAGS)
#---------------------------------------------------------------------#
# target entries
#---------------------------------------------------------------------#
all: \
example$(EXE_EXT)
example$(EXE_EXT): example$(OBJ_EXT)
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)example example$(OBJ_EXT) $(LDFLAGS)
clean: \
example.clean
#---------------------------------------------------------------------#
# suffix rules
#---------------------------------------------------------------------#
.C$(OBJ_EXT):
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<