Use ccache
[ttodo.git] / Config.mk
blobc4246eed4b0f869f7390a3ffb592e6eef745d5aa
1 ################ Progams #############################################
3 CXX = ccache g++
4 LD = ccache g++
5 DOXYGEN = doxygen
6 INSTALL = /usr/bin/install
8 ################ Destination #########################################
10 prefix = /home/msharov
11 exec_prefix = /home/msharov
12 BINDIR = /home/msharov/bin
13 INCDIR = /home/msharov/include
14 LIBDIR = /home/msharov/lib
16 INSTALLDIR = ${INSTALL} -d
17 INSTALLLIB = ${INSTALL} -p -m 644
18 INSTALLEXE = ${INSTALL} -p -m 755
19 INSTALLDATA = ${INSTALL} -p -m 644
21 ################ Compiler options ####################################
23 CXXWARNOPTS = -Werror -Wall -W -Winline -Wpointer-arith -Wno-cast-align \
24 -Wcast-qual -Wwrite-strings -Wshadow -Wredundant-decls \
25 -Wconversion -Wsign-promo -Wsynth -Woverloaded-virtual
26 PROCESSOR_OPTS = -mmmx -msse -mfpmath=sse -msse2 -m3dnow
27 INLINE_OPTS = --param max-inline-insns-single=1024 \
28 --param large-function-growth=65535 \
29 --param inline-unit-growth=1024 \
30 -fvisibility-inlines-hidden
31 CUSTOMINCDIR = -I/home/msharov/include
32 CUSTOMLIBDIR = -L/home/msharov/lib
34 DEBUG = 1
35 STANDALONE = -nodefaultlibs
37 CXXFLAGS = ${CUSTOMINCDIR} ${PROCESSOR_OPTS} ${INLINE_OPTS} ${CXXWARNOPTS} ${STANDALONE}
38 LDFLAGS = ${CUSTOMLIBDIR} ${STANDALONE}
39 ifdef DEBUG
40 CXXFLAGS += -O0 -g
41 else
42 CXXFLAGS += -Os -DNDEBUG=1
43 LDFLAGS +=
44 endif