Cross-compiling, msdos Makefile

This commit is contained in:
nhmall
2020-05-30 08:41:20 -04:00
parent 4e677294b3
commit 0fed5a06db
2 changed files with 28 additions and 19 deletions

View File

@@ -239,13 +239,13 @@ You have to:
optional or enhancing utilities on the HOST to generate components that
will become part of the TARGET game package.
4. Execute a supported cross-compiler to compile the rest of the game
components like NetHack, Lua, and any optional libraries.
(the word "supported", in this sense, means a compiler that runs on your
HOST build platform, and generates output executable files for the TARGET
platform.
components like NetHack, Lua, and any optional libraries (the word
"supported", in this sense, means a compiler that runs on your HOST
build platform, and generates output executable files for the TARGET
platform).
It should be mentioned that you can execute the cross-compile build approach
even to generate binaries for the same platform as the host, where the HOST
to generate binaries for the same platform as the host, where the HOST
compilerand the TARGET compiler are actually one and the same.
@@ -281,7 +281,7 @@ On the HOST, here are the mandatory things that have to be built.
for use in linking other HOST utilities if the HOST-native obj files
produced from them are still around.
NOTE: A few other source files (src/drawing.c) that need to
NOTE: Other source files (src/drawing.c) that need to
be compiled for native HOST utilities, also need to be compiled again
later as TARGET obj files for linking into the TARGET executable. It is
important to keep the compiled HOST-side obj files produced by the HOST
@@ -355,17 +355,18 @@ Using the cross-compiler, build the following targets:
cross-compile and link with these compiler switches:
-DCROSSCOMPILE and -DCROSSCOMPILE_TARGET
core sources (2019): src/allmain.c, src/apply.c, src/artifact.c,
src/attrib.c, src/ball.c, src/bones.c,
core sources (2019): src/allmain.c, src/alloc.c, src/apply.c,
src/artifact.c, src/attrib.c, src/ball.c, src/bones.c,
src/botl.c, src/cmd.c, src/dbridge.c, src/decl.c,
src/detect.c, src/dig.c, src/display.c, src/do.c,
src/do_name.c, src/do_wear.c, src/dog.c,
src/detect.c, src/dig.c, src/display.c, src/dlb.c,
src/do.c, src/do_name.c, src/do_wear.c, src/dog.c,
src/dogmove.c, src/dokick.c, src/dothrow.c,
src/drawing.c, src/dungeon.c, src/eat.c, src/end.c,
src/engrave.c, src/exper.c, src/explode.c,
src/extralev.c, src/files.c, src/fountain.c,
src/hack.c, src/hacklib.c, src/insight.c, src/invent.c,
src/isaac64.c, src/light.c, src/lock.c, src/mail.c,
src/hack.c, src/hacklib.c, src/insight.c,
src/invent.c, src/isaac64.c,
src/light.c, src/lock.c, src/mail.c,
src/makemon.c, src/mapglyph.c, src/mcastu.c,
src/mdlib.c, src/mhitm.c, src/mhitu.c, src/minion.c,
src/mklev.c, src/mkmap.c, src/mkmaze.c, src/mkobj.c,
@@ -373,15 +374,15 @@ Using the cross-compiler, build the following targets:
src/monst.c, src/mplayer.c, src/mthrowu.c, src/muse.c,
src/music.c, src/nhlsel.c, src/nhlua.c, src/nhlobj.c,
src/o_init.c, src/objects.c, src/objnam.c,
src/options.c, src/pager.c, src/pickup.c, src/pline.c,
src/polyself.c, src/potion.c, src/pray.c,
src/priest.c, src/quest.c, src/questpgr.c,
src/random.c, src/read.c, src/rect.c, src/region.c,
src/restore.c, src/rip.c, src/rnd.c, src/role.c,
src/rumors.c, src/save.c, src/sfstruct.c,
src/options.c, src/pager.c, src/pickup.c,
src/pline.c, src/polyself.c, src/potion.c,
src/pray.c, src/priest.c, src/quest.c,
src/questpgr.c, src/read.c, src/rect.c,
src/region.c, src/restore.c, src/rip.c, src/rnd.c,
src/role.c, src/rumors.c, src/save.c, src/sfstruct.c,
src/shk.c, src/shknam.c, src/sit.c, src/sounds.c,
src/sp_lev.c, src/spell.c, src/steal.c, src/steed.c,
src/sys.c, src/teleport.c, src/tile.c,
src/symbols.c, src/sys.c, src/teleport.c,
src/timeout.c, src/topten.c, src/track.c,
src/trap.c, src/u_init.c, src/uhitm.c, src/vault.c,
src/version.c, src/vis_tab.c, src/vision.c,
@@ -392,6 +393,9 @@ Using the cross-compiler, build the following targets:
tty sources: win/tty/getline.c, win/tty/termcap.c,
win/tty/topl.c, win/tty/wintty.c
generated (if req'd):
src/tile.c
plus your platform-specific source files that contain main, typically
*main.c, and unix support in *unix.c, tty support in *tty.c, and other
system support in *sys.c as well as others sources pertaining to your

View File

@@ -681,6 +681,11 @@ $(O)$(GAME).lnk: $(ALLOBJ)
echo $(VOBJ23) >> $@
echo $(VOBJ24) >> $@
echo $(VOBJ25) >> $@
echo $(VOBJ26) >> $@
echo $(VOBJ27) >> $@
echo $(VOBJ28) >> $@
echo $(VOBJ29) >> $@
echo $(VOBJ30) >> $@
echo $(SOBJ) >> $@
echo $(TILOBJ) >> $@
echo $(TILOBJ2) >> $@