summaryrefslogtreecommitdiffstats
path: root/mbbsd.icc/Makefile
diff options
context:
space:
mode:
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