rework windows nmake file

Keep object files separate between gui and tty builds as they
are not the same binary on windows.

The stubs.c file will no longer be necessary.
This commit is contained in:
nhmall
2022-12-05 13:21:19 -05:00
parent d2b3a9670a
commit 485797ee8c
13 changed files with 1345 additions and 934 deletions

6
src/.gitignore vendored
View File

@@ -12,6 +12,7 @@ Systos
SysBe
nethack
*.o
*.tag
tiles.bmp
*.moc
*.lnk
@@ -21,4 +22,9 @@ o
nhdat*
date.nmk
tilemappings.lst
objgui/*
objtty/*
objutil/*
objlua/*
objpdc/*

View File

@@ -426,7 +426,7 @@ moveloop_core(void)
gc.context.move = 1;
if (gm.multi >= 0 && go.occupation) {
#if defined(MICRO) || defined(WIN32)
#if defined(MICRO) || defined(WIN32CON)
mvl_abort_lev = 0;
if (kbhit()) {
char ch;

View File

@@ -715,7 +715,7 @@ optfn_altkeyhandling(
if (req == do_set) {
/* altkeyhandling:string */
#if defined(WIN32) && defined(TTY_GRAPHICS)
#if defined(WIN32CON) && defined(TTY_GRAPHICS)
if (op == empty_optstr || negated)
return optn_err;
set_altkeyhandling(op);
@@ -739,7 +739,7 @@ optfn_altkeyhandling(
#endif
return optn_ok;
}
#ifdef WIN32
#ifdef WIN32CON
if (req == do_handler) {
return set_keyhandling_via_option();
}
@@ -3399,7 +3399,7 @@ optfn_statuslines(int optidx, int req, boolean negated, char *opts, char *op)
return optn_ok;
}
#ifdef WIN32
#ifdef WIN32CON
static int
optfn_subkeyvalue(int optidx UNUSED, int req, boolean negated UNUSED,
char *opts, char *op UNUSED)
@@ -3423,7 +3423,7 @@ optfn_subkeyvalue(int optidx UNUSED, int req, boolean negated UNUSED,
}
return optn_ok;
}
#endif /* WIN32 */
#endif /* WIN32CON */
static int
optfn_suppress_alert(int optidx, int req, boolean negated,