be more consistent with CROSS_TO_target macro names for cross-compiles
-DCROSS_TO_MSDOS msdos cross-compile (djgpp cross-compiler) -DCROSS_TO_AMIGA Amiga cross-compile -DCROSS_TO_WASM wasm cross-compile (emscripten)
This commit is contained in:
@@ -2150,7 +2150,7 @@ E void NDECL(deliver_splev_message);
|
||||
/* ### random.c ### */
|
||||
|
||||
#if defined(RANDOM) && !defined(__GO32__) /* djgpp has its own random */
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
E void FDECL(srandom, (unsigned));
|
||||
E char *FDECL(initstate, (unsigned, char *, int));
|
||||
E char *FDECL(setstate, (char *));
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
/*#define OVERLAY */ /* Manual overlay definition (MSC 6.0ax only) */
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#define SHELL /* via exec of COMMAND.COM */
|
||||
#endif
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
#define ANSI_DEFAULT
|
||||
#endif
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#define RANDOM /* have Berkeley random(3) */
|
||||
#endif
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
#include <process.h> /* Provides prototypes of exit(), spawn() */
|
||||
#endif
|
||||
|
||||
#ifdef AMIGA_CROSS
|
||||
#ifdef CROSS_TO_AMIGA
|
||||
#include <spawn.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <time.h> /* get time_t defined before use! */
|
||||
|
||||
#ifdef AMIGA_CROSS
|
||||
#ifdef CROSS_TO_AMIGA
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
@@ -56,7 +56,7 @@ typedef long off_t;
|
||||
#define DLBFILE2 "nhsdat" /* sound library */
|
||||
#endif
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#define FILENAME_CMP stricmp /* case insensitive */
|
||||
#else
|
||||
#define FILENAME_CMP strcmpi /* case insensitive */
|
||||
@@ -76,7 +76,7 @@ typedef long off_t;
|
||||
#define MFLOPPY /* You'll probably want this; provides assistance \
|
||||
* for typical personal computer configurations \
|
||||
*/
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#define RANDOM
|
||||
#endif
|
||||
|
||||
@@ -149,7 +149,7 @@ extern char *FDECL(gets, (char *));
|
||||
|
||||
#define TEXTCOLOR /* Use colored monsters and objects */
|
||||
#define HACKFONT /* Use special hack.font */
|
||||
#ifndef AMIGA_CROSS /* issues with prototype and spawnl */
|
||||
#ifndef CROSS_TO_AMIGA /* issues with prototype and spawnl */
|
||||
#define SHELL /* Have a shell escape command (!) */
|
||||
#endif
|
||||
#define MAIL /* Get mail at unexpected occasions */
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#endif
|
||||
|
||||
/* Prototypes */
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/amiwind.p"
|
||||
#include "NH:sys/amiga/winami.p"
|
||||
#include "NH:sys/amiga/amidos.p"
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <functions.h>
|
||||
#endif
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/winami.p"
|
||||
#include "NH:sys/amiga/amiwind.p"
|
||||
#include "NH:sys/amiga/amidos.p"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/* Copyright (c) Kenneth Lorber, Bethesda, Maryland 1993,1996 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/windefs.h"
|
||||
#include "NH:sys/amiga/winext.h"
|
||||
#include "NH:sys/amiga/winproto.h"
|
||||
@@ -26,7 +26,7 @@ static int BufferGetchar(void);
|
||||
static void ProcessMessage(register struct IntuiMessage *message);
|
||||
|
||||
#define BufferQueueChar(ch) (KbdBuffer[KbdBuffered++] = (ch))
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
struct Library *ConsoleDevice;
|
||||
#else
|
||||
struct Device *
|
||||
@@ -36,7 +36,7 @@ struct Device *
|
||||
ConsoleDevice;
|
||||
#endif
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/amimenu.c"
|
||||
#else
|
||||
#include "amimenu.c"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/windefs.h"
|
||||
#include "NH:sys/amiga/winext.h"
|
||||
#include "NH:sys/amiga/winproto.h"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/windefs.h"
|
||||
#include "NH:sys/amiga/winext.h"
|
||||
#include "NH:sys/amiga/winproto.h"
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include "dlb.h"
|
||||
|
||||
#ifdef AMIGA_CROSS
|
||||
#ifdef CROSS_TO_AMIGA
|
||||
#define strnicmp strncmpi
|
||||
#endif
|
||||
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
#ifdef TESTING
|
||||
#include "hack.h"
|
||||
#else
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:src/tile.c"
|
||||
#else
|
||||
#include "../src/tile.c"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:win/share/tile.h"
|
||||
#include "NH:sys/amiga/windefs.h"
|
||||
#include "NH:sys/amiga/winext.h"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/windefs.h"
|
||||
#include "NH:sys/amiga/winext.h"
|
||||
#include "NH:sys/amiga/winproto.h"
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "date.h"
|
||||
|
||||
extern struct TagItem scrntags[];
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
extern struct Library *ConsoleDevice;
|
||||
#else
|
||||
extern struct Device *
|
||||
@@ -792,7 +792,7 @@ amii_create_nhwindow(type) register int type;
|
||||
}
|
||||
|
||||
ConsoleDevice =
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
(struct Library *)
|
||||
#else
|
||||
(struct Device *
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/windefs.h"
|
||||
#include "NH:sys/amiga/winext.h"
|
||||
#include "NH:sys/amiga/winproto.h"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/windefs.h"
|
||||
#include "NH:sys/amiga/winext.h"
|
||||
#include "NH:sys/amiga/winproto.h"
|
||||
@@ -45,7 +45,7 @@ struct NewWindow StrWindow = {
|
||||
&String, NULL, NULL, NULL, NULL, 5, 5, 0xffff, 0xffff, CUSTOMSCREEN
|
||||
};
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/colorwin.c"
|
||||
#else
|
||||
#include "colorwin.c"
|
||||
@@ -58,7 +58,7 @@ struct NewWindow StrWindow = {
|
||||
#define GADOKAY 6
|
||||
#define GADCANCEL 7
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/clipwin.c"
|
||||
#else
|
||||
#include "clipwin.c"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef AMIGA_CROSS
|
||||
#ifndef CROSS_TO_AMIGA
|
||||
#include "NH:sys/amiga/windefs.h"
|
||||
#include "NH:sys/amiga/winext.h"
|
||||
#include "NH:sys/amiga/winproto.h"
|
||||
|
||||
@@ -754,7 +754,7 @@ char *str;
|
||||
}
|
||||
#endif /* EXEPATH */
|
||||
|
||||
#ifdef AMIGA_CROSS
|
||||
#ifdef CROSS_TO_AMIGA
|
||||
void msmsg
|
||||
VA_DECL(const char *, fmt)
|
||||
{
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
#if !defined(MSDOS) && !defined(WIN_CE) && !defined(AMIGA_CROSS)
|
||||
#if !defined(MSDOS) && !defined(WIN_CE) && !defined(CROSS_TO_AMIGA)
|
||||
#include <process.h>
|
||||
#endif
|
||||
#if defined(__GO32__) || defined(AMIGA_CROSS)
|
||||
#if defined(__GO32__) || defined(CROSS_TO_AMIGA)
|
||||
#define P_WAIT 0
|
||||
#define P_NOWAIT 1
|
||||
#endif
|
||||
@@ -154,7 +154,7 @@ const char *str;
|
||||
#ifdef TOS
|
||||
msmsg("Hit <Return> %s.", str);
|
||||
#else
|
||||
#ifdef AMIGA_CROSS
|
||||
#ifdef CROSS_TO_AMIGA
|
||||
(void) printf("Hit <Enter> %s.", str);
|
||||
#else
|
||||
msmsg("Hit <Enter> %s.", str);
|
||||
|
||||
@@ -163,7 +163,7 @@ override TARGET_AR = $(TOOLTOP1)/i586-pc-msdosdjgpp-gcc-ar
|
||||
override TARGET_STUBEDIT = ../lib/djgpp/i586-pc-msdosdjgpp/bin/stubedit
|
||||
override TARGET_CFLAGS = -c -O -I../include -I../sys/msdos -I../win/share \
|
||||
$(LUAINCL) -DDLB $(PDCURSESDEF) \
|
||||
-DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_TARGET
|
||||
-DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_TARGET -DCROSS_TO_MSDOS
|
||||
override TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
||||
override TARGET_LINK = $(TOOLTOP1)/i586-pc-msdosdjgpp-gcc
|
||||
override TARGET_LFLAGS=
|
||||
@@ -235,9 +235,9 @@ override TARGET_STUBEDIT=
|
||||
override TARGET_CFLAGS = -c -O $(TOOLARCH) \
|
||||
-I../include -I../outdated/include \
|
||||
-I../outdated/sys/amiga -I../win/share \
|
||||
$(LUAINCL) -DAMIGA -DAMIGA_CROSS $(PDCURSESDEF) \
|
||||
-DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_TARGET \
|
||||
-DAMIGA_VERSION_STRING=\""VER: NetHack 3.7.0 \(12.13.2020)\""
|
||||
$(LUAINCL) -DAMIGA -DUSE_TILES $(PDCURSESDEF) \
|
||||
-DCROSSCOMPILE -DCROSSCOMPILE_TARGET -DCROSS_TO_AMIGA \
|
||||
-DAMIGA_VERSION_STRING=\""VER: NetHack 3.7.0\""
|
||||
override TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
||||
ifeq "$(REGEXOBJ)" "$(TARGETPFX)cppregex.o"
|
||||
override TARGET_LINK = $(TARGET_CXX)
|
||||
|
||||
Reference in New Issue
Block a user