summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--mbbsd.icc/Makefile11
-rw-r--r--mbbsd/Makefile13
2 files changed, 17 insertions, 7 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
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