summaryrefslogtreecommitdiffstats
path: root/mbbsd/Makefile
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-09 06:31:10 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-09 06:31:10 +0800
commitf93913aaac8890abd3c3db07df33e89ce839cf90 (patch)
tree77d044d60fe9574c0ebca9204ba27446aae0e63d /mbbsd/Makefile
parent75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6 (diff)
downloadpttbbs-f93913aaac8890abd3c3db07df33e89ce839cf90.tar
pttbbs-f93913aaac8890abd3c3db07df33e89ce839cf90.tar.gz
pttbbs-f93913aaac8890abd3c3db07df33e89ce839cf90.tar.bz2
pttbbs-f93913aaac8890abd3c3db07df33e89ce839cf90.tar.lz
pttbbs-f93913aaac8890abd3c3db07df33e89ce839cf90.tar.xz
pttbbs-f93913aaac8890abd3c3db07df33e89ce839cf90.tar.zst
pttbbs-f93913aaac8890abd3c3db07df33e89ce839cf90.zip
flag DEBUG, GDB
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@154 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/Makefile')
-rw-r--r--mbbsd/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile
index 531488a4..017f3d42 100644
--- a/mbbsd/Makefile
+++ b/mbbsd/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.6 2002/04/28 14:29:26 in2 Exp $
+# $Id: Makefile,v 1.7 2002/05/08 22:30:58 in2 Exp $
BBSHOME?=$(HOME)
OSTYPE=FreeBSD
@@ -17,14 +17,19 @@ CFLAGS= $(CFLAGS_$(OSTYPE))
LDFLAGS=$(LDFLAGS_$(OSTYPE))
LIBS= $(LIBS_$(OSTYPE))
-.if defined(DEBUG)
-CFLAGS+= -g -DDEBUG
-LDFLAGS+= -g -DDEBUG
+.if defined(GDB) || defined(DEBUG)
+CFLAGS+= -g
+FDFLAGS+= -g
.else
CFLAGS+= -O
LDFLAGS+= -O
.endif
+.if defined(DEBUG)
+CFLAGS+= -DDEBUG
+LDFLAGS+= -DDEBUG
+.endif
+
.if defined(NO_FORK)
CFLAGS+= -DNO_FORK
.endif