summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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