summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-01-21 16:18:44 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-01-21 16:18:44 -0800
commit73398c50123459292209a27e4c3b7d76c62f18fe (patch)
treec5270c1fdd225870fb47f3210f3428cca8c582fd
parent9964558613deb9423491ad4e52e54dcdeabe57b1 (diff)
downloadnasm-73398c50123459292209a27e4c3b7d76c62f18fe.tar.gz
nasm-73398c50123459292209a27e4c3b7d76c62f18fe.tar.bz2
nasm-73398c50123459292209a27e4c3b7d76c62f18fe.zip
OpenWatcom makefiles: add DEBUG option
Add a Makefile variable, DEBUG, which can be used to set debug options (-d2, -DLOGALLOC, etc.)
-rw-r--r--Mkfiles/openwcom.mak3
-rw-r--r--Mkfiles/owlinux.mak3
2 files changed, 4 insertions, 2 deletions
diff --git a/Mkfiles/openwcom.mak b/Mkfiles/openwcom.mak
index 9905ffd..efbf977 100644
--- a/Mkfiles/openwcom.mak
+++ b/Mkfiles/openwcom.mak
@@ -14,7 +14,8 @@ bindir = $(prefix)\bin
mandir = $(prefix)\man
CC = wcl386
-CFLAGS = -3 -ox -wx -ze -fpi
+DEBUG =
+CFLAGS = -3 -ox -wx -ze -fpi $(DEBUG)
BUILD_CFLAGS = $(CFLAGS) $(TARGET_FLAGS) # -I$(srcdir)/inttypes
INTERNAL_CFLAGS = -I$(srcdir) -I. -DHAVE_SNPRINTF -DHAVE_VSNPRINTF
ALL_CFLAGS = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
diff --git a/Mkfiles/owlinux.mak b/Mkfiles/owlinux.mak
index f8f7d6e..170162c 100644
--- a/Mkfiles/owlinux.mak
+++ b/Mkfiles/owlinux.mak
@@ -28,7 +28,8 @@ bindir = $(prefix)/bin
mandir = $(prefix)/man
CC = wcl386
-CFLAGS = -3 -ox -wx -ze -fpi
+DEBUG =
+CFLAGS = -3 -ox -wx -ze -fpi $(DEBUG)
BUILD_CFLAGS = $(CFLAGS) $(TARGET_FLAGS) # -I$(srcdir)/inttypes
INTERNAL_CFLAGS = -I$(srcdir) -I. \
-DHAVE_SNPRINTF -DHAVE_VSNPRINTF