[ccache] how to use ccache

Mahmood NT nt_mahmood at yahoo.com
Wed Dec 5 07:41:16 GMT 2007


This make file is a little bit long. First, one question? Is ccache dependant on makefile. This is not good....
here is the makefile:

# This file contains CGAL makefile settings for the following platform:
# OS:                i686_Linux-2.6
# COMPILER:            GNU 3.3.3
# BOOST:            supported
# BOOST_PROGRAM_OPTIONS:    not supported
# X11:                supported
# GMP:              supported
# GMPXX:          supported
# MPFR:             supported
# CORE:             supported
# ZLIB:               supported
# LEDA:             not supported
# LEDAWIN:       not supported
# QT:                 supported
# TAUCS:           not supported

#---------------------------------------------------------------------#
#                    include/lib directory settings
#---------------------------------------------------------------------#

CGAL_INCL_DIR = /home/naderan/CGAL-3.2/include
CGAL_LIB_DIR = /home/naderan/CGAL-3.2/lib

#---------------------------------------------------------------------#
#                    os/compiler description
#---------------------------------------------------------------------#

CGAL_OS_COMPILER = i686_Linux-2.6_g++-3.3.3

#---------------------------------------------------------------------#
#                    filename related flags
#---------------------------------------------------------------------#

OBJ_EXT = .o
EXE_EXT = 
LIB_SUFFIX = 

#---------------------------------------------------------------------#
#                    some specific compiler flags
#---------------------------------------------------------------------#

OBJ_OPT = -c
DEBUG_OPT = -g
START_LD_OPT = 
LIBPATH_OPT = -L
LIB_OPT =  -l
RANLIB = cat >/dev/null

#---------------------------------------------------------------------#
#                    suffixes and rules
#---------------------------------------------------------------------#

.SUFFIXES:   .clean

.C.clean:
    rm -f $* $*.o $*.moc


#---------------------------------------------------------------------#
#                    compiler
#---------------------------------------------------------------------#

CGAL_CXX = /usr/bin/g++

#---------------------------------------------------------------------#
#                    compiler flags
#---------------------------------------------------------------------#

# For more information about the compiler flags see the installation guide.

# compiler specific configuration dir
CGAL_INCL_CONF_DIR = \
    $(CGAL_INCL_DIR)/CGAL/config/i686_Linux-2.6_g++-3.3.3

# *** Fill in any additional compiler flags you need ***
CUSTOM_CXXFLAGS = 

# *** compiler flags for feature BOOST ***
BOOST_CXXFLAGS = 

# *** compiler flags for feature X11 ***
X11_CXXFLAGS =  \
    -I/usr/X11R6/include 


# *** compiler flags for feature GMP ***
GMP_CXXFLAGS = 

# *** compiler flags for feature GMPXX ***
GMPXX_CXXFLAGS = 

# *** compiler flags for feature MPFR ***
MPFR_CXXFLAGS = 

# *** compiler flags for feature CORE ***
CORE_CXXFLAGS = 

# *** compiler flags for feature ZLIB ***
ZLIB_CXXFLAGS = 

# *** compiler flags for feature QT ***
QT_CXXFLAGS =  \
    -I/usr/lib/qt-3.3/include 


# *** compiler flags for package BOOST ***
BOOST_PKG_CXXFLAGS = 

# *** compiler flags for package X11 ***
X11_PKG_CXXFLAGS = 

# *** compiler flags for package GMP ***
GMP_PKG_CXXFLAGS = 

# *** compiler flags for package GMPXX ***
GMPXX_PKG_CXXFLAGS = 

# *** compiler flags for package MPFR ***
MPFR_PKG_CXXFLAGS = 

# *** compiler flags for package CGALCORE ***
CGALCORE_PKG_CXXFLAGS =  \
    -DCGAL_USE_CGAL_CORE


# *** compiler flags for package ZLIB ***
ZLIB_PKG_CXXFLAGS = 

