simplify inclusion of debugging capability in msdos package

This build command will include line number info, gdb.exe or nhgdb.bat in the package:

        make CROSS_TO_MSDOS=1 WANT_DEBUG=1 package

This build command will not include line number info, gdb.exe or nhgdb.bat in the package:

        make CROSS_TO_MSDOS=1 package
This commit is contained in:
nhmall
2024-12-17 15:33:39 -05:00
parent 20c456cbbb
commit 6ce2ae956e
2 changed files with 24 additions and 11 deletions

View File

@@ -228,6 +228,17 @@ override RECOVERBIN = $(TARGETPFX)recover.exe
override PACKAGE = dospkg
override PREGAME += mkdir -p $(TARGETDIR) ; make $(TARGETPFX)exceptn.o ;
override CLEANMORE += rm -f -r $(TARGETDIR) ; rm -f -r $(FONTTARGETS) ;
ifeq "$(WANT_DEBUG)" "1"
GDBEXE=../lib/djgpp/target/gdb.exe
GDBBAT=NHGDB.BAT
GDBCMDLINE=directory nhsrc/src nhsrc/include nhsrc/sys/msdos \
nhsrc/sys/share nhsrc/win/share nhsrc/win/curses \
nhsrc/win/tty nhsrc/util
else
GDBEXE=
GDBBAT=
GDBCMDLINE=
endif
VARDATND += nhtiles.bmp
#
ifdef WANT_WIN_CURSES