summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/makefile.WHICH64
-rw-r--r--src/makefile.bcc221
-rw-r--r--src/makefile.bsd298
-rw-r--r--src/makefile.cyg433
-rw-r--r--src/makefile.mingw431
-rw-r--r--src/makefile.osx210
-rw-r--r--src/makefile.sdliso496
-rw-r--r--src/makefile.std566
-rw-r--r--src/makefile.win206
9 files changed, 0 insertions, 2925 deletions
diff --git a/src/makefile.WHICH b/src/makefile.WHICH
deleted file mode 100644
index eb5e0963..00000000
--- a/src/makefile.WHICH
+++ /dev/null
@@ -1,64 +0,0 @@
-This file documents which makefiles you should use for each system.
-
- * makefile.ami:
- Amiga makefile.
-
- * makefile.bcc:
- Borland C/C++ compiler version 5 makefile.
-
- * makefile.cyg:
- A makefile for people using Cygwin for windows.
-
- * makefile.emx:
- A makefile for OS/2. You need the EMX packages and ReXX installed for
- this to work.
-
- * makefile.gdb:
- Another makefile for DOS, includes debugging symbols so if you're using
- a DOS-based debugger, things will work. Ideally would be combined into
- makefile.dos. You want DJGPP and related tools for this.
-
- * makefile.ibm:
- Another makefile for people using DOS and DJGPP. Ideally will be rolled
- into makefile.dos eventually.
-
- * makefile.lsl:
- If you want to try to use SVGAlib, this might provide a start.
-
- * makefile.std:
- Most Unix users should use this. Currently the only makefile with a real
- install rule. More instructions are found in the file itself.
-
- * makefile.wat:
- Watcom C/C++ for DOS makefile.
-
- * makefile.win:
- A makefile for people using Borland C 4.5x for windows.
-
- * ToME.proj.xml:
- This one isn't really a makefile, but serves the same purpose. It's a
- project file for people using CodeWarrior 6 or 7 for the Macintosh.
- Because the IDE doesn't make things easier, IMHO, here are instructions:
- - Launch CodeWarrior and choose File-Import Project, then select
- ToME.proj.xml in the src folder;
- - Save your project as ToME.proj where you find readme files;
- - (Optional) Convert graphics tiles to resource from PICT and put them
- in your top folder, i.e. where you find readmes:
- 8x8.rsrc - 8x8.bmp, PICT ID 1001
- 16x16.rsrc - 16x16.bmp, PICT ID 1002
- mask.rsrc - mask.bmp, PICT ID 1003
- If you are using GraphicsConverter, make sure to scale the images to
- 72 pixel per inch while keeping horizontal and vertical scale factors
- to 100%, and *never* add previews;
- - (Optional) Grab Sound resources from any Angband binaries and save it
- as AngSound.rsrc, also in the top folder;
- - If you don't want graphics and sound effects, remove 8x8.rsrc,
- 16x16.rsrc, mask.rsrc and AngSound.rsrc from your project;
- - Please take a look at the comment in A-mac-h.pch for a couple of
- source code modifications that may be necessary;
- - Click on the build button, or choose that from the project menu; and
- - Hope it works.
- Carbon compilation requires Carbon SDK 1.1(?) or greater, freely
- downloadable from Apple. The project file assumes that "Carbon Support"
- folder should be placed directly beneath your CodeWarrior compiler
- folder, i.e. where "MacOS Support", "MSL" etc are.
diff --git a/src/makefile.bcc b/src/makefile.bcc
deleted file mode 100644
index 5b3342cc..00000000
--- a/src/makefile.bcc
+++ /dev/null
@@ -1,221 +0,0 @@
-###################################################################
-#
-# makefile.bcc - Angband makefile for Borland C++ 5.5 (Win32)
-#
-###################################################################
-
-
-###################################################################
-#
-# Borland specific directives ---
-#
-.AUTODEPEND
-
-###################################################################
-#
-# Set tool and version names:
-
-CPP = bcc32
-LINKER = ilink32
-RC = brc32
-
-###################################################################
-#
-# Name of the *.exe-file
-
-EXE_FILE = tome.exe
-TOLUA = tolua.exe
-
-###################################################################
-#
-# Debug mode (un-comment for debugging)
-
-# DBGOPT= -v -N -x -xp
-
-
-###################################################################
-#
-# Set any compiler options
-
-CCOPTS = -jb -j1 -Hc -tW -lGn -w- \
- -D_WIN32_WINNT=0x0400 -DWINVER=0x0400 \
- -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA \
- -I$(BCCDIR)\include -I. -Ilua -DUSE_LUA \
- -DUSE_PRECISE_CMOVIE \
- -DUSE_WINSOCK \
- -DIRC_SERVER=\"irc.worldirc.org\" -DIRC_PORT=\"6667\" -DIRC_CHANNEL=\"\#tome\"
-
-# Compile flags:
-CPPFLAGS= $(CCOPTS) $(DBGOPT)
-
-######################## Targets ##################################
-
-OBJ = \
- gods.obj \
- skills.obj \
- irc.obj \
- birth.obj \
- bldg.obj \
- cave.obj \
- cmd1.obj \
- cmd2.obj \
- cmd3.obj \
- cmd4.obj \
- cmd5.obj \
- cmd6.obj \
- cmd7.obj \
- cmovie.obj \
- dungeon.obj \
- files.obj \
- generate.obj \
- gen_maze.obj \
- gen_evol.obj \
- help.obj \
- init1.obj \
- init2.obj \
- levels.obj \
- loadsave.obj \
- lua_bind.obj \
- main-win.obj \
- main.obj \
- melee1.obj \
- melee2.obj \
- modules.obj \
- monster1.obj \
- monster2.obj \
- monster3.obj \
- notes.obj \
- object1.obj \
- object2.obj \
- plots.obj \
- powers.obj \
- randart.obj \
- readdib.obj \
- script.obj \
- spells1.obj \
- spells2.obj \
- squeltch.obj \
- status.obj \
- store.obj \
- tables.obj \
- traps.obj \
- util.obj \
- variable.obj \
- wild.obj \
- wizard1.obj \
- wizard2.obj \
- xtra1.obj \
- xtra2.obj \
- z-form.obj \
- z-rand.obj \
- z-term.obj \
- z-util.obj \
- z-virt.obj \
- z-sock.obj \
- w_mnster.obj \
- w_obj.obj \
- w_play_c.obj \
- w_player.obj \
- w_quest.obj \
- w_spells.obj \
- w_util.obj \
- w_z_pack.obj \
- w_dun.obj \
- $(TOLUAOBJS)
-
-TOLUAOBJS = \
- lua\lapi.obj \
- lua\lauxlib.obj \
- lua\lbaselib.obj \
- lua\lcode.obj \
- lua\ldblib.obj \
- lua\ldebug.obj \
- lua\ldo.obj \
- lua\lfunc.obj \
- lua\lgc.obj \
- lua\liolib.obj \
- lua\llex.obj \
- lua\lmem.obj \
- lua\lobject.obj \
- lua\lparser.obj \
- lua\lstate.obj \
- lua\lstring.obj \
- lua\lstrlib.obj \
- lua\ltable.obj \
- lua\ltests.obj \
- lua\ltm.obj \
- lua\lundump.obj \
- lua\lvm.obj \
- lua\lzio.obj \
- lua\tolua.obj \
- lua\tolua_bd.obj \
- lua\tolua_eh.obj \
- lua\tolua_gp.obj \
- lua\tolua_lb.obj \
- lua\tolua_rg.obj \
- lua\tolua_tm.obj \
- lua\tolua_tt.obj \
- lua\tolualua.obj \
-
-all : $(EXE_FILE)
- copy $(EXE_FILE) ..
-
-clean:
- -@if exist *.obj del *.obj >nul
- -@if exist lua\*.obj del lua\*.obj >nul
- -@if exist *.exe del *.exe >nul
- -@if exist *.res del *.res >nul
- -@if exist *.tds del *.tds >nul
- -@if exist *.ilc del *.ilc >nul
- -@if exist *.ild del *.ild >nul
- -@if exist *.ilf del *.ilf >nul
- -@if exist *.ils del *.ils >nul
-
-install: $(EXE_FILE)
- copy $(EXE_FILE) ..
-
-
-########################### Explicit Rules ########################
-$(EXE_FILE): $(OBJ) angband.res
- $(LINKER) -aa -L$(BCCDIR)\lib -x $(OBJ) c0w32.obj, $(EXE_FILE),, cw32.lib import32.lib,, angband.res
-
-$(TOLUA): $(TOLUAOBJS)
- $(LINKER) -aa -L$(BCCDIR)\lib -x $(TOLUAOBJS) c0x32.obj, tolua.exe,, cw32.lib import32.lib
-
-angband.res: angband.rc
- $(RC) -r angband.rc
-
-w_mnster.c: monster.pkg $(TOLUA)
- $(TOLUA) -n monster -o w_mnster.c monster.pkg
-
-w_player.c: player.pkg $(TOLUA)
- $(TOLUA) -n player -o w_player.c player.pkg
-
-w_play_c.c: player_c.pkg $(TOLUA)
- $(TOLUA) -n player_c -o w_play_c.c player_c.pkg
-
-w_z_pack.c: z_pack.pkg $(TOLUA)
- $(TOLUA) -n z_pack -o w_z_pack.c z_pack.pkg
-
-w_obj.c: object.pkg $(TOLUA)
- $(TOLUA) -n object -o w_obj.c object.pkg
-
-w_util.c: util.pkg $(TOLUA)
- $(TOLUA) -n util -o w_util.c util.pkg
-
-w_spells.c: spells.pkg $(TOLUA)
- $(TOLUA) -n spells -o w_spells.c spells.pkg
-
-w_quest.c: quest.pkg $(TOLUA)
- $(TOLUA) -n quest -o w_quest.c quest.pkg
-
-w_dun.c: dungeon.pkg $(TOLUA)
- $(TOLUA) -n dungeon -o w_dun.c dungeon.pkg
-
-########################### Implicit Rules ########################
-.c.obj:
- $(CPP) $(CPPFLAGS) -c -o$*.obj $*.c
-
-.obj.exe:
- $(CPP) $(CPPFLAGS) $<
-
diff --git a/src/makefile.bsd b/src/makefile.bsd
deleted file mode 100644
index bff25351..00000000
--- a/src/makefile.bsd
+++ /dev/null
@@ -1,298 +0,0 @@
-# This is based on Makefile.std but stripped and tuned for FreeBSD (and
-# presumably will cooperate with other BSDs)
-
-# Comment out this line if you don't want the IRC support
-IRC=TRUE
-
-## Installation locations and such
-##
-## LIBDIR, BINDIR and OWNER should be set appropriately for
-## multiuser installations.
-##
-## If you want to keep it private or don't have root privilege
-## required by "make install", set LIBDIR to ./lib/ or an absolute
-## path pointing to your lib directory, and don't run "make install".
-##
-## NOTE: If LIBDIR is set to ./lib/ , you have to cd to parent directory
-## of lib before you start the game.
-##
-
-PREFIX ?= /usr/local
-X11BASE ?= /usr/X11R6
-
-# Where lib/ files goes
-LIBDIR = $(PREFIX)/share/tome
-
-# Where ToME binary goes
-BINDIR = $(PREFIX)/bin
-
-# The game will run suid to this user
-OWNER = root
-GROUP = games
-FILE_MODE = 0664
-
-## Some "system" definitions
-##
-## No changes are needed to compile a version that will run on both
-## X11 and Curses, in debugging mode, with maximal warnings, on many
-## normal Unix machines of the Sun OS variety (non-solaris).
-##
-## To use an "alternative" definition, simply "modify" (or "replace")
-## the definition below with one that you like. For example, you can
-## change the compiler to "cc", or remove the "debugging" options, or
-## remove the X11 or Curses support, etc, as desired.
-##
-## See also "config.h" and "h-config.h" for important information.
-##
-## Some "examples" are given below, they can be used by simply
-## removing the FIRST column of "#" signs from the "block" of lines
-## you wish to use, and commenting out "standard" block below.
-##
-## This is not intended to be a "good" Makefile, just a "simple" one.
-##
-
-
-# This is my compiler of choice, it seems to work most everywhere
-#
-CC ?= cc
-
-# Standard version (see main-x11.c and main-gcu.c)
-#
-# This version supports both "X11" and "curses" in a single executable.
-#
-# You may have to add various X11 include/library directories to the
-# "INCLUDES", if your machine places files in a weird location
-# (e.g. -I/usr/X11R6/include, as is almost always the case with
-# linux and *BSD). Since we have seen many linux users -- arguably
-# the largest unix population -- confused by this, and adding this
-# usually doesn't hurt, the default rule has been changed to search
-# for /usr/X11R6/include.
-#
-# You may be able to remove "-ltermcap" on some machines (ex: Solaris).
-#
-# You may have to replace "-lcurses" with "-lncurses" to use the
-# "new curses" library instead of the "old curses" library, and
-# you may have to add "-I/usr/include/ncurses" to the "INCLUDES",
-# and/or "-DUSE_NCURSES" to "DEFINES".
-#
-# See "main-gcu.c" and "config.h" for some optional "curses" defines,
-# including "USE_GETCH" and "USE_CURS_SET". Note that "config.h" will
-# attempt to "guess" at many of these flags based on your system.
-#
-COPTS = -Wall -g
-INCLUDES = -I$(X11BASE)/include
-DEFINES = -DUSE_X11 -DUSE_GCU\
- -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA \
- -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DFILE_MODE=$(FILE_MODE)
-LIBS = -lX11 -lcurses -L$(X11BASE)/lib
-
-
-### End of configurable section ###
-
-#
-# The "source" and "object" files.
-#
-
-BASESRCS = \
- main-gtk.c main-gcu.c main-x11.c main-xaw.c main-sdl.c \
- z-rand.c z-util.c z-form.c z-virt.c z-term.c z-sock.c \
- variable.c tables.c plots.c util.c cave.c dungeon.c \
- melee1.c melee2.c modules.c \
- object1.c object2.c randart.c squeltch.c traps.c \
- monster1.c monster2.c monster3.c \
- xtra1.c xtra2.c skills.c powers.c gods.c \
- spells1.c spells2.c \
- status.c files.c notes.c loadsave.c \
- cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
- help.c \
- generate.c gen_maze.c gen_evol.c wild.c levels.c store.c bldg.c \
- cmovie.c irc.c \
- wizard2.c init2.c birth.c wizard1.c init1.c main.c
-
-BASEOBJS = \
- main-gtk.o main-gcu.o main-x11.o main-xaw.o main-sdl.o \
- z-rand.o z-util.o z-form.o z-virt.o z-term.o z-sock.o \
- variable.o tables.o plots.o util.o cave.o dungeon.o \
- melee1.o melee2.o modules.o \
- object1.o object2.o randart.o squeltch.o traps.o \
- monster1.o monster2.o monster3.o \
- xtra1.o xtra2.o skills.o powers.o gods.o \
- spells1.o spells2.o \
- status.o files.o notes.o loadsave.o \
- cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \
- help.o \
- generate.o gen_maze.o gen_evol.o wild.o levels.o store.o bldg.o \
- cmovie.o irc.o \
- wizard2.o init2.o birth.o wizard1.o init1.o main.o
-
-LUASRCS = \
- script.c lua_bind.c \
- w_util.c w_player.c w_z_pack.c w_obj.c w_mnster.c w_spells.c w_quest.c w_play_c.c w_dun.c
-
-TOLUASRCS = \
- lua/lapi.c lua/lcode.c lua/ldebug.c lua/ldo.c lua/lfunc.c lua/lgc.c \
- lua/llex.c lua/lmem.c lua/lobject.c lua/lparser.c lua/lstate.c lua/lstring.c \
- lua/ltable.c lua/ltests.c lua/ltm.c lua/lundump.c lua/lvm.c lua/lzio.c \
- lua/lauxlib.c lua/lbaselib.c lua/ldblib.c lua/liolib.c lua/lstrlib.c \
- lua/tolua_lb.c lua/tolua_rg.c lua/tolua_tt.c lua/tolua_tm.c lua/tolua_gp.c \
- lua/tolua_eh.c lua/tolua_bd.c
-
-LUAOBJS = \
- script.o lua_bind.o \
- w_util.o w_player.o w_z_pack.o w_obj.o w_mnster.o w_spells.o w_quest.o w_play_c.o w_dun.o
-
-TOLUAOBJS = \
- lua/lapi.o lua/lcode.o lua/ldebug.o lua/ldo.o lua/lfunc.o lua/lgc.o \
- lua/llex.o lua/lmem.o lua/lobject.o lua/lparser.o lua/lstate.o lua/lstring.o \
- lua/ltable.o lua/ltests.o lua/ltm.o lua/lundump.o lua/lvm.o lua/lzio.o \
- lua/lauxlib.o lua/lbaselib.o lua/ldblib.o lua/liolib.o lua/lstrlib.o \
- lua/tolua_lb.o lua/tolua_rg.o lua/tolua_tt.o lua/tolua_tm.o lua/tolua_gp.o \
- lua/tolua_eh.o lua/tolua_bd.o
-
-#
-# Base sources and objects
-#
-
-SRCS = $(BASESRCS)
-OBJS = $(BASEOBJS)
-
-
-#
-# Compiler options
-#
-
-CFLAGS += $(COPTS) $(INCLUDES) $(DEFINES) -DDEFAULT_PATH=\"$(LIBDIR)\"
-
-
-#
-# Lua support
-#
-
-INCLUDES += -Ilua -I.
-DEFINES += -DUSE_LUA
-SRCS = $(LUASRCS) $(TOLUASRCS) $(BASESRCS)
-OBJS = $(LUAOBJS) $(TOLUAOBJS) $(BASEOBJS)
-
-# Force recreation of stub files when lua source files are updated
-# To be included in dependency rules
-TOLUADEP = $(TOLUA) $(TOLUASRCS) lua/tolua.c lua/tolualua.c
-
-#
-# IRC support
-#
-
-IRC_SERVER=irc.worldirc.org
-IRC_PORT=6667
-IRC_CHANNEL=\#tome
-
-DEFINES += \
- -DIRC_SERVER=\"$(IRC_SERVER)\" \
- -DIRC_PORT=\"$(IRC_PORT)\" \
- -DIRC_CHANNEL=\"$(IRC_CHANNEL)\"
-
-
-# Build the binary. The new base target.
-#
-
-TARGET = tome
-
-TOLUA = ./tolua
-
-default: $(TOLUA) $(TARGET)
- @echo "*** Note: In order to use the install rule, which now actually"
- @echo "*** handles the installation of the library dir, you need to edit"
- @echo "*** this makefile, going to the top and making sure LIBDIR suits"
- @echo "*** your desired install dir properly. The LIBRARY_DIR you used"
- @echo "*** to set in config.h is now ignored and obsolete with respect"
- @echo "*** to this makefile. Note that if you edit this makefile, you may"
- @echo "*** need to recompile so all the files that reference those defines"
- @echo "*** notice the changes."
-
-$(TARGET): $(OBJS)
- $(CC) $(PROFILELDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-
-$(TOLUA): $(TOLUAOBJS) lua/tolua.c lua/tolualua.c
- $(CC) $(CFLAGS) $(PROFILELDFLAGS) $(LDFLAGS) -o $@ $(TOLUAOBJS) lua/tolua.c lua/tolualua.c $(LIBS)
-
-#
-# An install rule.
-#
-mini_install: default
- cp -f $(TARGET) ..
-
-install: default
- [ -d $(LIBDIR) ] || mkdir -p $(LIBDIR)
- [ -d $(BINDIR) ] || mkdir -p $(BINDIR)
- cp -r ../lib/* $(LIBDIR)
- chown -R $(OWNER):$(GROUP) $(LIBDIR)
- chmod -R g+w $(LIBDIR)
- cp -f $(TARGET) $(BINDIR)/$(TARGET)
- strip $(BINDIR)/$(TARGET)
- chown $(OWNER):$(GROUP) $(BINDIR)/$(TARGET)
- chmod 2755 $(BINDIR)/$(TARGET)
-
-# old-install: $(TARGET)
-# cp $(TARGET) ..
-
-
-#
-# Clean up old junk
-#
-
-clean:
- rm -f *.bak *.o lua/*.o w_*.c
-
-
-#
-# Generate dependancies automatically
-#
-
-depend:
- makedepend $(INCLUDES) $(DEFINES) -D__MAKEDEPEND__ $(SRCS)
-
-.c.o:
- $(CC) $(CFLAGS) -c -o $*.o $*.c
-
-
-#
-# Quests
-#
-plots.o: q_rand.c q_main.c q_one.c q_ultrag.c q_ultrae.c \
- q_thief.c q_hobbit.c q_nazgul.c q_troll.c q_wight.c \
- q_spider.c q_poison.c \
- q_eol.c q_nirna.c q_invas.c \
- q_betwen.c \
- q_narsil.c q_shroom.c q_thrain.c q_wolves.c q_dragons.c q_haunted.c q_evil.c
-
-#
-# Lua library compilation rules
-#
-
-w_mnster.c: monster.pkg $(TOLUADEP)
- $(TOLUA) -n monster -o w_mnster.c monster.pkg
-
-w_player.c: player.pkg $(TOLUADEP)
- $(TOLUA) -n player -o w_player.c player.pkg
-
-w_play_c.c: player_c.pkg $(TOLUADEP)
- $(TOLUA) -n player_c -o w_play_c.c player_c.pkg
-
-w_z_pack.c: z_pack.pkg $(TOLUADEP)
- $(TOLUA) -n z_pack -o w_z_pack.c z_pack.pkg
-
-w_obj.c: object.pkg $(TOLUADEP)
- $(TOLUA) -n object -o w_obj.c object.pkg
-
-w_util.c: util.pkg $(TOLUADEP)
- $(TOLUA) -n util -o w_util.c util.pkg
-
-w_spells.c: spells.pkg $(TOLUADEP)
- $(TOLUA) -n spells -o w_spells.c spells.pkg
-
-w_quest.c: quest.pkg $(TOLUADEP)
- $(TOLUA) -n quest -o w_quest.c quest.pkg
-
-w_dun.c: dungeon.pkg $(TOLUA)
- $(TOLUA) -n dungeon -o w_dun.c dungeon.pkg
-
-# DO NOT DELETE THIS LINE - make depend depends on it.
diff --git a/src/makefile.cyg b/src/makefile.cyg
deleted file mode 100644
index 2fb3fa42..00000000
--- a/src/makefile.cyg
+++ /dev/null
@@ -1,433 +0,0 @@
-# This is a makefile for the Cygwin tools which may
-# be downloaded by following the links from the URL:
-# http://sources.redhat.com/cygwin/
-#
-# To compile with this makefile, rename it from 'makefile.cyg'
-# to 'makefile', then enter the src directory and type
-# 'make install'.
-
-##
-## Before you type "make depend; make", please follow these three steps.
-##
-## 1. Lua-support and GNU Make ifdef's
-##
-## The ifdef ... endif struct may not be supported by 'make'
-## you are using. GNU make does and Berkeley make doesn't, for example.
-## If it doesn't, you can still manually enable/disable them with minimum
-## amount of effort:
-## (1) Search for lines containing ifdef and endif (one occurence for each)
-## (2) Comment these lines out
-## (3-optional) Comment out lines surrounded by these if you are
-## *not* going to compile the game with Lua scripting enabled.
-##
-
-# Comment out this line if you don't want Lua scripting
-LUA=TRUE
-
-#IRCARGS = -DIRC_SERVER=\"irc.worldirc.org\" -DIRC_PORT=\"6667\" -DIRC_CHANNEL=\"\#tome\"
-
-
-
-##
-## 2. Installation locations and such
-##
-## LIBDIR, BINDIR and OWNER should be set appropriately for
-## multiuser installations.
-##
-## If you want to keep it private or don't have root privilege
-## required by "make install", set LIBDIR to ./lib/ or an absolute
-## path pointing to your lib directory, and don't run "make install".
-##
-## NOTE: If LIBDIR is set to ./lib/ , you have to cd to parent directory
-## of lib before you start the game.
-##
-
-# Where lib/ files goes
-#LIBDIR = /usr/lib/games/pernband/
-# Sysadmins of commercial Unix and/or BSD might prefer this
-#LIBDIR = /usr/local/lib/pernband/
-# If you like the old default, use this one
-LIBDIR = ./lib/
-# Another example: single user installation using absolute path
-#LIBDIR = /home/myloginname/lib/pern/
-
-
-# Where PernAngband binary goes
-#BINDIR = /usr/local/games
-# Another common location
-#BINDIR = /usr/local/bin
-
-# The game will run suid to this user
-#OWNER = games
-
-##
-## 3. Some "system" definitions
-##
-## No changes are needed to compile a version that will run on both
-## X11 and Curses, in debugging mode, with maximal warnings, on many
-## normal Unix machines of the Sun OS variety (non-solaris).
-##
-## To use an "alternative" definition, simply "modify" (or "replace")
-## the definition below with one that you like. For example, you can
-## change the compiler to "cc", or remove the "debugging" options, or
-## remove the X11 or Curses support, etc, as desired.
-##
-## See also "config.h" and "h-config.h" for important information.
-##
-## Some "examples" are given below, they can be used by simply
-## removing the FIRST column of "#" signs from the "block" of lines
-## you wish to use, and commenting out "standard" block below.
-##
-## This is not intended to be a "good" Makefile, just a "simple" one.
-##
-
-
-#
-# This is my compiler of choice, it seems to work most everywhere
-#
-CC = gcc
-
-#
-# resource complier
-#
-
-WRES = windres
-
-#
-# Standard version (see main-x11.c and main-gcu.c)
-#
-# This version supports both "X11" and "curses" in a single executable.
-#
-# You may have to add various X11 include/library directories to the
-# "INCLUDES", if your machine places files in a weird location
-# (e.g. -I/usr/X11R6/include, as is almost always the case with
-# linux and *BSD). Since we have seen many linux users -- arguably
-# the largest unix population -- confused by this, and adding this
-# usually doesn't hurt, the default rule has been changed to search
-# for /usr/X11R6/include.
-#
-# You may be able to remove "-ltermcap" on some machines (ex: Solaris).
-#
-# You may have to replace "-lcurses" with "-lncurses" to use the
-# "new curses" library instead of the "old curses" library, and
-# you may have to add "-I/usr/include/ncurses" to the "INCLUDES",
-# and/or "-DUSE_NCURSES" to "DEFINES".
-#
-# See "main-gcu.c" and "config.h" for some optional "curses" defines,
-# including "USE_GETCH" and "USE_CURS_SET". Note that "config.h" will
-# attempt to "guess" at many of these flags based on your system.
-#
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_GCU
-#LIBS = -lX11 -lcurses -L/usr/X11R6/lib
-
-
-##
-## For cygwin
-##
-COPTS = -s -Wall -mno-cygwin -O2 -fno-strength-reduce
-INCLUDES =
-DEFINES = -DWINDOWS -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA \
- -DUSE_PRECISE_CMOVIE \
- -DUSE_WINSOCK \
- $(IRCARGS)
-
-LIBS = -mno-cygwin -mwindows -e _mainCRTStartup -lwinmm -lwsock32
-
-
-##
-## Variation -- Only support "main-gtk.c" (not "main-gcu.c, main-x11.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = `gtk-config --cflags`
-#DEFINES = -DUSE_GTK -DUSE_TRANSPARENCY
-#LIBS = -lX11 -L/usr/X11R6/lib `gtk-config --libs`
-
-##
-## Variation -- Only support "main-x11.c" (not "main-gcu.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11
-#LIBS = -lX11 -L/usr/X11R6/lib
-
-
-##
-## Variation -- Only support "main-gcu.c" (not "main-x11.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_GCU
-#LIBS = -lcurses -ltermcap
-
-
-##
-## Variation -- Use "main-xaw.c" instead of "main-x11.c"
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_XAW -DUSE_GCU
-#LIBS = -lXaw -lXmu -lXt -lX11 -lcurses -ltermcap -L/usr/X11R6/lib
-
-
-##
-## Variation -- Use "main-cap.c" instead of "main-gcu.c"
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_CAP
-#LIBS = -lX11 -ltermcap
-
-
-##
-## Variation -- Only work on simple vt100 terminals
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_CAP -DUSE_HARDCODE
-
-
-##
-## Variation -- this might work for Linux 1.1.93 using ncurses-1.8.7.
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer -m486
-#INCLUDES = -I/usr/X11R6/include -I/usr/include/ncurses
-#DEFINES = -DUSE_X11 -DUSE_GCU
-#LIBS = -L/usr/X11R6/lib -lX11 -lncurses
-
-
-##
-## Variation -- this might work better than the suggestion above
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer
-#INCLUDES = -I/usr/X11R6/include -I/usr/include/ncurses
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_TPOSIX -DUSE_CURS_SET
-#LIBS = -lX11 -lncurses
-#LDFLAGS = -s
-
-
-##
-## Variation -- compile for FreeBSD with ncurses
-## -- BSD curses gives you B&W display.
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer -m486
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_NCURSES
-#LIBS = -L/usr/X11R6/lib -lX11 -lncurses
-
-
-##
-## Variation -- compile for Solaris
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DSOLARIS
-#LIBS = -lX11 -lsocket -lcurses
-
-
-##
-## Variation -- compile for SGI Indigo runnig Irix
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DSGI
-#LIBS = -lX11 -lcurses -ltermcap -lsun
-
-
-
-##
-## Variation -- compile for Dec ALPHA OSF/1 v2.0
-##
-#CC = cc
-##COPTS = -std -O -g3 -Olimit 4000
-#COPTS = -std -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU
-#LIBS = -lX11 -lcurses -ltermcap -lrpcsvc
-
-
-##
-## Variation -- compile for Interactive Unix (ISC) systems
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DISC
-#LIBS = -lX11 -lcurses -lnsl_s -linet -lcposix
-
-
-##
-## Variation -- Support fat binaries under NEXTSTEP
-##
-#COPTS = -Wall -O1 -pipe -g -arch m68k -arch i386
-#INCLUDES =
-#DEFINES = -DUSE_GCU
-#LIBS = -lcurses -ltermcap
-
-
-### End of configurable section ###
-
-#
-# The "source" and "object" files.
-#
-
-BASESRCS = \
- z-util.c z-virt.c z-form.c z-rand.c z-term.c z-sock.c \
- variable.c tables.c util.c cave.c cmovie.c \
- object1.c object2.c traps.c monster1.c monster2.c monster3.c \
- xtra1.c xtra2.c spells1.c spells2.c \
- melee1.c melee2.c loadsave.c files.c \
- cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
- store.c birth.c notes.c help.c \
- status.c randart.c gods.c modules.c \
- wizard1.c wizard2.c levels.c \
- generate.c gen_maze.c gen_evol.c dungeon.c init1.c init2.c \
- bldg.c squeltch.c wild.c powers.c plots.c \
- irc.c skills.c \
- readdib.c angband.rc main-win.c main.c
-
-BASEOBJS = \
- z-term.o z-rand.o z-form.o z-virt.o z-util.o z-sock.o \
- main.o main-win.o readdib.o angband.res \
- generate.o gen_maze.o gen_evol.o dungeon.o init1.o init2.o plots.o help.o \
- store.o birth.o wizard1.o wizard2.o bldg.o cmovie.o \
- cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \
- loadsave.o files.o levels.o notes.o squeltch.o \
- status.o randart.o irc.o skills.o gods.o modules.o \
- xtra1.o xtra2.o spells1.o spells2.o melee1.o melee2.o \
- object1.o object2.o traps.o monster1.o monster2.o monster3.o \
- variable.o tables.o util.o cave.o wild.o powers.o
-
-LUASRCS = \
- script.c lua_bind.c \
- w_util.c w_player.c w_z_pack.c w_obj.c w_mnster.c w_spells.c w_quest.c w_play_c.c w_dun.c
-
-TOLUASRCS = \
- lua/lapi.c lua/lcode.c lua/ldebug.c lua/ldo.c lua/lfunc.c lua/lgc.c \
- lua/llex.c lua/lmem.c lua/lobject.c lua/lparser.c lua/lstate.c lua/lstring.c \
- lua/ltable.c lua/ltests.c lua/ltm.c lua/lundump.c lua/lvm.c lua/lzio.c \
- lua/lauxlib.c lua/lbaselib.c lua/ldblib.c lua/liolib.c lua/lstrlib.c \
- lua/tolua_lb.c lua/tolua_rg.c lua/tolua_tt.c lua/tolua_tm.c lua/tolua_gp.c \
- lua/tolua_eh.c lua/tolua_bd.c
-
-LUAOBJS = \
- script.o lua_bind.o \
- w_util.o w_player.o w_z_pack.o w_obj.o w_mnster.o w_spells.o w_quest.o w_play_c.o w_dun.o
-
-TOLUAOBJS = \
- lua/lapi.o lua/lcode.o lua/ldebug.o lua/ldo.o lua/lfunc.o lua/lgc.o \
- lua/llex.o lua/lmem.o lua/lobject.o lua/lparser.o lua/lstate.o lua/lstring.o \
- lua/ltable.o lua/ltests.o lua/ltm.o lua/lundump.o lua/lvm.o lua/lzio.o \
- lua/lauxlib.o lua/lbaselib.o lua/ldblib.o lua/liolib.o lua/lstrlib.o \
- lua/tolua_lb.o lua/tolua_rg.o lua/tolua_tt.o lua/tolua_tm.o lua/tolua_gp.o \
- lua/tolua_eh.o lua/tolua_bd.o
-
-#
-# Base sources and objects
-#
-
-SRCS = $(BASESRCS)
-OBJS = $(BASEOBJS)
-
-
-#
-# Compiler options
-#
-
-CFLAGS = $(COPTS) $(INCLUDES) $(DEFINES) -DDEFAULT_PATH=\"$(LIBDIR)\"
-
-
-#
-# Lua support
-#
-
-LUAFLAGS = -DUSE_LUA -Ilua -I.
-
-ifdef LUA
-SRCS += $(LUASRCS)
-OBJS += $(LUAOBJS)
-SRCS += $(TOLUASRCS)
-OBJS += $(TOLUAOBJS)
-CFLAGS += $(LUAFLAGS)
-endif
-
-
-#
-# Build the binary. The new base target.
-#
-
-TARGET = tome
-TOLUA = ./tolua
-
-default: $(TARGET) $(TOLUA)
-
-$(TARGET): $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-
-$(TOLUA): $(TOLUAOBJS) lua/tolua.c lua/tolualua.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(TOLUAOBJS) lua/tolua.c lua/tolualua.c $(LIBS)
-
-#
-# An install rule.
-#
-install: default
- cp -f $(TARGET) ..
-
-
-#
-# Clean up old junk
-#
-
-clean:
- rm -f *.bak $(OBJS)
-
-
-#
-# Generate dependancies automatically
-#
-
-depend:
- makedepend $(INCLUDES) $(DEFINES) -D__MAKEDEPEND__ $(SRCS)
-
-.c.o:
- $(CC) $(CFLAGS) -c -o $*.o $*.c
-
-.SUFFIXES: .rc .res
-.rc.res:
- $(WRES) $< -O coff -o $@
-
-#
-# Lua library compilation rules
-#
-
-ifdef LUA
-w_mnster.c: monster.pkg $(TOLUA)
- $(TOLUA) -n monster -o w_mnster.c monster.pkg
-
-w_player.c: player.pkg $(TOLUA)
- $(TOLUA) -n player -o w_player.c player.pkg
-
-w_play_c.c: player_c.pkg $(TOLUA)
- $(TOLUA) -n player_c -o w_play_c.c player_c.pkg
-
-w_z_pack.c: z_pack.pkg $(TOLUA)
- $(TOLUA) -n z_pack -o w_z_pack.c z_pack.pkg
-
-w_obj.c: object.pkg $(TOLUA)
- $(TOLUA) -n object -o w_obj.c object.pkg
-
-w_util.c: util.pkg $(TOLUA)
- $(TOLUA) -n util -o w_util.c util.pkg
-
-w_spells.c: spells.pkg $(TOLUA)
- $(TOLUA) -n spells -o w_spells.c spells.pkg
-
-w_quest.c: quest.pkg $(TOLUA)
- $(TOLUA) -n quest -o w_quest.c quest.pkg
-
-w_dun.c: dungeon.pkg $(TOLUA)
- $(TOLUA) -n dungeon -o w_dun.c dungeon.pkg
-
-endif
-
-# DO NOT DELETE THIS LINE - make depend depends on it.
diff --git a/src/makefile.mingw b/src/makefile.mingw
deleted file mode 100644
index 3e081524..00000000
--- a/src/makefile.mingw
+++ /dev/null
@@ -1,431 +0,0 @@
-# This is a makefile for the mingw corss platform compiler
-#
-# To compile with this makefile, rename it from 'makefile.mingw'
-# to 'makefile', then enter the src directory and type
-# 'make'.
-
-##
-## Before you type "make depend; make", please follow these three steps.
-##
-## 1. Lua-support and GNU Make ifdef's
-##
-## The ifdef ... endif struct may not be supported by 'make'
-## you are using. GNU make does and Berkeley make doesn't, for example.
-## If it doesn't, you can still manually enable/disable them with minimum
-## amount of effort:
-## (1) Search for lines containing ifdef and endif (one occurence for each)
-## (2) Comment these lines out
-## (3-optional) Comment out lines surrounded by these if you are
-## *not* going to compile the game with Lua scripting enabled.
-##
-
-# Comment out this line if you don't want Lua scripting
-LUA=TRUE
-
-#IRCARGS = -DIRC_SERVER=\"irc.worldirc.org\" -DIRC_PORT=\"6667\" -DIRC_CHANNEL=\"\#tome\"
-
-
-
-##
-## 2. Installation locations and such
-##
-## LIBDIR, BINDIR and OWNER should be set appropriately for
-## multiuser installations.
-##
-## If you want to keep it private or don't have root privilege
-## required by "make install", set LIBDIR to ./lib/ or an absolute
-## path pointing to your lib directory, and don't run "make install".
-##
-## NOTE: If LIBDIR is set to ./lib/ , you have to cd to parent directory
-## of lib before you start the game.
-##
-
-# Where lib/ files goes
-#LIBDIR = /usr/lib/games/pernband/
-# Sysadmins of commercial Unix and/or BSD might prefer this
-#LIBDIR = /usr/local/lib/pernband/
-# If you like the old default, use this one
-LIBDIR = .\lib
-# Another example: single user installation using absolute path
-#LIBDIR = /home/myloginname/lib/pern/
-
-
-# Where PernAngband binary goes
-#BINDIR = /usr/local/games
-# Another common location
-#BINDIR = /usr/local/bin
-
-# The game will run suid to this user
-#OWNER = games
-
-##
-## 3. Some "system" definitions
-##
-## No changes are needed to compile a version that will run on both
-## X11 and Curses, in debugging mode, with maximal warnings, on many
-## normal Unix machines of the Sun OS variety (non-solaris).
-##
-## To use an "alternative" definition, simply "modify" (or "replace")
-## the definition below with one that you like. For example, you can
-## change the compiler to "cc", or remove the "debugging" options, or
-## remove the X11 or Curses support, etc, as desired.
-##
-## See also "config.h" and "h-config.h" for important information.
-##
-## Some "examples" are given below, they can be used by simply
-## removing the FIRST column of "#" signs from the "block" of lines
-## you wish to use, and commenting out "standard" block below.
-##
-## This is not intended to be a "good" Makefile, just a "simple" one.
-##
-
-
-#
-# This is my compiler of choice, it seems to work most everywhere
-#
-CC = i386-mingw32msvc-gcc
-
-#
-# resource complier
-#
-
-WRES = i386-mingw32msvc-windres
-
-#
-# Standard version (see main-x11.c and main-gcu.c)
-#
-# This version supports both "X11" and "curses" in a single executable.
-#
-# You may have to add various X11 include/library directories to the
-# "INCLUDES", if your machine places files in a weird location
-# (e.g. -I/usr/X11R6/include, as is almost always the case with
-# linux and *BSD). Since we have seen many linux users -- arguably
-# the largest unix population -- confused by this, and adding this
-# usually doesn't hurt, the default rule has been changed to search
-# for /usr/X11R6/include.
-#
-# You may be able to remove "-ltermcap" on some machines (ex: Solaris).
-#
-# You may have to replace "-lcurses" with "-lncurses" to use the
-# "new curses" library instead of the "old curses" library, and
-# you may have to add "-I/usr/include/ncurses" to the "INCLUDES",
-# and/or "-DUSE_NCURSES" to "DEFINES".
-#
-# See "main-gcu.c" and "config.h" for some optional "curses" defines,
-# including "USE_GETCH" and "USE_CURS_SET". Note that "config.h" will
-# attempt to "guess" at many of these flags based on your system.
-#
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_GCU
-#LIBS = -lX11 -lcurses -L/usr/X11R6/lib
-
-
-##
-## For cygwin
-##
-COPTS = -s -Wall -mno-cygwin -O2 -fno-strength-reduce
-INCLUDES =
-DEFINES = -DWINDOWS -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA \
- -DUSE_PRECISE_CMOVIE \
- -DUSE_WINSOCK \
- $(IRCARGS)
-
-LIBS = -mno-cygwin -mwindows -e _mainCRTStartup -lwinmm -lwsock32
-
-
-##
-## Variation -- Only support "main-gtk.c" (not "main-gcu.c, main-x11.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = `gtk-config --cflags`
-#DEFINES = -DUSE_GTK -DUSE_TRANSPARENCY
-#LIBS = -lX11 -L/usr/X11R6/lib `gtk-config --libs`
-
-##
-## Variation -- Only support "main-x11.c" (not "main-gcu.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11
-#LIBS = -lX11 -L/usr/X11R6/lib
-
-
-##
-## Variation -- Only support "main-gcu.c" (not "main-x11.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_GCU
-#LIBS = -lcurses -ltermcap
-
-
-##
-## Variation -- Use "main-xaw.c" instead of "main-x11.c"
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_XAW -DUSE_GCU
-#LIBS = -lXaw -lXmu -lXt -lX11 -lcurses -ltermcap -L/usr/X11R6/lib
-
-
-##
-## Variation -- Use "main-cap.c" instead of "main-gcu.c"
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_CAP
-#LIBS = -lX11 -ltermcap
-
-
-##
-## Variation -- Only work on simple vt100 terminals
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_CAP -DUSE_HARDCODE
-
-
-##
-## Variation -- this might work for Linux 1.1.93 using ncurses-1.8.7.
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer -m486
-#INCLUDES = -I/usr/X11R6/include -I/usr/include/ncurses
-#DEFINES = -DUSE_X11 -DUSE_GCU
-#LIBS = -L/usr/X11R6/lib -lX11 -lncurses
-
-
-##
-## Variation -- this might work better than the suggestion above
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer
-#INCLUDES = -I/usr/X11R6/include -I/usr/include/ncurses
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_TPOSIX -DUSE_CURS_SET
-#LIBS = -lX11 -lncurses
-#LDFLAGS = -s
-
-
-##
-## Variation -- compile for FreeBSD with ncurses
-## -- BSD curses gives you B&W display.
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer -m486
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_NCURSES
-#LIBS = -L/usr/X11R6/lib -lX11 -lncurses
-
-
-##
-## Variation -- compile for Solaris
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DSOLARIS
-#LIBS = -lX11 -lsocket -lcurses
-
-
-##
-## Variation -- compile for SGI Indigo runnig Irix
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DSGI
-#LIBS = -lX11 -lcurses -ltermcap -lsun
-
-
-
-##
-## Variation -- compile for Dec ALPHA OSF/1 v2.0
-##
-#CC = cc
-##COPTS = -std -O -g3 -Olimit 4000
-#COPTS = -std -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU
-#LIBS = -lX11 -lcurses -ltermcap -lrpcsvc
-
-
-##
-## Variation -- compile for Interactive Unix (ISC) systems
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DISC
-#LIBS = -lX11 -lcurses -lnsl_s -linet -lcposix
-
-
-##
-## Variation -- Support fat binaries under NEXTSTEP
-##
-#COPTS = -Wall -O1 -pipe -g -arch m68k -arch i386
-#INCLUDES =
-#DEFINES = -DUSE_GCU
-#LIBS = -lcurses -ltermcap
-
-
-### End of configurable section ###
-
-#
-# The "source" and "object" files.
-#
-
-BASESRCS = \
- z-util.c z-virt.c z-form.c z-rand.c z-term.c z-sock.c \
- variable.c tables.c util.c cave.c cmovie.c \
- object1.c object2.c traps.c monster1.c monster2.c monster3.c \
- xtra1.c xtra2.c spells1.c spells2.c \
- melee1.c melee2.c loadsave.c files.c \
- cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
- store.c birth.c notes.c help.c \
- status.c randart.c gods.c modules.c \
- wizard1.c wizard2.c levels.c \
- generate.c gen_maze.c gen_evol.c dungeon.c init1.c init2.c \
- bldg.c squeltch.c wild.c powers.c plots.c \
- irc.c skills.c \
- readdib.c angband.rc main-win.c main.c
-
-BASEOBJS = \
- z-term.o z-rand.o z-form.o z-virt.o z-util.o z-sock.o \
- main.o main-win.o readdib.o angband.res \
- generate.o gen_maze.o gen_evol.o dungeon.o init1.o init2.o plots.o help.o \
- store.o birth.o wizard1.o wizard2.o bldg.o cmovie.o \
- cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \
- loadsave.o files.o levels.o notes.o squeltch.o \
- status.o randart.o irc.o skills.o gods.o modules.o \
- xtra1.o xtra2.o spells1.o spells2.o melee1.o melee2.o \
- object1.o object2.o traps.o monster1.o monster2.o monster3.o \
- variable.o tables.o util.o cave.o wild.o powers.o
-
-LUASRCS = \
- script.c lua_bind.c \
- w_util.c w_player.c w_z_pack.c w_obj.c w_mnster.c w_spells.c w_quest.c w_play_c.c w_dun.c
-
-TOLUASRCS = \
- lua/lapi.c lua/lcode.c lua/ldebug.c lua/ldo.c lua/lfunc.c lua/lgc.c \
- lua/llex.c lua/lmem.c lua/lobject.c lua/lparser.c lua/lstate.c lua/lstring.c \
- lua/ltable.c lua/ltests.c lua/ltm.c lua/lundump.c lua/lvm.c lua/lzio.c \
- lua/lauxlib.c lua/lbaselib.c lua/ldblib.c lua/liolib.c lua/lstrlib.c \
- lua/tolua_lb.c lua/tolua_rg.c lua/tolua_tt.c lua/tolua_tm.c lua/tolua_gp.c \
- lua/tolua_eh.c lua/tolua_bd.c
-
-LUAOBJS = \
- script.o lua_bind.o \
- w_util.o w_player.o w_z_pack.o w_obj.o w_mnster.o w_spells.o w_quest.o w_play_c.o w_dun.o
-
-TOLUAOBJS = \
- lua/lapi.o lua/lcode.o lua/ldebug.o lua/ldo.o lua/lfunc.o lua/lgc.o \
- lua/llex.o lua/lmem.o lua/lobject.o lua/lparser.o lua/lstate.o lua/lstring.o \
- lua/ltable.o lua/ltests.o lua/ltm.o lua/lundump.o lua/lvm.o lua/lzio.o \
- lua/lauxlib.o lua/lbaselib.o lua/ldblib.o lua/liolib.o lua/lstrlib.o \
- lua/tolua_lb.o lua/tolua_rg.o lua/tolua_tt.o lua/tolua_tm.o lua/tolua_gp.o \
- lua/tolua_eh.o lua/tolua_bd.o
-
-#
-# Base sources and objects
-#
-
-SRCS = $(BASESRCS)
-OBJS = $(BASEOBJS)
-
-
-#
-# Compiler options
-#
-
-CFLAGS = $(COPTS) $(INCLUDES) $(DEFINES) -DDEFAULT_PATH=\"$(LIBDIR)\"
-
-
-#
-# Lua support
-#
-
-LUAFLAGS = -DUSE_LUA -Ilua -I.
-
-ifdef LUA
-SRCS += $(LUASRCS)
-OBJS += $(LUAOBJS)
-SRCS += $(TOLUASRCS)
-OBJS += $(TOLUAOBJS)
-CFLAGS += $(LUAFLAGS)
-endif
-
-
-#
-# Build the binary. The new base target.
-#
-
-TARGET = tome
-TOLUA = ./tolua
-
-default: $(TARGET) $(TOLUA)
-
-$(TARGET): $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-
-$(TOLUA): $(TOLUAOBJS) lua/tolua.c lua/tolualua.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(TOLUAOBJS) lua/tolua.c lua/tolualua.c $(LIBS)
-
-#
-# An install rule.
-#
-install: default
- cp -f $(TARGET) ..
-
-
-#
-# Clean up old junk
-#
-
-clean:
- rm -f *.bak $(OBJS)
-
-
-#
-# Generate dependancies automatically
-#
-
-depend:
- makedepend $(INCLUDES) $(DEFINES) -D__MAKEDEPEND__ $(SRCS)
-
-.c.o:
- $(CC) $(CFLAGS) -c -o $*.o $*.c
-
-.SUFFIXES: .rc .res
-.rc.res:
- $(WRES) $< -O coff -o $@
-
-#
-# Lua library compilation rules
-#
-
-ifdef LUA
-w_mnster.c: monster.pkg $(TOLUA)
- $(TOLUA) -n monster -o w_mnster.c monster.pkg
-
-w_player.c: player.pkg $(TOLUA)
- $(TOLUA) -n player -o w_player.c player.pkg
-
-w_play_c.c: player_c.pkg $(TOLUA)
- $(TOLUA) -n player_c -o w_play_c.c player_c.pkg
-
-w_z_pack.c: z_pack.pkg $(TOLUA)
- $(TOLUA) -n z_pack -o w_z_pack.c z_pack.pkg
-
-w_obj.c: object.pkg $(TOLUA)
- $(TOLUA) -n object -o w_obj.c object.pkg
-
-w_util.c: util.pkg $(TOLUA)
- $(TOLUA) -n util -o w_util.c util.pkg
-
-w_spells.c: spells.pkg $(TOLUA)
- $(TOLUA) -n spells -o w_spells.c spells.pkg
-
-w_quest.c: quest.pkg $(TOLUA)
- $(TOLUA) -n quest -o w_quest.c quest.pkg
-
-w_dun.c: dungeon.pkg $(TOLUA)
- $(TOLUA) -n dungeon -o w_dun.c dungeon.pkg
-
-endif
-
-# DO NOT DELETE THIS LINE - make depend depends on it.
diff --git a/src/makefile.osx b/src/makefile.osx
deleted file mode 100644
index 756231c6..00000000
--- a/src/makefile.osx
+++ /dev/null
@@ -1,210 +0,0 @@
-BUNDLENAME = ToME
-BUNDLEDIR = ../$(BUNDLENAME).app
-CONTENTSDIR = $(BUNDLEDIR)/Contents
-BINDIR = $(CONTENTSDIR)/MacOS
-RESOURCEDIR = $(CONTENTSDIR)/Resources
-LIBDIR = $(RESOURCEDIR)
-
-CC = MACOSX_DEPLOYMENT_TARGET="10.1" cc
-
-COPTS = -Wall -Os -g -pipe -fpascal-strings
-#-Wno-deprecated-declarations
-DEFINES = -DUSE_MACOSX -DMACH_O_CARBON \
- -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK \
- -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA
-LIBS = -framework CoreFoundation -framework QuickTime -framework Carbon
-
-# Universal binary support
-COPTS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
-LIBS += -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
-
-BASESRCS = \
- main-crb.c \
- z-rand.c z-util.c z-form.c z-virt.c z-term.c z-sock.c \
- variable.c tables.c plots.c util.c cave.c dungeon.c \
- melee1.c melee2.c modules.c \
- object1.c object2.c randart.c squeltch.c traps.c \
- monster1.c monster2.c monster3.c \
- xtra1.c xtra2.c skills.c powers.c gods.c \
- spells1.c spells2.c \
- status.c files.c notes.c loadsave.c \
- cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
- help.c \
- generate.c gen_maze.c gen_evol.c wild.c levels.c store.c bldg.c \
- cmovie.c irc.c \
- wizard2.c init2.c birth.c wizard1.c init1.c
-
-BASEOBJS = \
- main-crb.o \
- z-rand.o z-util.o z-form.o z-virt.o z-term.o z-sock.o \
- variable.o tables.o plots.o util.o cave.o dungeon.o \
- melee1.o melee2.o modules.o \
- object1.o object2.o randart.o squeltch.o traps.o \
- monster1.o monster2.o monster3.o \
- xtra1.o xtra2.o skills.o powers.o gods.o \
- spells1.o spells2.o \
- status.o files.o notes.o loadsave.o \
- cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \
- help.o \
- generate.o gen_maze.o gen_evol.o wild.o levels.o store.o bldg.o \
- cmovie.o irc.o \
- wizard2.o init2.o birth.o wizard1.o init1.o
-
-LUASRCS = \
- script.c lua_bind.c \
- w_util.c w_player.c w_z_pack.c w_obj.c w_mnster.c w_spells.c w_quest.c w_play_c.c w_dun.c
-
-TOLUASRCS = \
- lua/lapi.c lua/lcode.c lua/ldebug.c lua/ldo.c lua/lfunc.c lua/lgc.c \
- lua/llex.c lua/lmem.c lua/lobject.c lua/lparser.c lua/lstate.c lua/lstring.c \
- lua/ltable.c lua/ltests.c lua/ltm.c lua/lundump.c lua/lvm.c lua/lzio.c \
- lua/lauxlib.c lua/lbaselib.c lua/ldblib.c lua/liolib.c lua/lstrlib.c \
- lua/tolua_lb.c lua/tolua_rg.c lua/tolua_tt.c lua/tolua_tm.c lua/tolua_gp.c \
- lua/tolua_eh.c lua/tolua_bd.c
-
-LUAOBJS = \
- script.o lua_bind.o \
- w_util.o w_player.o w_z_pack.o w_obj.o w_mnster.o w_spells.o w_quest.o w_play_c.o w_dun.o
-
-TOLUAOBJS = \
- lua/lapi.o lua/lcode.o lua/ldebug.o lua/ldo.o lua/lfunc.o lua/lgc.o \
- lua/llex.o lua/lmem.o lua/lobject.o lua/lparser.o lua/lstate.o lua/lstring.o \
- lua/ltable.o lua/ltests.o lua/ltm.o lua/lundump.o lua/lvm.o lua/lzio.o \
- lua/lauxlib.o lua/lbaselib.o lua/ldblib.o lua/liolib.o lua/lstrlib.o \
- lua/tolua_lb.o lua/tolua_rg.o lua/tolua_tt.o lua/tolua_tm.o lua/tolua_gp.o \
- lua/tolua_eh.o lua/tolua_bd.o
-
-#
-# Base sources and objects
-#
-
-SRCS = $(BASESRCS)
-OBJS = $(BASEOBJS)
-
-
-#
-# Compiler options
-#
-
-CFLAGS = $(COPTS) $(INCLUDES) $(DEFINES)
-
-
-#
-# Lua support
-#
-
-INCLUDES += -Ilua -I.
-DEFINES += -DUSE_LUA
-SRCS = $(LUASRCS) $(TOLUASRCS) $(BASESRCS)
-OBJS = $(LUAOBJS) $(TOLUAOBJS) $(BASEOBJS)
-
-# Force recreation of stub files when lua source files are updated
-# To be included in dependency rules
-TOLUADEP = $(TOLUASRCS) lua/tolua.c lua/tolualua.c $(TOLUA)
-
-# Build the binary. The new base target.
-#
-
-TARGET = tome
-
-TOLUA = ./tolua
-
-default: $(TOLUA) $(TARGET)
-
-$(TARGET): $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-
-$(TOLUA): $(TOLUAOBJS) lua/tolua.c lua/tolualua.c
- $(CC) $(LDFLAGS) -o $@ $(TOLUAOBJS) lua/tolua.c lua/tolualua.c $(LIBS)
-
-install: default
- [ -d $(BUNDLEDIR) ] || mkdir $(BUNDLEDIR)
- [ -d $(CONTENTSDIR) ] || mkdir $(CONTENTSDIR)
- [ -d $(BINDIR) ] || mkdir $(BINDIR)
- [ -d $(RESOURCEDIR) ] || mkdir $(RESOURCEDIR)
- install -m 755 $(TARGET) $(BINDIR)
- install -m 644 carbon/*.icns $(RESOURCEDIR)
- /Developer/Tools/Rez -i /Developer/Headers/FlatCarbon -d MACH_O -o $(RESOURCEDIR)/tome.rsrc carbon/Carbon.r
- install -m 644 carbon/Info.plist $(CONTENTSDIR)/Info.plist
- /Developer/Tools/SetFile -a B $(BUNDLEDIR)
- rsync -r --exclude="*CVS*" --exclude="*xtra/graf*" --exclude="*xtra/font*" ../lib/* $(RESOURCEDIR)
- rsync ../lib/mods/*.lua $(RESOURCEDIR)/core
- rsync ../lib/xtra/graf/*.png $(RESOURCEDIR)
-
-BUNDLEDIR := ../ToME.app
-APPVERSION := `carbon/getversion`
-IMAGENAME := ToME $(APPVERSION)
-IMAGEPATH := /Volumes/$(IMAGENAME)
-
-image: install
- [ -d "$(IMAGEPATH)" ] && diskutil eject "$(IMAGEPATH)" || true
-
- hdiutil create -fs HFS+ -volname "$(IMAGENAME)" -ov -type SPARSE -attach "$(IMAGENAME)"
- cp -r "$(BUNDLEDIR)" ../changes.txt ../credits.txt ../changes.old "$(IMAGEPATH)"
- cp carbon/Image-DS_Store "$(IMAGEPATH)/.DS_Store"
- diskutil eject "$(IMAGEPATH)"
-
- rm -f "$(IMAGENAME).dmg"
- hdiutil convert "$(IMAGENAME).sparseimage" -format UDZO -o "$(IMAGENAME)"
- rm "$(IMAGENAME).sparseimage"
-
-#
-# Clean up old junk
-#
-
-clean:
- rm -f *.bak *.o lua/*.o w_*.c $(TOLUA) $(TARGET)
-
-#
-# Generate dependancies automatically
-#
-
-depend:
- makedepend $(INCLUDES) $(DEFINES) -D__MAKEDEPEND__ $(SRCS)
-
-.c.o:
- $(CC) $(CFLAGS) -c -o $*.o $*.c
-
-
-#
-# Quests
-#
-plots.o: q_rand.c q_main.c q_one.c q_ultrag.c q_ultrae.c \
- q_thief.c q_hobbit.c q_nazgul.c q_troll.c q_wight.c \
- q_spider.c q_poison.c \
- q_eol.c q_nirna.c q_invas.c \
- q_betwen.c \
- q_narsil.c q_shroom.c q_thrain.c q_wolves.c q_dragons.c q_haunted.c q_evil.c
-
-#
-# Lua library compilation rules
-#
-
-w_mnster.c: monster.pkg $(TOLUADEP)
- $(TOLUA) -n monster -o w_mnster.c monster.pkg
-
-w_player.c: player.pkg $(TOLUADEP)
- $(TOLUA) -n player -o w_player.c player.pkg
-
-w_play_c.c: player_c.pkg $(TOLUADEP)
- $(TOLUA) -n player_c -o w_play_c.c player_c.pkg
-
-w_z_pack.c: z_pack.pkg $(TOLUADEP)
- $(TOLUA) -n z_pack -o w_z_pack.c z_pack.pkg
-
-w_obj.c: object.pkg $(TOLUADEP)
- $(TOLUA) -n object -o w_obj.c object.pkg
-
-w_util.c: util.pkg $(TOLUADEP)
- $(TOLUA) -n util -o w_util.c util.pkg
-
-w_spells.c: spells.pkg $(TOLUADEP)
- $(TOLUA) -n spells -o w_spells.c spells.pkg
-
-w_quest.c: quest.pkg $(TOLUADEP)
- $(TOLUA) -n quest -o w_quest.c quest.pkg
-
-w_dun.c: dungeon.pkg $(TOLUA)
- $(TOLUA) -n dungeon -o w_dun.c dungeon.pkg
-
-# DO NOT DELETE THIS LINE - make depend depends on it.
diff --git a/src/makefile.sdliso b/src/makefile.sdliso
deleted file mode 100644
index 2c939d92..00000000
--- a/src/makefile.sdliso
+++ /dev/null
@@ -1,496 +0,0 @@
-# File: Makefile
-
-# This is not a very "nice" Makefile, but it usually works.
-
-#
-# Note that you may have to make modifications below according
-# to your machine, available libraries, compilation options,
-# and your "visual module" of choice. This Makefile is intended
-# for use with Unix machines running X11, Curses, Ncurses, or Vt100,
-# or possibly for "Atari" or "Amiga" computers with "Curses" ports,
-# see below for more information.
-#
-# Note that "main-mac.c" and "main-crb.c", the visual modules for
-# the Macintosh, must be compiled in a special way, see elsewhere.
-#
-# Note that "main-win.c", the visual module for Windows,
-# must be compiled in a special way, see elsewhere.
-#
-# Note that "main-ibm.c" and "main-emx.c", the visual modules
-# for various types of IBM-PC computers, must be compiled with
-# special Makefiles, see elsewhere.
-#
-# Note that "main-lsl.c", the visual module for Linux-SVGALIB
-# must be compiled with "Makefile.lsl", see elsewhere.
-#
-# Note that "main-acn.c", the visual module for Risc Acorn,
-# must be compiled with "Makefile.acn", see elsewhere.
-#
-# Note that "Makefile.wat" is a slight variation on "Makefile.ibm",
-# which allow the use of "main-ibm.c" with special compiler
-# (might be out-of-date).
-#
-# If you are able to construct "main-xxx.c" and/or "Makefile.xxx"
-# files for a currently unsupported system, please send them to me
-# (rr9@angband.org) for inclusion in future versions.
-#
-
-##
-## 1. Installation locations and such
-##
-## LIBDIR, BINDIR and OWNER should be set appropriately for
-## multiuser installations.
-##
-## If you want to keep it private or don't have root privilege
-## required by "make install", set LIBDIR to ./lib/ or an absolute
-## path pointing to your lib directory, and don't run "make install".
-##
-## NOTE: If LIBDIR is set to ./lib/ , you have to cd to parent directory
-## of lib before you start the game.
-##
-
-# Where lib/ files goes
-#LIBDIR = /usr/lib/games/tome/
-# Sysadmins of commercial Unix and/or BSD might prefer this
-#LIBDIR = /usr/local/lib/tome/
-# If you like the old default, use this one
-LIBDIR = ./lib/
-# Another example: single user installation using absolute path
-#LIBDIR = /home/myloginname/lib/tome/
-
-
-# Where ToME binary goes
-BINDIR = /usr/local/games
-# Another common location
-#BINDIR = /usr/local/bin
-
-# The game will run suid to this user
-OWNER = games
-
-# Ignore this if you're not making a package
-DESTDIR=
-
-##
-## 2. Some "system" definitions
-##
-## No changes are needed to compile a version that will run on both
-## X11 and Curses, in debugging mode, with maximal warnings, on many
-## normal Unix machines of the Sun OS variety (non-solaris).
-##
-## To use an "alternative" definition, simply "modify" (or "replace")
-## the definition below with one that you like. For example, you can
-## change the compiler to "cc", or remove the "debugging" options, or
-## remove the X11 or Curses support, etc, as desired.
-##
-## See also "config.h" and "h-config.h" for important information.
-##
-## Some "examples" are given below, they can be used by simply
-## removing the FIRST column of "#" signs from the "block" of lines
-## you wish to use, and commenting out "standard" block below.
-##
-## This is not intended to be a "good" Makefile, just a "simple" one.
-##
-
-
-#
-# This is my compiler of choice, it seems to work most everywhere
-#
-CC = gcc
-
-# Profiling options
-# PROFILECOPTS = -pg
-# PROFILELDFLAGS = -pg
-
-#
-# Standard version (see main-x11.c and main-gcu.c)
-#
-# This version supports both "X11" and "curses" in a single executable.
-#
-# You may have to add various X11 include/library directories to the
-# "INCLUDES", if your machine places files in a weird location
-# (e.g. -I/usr/X11R6/include, as is almost always the case with
-# linux and *BSD). Since we have seen many linux users -- arguably
-# the largest unix population -- confused by this, and adding this
-# usually doesn't hurt, the default rule has been changed to search
-# for /usr/X11R6/include.
-#
-# You may be able to remove "-ltermcap" on some machines (ex: Solaris).
-#
-# You may have to replace "-lcurses" with "-lncurses" to use the
-# "new curses" library instead of the "old curses" library, and
-# you may have to add "-I/usr/include/ncurses" to the "INCLUDES",
-# and/or "-DUSE_NCURSES" to "DEFINES".
-#
-# See "main-gcu.c" and "config.h" for some optional "curses" defines,
-# including "USE_GETCH" and "USE_CURS_SET". Note that "config.h" will
-# attempt to "guess" at many of these flags based on your system.
-#
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 \
-# -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA \
-# -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK
-#LIBS = -lX11 -L/usr/X11R6/lib
-
-##
-## Variation -- Only support "main-gtk.c" (not "main-gcu.c, main-x11.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = `gtk-config --cflags`
-#DEFINES = -DUSE_GTK -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = `gtk-config --libs`
-
-#
-# Variation -- Only support "main-x11.c" (not "main-gcu.c")
-#
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -L/usr/X11R6/lib
-
-
-##
-## Variation -- Only support "main-gcu.c" (not "main-x11.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_GCU
-#LIBS = -lcurses -ltermcap
-
-
-##
-## Variation -- Use "main-xaw.c" instead of "main-x11.c"
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_XAW -DUSE_GCU \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lXaw -lXmu -lXt -lX11 -lcurses -ltermcap -L/usr/X11R6/lib
-
-##
-## Variation -- Use "main-sdl.c" instead of "main-x11.c"
-##
-SDL_CONFIG ?= sdl-config
-COPTS = -Wall -O1 -pipe -g
-INCLUDES = `$(SDL_CONFIG) --cflags`
-DEFINES = -DUSE_SDL -DUSE_GCU \
- -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY \
- -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DSUPPORT_GAMMA \
- -DUSE_ISO
-LIBS = `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_ttf -lcurses
-
-##
-## Variation -- Use "main-cap.c" instead of "main-gcu.c"
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_CAP \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -ltermcap
-
-
-##
-## Variation -- Only work on simple vt100 terminals
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_CAP -DUSE_HARDCODE
-
-
-##
-## Variation -- this might work for Linux 1.1.93 using ncurses-1.8.7.
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer -m486
-#INCLUDES = -I/usr/X11R6/include -I/usr/include/ncurses
-#DEFINES = -DUSE_X11 -DUSE_GCU \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lncurses -L/usr/X11R6/lib
-
-
-##
-## Variation -- this might work better than the suggestion above
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer
-#INCLUDES = -I/usr/X11R6/include -I/usr/include/ncurses
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_TPOSIX -DUSE_CURS_SET \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lncurses -L/usr/X11R6/lib
-#LDFLAGS = -s
-
-
-##
-## Variation -- compile for FreeBSD with ncurses
-## -- BSD curses gives you B&W display.
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer -m486
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_NCURSES \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lncurses -L/usr/X11R6/lib
-
-
-##
-## Variation -- compile for Solaris
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DSOLARIS \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lsocket -lcurses
-
-
-##
-## Variation -- compile for SGI Indigo runnig Irix
-## The SGI has hardware gamma correction.
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DSGI \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS
-#LIBS = -lX11 -lcurses -ltermcap -lsun
-
-
-
-##
-## Variation -- compile for Dec ALPHA OSF/1 v2.0
-##
-#CC = cc
-##COPTS = -std -O -g3 -Olimit 4000
-#COPTS = -std -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lcurses -ltermcap -lrpcsvc
-
-
-##
-## Variation -- compile for Interactive Unix (ISC) systems
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DISC \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lcurses -lnsl_s -linet -lcposix
-
-
-##
-## Variation -- Support fat binaries under NEXTSTEP
-##
-#COPTS = -Wall -O1 -pipe -g -arch m68k -arch i386
-#INCLUDES =
-#DEFINES = -DUSE_GCU
-#LIBS = -lcurses -ltermcap
-
-
-### End of configurable section ###
-
-#
-# The "source" and "object" files.
-#
-
-BASESRCS = \
- main-gtk.c main-gcu.c main-x11.c main-xaw.c main-dmy.c \
- z-rand.c z-util.c z-form.c z-virt.c z-term.c z-sock.c \
- variable.c tables.c plots.c util.c cave.c dungeon.c \
- melee1.c melee2.c modules.c \
- object1.c object2.c randart.c squeltch.c traps.c \
- monster1.c monster2.c monster3.c \
- xtra1.c xtra2.c skills.c powers.c gods.c \
- spells1.c spells2.c \
- status.c files.c notes.c loadsave.c \
- cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
- help.c \
- generate.c gen_maze.c gen_evol.c wild.c levels.c store.c bldg.c \
- cmovie.c irc.c \
- wizard2.c init2.c birth.c wizard1.c init1.c \
- iso/simgraph.c iso/simview.c iso/world_adaptor.c iso/world_view.c \
- main-sdl-iso.c maim-iso.c
-
-
-BASEOBJS = \
- main-gtk.o main-gcu.o main-x11.o main-xaw.o main-dmy.o \
- z-rand.o z-util.o z-form.o z-virt.o z-term.o z-sock.o \
- variable.o tables.o plots.o util.o cave.o dungeon.o \
- melee1.o melee2.o modules.o \
- object1.o object2.o randart.o squeltch.o traps.o \
- monster1.o monster2.o monster3.o \
- xtra1.o xtra2.o skills.o powers.o gods.o \
- spells1.o spells2.o \
- status.o files.o notes.o loadsave.o \
- cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \
- help.o \
- generate.o gen_maze.o gen_evol.o wild.o levels.o store.o bldg.o \
- cmovie.o irc.o \
- wizard2.o init2.o birth.o wizard1.o init1.o \
- iso/simgraph.o iso/simview.o iso/world_adaptor.o iso/world_view.o \
- main-sdl-iso.o maim-iso.o
-
-
-LUASRCS = \
- script.c lua_bind.c \
- w_util.c w_player.c w_z_pack.c w_obj.c w_mnster.c w_spells.c w_quest.c w_play_c.c w_dun.c
-
-TOLUASRCS = \
- lua/lapi.c lua/lcode.c lua/ldebug.c lua/ldo.c lua/lfunc.c lua/lgc.c \
- lua/llex.c lua/lmem.c lua/lobject.c lua/lparser.c lua/lstate.c lua/lstring.c \
- lua/ltable.c lua/ltests.c lua/ltm.c lua/lundump.c lua/lvm.c lua/lzio.c \
- lua/lauxlib.c lua/lbaselib.c lua/ldblib.c lua/liolib.c lua/lstrlib.c \
- lua/tolua_lb.c lua/tolua_rg.c lua/tolua_tt.c lua/tolua_tm.c lua/tolua_gp.c \
- lua/tolua_eh.c lua/tolua_bd.c
-
-LUAOBJS = \
- script.o lua_bind.o \
- w_util.o w_player.o w_z_pack.o w_obj.o w_mnster.o w_spells.o w_quest.o w_play_c.o w_dun.o
-
-TOLUAOBJS = \
- lua/lapi.o lua/lcode.o lua/ldebug.o lua/ldo.o lua/lfunc.o lua/lgc.o \
- lua/llex.o lua/lmem.o lua/lobject.o lua/lparser.o lua/lstate.o lua/lstring.o \
- lua/ltable.o lua/ltests.o lua/ltm.o lua/lundump.o lua/lvm.o lua/lzio.o \
- lua/lauxlib.o lua/lbaselib.o lua/ldblib.o lua/liolib.o lua/lstrlib.o \
- lua/tolua_lb.o lua/tolua_rg.o lua/tolua_tt.o lua/tolua_tm.o lua/tolua_gp.o \
- lua/tolua_eh.o lua/tolua_bd.o
-
-#
-# Base sources and objects
-#
-
-SRCS = $(BASESRCS)
-OBJS = $(BASEOBJS)
-
-
-#
-# Compiler options
-#
-
-CFLAGS = $(COPTS) $(PROFILECOPTS) $(INCLUDES) $(DEFINES) -DDEFAULT_PATH=\"$(LIBDIR)\"
-
-
-#
-# Lua support
-#
-
-INCLUDES += -Ilua -I.
-DEFINES += -DUSE_LUA
-SRCS = $(LUASRCS) $(TOLUASRCS) $(BASESRCS)
-OBJS = $(LUAOBJS) $(TOLUAOBJS) $(BASEOBJS)
-
-# Force recreation of stub files when lua source files are updated
-# To be included in dependency rules
-TOLUADEP = $(TOLUASRCS) lua/tolua.c lua/tolualua.c
-
-#
-# IRC support
-#
-
-IRC_SERVER=irc.worldirc.org
-IRC_PORT=6667
-IRC_CHANNEL=\#tome
-
-DEFINES += \
- -DIRC_SERVER=\"$(IRC_SERVER)\" \
- -DIRC_PORT=\"$(IRC_PORT)\" \
- -DIRC_CHANNEL=\"$(IRC_CHANNEL)\"
-
-# Build the binary. The new base target.
-#
-
-TARGET = tome
-
-TOLUA = ./tolua
-
-default: $(TOLUA) $(TARGET)
- @echo "*** Note: In order to use the install rule, which now actually"
- @echo "*** handles the installation of the library dir, you need to edit"
- @echo "*** this makefile, going to the top and making sure LIBDIR suits"
- @echo "*** your desired install dir properly. The LIBRARY_DIR you used"
- @echo "*** to set in config.h is now ignored and obsolete with respect"
- @echo "*** to this makefile. Note that if you edit this makefile, you may"
- @echo "*** need to recompile so all the files that reference those defines"
- @echo "*** notice the changes."
-
-$(TARGET): $(OBJS)
- $(CC) $(PROFILELDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-
-$(TOLUA): $(TOLUAOBJS) lua/tolua.c lua/tolualua.c
- $(CC) $(CFLAGS) $(PROFILELDFLAGS) $(LDFLAGS) -o $@ $(TOLUAOBJS) lua/tolua.c lua/tolualua.c $(LIBS)
-
-#
-# An install rule.
-#
-mini_install: default
- cp -f $(TARGET) ..
-
-install: default
- [ -d $(DESTDIR)$(LIBDIR) ] || mkdir -p $(DESTDIR)$(LIBDIR)
- [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
- cp -r ../lib/* $(DESTDIR)$(LIBDIR)
- chown -R $(OWNER) $(DESTDIR)$(LIBDIR)
- cp -f $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
- chown $(OWNER) $(DESTDIR)$(BINDIR)/$(TARGET)
- chmod 4755 $(DESTDIR)$(BINDIR)/$(TARGET)
-
-# old-install: $(TARGET)
-# cp $(TARGET) ..
-
-
-#
-# Clean up old junk
-#
-
-clean:
- rm -f *.bak *.o lua/*.o
-
-
-#
-# Generate dependancies automatically
-#
-
-depend:
- makedepend $(INCLUDES) $(DEFINES) -D__MAKEDEPEND__ $(SRCS)
-
-.c.o:
- $(CC) $(CFLAGS) -c -o $*.o $*.c
-
-
-#
-# Quests
-#
-plots.o: q_rand.c q_main.c q_one.c q_ultrag.c q_ultrae.c \
- q_thief.c q_hobbit.c q_nazgul.c q_troll.c q_wight.c \
- q_spider.c q_poison.c \
- q_eol.c q_nirna.c q_invas.c \
- q_betwen.c \
- q_narsil.c q_shroom.c q_thrain.c q_wolves.c q_dragons.c q_haunted.c q_evil.c
-
-#
-# Lua library compilation rules
-#
-
-w_mnster.c: monster.pkg $(TOLUADEP)
- $(TOLUA) -n monster -o w_mnster.c monster.pkg
-
-w_player.c: player.pkg $(TOLUADEP)
- $(TOLUA) -n player -o w_player.c player.pkg
-
-w_play_c.c: player_c.pkg $(TOLUADEP)
- $(TOLUA) -n player_c -o w_play_c.c player_c.pkg
-
-w_z_pack.c: z_pack.pkg $(TOLUADEP)
- $(TOLUA) -n z_pack -o w_z_pack.c z_pack.pkg
-
-w_obj.c: object.pkg $(TOLUADEP)
- $(TOLUA) -n object -o w_obj.c object.pkg
-
-w_util.c: util.pkg $(TOLUADEP)
- $(TOLUA) -n util -o w_util.c util.pkg
-
-w_spells.c: spells.pkg $(TOLUADEP)
- $(TOLUA) -n spells -o w_spells.c spells.pkg
-
-w_quest.c: quest.pkg $(TOLUADEP)
- $(TOLUA) -n quest -o w_quest.c quest.pkg
-
-w_dun.c: dungeon.pkg $(TOLUA)
- $(TOLUA) -n dungeon -o w_dun.c dungeon.pkg
-
-# DO NOT DELETE THIS LINE - make depend depends on it.
diff --git a/src/makefile.std b/src/makefile.std
deleted file mode 100644
index a7243dee..00000000
--- a/src/makefile.std
+++ /dev/null
@@ -1,566 +0,0 @@
-# File: Makefile
-
-# This is not a very "nice" Makefile, but it usually works.
-
-#
-# Note that you may have to make modifications below according
-# to your machine, available libraries, compilation options,
-# and your "visual module" of choice. This Makefile is intended
-# for use with Unix machines running X11, Curses, Ncurses, or Vt100,
-# or possibly for "Atari" or "Amiga" computers with "Curses" ports,
-# see below for more information.
-#
-# Note that "main-mac.c" and "main-crb.c", the visual modules for
-# the Macintosh, must be compiled in a special way, see elsewhere.
-#
-# Note that "main-win.c", the visual module for Windows,
-# must be compiled in a special way, see elsewhere.
-#
-# Note that "main-ibm.c" and "main-emx.c", the visual modules
-# for various types of IBM-PC computers, must be compiled with
-# special Makefiles, see elsewhere.
-#
-# Note that "main-lsl.c", the visual module for Linux-SVGALIB
-# must be compiled with "Makefile.lsl", see elsewhere.
-#
-# Note that "main-acn.c", the visual module for Risc Acorn,
-# must be compiled with "Makefile.acn", see elsewhere.
-#
-# Note that "Makefile.wat" is a slight variation on "Makefile.ibm",
-# which allow the use of "main-ibm.c" with special compiler
-# (might be out-of-date).
-#
-# If you are able to construct "main-xxx.c" and/or "Makefile.xxx"
-# files for a currently unsupported system, please send them to me
-# (rr9@angband.org) for inclusion in future versions.
-#
-
-##
-## 1. Installation locations and such
-##
-## LIBDIR, BINDIR and OWNER should be set appropriately for
-## multiuser installations.
-##
-## If you want to keep it private or don't have root privilege
-## required by "make install", set LIBDIR to ./lib/ or an absolute
-## path pointing to your lib directory, and don't run "make install".
-##
-## NOTE: If LIBDIR is set to ./lib/ , you have to cd to parent directory
-## of lib before you start the game.
-##
-
-# Where lib/ files goes
-#LIBDIR = /usr/lib/games/tome/
-# Sysadmins of commercial Unix and/or BSD might prefer this
-#LIBDIR = /usr/local/lib/tome/
-# If you like the old default, use this one
-LIBDIR = ./lib/
-# Another example: single user installation using absolute path
-#LIBDIR = /home/myloginname/lib/tome/
-
-
-# Where ToME binary goes
-BINDIR = /usr/local/games
-# Another common location
-#BINDIR = /usr/local/bin
-
-# The game will run suid to this user
-OWNER = games
-
-# Ignore this if you're not making a package
-DESTDIR=
-
-##
-## 2. Some "system" definitions
-##
-## No changes are needed to compile a version that will run on both
-## X11 and Curses, in debugging mode, with maximal warnings, on many
-## normal Unix machines of the Sun OS variety (non-solaris).
-##
-## To use an "alternative" definition, simply "modify" (or "replace")
-## the definition below with one that you like. For example, you can
-## change the compiler to "cc", or remove the "debugging" options, or
-## remove the X11 or Curses support, etc, as desired.
-##
-## See also "config.h" and "h-config.h" for important information.
-##
-## Some "examples" are given below, they can be used by simply
-## removing the FIRST column of "#" signs from the "block" of lines
-## you wish to use, and commenting out "standard" block below.
-##
-## This is not intended to be a "good" Makefile, just a "simple" one.
-##
-
-
-#
-# This is my compiler of choice, it seems to work most everywhere
-#
-CC = gcc
-
-# Profiling options
-# PROFILECOPTS = -pg
-# PROFILELDFLAGS = -pg
-
-#
-# Standard version (see main-x11.c)
-#
-# This version supports "X11" only.
-#
-# You may have to add various X11 include/library directories to the
-# "INCLUDES", if your machine places files in a weird location
-# (e.g. -I/usr/X11R6/include, as is almost always the case with
-# linux and *BSD). Since we have seen many linux users -- arguably
-# the largest unix population -- confused by this, and adding this
-# usually doesn't hurt, the default rule has been changed to search
-# for /usr/X11R6/include.
-#
-# You may be able to remove "-ltermcap" on some machines (ex: Solaris).
-#
-# You may have to replace "-lcurses" with "-lncurses" to use the
-# "new curses" library instead of the "old curses" library, and
-# you may have to add "-I/usr/include/ncurses" to the "INCLUDES",
-# and/or "-DUSE_NCURSES" to "DEFINES".
-#
-# See "main-gcu.c" and "config.h" for some optional "curses" defines,
-# including "USE_GETCH" and "USE_CURS_SET". Note that "config.h" will
-# attempt to "guess" at many of these flags based on your system.
-#
-COPTS = -Wall -O1 -Wno-unused-value -pipe -g
-INCLUDES = -I/usr/X11R6/include
-DEFINES = -DUSE_X11 \
- -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA \
- -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK
-LIBS = -L/usr/X11R6/lib -lX11
-
-##
-## Variation -- Only support "main-gtk2.c" (not "main-gcu.c, main-x11.c")
-## this variation uses pkg-config and gnu make
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = $(shell pkg-config --cflags-only-I gtk+-2.0)
-#DEFINES = -DUSE_GTK2 -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = $(shell pkg-config --libs gtk+-2.0)
-#GTK_SRC_FILE= main-gtk2.c
-#GTK_OBJ_FILE= main-gtk2.o
-
-##
-## Variation -- Only support "main-gtk2.c" (not "main-gcu.c, main-x11.c")
-## this variation uses pkg-config
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = `pkg-config --cflags-only-I gtk+-2.0`
-#DEFINES = -DUSE_GTK2 -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = `pkg-config --libs gtk+-2.0`
-#GTK_SRC_FILE= main-gtk2.c
-#GTK_OBJ_FILE= main-gtk2.o
-
-##
-## Variation -- Only support "main-gtk.c" (not "main-gcu.c, main-x11.c")
-## this variation uses pkg-config
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = `pkg-config --cflags-only-I gtk+-2.0`
-#DEFINES = -DUSE_GTK -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = `pkg-config --libs gtk+-2.0`
-#GTK_SRC_FILE= main-gtk.c
-#GTK_OBJ_FILE= main-gtk.o
-
-##
-## Variation -- Only support "main-gtk.c" (not "main-gcu.c, main-x11.c")
-## this variation uses gtk-config
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = `gtk-config --cflags`
-#DEFINES = -DUSE_GTK -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = `gtk-config --libs`
-#GTK_SRC_FILE= main-gtk.c
-#GTK_OBJ_FILE= main-gtk.o
-
-##
-## Variation -- Both "main-x11.c" and "main-gcu.c" in a single executable.
-##
-## Your Unix system's curses library may be called "-lcurses" instead of
-## "-lncurses", and you may also need to add "-ltermlib" to the end of the
-## LIBS on some platforms.
-#
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS \
-# -DUSE_TRANSPARENCY -DSUPPORT_GAMMA \
-# -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK
-#LIBS = -L/usr/X11R6/lib -lX11 -lncurses
-
-
-##
-## Variation -- Only support "main-gcu.c" (not "main-x11.c")
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_GCU
-#LIBS = -lcurses -ltermcap
-
-
-##
-## Variation -- Use "main-xaw.c" instead of "main-x11.c"
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_XAW -DUSE_GCU \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lXaw -lXmu -lXt -lX11 -lcurses -ltermcap -L/usr/X11R6/lib
-
-##
-## Variation -- Use "main-sdl.c" instead of "main-x11.c"
-##
-#SDL_CONFIG ?= sdl-config
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = `$(SDL_CONFIG) --cflags`
-#DEFINES = -DUSE_SDL -DUSE_GCU \
-# -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY \
-# -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DSUPPORT_GAMMA
-#LIBS = `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_ttf -lcurses
-
-##
-## Variation -- Use "main-cap.c" instead of "main-gcu.c"
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_CAP \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -ltermcap
-
-
-##
-## Variation -- Only work on simple vt100 terminals
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_CAP -DUSE_HARDCODE
-
-
-##
-## Variation -- this might work for Linux 1.1.93 using ncurses-1.8.7.
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer -m486
-#INCLUDES = -I/usr/X11R6/include -I/usr/include/ncurses
-#DEFINES = -DUSE_X11 -DUSE_GCU \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lncurses -L/usr/X11R6/lib
-
-
-##
-## Variation -- this might work better than the suggestion above
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer
-#INCLUDES = -I/usr/X11R6/include -I/usr/include/ncurses
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_TPOSIX -DUSE_CURS_SET \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lncurses -L/usr/X11R6/lib
-#LDFLAGS = -s
-
-
-##
-## Variation -- compile for FreeBSD with ncurses
-## -- BSD curses gives you B&W display.
-##
-#COPTS = -Wall -O2 -fomit-frame-pointer -m486
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DUSE_X11 -DUSE_GCU -DUSE_NCURSES \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lncurses -L/usr/X11R6/lib
-
-
-##
-## Variation -- compile for Solaris
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DSOLARIS \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lsocket -lcurses
-
-
-##
-## Variation -- compile for SGI Indigo runnig Irix
-## The SGI has hardware gamma correction.
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DSGI \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS
-#LIBS = -lX11 -lcurses -ltermcap -lsun
-
-##
-## Variation -- compile for Dec ALPHA OSF/1 v2.0
-##
-#CC = cc
-##COPTS = -std -O -g3 -Olimit 4000
-#COPTS = -std -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lcurses -ltermcap -lrpcsvc
-
-
-##
-## Variation -- compile for Interactive Unix (ISC) systems
-##
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES =
-#DEFINES = -DUSE_X11 -DUSE_GCU -DISC \
-# -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA
-#LIBS = -lX11 -lcurses -lnsl_s -linet -lcposix
-
-
-##
-## Variation -- Support fat binaries under NEXTSTEP
-##
-#COPTS = -Wall -O1 -pipe -g -arch m68k -arch i386
-#INCLUDES =
-#DEFINES = -DUSE_GCU
-#LIBS = -lcurses -ltermcap
-
-#
-# Variation -- compile for 64 bit machines where the size of long is 64 bits.
-#
-# On some machines it may be necessary to change the -L directory so that
-# it points at a library directory containing 64-bit libraries. For example,
-# on Suse 10.x you need to change it to: -L/usr/X11R6/lib64.
-#
-#COPTS = -Wall -O1 -pipe -g
-#INCLUDES = -I/usr/X11R6/include
-#DEFINES = -DLUA_NUM_TYPE=int -DUSE_X11 \
-# -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA \
-# -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK
-#LIBS = -L/usr/X11R6/lib -lX11
-
-### End of configurable section ###
-
-#
-# The "source" and "object" files.
-#
-
-BASESRCS = \
- $(GTK_SRC_FILE) main-gcu.c main-x11.c main-xaw.c main-sdl.c \
- z-rand.c z-util.c z-form.c z-virt.c z-term.c z-sock.c \
- variable.c tables.c plots.c util.c cave.c dungeon.c \
- melee1.c melee2.c modules.c \
- object1.c object2.c randart.c squeltch.c traps.c \
- monster1.c monster2.c monster3.c \
- xtra1.c xtra2.c skills.c powers.c gods.c \
- spells1.c spells2.c \
- status.c files.c notes.c loadsave.c \
- cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
- help.c \
- generate.c gen_maze.c gen_evol.c wild.c levels.c store.c bldg.c \
- cmovie.c irc.c \
- wizard2.c init2.c birth.c wizard1.c init1.c main.c
-
-BASEOBJS = \
- $(GTK_OBJ_FILE) main-gcu.o main-x11.o main-xaw.o main-sdl.o main-dmy.o \
- z-rand.o z-util.o z-form.o z-virt.o z-term.o z-sock.o \
- variable.o tables.o plots.o util.o cave.o dungeon.o \
- melee1.o melee2.o modules.o \
- object1.o object2.o randart.o squeltch.o traps.o \
- monster1.o monster2.o monster3.o \
- xtra1.o xtra2.o skills.o powers.o gods.o \
- spells1.o spells2.o \
- status.o files.o notes.o loadsave.o \
- cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \
- help.o \
- generate.o gen_maze.o gen_evol.o wild.o levels.o store.o bldg.o \
- cmovie.o irc.o \
- wizard2.o init2.o birth.o wizard1.o init1.o main.o
-
-LUASRCS = \
- script.c lua_bind.c \
- w_util.c w_player.c w_z_pack.c w_obj.c w_mnster.c w_spells.c w_quest.c w_play_c.c w_dun.c
-
-TOLUASRCS = \
- lua/lapi.c lua/lcode.c lua/ldebug.c lua/ldo.c lua/lfunc.c lua/lgc.c \
- lua/llex.c lua/lmem.c lua/lobject.c lua/lparser.c lua/lstate.c lua/lstring.c \
- lua/ltable.c lua/ltests.c lua/ltm.c lua/lundump.c lua/lvm.c lua/lzio.c \
- lua/lauxlib.c lua/lbaselib.c lua/ldblib.c lua/liolib.c lua/lstrlib.c \
- lua/tolua_lb.c lua/tolua_rg.c lua/tolua_tt.c lua/tolua_tm.c lua/tolua_gp.c \
- lua/tolua_eh.c lua/tolua_bd.c
-
-LUAOBJS = \
- script.o lua_bind.o \
- w_util.o w_player.o w_z_pack.o w_obj.o w_mnster.o w_spells.o w_quest.o w_play_c.o w_dun.o
-
-TOLUAOBJS = \
- lua/lapi.o lua/lcode.o lua/ldebug.o lua/ldo.o lua/lfunc.o lua/lgc.o \
- lua/llex.o lua/lmem.o lua/lobject.o lua/lparser.o lua/lstate.o lua/lstring.o \
- lua/ltable.o lua/ltests.o lua/ltm.o lua/lundump.o lua/lvm.o lua/lzio.o \
- lua/lauxlib.o lua/lbaselib.o lua/ldblib.o lua/liolib.o lua/lstrlib.o \
- lua/tolua_lb.o lua/tolua_rg.o lua/tolua_tt.o lua/tolua_tm.o lua/tolua_gp.o \
- lua/tolua_eh.o lua/tolua_bd.o
-
-#
-# Base sources and objects
-#
-
-SRCS = $(BASESRCS)
-OBJS = $(BASEOBJS)
-
-
-#
-# Compiler options
-#
-
-CFLAGS = $(COPTS) $(PROFILECOPTS) $(INCLUDES) $(DEFINES) -DDEFAULT_PATH=\"$(LIBDIR)\"
-
-
-#
-# Lua support
-#
-
-INCLUDES += -Ilua -I.
-DEFINES += -DUSE_LUA
-SRCS = $(LUASRCS) $(TOLUASRCS) $(BASESRCS)
-OBJS = $(LUAOBJS) $(TOLUAOBJS) $(BASEOBJS)
-
-# Force recreation of stub files when lua source files are updated
-# To be included in dependency rules
-TOLUADEP = $(TOLUA) $(TOLUASRCS) lua/tolua.c lua/tolualua.c
-
-#
-# IRC support
-#
-
-IRC_SERVER=irc.worldirc.org
-IRC_PORT=6667
-IRC_CHANNEL=\#tome
-
-DEFINES += \
- -DIRC_SERVER=\"$(IRC_SERVER)\" \
- -DIRC_PORT=\"$(IRC_PORT)\" \
- -DIRC_CHANNEL=\"$(IRC_CHANNEL)\"
-
-# Build the binary. The new base target.
-#
-
-TARGET = tome
-
-TOLUA = ./tolua
-
-default: $(TOLUA) $(TARGET)
- @echo "*** Note: In order to use the install rule, which now actually"
- @echo "*** handles the installation of the library dir, you need to edit"
- @echo "*** this makefile, going to the top and making sure LIBDIR suits"
- @echo "*** your desired install dir properly. The LIBRARY_DIR you used"
- @echo "*** to set in config.h is now ignored and obsolete with respect"
- @echo "*** to this makefile. Note that if you edit this makefile, you may"
- @echo "*** need to recompile so all the files that reference those defines"
- @echo "*** notice the changes."
-
-$(TARGET): $(OBJS)
- $(CC) $(PROFILELDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-
-$(TOLUA): $(TOLUAOBJS) lua/tolua.c lua/tolualua.c
- $(CC) $(CFLAGS) $(PROFILELDFLAGS) $(LDFLAGS) -o $@ $(TOLUAOBJS) lua/tolua.c lua/tolualua.c $(LIBS)
-
-#
-# An install rule.
-#
-mini_install: default
- cp -f $(TARGET) ..
-
-install: default
- [ -d $(DESTDIR)$(LIBDIR) ] || mkdir -p $(DESTDIR)$(LIBDIR)
- [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
- cp -r ../lib/* $(DESTDIR)$(LIBDIR)
- chown -R $(OWNER) $(DESTDIR)$(LIBDIR)
- cp -f $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
- chown $(OWNER) $(DESTDIR)$(BINDIR)/$(TARGET)
- chmod 4755 $(DESTDIR)$(BINDIR)/$(TARGET)
-
-# old-install: $(TARGET)
-# cp $(TARGET) ..
-
-
-#
-# Clean up old junk
-#
-
-clean:
- rm -f *.bak *.o lua/*.o w_*.c $(TOLUA) $(TARGET)
-
-
-# Make a src dist
-TARGET_VERSION=`fgrep '[V]' ../changes.txt | sed 's/\[V\]-*\s*T.o.M.E \(.\).\(.\).\(.\) .*/\1\2\3/g'`
-DIST_TARGET_VERSION=../dist/tome-$(TARGET_VERSION)-src
-DIST_TARGET=../dist/tome-xxx-src
-dist: clean
- mkdir -p $(DIST_TARGET)
- cp -r ../lib $(DIST_TARGET)
- cp -r ../src $(DIST_TARGET)
- ../tome -c ../changes.txt $(DIST_TARGET)/changes.txt
- cp ../changes.old $(DIST_TARGET)
- cp ../credits.txt $(DIST_TARGET)
- cp ../tome.ini $(DIST_TARGET)
- cp ../angdos.cfg $(DIST_TARGET)
- rm -f $(DIST_TARGET)/src/tome $(DIST_TARGET)/src/tolua
- find $(DIST_TARGET) -name '*~' -exec rm {} \;
- find $(DIST_TARGET)/lib/data/ -name '*.raw' -exec rm {} \;
- find $(DIST_TARGET)/lib/xtra/graf/ -name '*.gif' -exec rm {} \;
- find $(DIST_TARGET)/lib/xtra/font/ -name '*.hex' -exec rm {} \;
- rm -rf `find $(DIST_TARGET) -name 'CVS'`
- rm -rf `find $(DIST_TARGET)/lib/mods/ -mindepth 1 -maxdepth 1 -type d`
- sed -i 's/(CVS)//' $(DIST_TARGET)/src/defines.h
- mv $(DIST_TARGET) $(DIST_TARGET_VERSION)
- cd ../dist; tar -cvjf tome-$(TARGET_VERSION)-src.tar.bz2 tome-$(TARGET_VERSION)-src
-
-#
-# Generate dependancies automatically
-#
-
-depend:
- makedepend $(INCLUDES) $(DEFINES) -D__MAKEDEPEND__ $(SRCS)
-
-.c.o:
- $(CC) $(CFLAGS) -c -o $*.o $*.c
-
-
-#
-# Quests
-#
-plots.o: q_rand.c q_main.c q_one.c q_ultrag.c q_ultrae.c \
- q_thief.c q_hobbit.c q_nazgul.c q_troll.c q_wight.c \
- q_spider.c q_poison.c \
- q_eol.c q_nirna.c q_invas.c \
- q_betwen.c \
- q_narsil.c q_shroom.c q_thrain.c q_wolves.c q_dragons.c q_haunted.c q_evil.c
-
-#
-# Lua library compilation rules
-#
-
-w_mnster.c: monster.pkg $(TOLUADEP)
- $(TOLUA) -n monster -o w_mnster.c monster.pkg
-
-w_player.c: player.pkg $(TOLUADEP)
- $(TOLUA) -n player -o w_player.c player.pkg
-
-w_play_c.c: player_c.pkg $(TOLUADEP)
- $(TOLUA) -n player_c -o w_play_c.c player_c.pkg
-
-w_z_pack.c: z_pack.pkg $(TOLUADEP)
- $(TOLUA) -n z_pack -o w_z_pack.c z_pack.pkg
-
-w_obj.c: object.pkg $(TOLUADEP)
- $(TOLUA) -n object -o w_obj.c object.pkg
-
-w_util.c: util.pkg $(TOLUADEP)
- $(TOLUA) -n util -o w_util.c util.pkg
-
-w_spells.c: spells.pkg $(TOLUADEP)
- $(TOLUA) -n spells -o w_spells.c spells.pkg
-
-w_quest.c: quest.pkg $(TOLUADEP)
- $(TOLUA) -n quest -o w_quest.c quest.pkg
-
-w_dun.c: dungeon.pkg $(TOLUA)
- $(TOLUA) -n dungeon -o w_dun.c dungeon.pkg
-
-# DO NOT DELETE THIS LINE - make depend depends on it.
diff --git a/src/makefile.win b/src/makefile.win
deleted file mode 100644
index e2d34337..00000000
--- a/src/makefile.win
+++ /dev/null
@@ -1,206 +0,0 @@
-# File: Makefile.win
-
-# For Borland C++ 4.52 Win16 and Win32
-
-.autodepend
-
-# change this to suit your taste
-
-CC = c:\apps\bc45\bin\bcc.exe +bccw16.cfg
-CC32 = c:\apps\bc45\bin\bcc32.exe +bccw32.cfg
-LINK = c:\apps\bc45\bin\tlink.exe
-LINK32 = c:\apps\bc45\bin\tlink32.exe
-RC = c:\apps\bc45\bin\brc.exe
-RC32 = c:\apps\bc45\bin\brc32.exe
-LIBDIR = c:\apps\bc45\lib
-INCLDIR = c:\apps\bc45\include;c:\angband\ext-win\src
-
-# shouldn't need to change anything below
-
-SRCS = \
- z-util.c z-virt.c z-form.c z-rand.c z-term.c z-sock.c \
- variable.c tables.c util.c cave.c cmovie.c modules.c \
- object1.c object2.c traps.c monster1.c monster2.c monster3.c \
- xtra1.c xtra2.c spells1.c spells2.c \
- melee1.c melee2.c files.c plots.c help.c \
- cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
- status.c randart.c gods.c \
- store.c birth.c loadsave.c notes.c squeltch.c \
- wizard1.c wizard2.c levels.c \
- generate.c gen_maze.c gen_evol.c dungeon.c init1.c init2.c \
- main-win.c readdib.c \
- bldg.c wild.c powers.c
-
-OBJS = \
- z-util.obj z-virt.obj z-form.obj z-rand.obj z-term.obj z-sock.obj \
- variable.obj tables.obj util.obj cave.obj cmovie.obj modules.obj \
- object1.obj object2.obj traps.obj monster1.obj monster2.obj monster3.obj \
- xtra1.obj xtra2.obj spells1.obj spells2.obj \
- melee1.obj melee2.obj files.obj plots.obj help.obj \
- cmd1.obj cmd2.obj cmd3.obj cmd4.obj cmd5.obj cmd6.obj cmd7.obj \
- status.obj randart.obj gods.obj \
- store.obj birth.obj loadsave.obj notes.obj squeltch.obj \
- wizard1.obj wizard2.obj levels.obj \
- generate.obj gen_maze.obj gen_evol.obj dungeon.obj init1.obj init2.obj \
- main-win.obj readdib.obj \
- bldg.obj wild.obj powers.obj
-
-OBJS32 = \
- z-util.o32 z-virt.o32 z-form.o32 z-rand.o32 z-term.o32 z-sock.o32 \
- variable.o32 tables.o32 util.o32 cave.o32 cmovie.o32 modules.o32 \
- object1.o32 object2.o32 traps.o32 monster1.o32 monster2.o32 monster3.o32 \
- xtra1.o32 xtra2.o32 spells1.o32 spells2.o32 \
- melee1.o32 melee2.o32 files.o32 plots.o32 help.o32 \
- cmd1.o32 cmd2.o32 cmd3.o32 cmd4.o32 cmd5.o32 cmd6.o32 cmd7.o32 \
- status.o32 randart.o32 gods.o32 \
- store.o32 birth.o32 loadsave.o32 notes.o32 squeltch.o32 \
- wizard1.o32 wizard2.o32 levels.o32 \
- generate.o32 gen_maze.o32 gen_evol.o32 dungeon.o32 init1.o32 init2.o32 \
- main-win.o32 readdib.o32 \
- bldg.o32 wild.o32
-
-default: bccw16.cfg angband cleanobj bccw32.cfg angband32 cleanobj32
-
-clean:
- del *.obj
- del ..\*.map
- del ..\angband.exe
-
-cleanobj:
- del *.obj
- del bccw16.cfg
-
-cleanobj32:
- del *.o32
- del bccw32.cfg
-
-bccw16.cfg: makefile.win
- if not exist ..\angband.ini copy ..\ext-win\src\angband.ini ..
- copy &&|
--I$(INCLDIR)
--L$(LIBDIR)
--ml
--WE
--x-
--K
--y-
--v-
--N-
--f-
--3
--dc
--Ff=8
--r
--b-
--p-
--Os
--Oa
--OW
--O
--d
--Ob
--Oe
--Og
--Ol
--Om
--Ot
--Op
--Ov
--k-
--Z
--w-
--X
--D__STDC__=1
-| bccw16.cfg
-
-bccw32.cfg: makefile.win
- copy &&|
--I$(INCLDIR)
--L$(LIBDIR)
--WE
--x-
--K
--y-
--v-
--N-
--f-
--5
--r
--b-
--p-
--Os
--OW
--O
--d
--Oa
--Ob
--Oe
--Og
--Ol
--Om
--Ot
--Op
--Ov
--k-
--Z
--w-
--X
--D__STDC__=1
-| bccw32.cfg
-
-.c.obj:
- $(CC) -c $<
-
-generate.obj: generate.c
- $(CC) -c generate.c
-
-readdib.obj: ..\ext-win\src\readdib.c ..\ext-win\src\readdib.h
- $(CC) -c ..\ext-win\src\readdib.c
-
-angband: $(OBJS) ..\ext-win\src\angband.rc
- $(LINK) /L$(LIBDIR) @&&|
--Twe -P -d -x -Gn -Oc -yx4096 +
-c0wl+
-z-util z-virt z-form z-rand z-term z-sock +
-variable tables util cave cmovie modules +
-object1 object2 traps monster1 monster2 monster3 +
-xtra1 xtra2 spells1 spells2 +
-melee1 melee2 files plots help +
-cmd1 cmd2 cmd3 cmd4 cmd5 cmd6 cmd7 +
-status randart gods +
-store birth loadsave notes squeltch +
-wizard1 wizard2 levels +
-generate gen_maze gen_evol dungeon init1 init2 +
-main-win readdib bldg wild powers +
-..\angband.exe,..\angband.map,import cwl,..\ext-win\src\angband.def
-|
- $(RC) -31 ..\ext-win\src\angband.rc ..\angband.exe
-
-.c.o32:
- $(CC32) -c -o$@ $<
-
-# bug in BC4.5 optimizer scrambles town level
-generate.o32: generate.c
- $(CC32) -c -ogenerate.o32 -O- generate.c
-
-readdib.o32: ..\ext-win\src\readdib.c ..\ext-win\src\readdib.h
- $(CC32) -c -oreaddib.o32 ..\ext-win\src\readdib.c
-
-angband32: $(OBJS32) ..\ext-win\src\angband.rc
- $(LINK32) /L$(LIBDIR) @&&|
--aa -B:0x400000 -S:0x100000 -P -x +
-c0w32 +
-z-util.o32 z-virt.o32 z-form.o32 z-rand.o32 z-term.o32 z-sock.o32 +
-variable.o32 tables.o32 util.o32 cave.o32 cmovie.o32 modules.o32 +
-object1.o32 object2.o32 traps.o32 monster1.o32 monster2.o32 monster3.o32 +
-xtra1.o32 xtra2.o32 spells1.o32 spells2.o32 +
-melee1.o32 melee2.o32 files.o32 plots.o32 help.o32 +
-cmd1.o32 cmd2.o32 cmd3.o32 cmd4.o32 cmd5.o32 cmd6.o32 cmd7.o32 +
-status.o32 randart.o32 gods.o32 +
-store.o32 birth.o32 loadsave.o32 notes.o32 squeltch.o32 +
-wizard1.o32 wizard2.o32 levels.o32 +
-generate.o32 gen_maze.o32 gen_evol.o32 dungeon.o32 init1.o32 init2.o32 +
-main-win.o32 readdib.o32 bldg.o32 wild.o32 powers.o32+
-..\angband32.exe,..\angband.map,import32 cw32,..\ext-win\src\angband.def
-|
- $(RC32) -w32 ..\ext-win\src\angband.rc ..\angband32.exe