mirror of https://github.com/CGAL/cgal
58 lines
2.4 KiB
Makefile
58 lines
2.4 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 CGAL-1.0/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 = /users/jannes/CGAL-1.0/make/makefile_mips_IRIX-5.3_CC-4.0
|
|
include $(CGAL_MAKEFILE)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# compiler flags
|
|
#---------------------------------------------------------------------#
|
|
# The flag CGAL_CXXFLAGS contains the path to the compiler and is defined
|
|
# in the file CGAL_MAKEFILE. You may add your own compiler flags to CXXFLAGS.
|
|
|
|
CXXFLAGS = $(CGAL_CXXFLAGS) \
|
|
-g
|
|
|
|
#---------------------------------------------------------------------#
|
|
# linker flags
|
|
#---------------------------------------------------------------------#
|
|
# The flag CGAL_LDFLAGS contains common linker flags and is defined
|
|
# in the file CGAL_MAKEFILE. You may add your own linker flags to CXXFLAGS.
|
|
|
|
LDFLAGS = $(CGAL_LDFLAGS)
|
|
|
|
#---------------------------------------------------------------------#
|
|
# target entries
|
|
#---------------------------------------------------------------------#
|
|
# Type 'make example' on the command line to compile the program example.C.
|
|
|
|
example: example.o
|
|
$(CGAL_CXX) -o example example.o $(LDFLAGS)
|
|
|
|
clean:
|
|
rm example.o example
|
|
|
|
#---------------------------------------------------------------------#
|
|
# suffix rules
|
|
#---------------------------------------------------------------------#
|
|
# The following suffix rule is used to tell the make utility how to compile
|
|
# a c++ source file with the extension .C . In general the make utility
|
|
# already knows how to do this. The reason of adding this suffix rule is
|
|
# to make this makefile suitable for more than one compiler.
|
|
|
|
.C.o:
|
|
$(CGAL_CXX) $(CXXFLAGS) -c $<
|
|
|