# *** compiler flags for package QT3MT ***
QT3MT_PKG_CXXFLAGS = 

# *** to work around the long-name-problem with sun as/ld
LONG_NAME_PROBLEM_CXXFLAGS =

CGAL_CXXFLAGS =  \
    -Wall \
    $(CUSTOM_CXXFLAGS) \
    '-I$(CGAL_INCL_CONF_DIR)' \
    '-I$(CGAL_INCL_DIR)' \
    $(BOOST_CXXFLAGS) \
    $(X11_CXXFLAGS) \
    $(GMP_CXXFLAGS) \
    $(GMPXX_CXXFLAGS) \
    $(MPFR_CXXFLAGS) \
    $(CORE_CXXFLAGS) \
    $(ZLIB_CXXFLAGS) \
    $(QT_CXXFLAGS) \
    $(BOOST_PKG_CXXFLAGS) \
    $(X11_PKG_CXXFLAGS) \
    $(GMP_PKG_CXXFLAGS) \
    $(GMPXX_PKG_CXXFLAGS) \
    $(MPFR_PKG_CXXFLAGS) \
    $(CGALCORE_PKG_CXXFLAGS) \
    $(ZLIB_PKG_CXXFLAGS) \
    $(QT3MT_PKG_CXXFLAGS)

CGAL_WINLIB_CXXFLAGS = \
    $(CGAL_LIB_CXXFLAGS)


#---------------------------------------------------------------------#
#                    linker flags
#---------------------------------------------------------------------#

# *** Flag to define the name of the produced executable ***
EXE_OPT = -o $(SAVESTHEBLANK)

# *** libpath flags for feature BOOST ***
BOOST_LIBPATHFLAGS = 

# *** libpath flags for feature X11 ***
X11_LIBPATHFLAGS =  \
    -L/usr/X11R6/lib 


# *** libpath flags for feature GMP ***
GMP_LIBPATHFLAGS = 

# *** libpath flags for feature GMPXX ***
GMPXX_LIBPATHFLAGS = 

# *** libpath flags for feature MPFR ***
MPFR_LIBPATHFLAGS = 

# *** libpath flags for feature CORE ***
CORE_LIBPATHFLAGS = 

# *** libpath flags for feature ZLIB ***
ZLIB_LIBPATHFLAGS = 

# *** libpath flags for feature QT ***
QT_LIBPATHFLAGS =  \
    -L/usr/lib/qt-3.3/lib 


# *** libpath flags for CGAL ***
CGAL_LIBPATHFLAGS = \
    '-L$(CGAL_LIB_DIR)/$(CGAL_OS_COMPILER)'  \
    $(BOOST_LIBPATHFLAGS) \
    $(X11_LIBPATHFLAGS) \
    $(GMP_LIBPATHFLAGS) \
    $(GMPXX_LIBPATHFLAGS) \
    $(MPFR_LIBPATHFLAGS) \
    $(CORE_LIBPATHFLAGS) \
    $(ZLIB_LIBPATHFLAGS) \
    $(QT_LIBPATHFLAGS) \
    -Wl,-R$(CGAL_LIB_DIR)/$(CGAL_OS_COMPILER):/usr/X11R6/lib:/usr/lib/qt-3.3/lib

# *** Fill in any additional linker flags you need ***
CUSTOM_LDFLAGS = 

# *** to work around the long-name-problem with sun as/ld
LONG_NAME_PROBLEM_LDFLAGS =

# *** the libs to link against when using OpenGL
OPENGL_LIBS = -lGL -lGLU

CGAL_LIBPATH =

CGAL_LD_LIBPATH = $(CGAL_LIBPATHFLAGS)

# *** linker flags for package BOOST ***
BOOST_LDFLAGS = 

# *** linker flags for package X11 ***
X11_LDFLAGS =  \
     -lX11 


