summaryrefslogtreecommitdiffstats
path: root/mbbsd.icc/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.icc/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.icc/Makefile')
-rw-r--r--mbbsd.icc/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/mbbsd.icc/Makefile b/mbbsd.icc/Makefile
index c260ac68..d0cabb11 100644
--- a/mbbsd.icc/Makefile
+++ b/mbbsd.icc/Makefile
@@ -14,14 +14,19 @@ OBJS= admin.o announce.o args.o bbcall.o bbs.o board.o cache.o cal.o card.o\
CFLAGS= -DHAVE_SETPROCTITLE -DBBSHOME='"$(BBSHOME)"' -DFreeBSD -I../include
LDFLAGS= -lutil -lkvm
-.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