incremental improvements to cross-compiling support in NetHack 3.7
Some support of new code #defines to faciliate cross-compiling:
OPTIONS_AT_RUNTIME If this is defined, code to support obtaining
the compile time options and features is
included. If you define this, you'll also have
to compile sys/mdlib.c and link the resulting
object file into your game binary/executable.
CROSSCOMPILE Flags that this is a cross-compiled NetHack build,
where there are two stages:
1. makedefs and some other utilities are compiled
on the host platform and executed there to generate
some output files and header files needed by the
game.
2. the NetHack game files are compiled by a
cross-compiler to generate binary/executables for
a different platform than the one the build is
being run on. The executables produced for the
target platform may not be able to execute on the
build platform, except perhaps via a software
emulator.
The 2-stage process (1. host, 2.target) can be done
on the same platform to test the cross-compile
process. In that case, the host and target platforms
would be the same.
CROSSCOMPILE_HOST Separates/identifies code paths that should only be
be included in the compile on the host side, for
utilities that will be run on the host as part of
stage 1 to produce output files needed to build the
game. Examples are the code for makedefs, tile
conversion utilities, uudecode, dlb, etc.
CROSSCOMPILE_TARGET Separates/identifies code paths that should be
included on the build for the target platform
during stage 2, the cross-compiler stage. That
includes most of the pieces of the game itself
but the code is only flagged as such if it must
not execute on the host.
If you don't define any of those, things should build as before.
One follow-on change that is likely required is setting the new dependency
makedefs has on src/mdlib.c in Makefiles etc.
More information about the changes:
makedefs
- splinter off some of makedefs functionality into a separate file
called src/mdlib.c.
- src/mdlib.c, while included during the compile of makedefs.c
for producing the makedefs utility, can also be compiled
as a stand-alone object file for inclusion in the link step
of your NetHack game build. The src/mdlib.c code can then
deliver the same functionality that it provided to makedefs
right to your NetHack game code at run-time.
For example, do_runtime_info() will provide the caller with
the features and options that were built into the game.
Previously, that information was produced at build time on the
host and stored in a dat file. Under a cross-compile situation,
those values are highly suspect and might not even reflect the
correct options and setting for the cross-compiled target
platform's binary/executable. The compile of those values and
the functionality to obtain them needs to move to the target
cross-compiler stage of the build (stage 2).
- date information on the target-side binary is produced from
the cross-compiler preprocessor pre-defined macros __DATE__
and __TIME__, as they reflect the actual compile time of the
cross-compiled target and not host-side execution of a utility
to produce them. The cross-compiler itself, through those
pre-defined preprocessor macros, provides them to the target
platform binary/executable. They reflect the actual build
time of the target binary/executable (not values produced
at the time the makefiles utility was built and the
appropriate option selected to store them in a text file.)
- most Makefiles should not require adding the new file
src/mdlib.c because util/makedefs.c has a preprocessor
include "../src/mdlib.c" to draw in its contents. As previously
stated though, the Makefile dependency may be required:
makedefs.o: ../util/makedefs.c ../src/mdlib.c
^^^^^^^^^^^^^^^
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# for testing the msdos port build of the evolving NetHack code.0
|
||||
#
|
||||
# The GNU Make has a problem if you include a drive spec below.
|
||||
GAMEDIR =../binary
|
||||
GAMEDIR =../msdos-binary
|
||||
|
||||
#
|
||||
#==============================================================================
|
||||
@@ -143,9 +143,11 @@ TEXTIO = $(HOST_O)tiletext.o $(HOST_O)tiletxt.o $(HOST_O)drawing.o $(HOST_O
|
||||
TEXTIO2 = $(HOST_O)tiletex2.o $(HOST_O)tiletxt2.o $(HOST_O)drawing.o $(HOST_O)decl.o $(HOST_O)monst.o \
|
||||
$(HOST_O)objects.o
|
||||
|
||||
TILE_BMP = $(DAT)/nhtiles.bmp
|
||||
PLANAR_TIB = $(DAT)/NETHACK1.TIB
|
||||
OVERVIEW_TIB = $(DAT)/NETHACKO.TIB
|
||||
TILE_BMP = $(DAT)/NHTILES.BMP
|
||||
|
||||
TILEUTIL = $(TILOBJ) $(U)tile2bin $(U)til2bin2 $(TILE_BMP)
|
||||
TILEUTIL = $(TILOBJ) $(U)tile2bin $(U)til2bin2 $(TILE_BMP) $(PLANAR_TIB) $(OVERVIEW_TIB)
|
||||
|
||||
TILEFILES = $(WSHR)/monsters.txt $(WSHR)/objects.txt $(WSHR)/other.txt
|
||||
|
||||
@@ -226,18 +228,18 @@ CURSESDEF=
|
||||
CURSESLIB=
|
||||
INCLDIR=-I../include -I../sys/msdos
|
||||
# Debugging
|
||||
#cflags = -pg -c $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DSUPPRESS_GRAPHICS
|
||||
#cflags = -pg -c $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DSUPPRESS_GRAPHICS -DCROSSCOMPILE -CROSSCOMPILE_HOST
|
||||
#LFLAGS = -pg
|
||||
#
|
||||
cflags = -c -O $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DSUPPRESS_GRAPHICS
|
||||
LFLAGS =
|
||||
#cflags = -c -O $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DSUPPRESS_GRAPHICS -DCROSSCOMPILE -DCROSSCOMPILE_HOST
|
||||
#LFLAGS =
|
||||
#
|
||||
# Debugging
|
||||
#cflags = -g -c $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DUSE_TILES
|
||||
#cflags = -g -c $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_HOST
|
||||
#LFLAGS = -g
|
||||
#
|
||||
# Normal
|
||||
cflags = -c -O $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DUSE_TILES
|
||||
cflags = -c -O $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_HOST
|
||||
LFLAGS =
|
||||
|
||||
#==========================================
|
||||
@@ -318,6 +320,7 @@ $(DAT)/nhdat: $(U)dlb_main $(DAT)/data $(DAT)/rumors \
|
||||
ls -1 data oracles options quest.dat rumors help hh >dlb.lst; \
|
||||
ls -1 cmdhelp history opthelp wizhelp license >>dlb.lst; \
|
||||
ls -1 bogusmon engrave epitaph tribute msdoshlp.txt >>dlb.lst; \
|
||||
ls -1 *.lua >>dlb.lst; \
|
||||
$(U)dlb_main cvIf dlb.lst nhdat
|
||||
cd $(SRC)
|
||||
|
||||
@@ -480,7 +483,19 @@ $(HOST_O)tilemap.o: $(WSHR)/tilemap.c $(HACK_H) $(TILE_H)
|
||||
# Required for tile support
|
||||
#==========================================
|
||||
|
||||
$(DAT)/nhtiles.bmp: $(TILEFILES) $(U)tile2bmp
|
||||
$(DAT)/NetHack1.tib: $(TILEFILES) $(U)tile2bin
|
||||
@echo Creating binary tile files
|
||||
cd $(DAT)
|
||||
$(U)tile2bin
|
||||
cd $(SRC)
|
||||
|
||||
$(DAT)/NetHacko.tib: $(HOST_O)thintile.tag $(TILEFILES2) $(U)til2bin2
|
||||
@echo Creating overview binary tile files
|
||||
cd $(DAT)
|
||||
$(U)til2bin2
|
||||
cd $(SRC)
|
||||
|
||||
$(DAT)/NHTILES.BMP: $(TILEFILES) $(U)tile2bmp
|
||||
@echo Creating binary tile files which may take some time
|
||||
@cd $(DAT)
|
||||
@$(U)tile2bmp $@
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NetHack 3.6 Makefile2.cross
|
||||
# NetHack 3.7 Makefile2.cross
|
||||
# Cross-compile msdos version of NetHack using a
|
||||
# linux-hosted djgpp cross-compiler.
|
||||
#
|
||||
@@ -11,17 +11,17 @@
|
||||
# Makefile2 utilizes the djgpp cross-compiler from Andrew Wu:
|
||||
# https://github.com/andrewwutw/build-djgpp
|
||||
#
|
||||
# Currently, in NetHack 3.6, the cross-compile for msdos cannot be
|
||||
# used to build the entire game to a playable point but it is useful
|
||||
# for testing the msdos port build of the evolving NetHack code.
|
||||
# In NetHack 3.7, the cross-compile for msdos can be used to
|
||||
# build the entire game to a complete ms-dos package and
|
||||
# result (in theory).
|
||||
#
|
||||
|
||||
# Game Installation Variables
|
||||
# NOTE: Make sure GAMEDIR exists before make is started.
|
||||
|
||||
GAME = nethack
|
||||
GAME = NETHACK
|
||||
# The GNU Make has a problem if you include a drive spec below (unfortunately).
|
||||
GAMEDIR =../binary
|
||||
GAMEDIR =../msdos-binary
|
||||
|
||||
# Optional PDCurses support
|
||||
# Uncomment these and set them appropriately if you want to
|
||||
@@ -39,6 +39,20 @@ PDCURSES_TOP=../../pdcurses
|
||||
# Set top of djgpp if not specified through ENV variables prior to make:
|
||||
#DJGPP_TOP = $(HOME)/djgpp
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# Location of LUA
|
||||
#
|
||||
# Original source needs to be obtained from:
|
||||
# http://www.lua.org/ftp/lua-5.3.5.tar.gz
|
||||
#
|
||||
# This build assumes that the LUA sources are located
|
||||
# at the specified location. If they are actually elsewhere
|
||||
# you'll need to specify the correct spot below in order to
|
||||
# successfully build NetHack-3.7.
|
||||
#
|
||||
ADD_LUA=Y
|
||||
LUATOP=../lib/lua-5.3.5
|
||||
#
|
||||
#
|
||||
#==============================================================================
|
||||
# This marks the end of the BUILD DECISIONS section.
|
||||
@@ -47,7 +61,8 @@ PDCURSES_TOP=../../pdcurses
|
||||
# Directories, gcc likes unix style directory specs
|
||||
#
|
||||
|
||||
OBJ = o
|
||||
TARGET = msdos
|
||||
OBJ = $(TARGET)_o
|
||||
HOBJ = host_o
|
||||
DAT = ../dat
|
||||
DOC = ../doc
|
||||
@@ -73,6 +88,7 @@ endif
|
||||
TARGET_CC = $(DJGPP_TOP)/i586-pc-msdosdjgpp/bin/gcc
|
||||
TARGET_LINK = $(DJGPP_TOP)/i586-pc-msdosdjgpp/bin/gcc
|
||||
TARGET_STUBEDIT = $(DJGPP_TOP)/i586-pc-msdosdjgpp/bin/stubedit
|
||||
TARGET_AR = $(DJGPP_TOP)/i586-pc-msdosdjgpp/bin/ar
|
||||
MAKEBIN = make
|
||||
|
||||
#
|
||||
@@ -164,7 +180,7 @@ SUPPRESS_GRAPHICS =
|
||||
# #
|
||||
################################################
|
||||
|
||||
GAMEFILE = $(GAMEDIR)/$(GAME).exe
|
||||
GAMEFILE = $(GAMEDIR)/$(GAME).EXE
|
||||
|
||||
# Changing this conditional block is not recommended
|
||||
ifeq "$(USE_DLB)" "Y"
|
||||
@@ -208,82 +224,60 @@ O = $(OBJ)/
|
||||
HOST_O = $(HOBJ)/
|
||||
U = $(UTIL)/
|
||||
|
||||
#==========================================
|
||||
# Utility Objects.
|
||||
#==========================================
|
||||
|
||||
VGAOBJ = $(O)vidvga.o $(O)vidvesa.o
|
||||
|
||||
MAKESRC = makedefs.c
|
||||
|
||||
#SPLEVSRC = lev_yacc.c lev_$(LEX).c lev_main.c panic.c
|
||||
|
||||
#DGNCOMPSRC = dgn_yacc.c dgn_$(LEX).c dgn_main.c
|
||||
|
||||
MAKEDEFSOBJS = $(HOST_O)makedefs.o $(HOST_O)monst.o $(HOST_O)objects.o
|
||||
|
||||
#SPLEVOBJS = $(HOST_O)lev_yacc.o $(HOST_O)lev_$(LEX).o $(HOST_O)lev_main.o $(HOST_O)alloc.o \
|
||||
# $(HOST_O)monst.o $(HOST_O)objects.o $(HOST_O)panic.o \
|
||||
# $(HOST_O)drawing.o $(HOST_O)decl.o $(O)stubvid.o
|
||||
|
||||
#DGNCOMPOBJS = $(HOST_O)dgn_yacc.o $(HOST_O)dgn_$(LEX).o $(HOST_O)dgn_main.o $(HOST_O)alloc.o \
|
||||
# $(HOST_O)panic.o
|
||||
|
||||
RECOVOBJS = $(O)recover.o
|
||||
|
||||
|
||||
#==========================================
|
||||
# Tile related object files.
|
||||
#==========================================
|
||||
|
||||
ifeq ($(SUPPRESS_GRAPHICS),Y)
|
||||
TILOBJ =
|
||||
TILOBJ2 =
|
||||
TEXTIO =
|
||||
TEXTIO2 =
|
||||
TILE_BMP =
|
||||
TILEUTIL =
|
||||
TILEFILES =
|
||||
TILEFILES2 =
|
||||
GIFREADERS =
|
||||
GIFREAD2 =
|
||||
PPMWRITERS =
|
||||
PPMWRIT2 =
|
||||
#ifeq ($(SUPPRESS_GRAPHICS),Y)
|
||||
#TILOBJ =
|
||||
#TILOBJ2 =
|
||||
#TEXTIO =
|
||||
#TEXTIO2 =
|
||||
#TILE_BMP =
|
||||
#TILEUTIL =
|
||||
#TILEFILES =
|
||||
#TILEFILES2 =
|
||||
#GIFREADERS =
|
||||
#GIFREAD2 =
|
||||
#PPMWRITERS =
|
||||
#PPMWRIT2 =
|
||||
#
|
||||
#else
|
||||
#
|
||||
#TILOBJ = $(O)tile.o $(VIDEO_OBJ)
|
||||
#
|
||||
#TILOBJ2 = $(O)tileset.o $(O)bmptiles.o $(O)giftiles.o
|
||||
#
|
||||
#TEXTIO = $(HOST_O)tiletext.o $(HOST_O)tiletxt.o $(HOST_O)drawing.o $(HOST_O)decl.o $(HOST_O)monst.o \
|
||||
# $(HOST_O)objects.o $(HOST_O)stubvid.o
|
||||
#
|
||||
#TEXTIO2 = $(HOST_O)tiletex2.o $(HOST_O)tiletxt2.o $(HOST_O)drawing.o $(HOST_O)decl.o $(HOST_O)monst.o \
|
||||
# $(HOST_O)objects.o $(HOST_O)stubvid.o
|
||||
#TILEUTIL = $(TILOBJ) $(U)tile2bin $(U)til2bin2 $(TILE_BMP) $(PLANAR_TIB) $(OVERVIEW_TIB)
|
||||
#
|
||||
#TILEFILES = $(WSHR)/monsters.txt $(WSHR)/objects.txt $(WSHR)/other.txt
|
||||
#
|
||||
#TILEFILES2 = $(WSHR)/monthin.txt $(WSHR)/objthin.txt $(WSHR)/oththin.txt
|
||||
#
|
||||
#GIFREADERS = $(HOST_O)gifread.o $(HOST_O)alloc.o $(HOST_O)panic.o
|
||||
#
|
||||
#GIFREAD2 = $(HOST_O)gifread2.o $(HOST_O)alloc.o $(HOST_O)panic.o
|
||||
#
|
||||
#PPMWRITERS = $(HOST_O)ppmwrite.o $(HOST_O)alloc.o $(HOST_O)panic.o
|
||||
#
|
||||
#PPMWRIT2 = $(HOST_O)ppmwrit2.o $(HOST_O)alloc.o $(HOST_O)panic.o
|
||||
#endif
|
||||
|
||||
else
|
||||
PLANAR_TIB = $(DAT)/NETHACK1.tib
|
||||
OVERVIEW_TIB = $(DAT)/NETHACKO.tib
|
||||
TILE_BMP = $(DAT)/NHTILES.BMP
|
||||
|
||||
TILOBJ = $(O)tile.o $(VGAOBJ)
|
||||
|
||||
TILOBJ2 = $(O)tileset.o $(O)bmptiles.o $(O)giftiles.o
|
||||
|
||||
TEXTIO = $(HOST_O)tiletext.o $(HOST_O)tiletxt.o $(HOST_O)drawing.o $(HOST_O)decl.o $(HOST_O)monst.o \
|
||||
$(HOST_O)objects.o $(HOST_O)stubvid.o
|
||||
|
||||
TEXTIO2 = $(HOST_O)tiletex2.o $(HOST_O)tiletxt2.o $(HOST_O)drawing.o $(HOST_O)decl.o $(HOST_O)monst.o \
|
||||
$(HOST_O)objects.o $(HOST_O)stubvid.o
|
||||
|
||||
TILE_BMP = $(DAT)/nhtiles.bmp
|
||||
|
||||
TILEUTIL = $(TILOBJ) $(U)tile2bin $(U)til2bin2 $(TILE_BMP)
|
||||
|
||||
TILEFILES = $(WSHR)/monsters.txt $(WSHR)/objects.txt $(WSHR)/other.txt
|
||||
|
||||
TILEFILES2 = $(WSHR)/monthin.txt $(WSHR)/objthin.txt $(WSHR)/oththin.txt
|
||||
|
||||
GIFREADERS = $(HOST_O)gifread.o $(HOST_O)alloc.o $(HOST_O)panic.o
|
||||
|
||||
GIFREAD2 = $(HOST_O)gifread2.o $(HOST_O)alloc.o $(HOST_O)panic.o
|
||||
|
||||
PPMWRITERS = $(HOST_O)ppmwrite.o $(HOST_O)alloc.o $(HOST_O)panic.o
|
||||
|
||||
PPMWRIT2 = $(HOST_O)ppmwrit2.o $(HOST_O)alloc.o $(HOST_O)panic.o
|
||||
endif
|
||||
|
||||
#REGEX = $(O)pmatchregex.o
|
||||
#REGEX = $(O)cppregex.o
|
||||
REGEX = $(O)posixreg.o
|
||||
|
||||
DLBOBJ = $(O)dlb.o
|
||||
##REGEX = $(O)pmatchregex.o
|
||||
##REGEX = $(O)cppregex.o
|
||||
REGEX = $(O)posixreg.o
|
||||
DLBOBJ = $(O)dlb.o
|
||||
VIDEO_OBJ = $(O)vidvga.o $(O)vidvesa.o $(O)tile.o $(O)tileset.o $(O)bmptiles.o $(O)giftiles.o
|
||||
RECOVOBJS = $(O)recover.o
|
||||
|
||||
# Object files for the game itself.
|
||||
|
||||
@@ -310,13 +304,19 @@ VOBJ19 = $(O)trap.o $(O)u_init.o $(O)uhitm.o $(O)vault.o $(O)vision.o
|
||||
VOBJ20 = $(O)vis_tab.o $(O)weapon.o $(O)were.o $(O)wield.o $(O)windows.o
|
||||
VOBJ21 = $(O)wintty.o $(O)wizard.o $(O)worm.o $(O)worn.o $(O)write.o
|
||||
VOBJ22 = $(O)zap.o $(O)light.o $(O)dlb.o $(O)dig.o $(O)teleport.o
|
||||
VOBJ23 = $(O)region.o $(O)sys.o $(REGEX) $(O)isaac64.o
|
||||
VOBJ23 = $(O)region.o $(O)sys.o $(REGEX) $(O)isaac64.o $(VIDEO_OBJ)
|
||||
VOBJ24 = $(O)sfbase.o $(O)sfdata.o
|
||||
VOBJ25 = $(O)sfstruct.o $(O)sfascii.o $(O)sflendian.o
|
||||
|
||||
SOBJ = $(O)msdos.o $(O)sound.o $(O)pcsys.o $(O)tty.o $(O)unix.o \
|
||||
SOBJ = $(O)msdos.o $(O)pcsys.o $(O)tty.o $(O)unix.o \
|
||||
$(O)video.o $(O)vidtxt.o $(O)pckeys.o
|
||||
|
||||
VVOBJ = $(O)version.o
|
||||
|
||||
ifeq "$(ADD_LUA)" "Y"
|
||||
LUAOBJ = $(O)nhlua.o $(O)nhlsel.o
|
||||
endif
|
||||
|
||||
ifeq "$(ADD_CURSES)" "Y"
|
||||
CURSESOBJ= $(O)cursdial.o $(O)cursinit.o $(O)cursinvt.o $(O)cursmain.o \
|
||||
$(O)cursmesg.o $(O)cursmisc.o $(O)cursstat.o $(O)curswins.o
|
||||
@@ -328,11 +328,54 @@ VOBJ = $(VOBJ01) $(VOBJ02) $(VOBJ03) $(VOBJ04) $(VOBJ05) \
|
||||
$(VOBJ06) $(VOBJ07) $(VOBJ08) $(VOBJ09) $(VOBJ10) \
|
||||
$(VOBJ11) $(VOBJ12) $(VOBJ13) $(VOBJ14) $(VOBJ15) \
|
||||
$(VOBJ16) $(VOBJ17) $(VOBJ18) $(VOBJ19) $(VOBJ20) \
|
||||
$(VOBJ21) $(VOBJ22) $(VOBJ23) \
|
||||
$(CURSESOBJ)
|
||||
$(VOBJ21) $(VOBJ22) $(VOBJ23) $(VOBJ24) $(VOBJ25) \
|
||||
$(LUAOBJ) $(CURSESOBJ)
|
||||
|
||||
ALLOBJ = $(VOBJ) $(SOBJ) $(TILOBJ) $(TILOBJ2) $(VVOBJ)
|
||||
|
||||
ifeq "$(ADD_LUA)" "Y"
|
||||
#===============-=================================================
|
||||
# LUA library
|
||||
# Source from http://www.lua.org/ftp/lua-5.3.5.tar.gz
|
||||
#=================================================================
|
||||
|
||||
LUASRC = $(LUATOP)/src
|
||||
LUALIB = $(O)lua535s.a
|
||||
#LUADLL = $(O)lua535.a
|
||||
LUAINCL = -I$(LUASRC)
|
||||
#LUAFLAGS = unix added -lm here?
|
||||
LUATARGETS = lua.exe luac.exe $(LUALIB)
|
||||
#LUATARGETS = $(LUADLL) $(LUALIB)
|
||||
|
||||
LUASRCFILES = lapi.c lauxlib.c lbaselib.c lbitlib.c lcode.c \
|
||||
lcorolib.c lctype.c ldblib.c ldebug.c ldo.c \
|
||||
ldump.c lfunc.c lgc.c linit.c liolib.c llex.c \
|
||||
lmathlib.c lmem.c loadlib.c lobject.c lopcodes.c \
|
||||
loslib.c lparser.c lstate.c lstring.c lstrlib.c \
|
||||
ltable.c ltablib.c ltm.c lundump.c lutf8lib.c \
|
||||
lvm.c lzio.c
|
||||
|
||||
LUAOBJFILES1 = $(O)lapi.o $(O)lauxlib.o $(O)lbaselib.o $(O)lbitlib.o \
|
||||
$(O)lcode.o $(O)lcorolib.o $(O)lctype.o $(O)ldblib.o
|
||||
LUAOBJFILES2 = $(O)ldebug.o $(O)ldo.o $(O)ldump.o $(O)lfunc.o \
|
||||
$(O)lgc.o $(O)linit.o $(O)liolib.o $(O)llex.o
|
||||
LUAOBJFILES3 = $(O)lmathlib.o $(O)lmem.o $(O)loadlib.o $(O)lobject.o \
|
||||
$(O)lopcodes.o $(O)loslib.o $(O)lparser.o $(O)lstate.o
|
||||
LUAOBJFILES3 = $(O)lstring.o $(O)lstrlib.o $(O)ltable.o $(O)ltablib.o \
|
||||
$(O)ltm.o $(O)lundump.o $(O)lutf8lib.o $(O)lvm.o $(O)lzio.o
|
||||
|
||||
#LUAOBJFILES = $(O)lapi.o $(O)lauxlib.o $(O)lbaselib.o $(O)lbitlib.o \
|
||||
# $(O)lcode.o $(O)lcorolib.o $(O)lctype.o $(O)ldblib.o \
|
||||
# $(O)ldebug.o $(O)ldo.o $(O)ldump.o $(O)lfunc.o \
|
||||
# $(O)lgc.o $(O)linit.o $(O)liolib.o $(O)llex.o \
|
||||
# $(O)lmathlib.o $(O)lmem.o $(O)loadlib.o $(O)lobject.o \
|
||||
# $(O)lopcodes.o $(O)loslib.o $(O)lparser.o $(O)lstate.o \
|
||||
# $(O)lstring.o $(O)lstrlib.o $(O)ltable.o $(O)ltablib.o \
|
||||
# $(O)ltm.o $(O)lundump.o $(O)lutf8lib.o $(O)lvm.o $(O)lzio.o
|
||||
|
||||
LUALIBOBJS = $(LUAOBJFILES1) $(LUAOBJFILES2) $(LUAOBJFILES3) $(LUAOBJFILES4)
|
||||
endif
|
||||
|
||||
ifeq "$(ADD_CURSES)" "Y"
|
||||
#==========================================
|
||||
# PDCurses build macros
|
||||
@@ -419,11 +462,6 @@ DLB =
|
||||
DLBOBJS =
|
||||
endif
|
||||
|
||||
ifdef DJGPP
|
||||
DJ1 = $(dir $(DJGPP))
|
||||
CWSDPMI = $(subst /,\,$(DJ1))bin\CWSDPMI.*
|
||||
endif
|
||||
|
||||
#==========================================
|
||||
# More compiler setup macros
|
||||
#==========================================
|
||||
@@ -435,21 +473,21 @@ CURSESDEF=
|
||||
CURSESLIB=
|
||||
endif
|
||||
|
||||
INCLDIR=-I../include -I../sys/msdos
|
||||
INCLDIR=-I../include -I../sys/msdos $(LUAINCL)
|
||||
|
||||
# Debugging
|
||||
#cflags = -pg -c $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DSUPPRESS_GRAPHICS
|
||||
#cflags = -pg -c $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DSUPPRESS_GRAPHICS -DCROSSCOMPILE -DCROSSCOMPILE_TARGET
|
||||
#LFLAGS = -pg
|
||||
|
||||
cflags = -c -O $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DSUPPRESS_GRAPHICS
|
||||
LFLAGS =
|
||||
#cflags = -c -O $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DSUPPRESS_GRAPHICS -DCROSSCOMPILE-DCROSSCOMPILE_TARGET
|
||||
#LFLAGS =
|
||||
|
||||
# Debugging
|
||||
#cflags = -g -c $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DUSE_TILES
|
||||
#cflags = -g -c $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_TARGET
|
||||
#LFLAGS = -g
|
||||
|
||||
# Normal
|
||||
cflags = -c -O $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DUSE_TILES
|
||||
cflags = -c -O $(INCLDIR) $(DLBFLG) $(CURSESDEF) -DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_TARGET
|
||||
LFLAGS =
|
||||
|
||||
#==========================================
|
||||
@@ -523,6 +561,15 @@ $(OBJ)/%.o : $(PDCSRC)/%.c
|
||||
$(OBJ)/%.o : $(PDCDOS)/%.c
|
||||
$(TARGET_CC) $(PDCINCL) $(cflags) -o$@ $<
|
||||
|
||||
ifeq "$(ADD_LUA)" "Y"
|
||||
#==========================================
|
||||
# Rules for LUA files
|
||||
#==========================================
|
||||
|
||||
$(OBJ)/%.o : $(LUASRC)/%.c
|
||||
$(TARGET_CC) $(cflags) -o$@ $<
|
||||
endif
|
||||
|
||||
#==========================================
|
||||
# Primary Targets.
|
||||
#==========================================
|
||||
@@ -538,8 +585,6 @@ default: $(GAMEFILE)
|
||||
|
||||
util: $(O)utility.tag
|
||||
|
||||
#LEVCOMPEXE = $(U)lev_comp
|
||||
|
||||
$(O)utility.tag: $(INCL)/date.h $(INCL)/trap.h $(INCL)/onames.h \
|
||||
$(INCL)/pm.h vis_tab.c $(TILEUTIL)
|
||||
echo utilities made > $@
|
||||
@@ -553,201 +598,119 @@ recover.exe: $(U)recover
|
||||
|
||||
$(O)install.tag: $(DAT)/nhdat $(GAMEFILE)
|
||||
ifeq ($(USE_DLB),Y)
|
||||
cp $(DAT)/nhdat $(GAMEDIR)
|
||||
cp $(DAT)/license $(GAMEDIR)
|
||||
cp $(DAT)/nhdat $(GAMEDIR)/NHDAT
|
||||
cp $(DAT)/license $(GAMEDIR)/LICENSE
|
||||
else
|
||||
cp $(DAT)/*. $(GAMEDIR)
|
||||
cp $(DAT)/*.dat $(GAMEDIR)
|
||||
cp $(DAT)/*.lev $(GAMEDIR)
|
||||
cp $(MSYS)/msdoshlp.txt $(GAMEDIR))
|
||||
ifeq "$(ADD_LUA)" "Y"
|
||||
cp $(DAT)/*.lua $(GAMEDIR)
|
||||
endif
|
||||
endif
|
||||
ifdef TERMLIB
|
||||
cp $(SSHR)/termcap $(GAMEDIR))
|
||||
cp $(SSHR)/termcap $(GAMEDIR)/TERMCAP)
|
||||
endif
|
||||
# if [ -f $(TILE_BMP) ]; then rm $(TILE_BMP); fi;
|
||||
if [ -f $(TILE_BMP) ]; then cp $(TILE_BMP) $(GAMEDIR); fi;
|
||||
if [ -f $(DAT)/symbols ]; then cp $(DAT)/symbols $(GAMEDIR); fi;
|
||||
if [ -f $(SSHR)/NetHack.cnf ]; then cp $(SSHR)/NetHack.cnf $(GAMEDIR); fi;
|
||||
-touch $(GAMEDIR)/record
|
||||
if [ -f ../sys/winnt/sysconf ]; then cp ../sys/winnt/sysconf $(GAMEDIR); fi;
|
||||
if [ -f $(DOC)/nethack.txt ]; then cp $(DOC)/nethack.txt $(GAMEDIR); fi;
|
||||
ifdef CWSDPMI
|
||||
if [ -f $(CWSDPMI) ]; then cp $(CWSDPMI) $(GAMEDIR); fi;
|
||||
else
|
||||
@echo Could not find a copy of CWSDPMI.EXE to put into $(GAMEDIR)
|
||||
endif
|
||||
if [ -f $(TILE_BMP) ]; then cp $(TILE_BMP) $(GAMEDIR)/NHTILES.BMP; fi;
|
||||
if [ -f $(DAT)/symbols ]; then cp $(DAT)/symbols $(GAMEDIR)/SYMBOLS; fi;
|
||||
if [ -f $(SSHR)/NetHack.cnf ]; then cp $(SSHR)/NetHack.cnf $(GAMEDIR)/NETHACK.CNF; fi;
|
||||
-touch $(GAMEDIR)/RECORD
|
||||
if [ -f ../sys/winnt/sysconf ]; then cp ../sys/winnt/sysconf $(GAMEDIR)/SYSCONF; fi;
|
||||
if [ -f $(DOC)/nethack.txt ]; then cp $(DOC)/nethack.txt $(GAMEDIR)/NETHACK.TXT; fi;
|
||||
# if [ -f $(PLANAR_TIB) ]; then cp $(PLANAR_TIB) $(GAMEDIR)/$(PLANAR_TIB^^); fi;
|
||||
# if [ -f $(OVERVIEW_TIB ]; then cp $(OVERVIEW_TIB) $(GAMEDIR)/$(OVERVIEW_TIB^^); fi;
|
||||
@echo install done > $@
|
||||
|
||||
#==========================================
|
||||
# The main target.
|
||||
#==========================================
|
||||
|
||||
$(GAMEFILE): $(O)obj.tag $(PATCHLEV_H) $(PDCLIB) \
|
||||
$(GAMEFILE): $(O)obj.tag $(PDCLIB) $(LUALIB) \
|
||||
$(O)utility.tag $(ALLOBJ) $(O)$(GAME).lnk
|
||||
if [ -f temp.a ]; then rm temp.a; fi;
|
||||
@ar r temp.a $(VOBJ01)
|
||||
@ar r temp.a $(VOBJ02)
|
||||
@ar r temp.a $(VOBJ03)
|
||||
@ar r temp.a $(VOBJ04)
|
||||
@ar r temp.a $(VOBJ05)
|
||||
@ar r temp.a $(VOBJ06)
|
||||
@ar r temp.a $(VOBJ07)
|
||||
@ar r temp.a $(VOBJ08)
|
||||
@ar r temp.a $(VOBJ09)
|
||||
@ar r temp.a $(VOBJ10)
|
||||
@ar r temp.a $(VOBJ11)
|
||||
@ar r temp.a $(VOBJ12)
|
||||
@ar r temp.a $(VOBJ13)
|
||||
@ar r temp.a $(VOBJ14)
|
||||
@ar r temp.a $(VOBJ15)
|
||||
@ar r temp.a $(VOBJ16)
|
||||
@ar r temp.a $(VOBJ17)
|
||||
@ar r temp.a $(VOBJ18)
|
||||
@ar r temp.a $(VOBJ19)
|
||||
@ar r temp.a $(VOBJ20)
|
||||
@ar r temp.a $(VOBJ21)
|
||||
@ar r temp.a $(VOBJ22)
|
||||
@ar r temp.a $(VOBJ23)
|
||||
@ar r temp.a $(VOBJ24)
|
||||
@ar r temp.a $(VOBJ25)
|
||||
@ar r temp.a $(SOBJ)
|
||||
@ar r temp.a $(TILOBJ)
|
||||
@ar r temp.a $(TILOBJ2)
|
||||
@ar r temp.a $(VVOBJ)
|
||||
ifeq "$(ADD_CURSES)" "Y"
|
||||
@ar r temp.a $(CURSESOBJ)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ01)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ02)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ03)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ04)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ05)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ06)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ07)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ08)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ09)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ10)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ11)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ12)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ13)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ14)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ15)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ16)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ17)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ18)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ19)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ20)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ21)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ22)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ23)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ24)
|
||||
@$(TARGET_AR) r temp.a $(VOBJ25)
|
||||
@$(TARGET_AR) r temp.a $(VIDEO_OBJ)
|
||||
@$(TARGET_AR) r temp.a $(SOBJ)
|
||||
@$(TARGET_AR) r temp.a $(TILOBJ)
|
||||
@$(TARGET_AR) r temp.a $(TILOBJ2)
|
||||
ifeq "$(ADD_LUA)" "Y"
|
||||
@$(TARGET_AR) r temp.a $(LUAOBJ)
|
||||
endif
|
||||
$(TARGET_LINK) $(LFLAGS) -o$(GAME).exe temp.a $(PDCLIB) $(LIBRARIES) $(ZLIB)
|
||||
@$(TARGET_AR) r temp.a $(VVOBJ)
|
||||
ifeq "$(ADD_CURSES)" "Y"
|
||||
@$(TARGET_AR) r temp.a $(CURSESOBJ)
|
||||
endif
|
||||
$(TARGET_LINK) $(LFLAGS) -o$(GAME).exe temp.a $(PDCLIB) $(LUALIB) $(LIBRARIES) $(ZLIB)
|
||||
$(TARGET_STUBEDIT) $(GAME).exe minstack=2048K
|
||||
cp $(GAME).exe $(GAMEFILE)
|
||||
rm $(GAME).exe
|
||||
|
||||
$(O)$(GAME).lnk: $(ALLOBJ)
|
||||
echo $(VOBJ01) > $(subst /,\,$@)
|
||||
echo $(VOBJ02) >> $(subst /,\,$@)
|
||||
echo $(VOBJ03) >> $(subst /,\,$@)
|
||||
echo $(VOBJ04) >> $(subst /,\,$@)
|
||||
echo $(VOBJ05) >> $(subst /,\,$@)
|
||||
echo $(VOBJ06) >> $(subst /,\,$@)
|
||||
echo $(VOBJ07) >> $(subst /,\,$@)
|
||||
echo $(VOBJ08) >> $(subst /,\,$@)
|
||||
echo $(VOBJ09) >> $(subst /,\,$@)
|
||||
echo $(VOBJ10) >> $(subst /,\,$@)
|
||||
echo $(VOBJ11) >> $(subst /,\,$@)
|
||||
echo $(VOBJ12) >> $(subst /,\,$@)
|
||||
echo $(VOBJ13) >> $(subst /,\,$@)
|
||||
echo $(VOBJ14) >> $(subst /,\,$@)
|
||||
echo $(VOBJ15) >> $(subst /,\,$@)
|
||||
echo $(VOBJ16) >> $(subst /,\,$@)
|
||||
echo $(VOBJ17) >> $(subst /,\,$@)
|
||||
echo $(VOBJ18) >> $(subst /,\,$@)
|
||||
echo $(VOBJ19) >> $(subst /,\,$@)
|
||||
echo $(VOBJ20) >> $(subst /,\,$@)
|
||||
echo $(VOBJ21) >> $(subst /,\,$@)
|
||||
echo $(VOBJ22) >> $(subst /,\,$@)
|
||||
echo $(VOBJ23) >> $(subst /,\,$@)
|
||||
echo $(VOBJ24) >> $(subst /,\,$@)
|
||||
echo $(VOBJ25) >> $(subst /,\,$@)
|
||||
echo $(SOBJ) >> $(subst /,\,$@)
|
||||
echo $(TILOBJ) >> $(subst /,\,$@)
|
||||
echo $(TILOBJ2) >> $(subst /,\,$@)
|
||||
echo $(VVOBJ) >> $(subst /,\,$@)
|
||||
echo $(VOBJ01) > $@
|
||||
echo $(VOBJ02) >> $@
|
||||
echo $(VOBJ03) >> $@
|
||||
echo $(VOBJ04) >> $@
|
||||
echo $(VOBJ05) >> $@
|
||||
echo $(VOBJ06) >> $@
|
||||
echo $(VOBJ07) >> $@
|
||||
echo $(VOBJ08) >> $@
|
||||
echo $(VOBJ09) >> $@
|
||||
echo $(VOBJ10) >> $@
|
||||
echo $(VOBJ11) >> $@
|
||||
echo $(VOBJ12) >> $@
|
||||
echo $(VOBJ13) >> $@
|
||||
echo $(VOBJ14) >> $@
|
||||
echo $(VOBJ15) >> $@
|
||||
echo $(VOBJ16) >> $@
|
||||
echo $(VOBJ17) >> $@
|
||||
echo $(VOBJ18) >> $@
|
||||
echo $(VOBJ19) >> $@
|
||||
echo $(VOBJ20) >> $@
|
||||
echo $(VOBJ21) >> $@
|
||||
echo $(VOBJ22) >> $@
|
||||
echo $(VOBJ23) >> $@
|
||||
echo $(VOBJ24) >> $@
|
||||
echo $(VOBJ25) >> $@
|
||||
echo $(SOBJ) >> $@
|
||||
echo $(TILOBJ) >> $@
|
||||
echo $(TILOBJ2) >> $@
|
||||
ifeq "$(ADD_LUA)" "Y"
|
||||
echo $(LUAOBJ) >> $@
|
||||
endif
|
||||
echo $(VVOBJ) >> $@
|
||||
ifeq "$(ADD_CURSES)" "Y"
|
||||
echo $(CURSESOBJ) >> $(subst /,\,$@)
|
||||
echo $(CURSESOBJ) >> $@
|
||||
endif
|
||||
|
||||
#==========================================
|
||||
#=========== SECONDARY TARGETS ============
|
||||
#==========================================
|
||||
#
|
||||
# The following include files depend on makedefs to be created.
|
||||
#
|
||||
# date.h should be remade every time any of the source or include
|
||||
# files is modified.
|
||||
#
|
||||
#
|
||||
#$(INCL)/date.h : $(U)makedefs
|
||||
# -$(U)makedefs -v
|
||||
#
|
||||
#$(INCL)/onames.h: $(U)makedefs
|
||||
# -$(U)makedefs -o
|
||||
#
|
||||
#$(INCL)/pm.h: $(U)makedefs
|
||||
# -$(U)makedefs -p
|
||||
#
|
||||
#monstr.c: $(U)makedefs
|
||||
# -$(U)makedefs -m
|
||||
#
|
||||
#$(INCL)/vis_tab.h: $(U)makedefs
|
||||
# -$(U)makedefs -z
|
||||
#
|
||||
#vis_tab.c: $(U)makedefs
|
||||
# -$(U)makedefs -z
|
||||
#
|
||||
#==========================================
|
||||
# Level Compiler Dependencies
|
||||
#==========================================
|
||||
#
|
||||
#$(U)lev_comp: $(SPLEVOBJS)
|
||||
# -rm -f temp.a
|
||||
# @ar ru temp.a $(SPLEVOBJS)
|
||||
# $(HOST_LINK) $(LFLAGS) -o$@ temp.a
|
||||
#
|
||||
#$(HOST_O)lev_yacc.o: $(HACK_H) $(SP_LEV_H) $(INCL)/lev_comp.h $(U)lev_yacc.c
|
||||
# $(HOST_CC) $(cflags) -o$@ $(U)lev_yacc.c
|
||||
#
|
||||
#$(HOST_O)lev_$(LEX).o: $(HACK_H) $(SP_LEV_H) $(INCL)/lev_comp.h \
|
||||
# $(U)lev_$(LEX).c
|
||||
# $(HOST_CC) $(cflags) -o$@ $(U)lev_$(LEX).c
|
||||
#
|
||||
#$(HOST_O)lev_main.o: $(HACK_H) $(INCL)/sp_lev.h $(INCL)/date.h $(U)lev_main.c
|
||||
#
|
||||
#$(U)lev_yacc.c: $(SSHR)/lev_yacc.c
|
||||
# @echo ---
|
||||
# @echo For now, we will copy the prebuilt
|
||||
# @echo lev_comp.c from $(SSHR) into $(U) and use that.
|
||||
# @cp $(SSHR)/lev_yacc.c $(U)lev_yacc.c
|
||||
# @echo.>>$(U)lev_yacc.c
|
||||
#
|
||||
#$(INCL)/lev_comp.h : $(SSHR)/lev_comp.h
|
||||
# @echo For now, we will copy the prebuilt lev_comp.h
|
||||
# @echo from $(SSHR) into $(INCL) and use that.
|
||||
# @cp $(SSHR)/lev_comp.h $@
|
||||
#$(U)lev_lex.c: $(SSHR)/lev_lex.c
|
||||
# @echo.>>$(INCL)/lev_comp.h
|
||||
# @echo For now, we will copy the prebuilt lev_lex.c
|
||||
# @echo from $(SSHR) into $(U) and use it.
|
||||
# @cp $(SSHR)/lev_lex.c $@
|
||||
# @echo.>>$@
|
||||
#
|
||||
#==========================================
|
||||
# Dungeon Dependencies
|
||||
#==========================================
|
||||
#
|
||||
#$(U)dgn_comp: $(DGNCOMPOBJS)
|
||||
# $(HOST_LINK) $(LFLAGS) -o$@ $(DGNCOMPOBJS)
|
||||
#
|
||||
#$(U)dgn_yacc.c: $(SSHR)/dgn_yacc.c
|
||||
# @echo ---
|
||||
# @echo For now, we will copy the prebuilt $(U)dgn_yacc.c and
|
||||
# @echo dgn_comp.h from $(SSHR) into $(U) and use that.
|
||||
# @cp $(SSHR)/dgn_yacc.c $(U)dgn_yacc.c
|
||||
# @echo.>>$(U)dgn_yacc.c
|
||||
#
|
||||
#$(INCL)/dgn_comp.h: $(SSHR)/dgn_comp.h
|
||||
# @echo ---
|
||||
# @echo For now, we will copy the prebuilt dgn_comp.h
|
||||
# @echo from $(SSHR) into $(INCL) and use that.
|
||||
# @cp $(SSHR)/dgn_comp.h $@
|
||||
# @echo.>>$(INCL)/dgn_comp.h
|
||||
#
|
||||
#$(U)dgn_$(LEX).c: $(SSHR)/dgn_lex.c $(INCL)/dgn_comp.h
|
||||
# @echo ---
|
||||
# @echo For now, we will copy the prebuilt dgn_lex.c
|
||||
# @echo from $(SSHR) into $(U) and use it.
|
||||
# @cp $(SSHR)/dgn_lex.c $@
|
||||
# @echo.>>$@
|
||||
|
||||
#==========================================
|
||||
# Recover Utility
|
||||
#==========================================
|
||||
@@ -810,109 +773,32 @@ $(O)objects.o: $(CONFIG_H) $(INCL)/obj.h $(INCL)/objclass.h \
|
||||
$(O)dat.tag: $(DAT)/nhdat
|
||||
@echo dat done >$@
|
||||
|
||||
#$(HOST_O)monst.o: $(CONFIG_H) $(PERMONST_H) $(INCL)/monsym.h \
|
||||
# $(INCL)/color.h monst.c
|
||||
# $(HOST_CC) $(cflags) -o$@ monst.c
|
||||
#=============================================================
|
||||
# Lua
|
||||
#=============================================================
|
||||
|
||||
#$(HOST_O)objects.o: $(CONFIG_H) $(INCL)/obj.h $(INCL)/objclass.h \
|
||||
# $(INCL)/prop.h $(INCL)/color.h objects.c
|
||||
# $(HOST_CC) $(cflags) -o$@ objects.c
|
||||
lua.exe: $(O)lua.o $(LUALIB)
|
||||
$(TARGET_LINK) $(LFLAGS) -o$@ $(O)lua.o $(LUALIB)
|
||||
|
||||
#$(O)panic.o: $(CONFIG_H) $(U)panic.c
|
||||
luac.exe: $(O)luac.o $(LUALIB)
|
||||
$(TARGET_LINK) $(LFLAGSU) -o$@ $(O)luac.o $(LUALIB)
|
||||
|
||||
# make data.base an 8.3 filename to prevent an make warning
|
||||
#DATABASE = $(DAT)/data.bas
|
||||
#
|
||||
#
|
||||
#
|
||||
#$(DAT)/data: $(O)utility.tag $(DATABASE)
|
||||
# $(U)makedefs -d
|
||||
#
|
||||
#$(DAT)/rumors: $(O)utility.tag $(DAT)/rumors.tru $(DAT)/rumors.fal
|
||||
# $(U)makedefs -r
|
||||
#
|
||||
#$(DAT)/quest.dat: $(O)utility.tag $(DAT)/quest.txt
|
||||
# $(U)makedefs -q
|
||||
#
|
||||
#$(DAT)/oracles: $(O)utility.tag $(DAT)/oracles.txt
|
||||
# $(U)makedefs -h
|
||||
#
|
||||
#$(DAT)/bogusmon: $(O)utility.tag $(DAT)/bogusmon.txt
|
||||
# $(U)makedefs -s
|
||||
#
|
||||
#$(DAT)/engrave: $(O)utility.tag $(DAT)/engrave.txt
|
||||
# $(U)makedefs -s
|
||||
#
|
||||
#$(DAT)/epitaph: $(O)utility.tag $(DAT)/epitaph.txt
|
||||
# $(U)makedefs -s
|
||||
#
|
||||
#$(O)sp_lev.tag: $(O)utility.tag \
|
||||
# $(DAT)/bigroom.des $(DAT)/castle.des \
|
||||
# $(DAT)/endgame.des $(DAT)/gehennom.des $(DAT)/knox.des \
|
||||
# $(DAT)/medusa.des $(DAT)/oracle.des $(DAT)/tower.des \
|
||||
# $(DAT)/yendor.des $(DAT)/arch.des $(DAT)/barb.des \
|
||||
# $(DAT)/caveman.des $(DAT)/healer.des $(DAT)/knight.des \
|
||||
# $(DAT)/monk.des $(DAT)/priest.des $(DAT)/ranger.des \
|
||||
# $(DAT)/rogue.des $(DAT)/samurai.des $(DAT)/tourist.des \
|
||||
# $(DAT)/valkyrie.des $(DAT)/wizard.des
|
||||
# cd $(DAT)
|
||||
# $(U)lev_comp bigroom.des
|
||||
# $(U)lev_comp castle.des
|
||||
# $(U)lev_comp endgame.des
|
||||
# $(U)lev_comp gehennom.des
|
||||
# $(U)lev_comp knox.des
|
||||
# $(U)lev_comp mines.des
|
||||
# $(U)lev_comp medusa.des
|
||||
# $(U)lev_comp oracle.des
|
||||
# $(U)lev_comp sokoban.des
|
||||
# $(U)lev_comp tower.des
|
||||
# $(U)lev_comp yendor.des
|
||||
# $(U)lev_comp arch.des
|
||||
# $(U)lev_comp barb.des
|
||||
# $(U)lev_comp caveman.des
|
||||
# $(U)lev_comp healer.des
|
||||
# $(U)lev_comp knight.des
|
||||
# $(U)lev_comp monk.des
|
||||
# $(U)lev_comp priest.des
|
||||
# $(U)lev_comp ranger.des
|
||||
# $(U)lev_comp rogue.des
|
||||
# $(U)lev_comp samurai.des
|
||||
# $(U)lev_comp tourist.des
|
||||
# $(U)lev_comp valkyrie.des
|
||||
# $(U)lev_comp wizard.des
|
||||
# cd $(SRC)
|
||||
# echo sp_levs done > $@
|
||||
#
|
||||
#$(DAT)/dungeon: $(O)utility.tag $(DAT)/dungeon.def
|
||||
# $(U)makedefs -e
|
||||
# cd $(DAT)
|
||||
# $(U)dgn_comp dungeon.pdf
|
||||
# cd $(SRC)
|
||||
$(O)lua.o: $(LUASRC)/lua.c
|
||||
$(O)luac.o: $(LUASRC)/luac.c
|
||||
|
||||
#==========================================
|
||||
# DLB stuff
|
||||
# Lua lib
|
||||
#==========================================
|
||||
|
||||
#note that dir below assumes bin/dir from djgpp distribution
|
||||
#
|
||||
#$(DAT)/nhdat: $(U)dlb_main $(DAT)/data $(DAT)/rumors $(DAT)/dungeon \
|
||||
# $(DAT)/oracles $(DAT)/quest.dat $(O)sp_lev.tag \
|
||||
# $(DAT)/bogusmon $(DAT)/engrave $(DAT)/epitaph $(DAT)/tribute
|
||||
# echo dat done >$(O)dat.tag
|
||||
# cd $(DAT)
|
||||
# copy $(MSYS)/msdoshlp.txt .
|
||||
# @$(LS) data dungeon oracles options quest.dat rumors help hh >dlb.lst
|
||||
# @$(LS) cmdhelp history opthelp wizhelp license msdoshlp.txt >>dlb.lst
|
||||
# @$(LS) bogusmon engrave epitaph tribute >>dlb.lst
|
||||
# $(LS) $(subst /,\,*.lev) >>dlb.lst
|
||||
# $(U)dlb_main cvIf dlb.lst nhdat
|
||||
# cd $(SRC)
|
||||
#
|
||||
#$(U)dlb_main: $(DLBOBJS)
|
||||
# $(HOST_LINK) $(LFLAGS) -o$@ $(DLBOBJS)
|
||||
#
|
||||
#$(HOST_O)dlb_main.o: $(U)dlb_main.c $(INCL)/config.h $(DLB_H)
|
||||
# $(HOST_CC) $(cflags) -o$@ $(U)dlb_main.c
|
||||
$(LUALIB): $(LUALIBOBJS)
|
||||
$(TARGET_AR) rcS $@ $(LUAOBJFILES1)
|
||||
$(TARGET_AR) rcS $@ $(LUAOBJFILES2)
|
||||
$(TARGET_AR) rcS $@ $(LUAOBJFILES3)
|
||||
$(TARGET_AR) rcS $@ $(LUAOBJFILES4)
|
||||
|
||||
#$(LUADLL): $(LUALIBOBJS)
|
||||
# $(TARGET_CC) -shared -Wl,--export-all-symbols \
|
||||
# -Wl,--add-stdcall-alias -o $@ $<
|
||||
|
||||
#==========================================
|
||||
# Housekeeping.
|
||||
@@ -927,24 +813,17 @@ clean:
|
||||
|
||||
spotless: clean
|
||||
|
||||
if [ -f dgn_flex.c ]; then rm dgn_flex.c; fi;
|
||||
if [ -f dgn_lex.c ]; then rm dgn_lex.c; fi;
|
||||
if [ -f $(U)dgn_comp.exe ]; then rm $(U)dgn_comp.exe; fi;
|
||||
if [ -f $(U)recover.exe ]; then rm $(U)recover.exe; fi;
|
||||
if [ -f $(INCL)/vis_tab.h ]; then rm $(INCL)/vis_tab.h; fi;
|
||||
if [ -f $(INCL)/onames.h ]; then rm $(INCL)/onames.h; fi;
|
||||
if [ -f $(INCL)/pm.h ]; then rm $(INCL)/pm.h; fi;
|
||||
if [ -f $(INCL)/date.h ]; then rm $(INCL)/date.h; fi;
|
||||
if [ -f $(INCL)/dgn_comp.h ]; then rm $(INCL)/dgn_comp.h; fi;
|
||||
if [ -f $(INCL)/lev_comp.h ]; then rm $(INCL)/lev_comp.h; fi;
|
||||
# if [ -f $(SRC)/monstr.c ]; then rm $(SRC)/monstr.c; fi;
|
||||
if [ -f $(SRC)/vis_tab.c ]; then rm $(SRC)/vis_tab.c; fi;
|
||||
if [ -f $(SRC)/tile.c ]; then rm $(SRC)/tile.c; fi;
|
||||
if [ -f $(DAT)/options ]; then rm $(DAT)/options; fi;
|
||||
if [ -f $(DAT)/data ]; then rm $(DAT)/data; fi;
|
||||
if [ -f $(DAT)/rumors ]; then rm $(DAT)/rumors; fi;
|
||||
if [ -f $(DAT)/dungeon.pdf ]; then rm $(DAT)/dungeon.pdf; fi;
|
||||
if [ -f $(DAT)/dungeon ]; then rm $(DAT)/dungeon; fi;
|
||||
if [ -f $(DAT)/oracles ]; then rm $(DAT)/oracles; fi;
|
||||
if [ -f $(DAT)/quest.dat ]; then rm $(DAT)/quest.dat; fi;
|
||||
if [ -f $(DAT)/bogusmon ]; then rm $(DAT)/bogusmon; fi;
|
||||
@@ -952,10 +831,11 @@ spotless: clean
|
||||
if [ -f $(DAT)/epitaph ]; then rm $(DAT)/epitaph; fi;
|
||||
if [ -f $(DAT)/dlb.lst ]; then rm $(DAT)/dlb.lst; fi;
|
||||
if [ -f $(TILE_BMP) ]; then rm $(TILE_BMP); fi;
|
||||
if [ -f $(PLANAR_TIB) ]; then rm $(PLANAR_TIB); fi;
|
||||
if [ -f $(OVERVIEW_TIB) ]; then rm $(OVERVIEW_TIB); fi;
|
||||
if [ -f $(WSHR)/monthin.txt ]; then rm $(WSHR)/monthin.txt; fi;
|
||||
if [ -f $(WSHR)/objthin.txt ]; then rm $(WSHR)/objthin.txt; fi;
|
||||
if [ -f $(WSHR)/oththin.txt ]; then rm $(WSHR)/oththin.txt; fi;
|
||||
-rm $(DAT)/*.lev
|
||||
|
||||
#==========================================
|
||||
# Create directory for holding object files
|
||||
@@ -1077,8 +957,8 @@ $(O)wintext.o: ../win/X11/wintext.c $(HACK_H) $(INCL)/winX.h $(INCL)/xwindow.h
|
||||
$(TARGET_CC) $(cflags) -o$@ ../win/X11/wintext.c
|
||||
$(O)winval.o: ../win/X11/winval.c $(HACK_H) $(INCL)/winX.h
|
||||
$(TARGET_CC) $(cflags) -o$@ ../win/X11/winval.c
|
||||
$(O)tile.o: tile.c $(HACK_H)
|
||||
$(HOST_O)tile.o: tile.c $(HACK_H)
|
||||
#$(O)tile.o: tile.c $(HACK_H)
|
||||
#$(HOST_O)tile.o: tile.c $(HACK_H)
|
||||
$(O)gnaskstr.o: ../win/gnome/gnaskstr.c ../win/gnome/gnaskstr.h \
|
||||
../win/gnome/gnmain.h
|
||||
$(TARGET_CC) $(cflags) $(GNOMEINC) -o$@ ../win/gnome/gnaskstr.c
|
||||
@@ -1130,7 +1010,6 @@ $(O)load_img.o: ../win/gem/load_img.c $(INCL)/load_img.h
|
||||
$(TARGET_CC) $(cflags) -o$@ ../win/gem/load_img.c
|
||||
$(O)gr_rect.o: ../win/gem/gr_rect.c $(INCL)/gr_rect.h
|
||||
$(TARGET_CC) $(cflags) -o$@ ../win/gem/gr_rect.c
|
||||
$(O)tile.o: tile.c $(HACK_H)
|
||||
$(O)qt_win.o: ../win/Qt/qt_win.cpp $(HACK_H) $(INCL)/func_tab.h \
|
||||
$(INCL)/dlb.h $(PATCHLEV_H) $(INCL)/tile2x11.h \
|
||||
$(INCL)/qt_win.h $(INCL)/qt_clust.h $(INCL)/qt_kde0.h \
|
||||
|
||||
60
sys/msdos/msdos-cross-compile.sh
Normal file
60
sys/msdos/msdos-cross-compile.sh
Normal file
@@ -0,0 +1,60 @@
|
||||
#!/bin/sh
|
||||
if [ -z "$TRAVIS_BUIILD_DIR" ]; then
|
||||
export DJGPP_TOP=$(pwd)/djgpp
|
||||
else
|
||||
export DJGPP_TOP="$TRAVIS_BUILD_DIR/djgpp"
|
||||
fi
|
||||
export
|
||||
cd util
|
||||
if [ ! -d ../djgpp/i586-pc-msdosdjgpp ]; then
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
#Mac
|
||||
wget --no-hsts https://github.com/andrewwutw/build-djgpp/releases/download/v2.9/djgpp-osx-gcc550.tar.bz2
|
||||
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
|
||||
#Linux
|
||||
wget --no-hsts https://github.com/andrewwutw/build-djgpp/releases/download/v2.9/djgpp-linux64-gcc550.tar.bz2
|
||||
elif [ "$(expr substr $(uname -s) 1 10)" = "MINGW32_NT" ]; then
|
||||
#mingw
|
||||
wget --no-hsts https://github.com/andrewwutw/build-djgpp/releases/download/v2.9/djgpp-mingw-gcc550-standalone.zip
|
||||
fi
|
||||
if [ ! -d djgpp/i586-pc-msdosdjgpp ]; then
|
||||
tar xjf util/djgpp-linux64-gcc550.tar.bz2
|
||||
fi
|
||||
fi
|
||||
cd ../
|
||||
# PDCurses
|
||||
if [ ! -d "../pdcurses" ]; then
|
||||
echo "Getting ../pdcurses from https://github.com/wmcbrine/PDCurses.git"
|
||||
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git ../pdcurses
|
||||
fi
|
||||
cd djgpp
|
||||
# DOS-extender for use with djgpp
|
||||
if [ ! -d cwsdpmi ]; then
|
||||
wget --no-hsts http://sandmann.dotster.com/cwsdpmi/csdpmi7b.zip
|
||||
mkdir -p cwsdpmi
|
||||
cd cwsdpmi
|
||||
unzip ../csdpmi7b.zip
|
||||
cd ../
|
||||
rm csdpmi7b.zip
|
||||
fi
|
||||
cd ../src
|
||||
pwd
|
||||
mkdir -p ../binary
|
||||
cp ../dat/data.base ../dat/data.bas
|
||||
cp ../include/patchlevel.h ../include/patchlev.h
|
||||
cp ../doc/Guidebook.txt ../doc/guidebk.txt
|
||||
cp ../sys/share/posixregex.c ../sys/share/posixreg.c
|
||||
cp ../sys/msdos/Makefile1.cross ../src/Makefile1
|
||||
cp ../sys/msdos/Makefile2.cross ../src/Makefile2
|
||||
make -f Makefile1
|
||||
cat ../include/date.h
|
||||
export GCC_EXEC_PREFIX=$DJGPP_TOP/lib/gcc/
|
||||
export
|
||||
pwd
|
||||
make -f Makefile2
|
||||
unset GCC_EXEC_PREFIX
|
||||
if [ -f $TRAVIS_BUILD_DIR/djgpp/cwsdpmi/bin/cwsdpmi.exe ]; then
|
||||
cp $TRAVIS_BUILD_DIR/djgpp/cwsdpmi/bin/cwsdpmi.exe ../binary/CWSDPMI.EXE;
|
||||
fi
|
||||
ls -l ../binary
|
||||
|
||||
@@ -145,6 +145,12 @@ DEBUGINFO = Y
|
||||
#
|
||||
LUATOP=..\..\lua-5.3.5
|
||||
#
|
||||
#
|
||||
#==============================================================================
|
||||
#
|
||||
#TEST_CROSSCOMPILE=Y
|
||||
#OPTIONS_AT_RUNTIME=Y
|
||||
#
|
||||
#==============================================================================
|
||||
#======================== End of Modification Section =========================
|
||||
#==============================================================================
|
||||
@@ -314,6 +320,28 @@ REGEX = $(O)cppregex.o
|
||||
|
||||
TTYOBJ = $(O)topl.o $(O)getline.o $(O)wintty.o
|
||||
|
||||
!IFDEF TEST_CROSSCOMPILE
|
||||
CROSSDEFINE_TARGET = -DCROSSCOMPILE_TARGET
|
||||
CROSSDEFINE_HOST = -DCROSSCOMPILE_HOST
|
||||
CROSSCOMPILE = -DCROSSCOMPILE
|
||||
CROSSDEFINES = $(CROSSCOMPILE) $(CROSSDEFINE_HOST) $(CROSSDEFINE_TARGET)
|
||||
OPTIONS_AT_RUNTIME=Y
|
||||
!ELSE
|
||||
CROSSDEFINE_TARGET =
|
||||
CROSSDEFINE_HOST =
|
||||
CROSSCOMPILE =
|
||||
CROSSDEFINES =
|
||||
CROSSDEFINES =
|
||||
!ENDIF
|
||||
|
||||
!IF "$(OPTIONS_AT_RUNTIME)" == "Y"
|
||||
MDLIB = $(O)mdlib.o
|
||||
RUNTIMEOPTDEF=-DOPTIONS_AT_RUNTIME
|
||||
!ELSE
|
||||
MDLIB =
|
||||
RUNTIMEOPTDEF=
|
||||
!ENDIF
|
||||
|
||||
!IFNDEF ADD_CURSES
|
||||
CURSESOBJ=
|
||||
!ELSE
|
||||
@@ -330,7 +358,7 @@ OBJS = $(VOBJ01) $(VOBJ02) $(VOBJ03) $(VOBJ04) $(VOBJ05) \
|
||||
$(VOBJ16) $(VOBJ17) $(VOBJ18) $(VOBJ19) $(VOBJ20) \
|
||||
$(VOBJ21) $(VOBJ22) $(VOBJ23) $(VOBJ24) $(VOBJ25) \
|
||||
$(VOBJ26) $(VOBJ27) $(VOBJ28) $(VOBJ29) $(VOBJ30) \
|
||||
$(REGEX) $(CURSESOBJ)
|
||||
$(REGEX) $(CURSESOBJ) $(MDLIB)
|
||||
|
||||
GUIOBJ = $(O)mhaskyn.o $(O)mhdlg.o \
|
||||
$(O)mhfont.o $(O)mhinput.o $(O)mhmain.o $(O)mhmap.o \
|
||||
@@ -608,7 +636,7 @@ CURSESLIB=
|
||||
ccommon= -c -nologo -D"_CONSOLE" -D"_CRT_NONSTDC_NO_DEPRECATE" -D"_CRT_SECURE_NO_DEPRECATE" \
|
||||
-D"_LIB" -D"_SCL_SECURE_NO_DEPRECATE" -D"_VC80_UPGRADE=0x0600" -D"DLB" -D"_MBCS" \
|
||||
-DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -D"NDEBUG" -D"YY_NO_UNISTD_H" \
|
||||
-DHAS_STDINT_H -DHAS_INLINE $(CURSESDEF) \
|
||||
-DHAS_STDINT_H -DHAS_INLINE $(CURSESDEF) $(RUNTIMEOPTDEF) \
|
||||
-EHsc -fp:precise -Gd -GF -GS -Gy \
|
||||
$(CL_RECENT) -WX- -Zc:forScope -Zc:wchar_t -Zi
|
||||
cdebug= -analyze- -D"_DEBUG" -MTd -RTC1 -Od
|
||||
@@ -708,20 +736,20 @@ DLB =
|
||||
#==========================================
|
||||
|
||||
.c{$(OBJ)}.o:
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
{$(SRC)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
#==========================================
|
||||
# Rules for files in sys\share
|
||||
#==========================================
|
||||
|
||||
{$(SSYS)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
{$(SSYS)}.cpp{$(OBJ)}.o:
|
||||
@$(cc) $(cflagsBuild) /EHsc -Fo$@ $<
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) /EHsc -Fo$@ $<
|
||||
|
||||
#==========================================
|
||||
# Rules for files in sys\winnt
|
||||
@@ -738,14 +766,14 @@ DLB =
|
||||
#==========================================
|
||||
|
||||
{$(UTIL)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
#==========================================
|
||||
# Rules for files in win\share
|
||||
#==========================================
|
||||
|
||||
{$(WSHR)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
{$(WSHR)}.h{$(INCL)}.h:
|
||||
@copy $< $@
|
||||
@@ -758,7 +786,7 @@ DLB =
|
||||
#==========================================
|
||||
|
||||
{$(TTY)}.c{$(OBJ)}.o:
|
||||
$(cc) $(cflagsBuild) -Fo$@ $<
|
||||
$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
|
||||
#==========================================
|
||||
@@ -766,14 +794,14 @@ DLB =
|
||||
#==========================================
|
||||
|
||||
{$(MSWIN)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $<
|
||||
$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
#==========================================
|
||||
# Rules for files in win\curses
|
||||
#==========================================
|
||||
|
||||
{$(WCURSES)}.c{$(OBJ)}.o:
|
||||
@$(cc) -DPDC_NCMOUSE $(PDCINCL) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) -DPDC_NCMOUSE $(PDCINCL) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
#{$(WCURSES)}.txt{$(DAT)}.txt:
|
||||
# @copy $< $@
|
||||
@@ -783,20 +811,20 @@ DLB =
|
||||
#==========================================
|
||||
|
||||
{$(PDCURSES_TOP)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(PDCINCL) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(PDCINCL) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
{$(PDCSRC)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(PDCINCL) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(PDCINCL) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
{$(PDCWINCON)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(PDCINCL) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(PDCINCL) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
#==========================================
|
||||
# Rules for LUA files
|
||||
#==========================================
|
||||
|
||||
{$(LUASRC)}.c{$(OBJ)}.o:
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $<
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $<
|
||||
|
||||
#==========================================
|
||||
#=============== TARGETS ==================
|
||||
@@ -1063,7 +1091,7 @@ $(U)nhsizes.exe: $(O)nhsizes.o
|
||||
$(link) $(lflagsBuild) -out:$@ $(O)nhsizes.o $(O)panic.o $(O)alloc.o
|
||||
|
||||
$(O)nhsizes.o: $(CONFIG_H) nhsizes.c
|
||||
@$(cc) $(cflagsBuild) -Fo$@ nhsizes.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ nhsizes.c
|
||||
|
||||
$(U)makedefs.exe: $(MAKEOBJS)
|
||||
@echo Linking $(@:\=/)
|
||||
@@ -1074,7 +1102,8 @@ $(O)makedefs.o: $(CONFIG_H) $(INCL)\monattk.h $(INCL)\monflag.h $(INCL)\objcla
|
||||
$(U)makedefs.c
|
||||
@if not exist $(OBJ)\*.* echo creating directory $(OBJ:\=/)
|
||||
@if not exist $(OBJ)\*.* mkdir $(OBJ)
|
||||
@$(cc) -DENUM_PM $(cflagsBuild) -Fo$@ $(U)makedefs.c
|
||||
$(cc) -DENUM_PM $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $(U)makedefs.c
|
||||
# $(cc) -DENUM_PM $(cflagsBuild) $(CROSSDEFINES) /EP -Fo$@ $(U)makedefs.c >makedefs.c.preprocessed
|
||||
|
||||
#
|
||||
# date.h should be remade every time any of the source or include
|
||||
@@ -1105,7 +1134,7 @@ $(U)uudecode.exe: $(O)uudecode.o
|
||||
@$(link) $(lflagsBuild) /PDB:"$(O)$(@B).PDB" /MAP:"$(O)$(@B).MAP" -out:$@ $(O)uudecode.o
|
||||
|
||||
$(O)uudecode.o: $(SSYS)\uudecode.c
|
||||
@$(cc) $(cflagsBuild) /D_CRT_SECURE_NO_DEPRECATE -Fo$@ $(SSYS)\uudecode.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) /D_CRT_SECURE_NO_DEPRECATE -Fo$@ $(SSYS)\uudecode.c
|
||||
|
||||
$(MSWSYS)\NetHack.ico : $(U)uudecode.exe $(MSWSYS)\nhico.uu
|
||||
chdir $(MSWSYS)
|
||||
@@ -1271,10 +1300,10 @@ $(U)dlb_main.exe: $(DLBOBJ) $(O)dlb.o
|
||||
<<
|
||||
|
||||
$(O)dlb.o: $(O)dlb_main.o $(O)alloc.o $(O)panic.o $(INCL)\dlb.h
|
||||
@$(cc) $(cflagsBuild) /Fo$@ $(SRC)\dlb.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) /Fo$@ $(SRC)\dlb.c
|
||||
|
||||
$(O)dlb_main.o: $(UTIL)\dlb_main.c $(INCL)\config.h $(INCL)\dlb.h
|
||||
@$(cc) $(cflagsBuild) /Fo$@ $(UTIL)\dlb_main.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) /Fo$@ $(UTIL)\dlb_main.c
|
||||
|
||||
$(DAT)\porthelp: $(MSWSYS)\porthelp
|
||||
@copy $(MSWSYS)\porthelp $@ >nul
|
||||
@@ -1320,7 +1349,7 @@ $(U)recover.exe: $(RECOVOBJS)
|
||||
$(link) $(lflagsBuild) /PDB:"$(O)$(@B).PDB" /MAP:"$(O)$(@B).MAP" -out:$@ $(RECOVOBJS)
|
||||
|
||||
$(O)recover.o: $(CONFIG_H) $(U)recover.c $(MSWSYS)\win32api.h
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(U)recover.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $(U)recover.c
|
||||
|
||||
#==========================================
|
||||
# Tile Mapping
|
||||
@@ -1335,28 +1364,28 @@ $(U)tilemap.exe: $(O)tilemap.o
|
||||
@$(link) $(lflagsBuild) /PDB:"$(O)$(@B).PDB" /MAP:"$(O)$(@B).MAP" -out:$@ $(O)tilemap.o
|
||||
|
||||
$(O)tilemap.o: $(WSHR)\tilemap.c $(HACK_H)
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(WSHR)\tilemap.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $(WSHR)\tilemap.c
|
||||
|
||||
$(O)tiletx32.o: $(WSHR)\tilemap.c $(HACK_H)
|
||||
@$(cc) $(cflagsBuild) /DTILETEXT /DTILE_X=32 /DTILE_Y=32 -Fo$@ $(WSHR)\tilemap.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) /DTILETEXT /DTILE_X=32 /DTILE_Y=32 -Fo$@ $(WSHR)\tilemap.c
|
||||
|
||||
$(O)tiletxt.o: $(WSHR)\tilemap.c $(HACK_H)
|
||||
@$(cc) $(cflagsBuild) /DTILETEXT -Fo$@ $(WSHR)\tilemap.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) /DTILETEXT -Fo$@ $(WSHR)\tilemap.c
|
||||
|
||||
$(O)gifread.o: $(WSHR)\gifread.c $(CONFIG_H) $(TILE_H)
|
||||
@$(cc) $(cflagsBuild) -I$(WSHR) -Fo$@ $(WSHR)\gifread.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(WSHR) -Fo$@ $(WSHR)\gifread.c
|
||||
|
||||
$(O)gifrd32.o: $(WSHR)\gifread.c $(CONFIG_H) $(TILE_H)
|
||||
@$(cc) $(cflagsBuild) -I$(WSHR) /DTILE_X=32 /DTILE_Y=32 -Fo$@ $(WSHR)\gifread.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(WSHR) /DTILE_X=32 /DTILE_Y=32 -Fo$@ $(WSHR)\gifread.c
|
||||
|
||||
$(O)ppmwrite.o: $(WSHR)\ppmwrite.c $(CONFIG_H) $(TILE_H)
|
||||
@$(cc) $(cflagsBuild) -I$(WSHR) -Fo$@ $(WSHR)\ppmwrite.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(WSHR) -Fo$@ $(WSHR)\ppmwrite.c
|
||||
|
||||
$(O)tiletext.o: $(WSHR)\tiletext.c $(CONFIG_H) $(TILE_H)
|
||||
@$(cc) $(cflagsBuild) -I$(WSHR) -Fo$@ $(WSHR)\tiletext.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(WSHR) -Fo$@ $(WSHR)\tiletext.c
|
||||
|
||||
$(O)tilete32.o: $(WSHR)\tiletext.c $(CONFIG_H) $(TILE_H)
|
||||
@$(cc) $(cflagsBuild) -I$(WSHR) /DTILE_X=32 /DTILE_Y=32 -Fo$@ $(WSHR)\tiletext.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(WSHR) /DTILE_X=32 /DTILE_Y=32 -Fo$@ $(WSHR)\tiletext.c
|
||||
|
||||
#==========================================
|
||||
# Optional Tile Utilities
|
||||
@@ -1414,10 +1443,10 @@ $(U)til2bm32.exe: $(O)til2bm32.o $(TEXT_IO32)
|
||||
<<
|
||||
|
||||
$(O)tile2bmp.o: $(WSHR)\tile2bmp.c $(HACK_H) $(TILE_H) $(MSWSYS)\win32api.h
|
||||
@$(cc) $(cflagsBuild) -I$(WSHR) /DPACKED_FILE /Fo$@ $(WSHR)\tile2bmp.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(WSHR) /DPACKED_FILE /Fo$@ $(WSHR)\tile2bmp.c
|
||||
|
||||
$(O)til2bm32.o: $(WSHR)\tile2bmp.c $(HACK_H) $(TILE_H) $(MSWSYS)\win32api.h
|
||||
@$(cc) $(cflagsBuild) -I$(WSHR) /DPACKED_FILE /DTILE_X=32 /DTILE_Y=32 /Fo$@ $(WSHR)\tile2bmp.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(WSHR) /DPACKED_FILE /DTILE_X=32 /DTILE_Y=32 /Fo$@ $(WSHR)\tile2bmp.c
|
||||
|
||||
#===============================================================================
|
||||
# PDCurses
|
||||
@@ -1427,7 +1456,7 @@ $(O)pdcurses.lib : $(PDCLIBOBJS) $(PDCOBJS)
|
||||
lib -nologo /out:$@ $(PDCLIBOBJS) $(PDCOBJS)
|
||||
|
||||
$(O)pdcscrn.o : $(PDCURSES_HEADERS) $(PDCWINCON)\pdcscrn.c $(MSWSYS)\stub-pdcscrn.c
|
||||
$(cc) $(PDCINCL) $(cflagsBuild) -Fo$@ $(MSWSYS)\stub-pdcscrn.c
|
||||
$(cc) $(PDCINCL) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $(MSWSYS)\stub-pdcscrn.c
|
||||
|
||||
#===============================================================================
|
||||
# LUA
|
||||
@@ -1448,7 +1477,25 @@ $(O)lua$(LUAVER)-static.lib: $(LUAOBJFILES)
|
||||
$(O)lua.o: $(LUASRC)\lua.c
|
||||
$(O)luac.o: $(LUASRC)\luac.c
|
||||
$(O)lapi.o: $(LUASRC)\lapi.c
|
||||
@$(cc) $(cflagsBuild) -wd4244 -Fo$@ $(LUASRC)\lapi.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -wd4244 -Fo$@ $(LUASRC)\lapi.c
|
||||
|
||||
#===============================================================================
|
||||
# CROSSCOMPILE
|
||||
#===============================================================================
|
||||
|
||||
# Under a cross-compile, some of the values stored statically into
|
||||
# text files cannot be trusted as being representative of the
|
||||
# settings and features used on the build of the target binaries.
|
||||
#
|
||||
# We move some of that stuff into the game run-time by separating
|
||||
# out the functions into src\mdlib.c to get some of the required
|
||||
# functionality at game runtime instead of from a previously written
|
||||
# data file.
|
||||
#
|
||||
|
||||
$(O)mdlib.o: $(SRC)\mdlib.c
|
||||
$(cc) $(cflagsBuild) $(CROSSCOMPILE) $(CROSSDEFINE_TARGET) -DMAKEDEFS_MDOBJ -Fo$@ $(SRC)\mdlib.c
|
||||
# $(cc) $(cflagsBuild) $(CROSSCOMPILE) $(CROSSDEFINE_TARGET) -DMAKEDEFS_MDOBJ /EP -Fo$@ $(SRC)\mdlib.c >mdlib.c.preprocessed
|
||||
|
||||
#===============================================================================
|
||||
# Housekeeping
|
||||
@@ -1642,31 +1689,32 @@ $(DAT)\dungeon: $(O)utility.tag $(DAT)\dungeon.def
|
||||
#
|
||||
|
||||
$(O)nttty.o: $(HACK_H) $(TILE_H) $(MSWSYS)\win32api.h $(MSWSYS)\nttty.c
|
||||
@$(cc) $(cflagsBuild) -I$(WSHR) -Fo$@ $(MSWSYS)\nttty.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(WSHR) -Fo$@ $(MSWSYS)\nttty.c
|
||||
$(O)winnt.o: $(HACK_H) $(MSWSYS)\win32api.h $(MSWSYS)\winnt.c
|
||||
@$(cc) $(cflagsBuild) -I$(MSWSYS) -I$(MSWIN) -Fo$@ $(MSWSYS)\win10.c
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(MSWSYS)\winnt.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(MSWSYS) -I$(MSWIN) -Fo$@ $(MSWSYS)\win10.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $(MSWSYS)\winnt.c
|
||||
$(O)ntsound.o: $(HACK_H) $(MSWSYS)\ntsound.c
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(MSWSYS)\ntsound.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $(MSWSYS)\ntsound.c
|
||||
$(O)windmain.o: $(MSWSYS)\windmain.c $(HACK_H)
|
||||
|
||||
#if you aren't linking in the full gui then
|
||||
#include the following stub for proper linkage.
|
||||
|
||||
$(O)guistub.o: $(HACK_H) $(MSWSYS)\stubs.c
|
||||
@$(cc) $(cflagsBuild) -DGUISTUB -Fo$@ $(MSWSYS)\stubs.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -DGUISTUB -Fo$@ $(MSWSYS)\stubs.c
|
||||
|
||||
#
|
||||
# WIN32 dependencies
|
||||
#
|
||||
|
||||
$(O)NetHackW.o: $(HACK_H) $(MSWIN)\NetHackW.c
|
||||
@$(cc) $(cflagsBuild) -I$(MSWSYS) -I$(MSWIN) -Fo$@ $(MSWIN)\NetHackW.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -I$(MSWSYS) -I$(MSWIN) -Fo$@ $(MSWIN)\NetHackW.c
|
||||
|
||||
#if you aren't linking in the full tty then
|
||||
#include the following stub for proper linkage.
|
||||
|
||||
$(O)ttystub.o: $(HACK_H) $(MSWSYS)\stubs.c
|
||||
@$(cc) $(cflagsBuild) -DTTYSTUB -Fo$@ $(MSWSYS)\stubs.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -DTTYSTUB -Fo$@ $(MSWSYS)\stubs.c
|
||||
|
||||
#
|
||||
#============================================
|
||||
@@ -1675,19 +1723,19 @@ $(O)ttystub.o: $(HACK_H) $(MSWSYS)\stubs.c
|
||||
|
||||
$(O)sfbase.o: $(HACK_H) $(INCL)\sfproto.h $(INCL)\sfprocs.h \
|
||||
$(SRC)\sfbase.c
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sfbase.c
|
||||
# @$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sfbase.c
|
||||
|
||||
$(O)sfdata.o: $(HACK_H) $(INCL)\sfprocs.h $(SRC)\sfdata.c
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sfdata.c
|
||||
# @$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sfdata.c
|
||||
|
||||
$(O)sfstruct.o: $(HACK_H) $(SRC)\sfstruct.c
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sfstruct.c
|
||||
# @$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sfstruct.c
|
||||
|
||||
$(O)sfascii.o: $(HACK_H) $(INCL)\sfprocs.h $(SRC)\sfascii.c
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sfascii.c
|
||||
# @$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sfascii.c
|
||||
|
||||
$(O)sflendian.o: $(HACK_H) $(INCL)\sfprocs.h $(SRC)\sflendian.c
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sflendian.c
|
||||
# @$(cc) $(cflagsBuild) -Fo$@ $(SRC)\sflendian.c
|
||||
|
||||
$(SRC)\sfdata.c: $(U)readtags.exe $(U)nethack.tags
|
||||
$(U)readtags.exe
|
||||
@@ -1699,7 +1747,7 @@ $(U)readtags.exe: $(O)readtags.o
|
||||
@$(link) $(lflagsBuild) -out:$@ $(O)readtags.o
|
||||
|
||||
$(O)readtags.o: $(U)readtags.c $(U)nethack.tags $(CONFIG_H) $(PATCHLEVEL_H)
|
||||
@$(cc) $(cflagsBuild) $(TEMPL) -Fo$@ $(U)readtags.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) $(TEMPL) -Fo$@ $(U)readtags.c
|
||||
|
||||
#
|
||||
#tested only with exuberant ctags from http://ctags.sourceforge.net
|
||||
@@ -1763,14 +1811,14 @@ $(U)nethack.tags: $(CTAGDEP)
|
||||
#
|
||||
|
||||
$(O)panic.o: $(U)panic.c $(CONFIG_H)
|
||||
@$(cc) $(cflagsBuild) -Fo$@ $(U)panic.c
|
||||
@$(cc) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ $(U)panic.c
|
||||
|
||||
#
|
||||
# sys/share dependencies
|
||||
#
|
||||
|
||||
(O)cppregex.o: $(O)cppregex.cpp $(HACK_H)
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\cppregex.cpp
|
||||
@$(CC) $(cflagsBuild) $(CROSSDEFINES) -Fo$@ ..\sys\share\cppregex.cpp
|
||||
|
||||
#
|
||||
# curses window port dependencies
|
||||
@@ -1798,126 +1846,126 @@ $(O)curswins.o: $(WCURSES)\curswins.c $(WCURSES)\curswins.h $(INCL)\wincurs.h
|
||||
#
|
||||
|
||||
$(O)tos.o: ..\sys\atari\tos.c $(HACK_H) $(INCL)\tcap.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\atari\tos.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\atari\tos.c
|
||||
$(O)pctty.o: ..\sys\share\pctty.c $(HACK_H)
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\pctty.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\pctty.c
|
||||
$(O)isaac64.o: ..\src\isaac64.c $(HACK_H) $(INCL)\isaac64.h $(INCL)\integer.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\src\isaac64.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\src\isaac64.c
|
||||
$(O)random.o: ..\sys\share\random.c $(HACK_H)
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\random.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\random.c
|
||||
$(O)ioctl.o: ..\sys\share\ioctl.c $(HACK_H) $(INCL)\tcap.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\ioctl.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\ioctl.c
|
||||
$(O)unixtty.o: ..\sys\share\unixtty.c $(HACK_H)
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\unixtty.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\share\unixtty.c
|
||||
$(O)unixmain.o: ..\sys\unix\unixmain.c $(HACK_H) $(INCL)\dlb.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\unix\unixmain.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\unix\unixmain.c
|
||||
$(O)unixunix.o: ..\sys\unix\unixunix.c $(HACK_H)
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\unix\unixunix.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\unix\unixunix.c
|
||||
$(O)unixres.o: ..\sys\unix\unixres.c $(CONFIG_H)
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\unix\unixres.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\unix\unixres.c
|
||||
$(O)bemain.o: ..\sys\be\bemain.c $(HACK_H) $(INCL)\dlb.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\sys\be\bemain.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\sys\be\bemain.c
|
||||
$(O)getline.o: ..\win\tty\getline.c $(HACK_H) $(INCL)\func_tab.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\tty\getline.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\tty\getline.c
|
||||
$(O)termcap.o: ..\win\tty\termcap.c $(HACK_H) $(INCL)\tcap.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\tty\termcap.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\tty\termcap.c
|
||||
$(O)topl.o: ..\win\tty\topl.c $(HACK_H) $(INCL)\tcap.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\tty\topl.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\tty\topl.c
|
||||
$(O)wintty.o: ..\win\tty\wintty.c $(HACK_H) $(INCL)\dlb.h $(INCL)\tcap.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\tty\wintty.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\tty\wintty.c
|
||||
#$(O)Window.o: ..\win\X11\Window.c $(INCL)\xwindowp.h $(INCL)\xwindow.h \
|
||||
# $(CONFIG_H)
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\Window.c
|
||||
$(O)dialogs.o: ..\win\X11\dialogs.c $(CONFIG_H)
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\dialogs.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\dialogs.c
|
||||
$(O)winX.o: ..\win\X11\winX.c $(HACK_H) $(INCL)\winX.h $(INCL)\dlb.h \
|
||||
..\win\X11\nh72icon ..\win\X11\nh56icon ..\win\X11\nh32icon
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winX.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winX.c
|
||||
$(O)winmap.o: ..\win\X11\winmap.c $(INCL)\xwindow.h $(HACK_H) $(INCL)\dlb.h \
|
||||
$(INCL)\winX.h $(INCL)\tile2x11.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winmap.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winmap.c
|
||||
$(O)winmenu.o: ..\win\X11\winmenu.c $(HACK_H) $(INCL)\winX.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winmenu.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winmenu.c
|
||||
$(O)winmesg.o: ..\win\X11\winmesg.c $(INCL)\xwindow.h $(HACK_H) $(INCL)\winX.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winmesg.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winmesg.c
|
||||
$(O)winmisc.o: ..\win\X11\winmisc.c $(HACK_H) $(INCL)\func_tab.h \
|
||||
$(INCL)\winX.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winmisc.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winmisc.c
|
||||
$(O)winstat.o: ..\win\X11\winstat.c $(HACK_H) $(INCL)\winX.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winstat.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winstat.c
|
||||
$(O)wintext.o: ..\win\X11\wintext.c $(HACK_H) $(INCL)\winX.h $(INCL)\xwindow.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\wintext.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\wintext.c
|
||||
$(O)winval.o: ..\win\X11\winval.c $(HACK_H) $(INCL)\winX.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winval.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\X11\winval.c
|
||||
$(O)tile.o: $(SRC)\tile.c $(HACK_H)
|
||||
$(O)gnaskstr.o: ..\win\gnome\gnaskstr.c ..\win\gnome\gnaskstr.h \
|
||||
..\win\gnome\gnmain.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnaskstr.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnaskstr.c
|
||||
$(O)gnbind.o: ..\win\gnome\gnbind.c ..\win\gnome\gnbind.h ..\win\gnome\gnmain.h \
|
||||
..\win\gnome\gnmenu.h ..\win\gnome\gnaskstr.h \
|
||||
..\win\gnome\gnyesno.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnbind.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnbind.c
|
||||
$(O)gnglyph.o: ..\win\gnome\gnglyph.c ..\win\gnome\gnglyph.h $(INCL)\tile2x11.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnglyph.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnglyph.c
|
||||
$(O)gnmain.o: ..\win\gnome\gnmain.c ..\win\gnome\gnmain.h ..\win\gnome\gnsignal.h \
|
||||
..\win\gnome\gnbind.h ..\win\gnome\gnopts.h $(HACK_H) \
|
||||
$(INCL)\date.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnmain.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnmain.c
|
||||
$(O)gnmap.o: ..\win\gnome\gnmap.c ..\win\gnome\gnmap.h ..\win\gnome\gnglyph.h \
|
||||
..\win\gnome\gnsignal.h $(HACK_H)
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnmap.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnmap.c
|
||||
$(O)gnmenu.o: ..\win\gnome\gnmenu.c ..\win\gnome\gnmenu.h ..\win\gnome\gnmain.h \
|
||||
..\win\gnome\gnbind.h $(INCL)\func_tab.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnmenu.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnmenu.c
|
||||
$(O)gnmesg.o: ..\win\gnome\gnmesg.c ..\win\gnome\gnmesg.h ..\win\gnome\gnsignal.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnmesg.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnmesg.c
|
||||
$(O)gnopts.o: ..\win\gnome\gnopts.c ..\win\gnome\gnopts.h ..\win\gnome\gnglyph.h \
|
||||
..\win\gnome\gnmain.h ..\win\gnome\gnmap.h $(HACK_H)
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnopts.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnopts.c
|
||||
$(O)gnplayer.o: ..\win\gnome\gnplayer.c ..\win\gnome\gnplayer.h \
|
||||
..\win\gnome\gnmain.h $(HACK_H)
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnplayer.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnplayer.c
|
||||
$(O)gnsignal.o: ..\win\gnome\gnsignal.c ..\win\gnome\gnsignal.h \
|
||||
..\win\gnome\gnmain.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnsignal.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnsignal.c
|
||||
$(O)gnstatus.o: ..\win\gnome\gnstatus.c ..\win\gnome\gnstatus.h \
|
||||
..\win\gnome\gnsignal.h ..\win\gnome\gn_xpms.h \
|
||||
..\win\gnome\gnomeprv.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnstatus.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnstatus.c
|
||||
$(O)gntext.o: ..\win\gnome\gntext.c ..\win\gnome\gntext.h ..\win\gnome\gnmain.h \
|
||||
..\win\gnome\gn_rip.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gntext.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gntext.c
|
||||
$(O)gnyesno.o: ..\win\gnome\gnyesno.c ..\win\gnome\gnbind.h ..\win\gnome\gnyesno.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnyesno.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnyesno.c
|
||||
$(O)gnworn.o: ..\win\gnome\gnworn.c ..\win\gnome\gnworn.h ..\win\gnome\gnglyph.h \
|
||||
..\win\gnome\gnsignal.h ..\win\gnome\gnomeprv.h
|
||||
@$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnworn.c
|
||||
# @$(CC) $(cflagsBuild) $(GNOMEINC) -Fo$@ ..\win\gnome\gnworn.c
|
||||
$(O)wingem.o: ..\win\gem\wingem.c $(HACK_H) $(INCL)\func_tab.h $(INCL)\dlb.h \
|
||||
$(INCL)\patchlevel.h $(INCL)\wingem.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\gem\wingem.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\gem\wingem.c
|
||||
$(O)wingem1.o: ..\win\gem\wingem1.c $(INCL)\gem_rsc.h $(INCL)\load_img.h \
|
||||
$(INCL)\gr_rect.h $(INCL)\wintype.h $(INCL)\wingem.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\gem\wingem1.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\gem\wingem1.c
|
||||
$(O)load_img.o: ..\win\gem\load_img.c $(INCL)\load_img.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\gem\load_img.c
|
||||
$(O)gr_rect.o: ..\win\gem\gr_rect.c $(INCL)\gr_rect.h
|
||||
@$(CC) $(cflagsBuild) -Fo$@ ..\win\gem\gr_rect.c
|
||||
# @$(CC) $(cflagsBuild) -Fo$@ ..\win\gem\gr_rect.c
|
||||
$(O)tile.o: $(SRC)\tile.c $(HACK_H)
|
||||
$(O)qt_win.o: ..\win\Qt\qt_win.cpp $(HACK_H) $(INCL)\func_tab.h \
|
||||
$(INCL)\dlb.h $(INCL)\patchlevel.h $(INCL)\tile2x11.h \
|
||||
$(INCL)\qt_win.h $(INCL)\qt_clust.h $(INCL)\qt_kde0.h \
|
||||
$(INCL)\qt_xpms.h qt_win.moc qt_kde0.moc qttableview.moc
|
||||
$(CXX) $(CXXFLAGS) -Fo$@ ..\win\Qt\qt_win.cpp
|
||||
# $(CXX) $(CXXFLAGS) -Fo$@ ..\win\Qt\qt_win.cpp
|
||||
$(O)qt_clust.o: ..\win\Qt\qt_clust.cpp $(INCL)\qt_clust.h
|
||||
$(CXX) $(CXXFLAGS) -Fo$@ ..\win\Qt\qt_clust.cpp
|
||||
# $(CXX) $(CXXFLAGS) -Fo$@ ..\win\Qt\qt_clust.cpp
|
||||
$(O)qttableview.o: ..\win\Qt\qttableview.cpp $(INCL)\qttableview.h
|
||||
$(CXX) $(CXXFLAGS) -Fo$@ ..\win\Qt\qttableview.cpp
|
||||
# $(CXX) $(CXXFLAGS) -Fo$@ ..\win\Qt\qttableview.cpp
|
||||
$(O)wc_chainin.o: ..\win\chain\wc_chainin.c $(HACK_H)
|
||||
@$(cc) $(cflagsBuild) -Fo$@ ..\win\chain\wc_chainin.c
|
||||
# @$(cc) $(cflagsBuild) -Fo$@ ..\win\chain\wc_chainin.c
|
||||
$(O)wc_chainout.o: ..\win\chain\wc_chainout.c $(HACK_H)
|
||||
@$(cc) $(cflagsBuild) -Fo$@ ..\win\chain\wc_chainout.c
|
||||
# @$(cc) $(cflagsBuild) -Fo$@ ..\win\chain\wc_chainout.c
|
||||
$(O)wc_trace.o: ..\win\chain\wc_trace.c $(HACK_H) $(INCL)\func_tab.h
|
||||
@$(cc) $(cflagsBuild) -Fo$@ ..\win\chain\wc_trace.c
|
||||
# @$(cc) $(cflagsBuild) -Fo$@ ..\win\chain\wc_trace.c
|
||||
$(O)vis_tab.o: vis_tab.c $(CONFIG_H) $(INCL)\vis_tab.h
|
||||
$(O)allmain.o: allmain.c $(HACK_H)
|
||||
$(O)alloc.o: alloc.c $(CONFIG_H)
|
||||
@@ -2023,11 +2071,11 @@ $(O)uhitm.o: uhitm.c $(HACK_H)
|
||||
$(O)vault.o: vault.c $(HACK_H)
|
||||
$(O)version.o: version.c $(HACK_H) $(INCL)\dlb.h $(INCL)\date.h \
|
||||
$(INCL)\patchlevel.h
|
||||
@$(cc) $(cflagsBuild) $(CROSSCOMPILE) $(CROSSDEFINE_TARGET) -Fo$@ version.c
|
||||
$(O)vision.o: vision.c $(HACK_H) $(INCL)\vis_tab.h
|
||||
$(O)weapon.o: weapon.c $(HACK_H)
|
||||
$(O)were.o: were.c $(HACK_H)
|
||||
$(O)wield.o: wield.c $(HACK_H)
|
||||
$(O)windmain.o: $(MSWSYS)\windmain.c $(HACK_H)
|
||||
#$(O)windows.o: windows.c $(HACK_H) $(INCL)\wingem.h $(INCL)\winGnome.h
|
||||
$(O)wizard.o: wizard.c $(HACK_H) $(INCL)\qtext.h
|
||||
$(O)worm.o: worm.c $(HACK_H) $(INCL)\lev.h
|
||||
|
||||
Reference in New Issue
Block a user