diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-17 11:28:34 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-17 11:28:34 +0800 |
commit | fc9427e3fae4455ac9818ff9127c01f325b86497 (patch) | |
tree | cd661bff2fd3b7993bf1538be5b1b89fb04152e0 /pttbbs.mk | |
parent | 215fb2042a4ec7e80ad4faab7a638a4cd6944802 (diff) | |
download | pttbbs-fc9427e3fae4455ac9818ff9127c01f325b86497.tar pttbbs-fc9427e3fae4455ac9818ff9127c01f325b86497.tar.gz pttbbs-fc9427e3fae4455ac9818ff9127c01f325b86497.tar.bz2 pttbbs-fc9427e3fae4455ac9818ff9127c01f325b86497.tar.lz pttbbs-fc9427e3fae4455ac9818ff9127c01f325b86497.tar.xz pttbbs-fc9427e3fae4455ac9818ff9127c01f325b86497.tar.zst pttbbs-fc9427e3fae4455ac9818ff9127c01f325b86497.zip |
Clean up ccache.
Add CXXFLAGS
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4376 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'pttbbs.mk')
-rw-r--r-- | pttbbs.mk | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -16,22 +16,25 @@ CXX:= ccache $(CXX) .endif PTT_CFLAGS:= -Wall -pipe -DBBSHOME='"$(BBSHOME)"' -I$(SRCROOT)/include -PTT_LDFLAGS= -PTT_LDLIBS= -lhz +PTT_CXXFLAGS:= -Wall -pipe -DBBSHOME='"$(BBSHOME)"' -I$(SRCROOT)/include +PTT_LDFLAGS:= +PTT_LDLIBS:= -lhz # enable assert() #PTT_CFLAGS+= -DNDEBUG .if ${OSTYPE} == "FreeBSD" # FreeBSD特有的環境 -PTT_CFLAGS+= -I/usr/local/include -PTT_LDFLAGS+= -L/usr/local/lib -PTT_LDLIBS+= -lkvm -liconv +PTT_CFLAGS+= -I/usr/local/include +PTT_CXXFLAGS+= -I/usr/local/include +PTT_LDFLAGS+= -L/usr/local/lib +PTT_LDLIBS+= -lkvm -liconv .endif # 若有定義 PROFILING .if defined(PROFILING) PTT_CFLAGS+= -pg +PTT_CXXFLAGS+= -pg PTT_LDFLAGS+= -pg NO_OMITFP= yes NO_FORK= yes @@ -42,19 +45,23 @@ NO_FORK= yes GDB= 1 #CFLAGS+= -DDEBUG PTT_CFLAGS+= -DDEBUG +PTT_CXXFLAGS+= -DDEBUG .endif .if defined(GDB) CFLAGS:= -g -O0 $(PTT_CFLAGS) +CXXFLAGS:= -g -O0 $(PTT_CXXFLAGS) LDFLAGS:= -O0 $(PTT_LDFLAGS) LDLIBS:= $(PTT_LDLIBS) .else CFLAGS:= -g -Os $(PTT_CFLAGS) $(EXT_CFLAGS) +CXXFLAGS:= -g -Os $(PTT_CXXFLAGS) $(EXT_CXXFLAGS) LDFLAGS:= -Os $(PTT_LDFLAGS) LDLIBS:= $(PTT_LDLIBS) .if defined(OMITFP) CFLAGS+= -fomit-frame-pointer +CXXFLAGS+= -fomit-frame-pointer .endif .endif @@ -62,6 +69,7 @@ CFLAGS+= -fomit-frame-pointer # 若有定義 NO_FORK, 則在 CFLAGS內定義 NO_FORK .if defined(NO_FORK) CFLAGS+= -DNO_FORK +CXXFLAGS+= -DNO_FORK .endif .MAIN: all |