summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-22 21:57:23 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-22 21:57:23 +0800
commitfb2f93c605084a78c85deacfa4fe91194f4d387e (patch)
treeff251dbe15fef76bb5c1fc02e613761058e159f4
parente0add5db86c65cdef0389396db8bf96843c5bab7 (diff)
downloadpttbbs-fb2f93c605084a78c85deacfa4fe91194f4d387e.tar
pttbbs-fb2f93c605084a78c85deacfa4fe91194f4d387e.tar.gz
pttbbs-fb2f93c605084a78c85deacfa4fe91194f4d387e.tar.bz2
pttbbs-fb2f93c605084a78c85deacfa4fe91194f4d387e.tar.lz
pttbbs-fb2f93c605084a78c85deacfa4fe91194f4d387e.tar.xz
pttbbs-fb2f93c605084a78c85deacfa4fe91194f4d387e.tar.zst
pttbbs-fb2f93c605084a78c85deacfa4fe91194f4d387e.zip
overwrite CFLAGS(in make.conf) if DEBUG
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@709 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/Makefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile
index 557ca7a2..b3256a76 100644
--- a/mbbsd/Makefile
+++ b/mbbsd/Makefile
@@ -1,19 +1,19 @@
-# $Id: Makefile,v 1.19 2003/03/05 10:44:43 victor Exp $
+# $Id: Makefile,v 1.20 2003/03/22 13:57:23 in2 Exp $
# 訂義基本初值
BBSHOME?= $(HOME)
BBSHOME?= /home/bbs
OSTYPE?= FreeBSD
CC?= gcc
-CFLAGS+= -Wall -pipe -DBBSHOME='"$(BBSHOME)"' -I../include
-LDFLAGS+= -pipe -Wall
-LIBS+= -lcrypt
+PTT_CFLAGS= -Wall -pipe -DBBSHOME='"$(BBSHOME)"' -I../include
+PTT_LDFLAGS= -pipe -Wall
+PTT_LIBS= -lcrypt
# 在 CFLAGS內加入定義 COMPILE_TIME
-CFLAGS+= "-DCOMPILE_TIME=\"`date`\""
+PTT_CFLAGS+= "-DCOMPILE_TIME=\"`date`\""
# 稍後再 enable assert()
-CFLAGS+= -DNDEBUG
+PTT_CFLAGS+= -DNDEBUG
# FreeBSD特有的環境
CFLAGS_FreeBSD= -DHAVE_SETPROCTITLE -DFreeBSD
@@ -26,17 +26,17 @@ LDFLAGS_linux= -pipe -Wall
LIBS_linux=
# CFLAGS, LDFLAGS, LIBS 加入 OS 相關參數
-CFLAGS+= $(CFLAGS_$(OSTYPE))
-LDFLAGS+= $(LDFLAGS_$(OSTYPE))
-LIBS+= $(LIBS_$(OSTYPE))
+PTT_CFLAGS+= $(CFLAGS_$(OSTYPE))
+PTT_LDFLAGS+= $(LDFLAGS_$(OSTYPE))
+PTT_LIBS+= $(LIBS_$(OSTYPE))
# 若有定義 GDB或 DEBUG, 則加入 -g , 否則用 -O
.if defined(GDB) || defined(DEBUG)
-CFLAGS+= -g
-FDFLAGS+= -g
+CFLAGS= -g $(PTT_CFLAGS)
+LDFLAGS= -g $(PTT_LDFLAGS) $(PTT_LIBS)
.else
-CFLAGS+= -Os
-LDFLAGS+= -O
+CFLAGS+= -Os $(PTT_CFLAGS)
+LDFLAGS+= -O $(PTT_LDFLAGS) $(PTT_LIBS)
.endif
# 若有定義 DEBUG, 則在 CFLAGS內定義 DEBUG