summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2001-10-04 19:06:31 +0000
committerKarl Schultz <kschultz@freedesktop.org>2001-10-04 19:06:31 +0000
commit8f475635594f0c0e00461d01b43ef6f42006aa88 (patch)
treee97987f42bcd49906d6d918659ff5d1469e5c42a /src
parent47bcda78e2ebf72bf1829bf89cd972e9c7cc3e99 (diff)
Need to define MESA_DEBUG in debug builds. Otherwise, NDEBUG gets
defined, which is bad for things like assert().
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/Makefile.win3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/Makefile.win b/src/mesa/main/Makefile.win
index d3d9d7a3d2..ebc72c1153 100644
--- a/src/mesa/main/Makefile.win
+++ b/src/mesa/main/Makefile.win
@@ -154,6 +154,9 @@ all : mesadll $(SUBDIRS)
mesadll : $(MESADLL)
CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -DBUILD_GL32 -DNO_PARALLEL -DNO_STEREO
+!IFNDEF NODEBUG
+CFLAGS = $(CFLAGS) -DMESA_DEBUG
+!ENDIF
LFLAGS = $(dlllflags) $(lcommon) $(LFLAGS)
OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)