Skip to content

Commit f38076d

Browse files
committed
add easy option for debugging
1 parent 8535ddb commit f38076d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if NOT "%1" == "/?" goto start
66
echo ":-----------------------------------------------------------------------"
77
echo ":- Syntax: BUILD [-r] [fat32|fat16] [msc|wc|tc|tcpp|bc] [86|186|386] "
88
echo ":- [debug] [lfnapi] [/L #] [/D value] [list] [upx] [win] "
9-
echo ":- [com] [com# #] "
9+
echo ":- [com] [com# #] [printf] "
1010
echo ":- option case is significant !! "
1111
echo ":- Note: Open Watcom (wc) is the preferred compiler "
1212
echo ":- com does debug output on COM2, whereas com# 0 for COM1 ... "
@@ -52,6 +52,9 @@ if "%1" == "x86" goto setCPU
5252
if "%1" == "upx" set XUPX=upx --8086 --best
5353

5454
if "%1" == "debug" set ALLCFLAGS=%ALLCFLAGS% -DDEBUG
55+
if "%1" == "print" set ALLCFLAGS=%ALLCFLAGS% -DDEBUG_NEED_PRINTF
56+
if "%1" == "printf" set ALLCFLAGS=%ALLCFLAGS% -DDEBUG_NEED_PRINTF
57+
5558
if "%1" == "lfn" set ALLCFLAGS=%ALLCFLAGS% -DWITHLFNAPI
5659
if "%1" == "lfnapi" set ALLCFLAGS=%ALLCFLAGS% -DWITHLFNAPI
5760

0 commit comments

Comments
 (0)