# *** linker flags for package GMP ***
GMP_LDFLAGS =  \
     -lgmp 


# *** linker flags for package GMPXX ***
GMPXX_LDFLAGS =  \
     -lgmpxx 


# *** linker flags for package MPFR ***
MPFR_LDFLAGS =  \
     -lmpfr 


# *** linker flags for package CGALCORE ***
CGALCORE_LDFLAGS = 

# *** linker flags for package ZLIB ***
ZLIB_LDFLAGS =  \
     -lz 


# *** linker flags for package QT3MT ***
QT3MT_LDFLAGS =  \
     -lqt-mt 


# *** linker flags for CGAL ***
CGAL_CGAL_LDFLAGS = \
    $(CGAL_LD_LIBPATH)  \
    $(CUSTOM_LDFLAGS) \
     -lCGAL 

CGAL_LDFLAGS = \
    $(CGAL_CGAL_LDFLAGS) \
     -lcore++  \
     -lCGALQt  \
    $(QT3MT_LDFLAGS) \
    $(ZLIB_LDFLAGS) \
    $(CGALCORE_LDFLAGS) \
    $(MPFR_LDFLAGS) \
    $(GMPXX_LDFLAGS) \
    $(GMP_LDFLAGS) \
    $(X11_LDFLAGS) \
    $(BOOST_LDFLAGS) \
     -lm 

#  The following flags are obsolete
CGAL_WINDOW_LDFLAGS = $(CGAL_LDFLAGS)

CGAL_GEOWIN_LDFLAGS = $(CGAL_LDFLAGS)

CGAL_QT_LDFLAGS = $(CGAL_LDFLAGS)

# *** Qt meta object compiler executable ***
QT_MOC = \
    /usr/lib/qt-3.3/bin/moc


#---------------------------------------------------------------------#
#                    commands and flags for creating libraries
#---------------------------------------------------------------------#

CGAL_LIB = libCGAL.a
CGAL_WIN_EXTRA_DIR = x11
CGAL_QT_LIB = libCGALQt.a
CGAL_CORE_LIB = libcore++.a
CGAL_LIB_CXXFLAGS = \
     -O2 \
    $(CGAL_CXXFLAGS)
CGAL_LIB_LDFLAGS = 

CGAL_LIB_CREATE = ar cr ''
CGAL_OBJ_PREFIX = 
CGAL_LIB_DESTINATION = '$(CGAL_LIB_DIR)/$(CGAL_OS_COMPILER)'
CGAL_SHARED_LIB = libCGAL.so
CGAL_CORE_SHARED_LIB = libcore++.so
CGAL_QT_SHARED_LIB = libCGALQt.so
CGAL_SHARED_LIB_CXXFLAGS = \
    -fpic -O2 \
    $(CGAL_CXXFLAGS)
CGAL_SHARED_LIB_LDFLAGS = 

CGAL_SHARED_LIB_CREATE = $(CGAL_CXX) -shared  -o ''

# *** only used for the testsuite
# *** program used to create stacktrace from coredump
PRINT_STACKTRACE_PROGRAM = gdb


#---------------------------------------------------------------------#
#                    EOF
#---------------------------------------------------------------------#


 
Mahmood NT







----- Original Message ----
From: Francois Marier <francois at debian.org>
To: Mahmood NT <nt_mahmood at yahoo.com>
Cc: ccache at lists.samba.org
Sent: Wednesday, December 5, 2007 10:43:03 AM
Subject: Re: [ccache] how to use ccache


On 2007-12-04 at 23:05:32, Mahmood NT wrote:
>  CGAL_MAKEFILE =
 /home/naderan/CGAL-3.2/make/makefile_i686_Linux-2.6_g++-3.3.3
> include $(CGAL_MAKEFILE)

The answer most likely lies in this file:

  /home/naderan/CGAL-3.2/make/makefile_i686_Linux-2.6_g++-3.3.3

Francois





      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


More information about the ccache mailing list