This commit is contained in:
Thomas Arp 2025-11-21 07:31:58 -03:00 committed by GitHub
commit 2ee54e1313
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 966 additions and 3793 deletions

View file

@ -1,203 +0,0 @@
# CircleMUD Makefile.in - Makefile template used by 'configure'
#
# C compiler to use
CC = gcc
# Any special flags you want to pass to the compiler
MYFLAGS =
#Amiga Stuff <jpatton@intserv.com>
MYFLAGS = -g -Wall -DAMIGA -DNOCRYPT
LIBS = -lc -lamiga -lauto
#flags for profiling (see hacker.doc for more information)
PROFILE =
##############################################################################
# Do Not Modify Anything Below This Line (unless you know what you're doing) #
##############################################################################
CFLAGS = $(MYFLAGS) $(PROFILE)
OBJFILES = comm.o act.comm.o act.informative.o act.movement.o act.item.o \
act.offensive.o act.other.o act.social.o act.wizard.o ban.o boards.o \
castle.o class.o config.o constants.o db.o fight.o graph.o handler.o \
house.o interpreter.o limits.o magic.o mail.o mobact.o modify.o \
objsave.o shop.o spec_assign.o spec_procs.o spell_parser.o \
spells.o utils.o weather.o players.o quest.o qedit.o genqst.o
default: .accepted
$(MAKE) ../bin/circle
.accepted:
./licheck
utils: .accepted
$(MAKE) ../bin/asciipasswd
$(MAKE) ../bin/autowiz
$(MAKE) ../bin/listrent
$(MAKE) ../bin/plrtoascii
$(MAKE) ../bin/shopconv
$(MAKE) ../bin/sign
$(MAKE) ../bin/split
$(MAKE) ../bin/wld2html
all: .accepted
$(MAKE) ../bin/circle
$(MAKE) utils
circle:
$(MAKE) ../bin/circle
asciipasswd:
$(MAKE) ../bin/asciipasswd
autowiz:
$(MAKE) ../bin/autowiz
listrent:
$(MAKE) ../bin/listrent
plrtoascii:
$(MAKE) ../bin/plrtoascii
shopconv:
$(MAKE) ../bin/shopconv
sign:
$(MAKE) ../bin/sign
split:
$(MAKE) ../bin/split
wld2html:
$(MAKE) ../bin/wld2html
../bin/asciipasswd: util/asciipasswd.c conf.h sysdep.h structs.h utils.h
$(CC) $(CFLAGS) -o ../bin/asciipasswd util/asciipasswd.c $(LIBS)
../bin/autowiz: util/autowiz.c conf.h sysdep.h structs.h utils.h db.h
$(CC) $(CFLAGS) -o ../bin/autowiz util/autowiz.c
../bin/listrent: util/listrent.c conf.h sysdep.h structs.h
$(CC) $(CFLAGS) -o ../bin/listrent util/listrent.c
../bin/plrtoascii: util/plrtoascii.c conf.h sysdep.h db.h pfdefaults.h
$(CC) $(CFLAGS) -o ../bin/plrtoascii util/plrtoascii.c
../bin/shopconv: util/shopconv.c conf.h sysdep.h structs.h db.h utils.h shop.h
$(CC) $(CFLAGS) -o ../bin/shopconv util/shopconv.c
../bin/sign: util/sign.c conf.h sysdep.h
$(CC) $(CFLAGS) -o ../bin/sign util/sign.c $(LIBS)
../bin/split: util/split.c
$(CC) $(CFLAGS) -o ../bin/split util/split.c
../bin/wld2html: util/wld2html.c
$(CC) $(CFLAGS) -o ../bin/wld2html util/wld2html.c
../bin/circle : $(OBJFILES)
$(CC) -o ../bin/circle $(PROFILE) $(OBJFILES) $(LIBS)
clean:
rm -f *.o
# Dependencies for the object files (automagically generated with
# gcc -MM)
act.comm.o: act.comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h screen.h
$(CC) -c $(CFLAGS) act.comm.c
act.informative.o: act.informative.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h screen.h constants.h
$(CC) -c $(CFLAGS) act.informative.c
act.item.o: act.item.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h
$(CC) -c $(CFLAGS) act.item.c
act.movement.o: act.movement.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h house.h constants.h
$(CC) -c $(CFLAGS) act.movement.c
act.offensive.o: act.offensive.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) -c $(CFLAGS) act.offensive.c
act.other.o: act.other.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h screen.h house.h
$(CC) -c $(CFLAGS) act.other.c
act.social.o: act.social.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) -c $(CFLAGS) act.social.c
act.wizard.o: act.wizard.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h house.h screen.h constants.h
$(CC) -c $(CFLAGS) act.wizard.c
ban.o: ban.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h db.h
$(CC) -c $(CFLAGS) ban.c
boards.o: boards.c conf.h sysdep.h structs.h utils.h comm.h db.h boards.h \
interpreter.h handler.h
$(CC) -c $(CFLAGS) boards.c
castle.o: castle.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h
$(CC) -c $(CFLAGS) castle.c
class.o: class.c conf.h sysdep.h structs.h db.h utils.h spells.h interpreter.h
$(CC) -c $(CFLAGS) class.c
comm.o: comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h \
db.h house.h
$(CC) -c $(CFLAGS) comm.c
config.o: config.c conf.h sysdep.h structs.h
$(CC) -c $(CFLAGS) config.c
constants.o: constants.c conf.h sysdep.h structs.h
$(CC) -c $(CFLAGS) constants.c
db.o: db.c conf.h sysdep.h structs.h utils.h db.h comm.h handler.h spells.h mail.h \
interpreter.h house.h
$(CC) -c $(CFLAGS) db.c
fight.o: fight.c conf.h sysdep.h structs.h utils.h comm.h handler.h interpreter.h \
db.h spells.h screen.h
$(CC) -c $(CFLAGS) fight.c
graph.o: graph.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h \
db.h spells.h
$(CC) -c $(CFLAGS) graph.c
handler.o: handler.c conf.h sysdep.h structs.h utils.h comm.h db.h handler.h \
interpreter.h spells.h
$(CC) -c $(CFLAGS) handler.c
house.o: house.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
utils.h house.h constants.h
$(CC) -c $(CFLAGS) house.c
interpreter.o: interpreter.c conf.h sysdep.h structs.h comm.h interpreter.h db.h \
utils.h spells.h handler.h mail.h screen.h
$(CC) -c $(CFLAGS) interpreter.c
limits.o: limits.c conf.h sysdep.h structs.h utils.h spells.h comm.h db.h \
handler.h
$(CC) -c $(CFLAGS) limits.c
magic.o: magic.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h db.h
$(CC) -c $(CFLAGS) magic.c
mail.o: mail.c conf.h sysdep.h structs.h utils.h comm.h db.h interpreter.h \
handler.h mail.h
$(CC) -c $(CFLAGS) mail.c
mobact.o: mobact.c conf.h sysdep.h structs.h utils.h db.h comm.h interpreter.h \
handler.h spells.h
$(CC) -c $(CFLAGS) mobact.c
modify.o: modify.c conf.h sysdep.h structs.h utils.h interpreter.h handler.h db.h \
comm.h spells.h mail.h boards.h
$(CC) -c $(CFLAGS) modify.c
objsave.o: objsave.c conf.h sysdep.h structs.h comm.h handler.h db.h \
interpreter.h utils.h spells.h
$(CC) -c $(CFLAGS) objsave.c
players.o: players.c conf.h sysdep.h structs.h utils.h db.h handler.h pfdefaults.h
$(CC) -c $(CFLAGS) players.c
random.o: random.c
$(CC) -c $(CFLAGS) random.c
shop.o: shop.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
utils.h shop.h
$(CC) -c $(CFLAGS) shop.c
spec_assign.o: spec_assign.c conf.h sysdep.h structs.h db.h interpreter.h \
utils.h
$(CC) -c $(CFLAGS) spec_assign.c
spec_procs.o: spec_procs.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) -c $(CFLAGS) spec_procs.c
spell_parser.o: spell_parser.c conf.h sysdep.h structs.h utils.h interpreter.h \
spells.h handler.h comm.h db.h
$(CC) -c $(CFLAGS) spell_parser.c
spells.o: spells.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h \
db.h constants.h
$(CC) -c $(CFLAGS) spells.c
utils.o: utils.c conf.h sysdep.h structs.h utils.h comm.h screen.h spells.h \
handler.h
$(CC) -c $(CFLAGS) utils.c
weather.o: weather.c conf.h sysdep.h structs.h utils.h comm.h handler.h \
interpreter.h db.h
$(CC) -c $(CFLAGS) weather.c
quest.o: quest.c conf.h sysdep.h structs.h utils.h interpreter.h handler.h \
comm.h db.h screen.h quest.h
$(CC) -c $(CFLAGS) quest.c
qedit.o: qedit.c conf.h sysdep.h structs.h utils.h comm.h db.h oasis.h \
improved-edit.h screen.h genolc.h genzon.h interpreter.h quest.h
$(CC) -c $(CFLAGS) qedit.c
genqst.o: genqst.c conf.h sysdep.h structs.h utils.h db.h quest.h \
genolc.h genzon.h
$(CC) -c $(CFLAGS) genqst.c

View file

@ -1,167 +0,0 @@
# CircleMUD Makefile/arc - manually created (G. Duncan 13 June 98)
#
# C compiler to use
CC = gcc
LINK = drlink
# Any special flags you want to pass to the compiler
MYFLAGS = -O2 -Iunix:Sockets.Include -Irun:
LIBS = unix:Sockets.Libs.o.socklib unix:Sockets.Libs.o.inetlib \
gcc:o.libgcc unix:o.UnixLib -rescan
#flags for profiling (see hacker.doc for more information)
PROFILE =
##############################################################################
# Do Not Modify Anything Below This Line (unless you know what you're doing) #
##############################################################################
BINDIR = ^.bin
CFLAGS = $(MYFLAGS) $(PROFILE)
OBJFILES = o.comm act.o.comm act.o.informative act.o.movement act.o.item \
act.o.offensive act.o.other act.o.social act.o.wizard o.ban o.boards \
o.castle o.class o.config o.constants o.db o.fight o.graph o.handler \
o.house o.interpreter o.limits o.magic o.mail o.mobact o.modify \
o.objsave o.random o.shop o.spec_assign o.spec_procs \
o.spell_parser o.spells o.utils o.weather o.players o.quest o.qedit o.genqst
default: all
all: $(BINDIR).circle
$(BINDIR).circle: $(OBJFILES)
$(LINK) -o $(BINDIR).circle $(PROFILE) $(OBJFILES) $(LIBS)
clean:
wipe o.* ~V~CF
# Dependencies for the object files (automagically generated with
# gcc -MM)
act.o.comm: act.c.comm h.conf h.sysdep h.structs \
h.utils h.comm h.interpreter h.handler \
h.db h.screen
$(CC) -c $(CFLAGS) act.c.comm -o act.o.comm
act.o.informative: act.c.informative h.conf h.sysdep \
h.structs h.utils h.comm h.interpreter \
h.handler h.db h.spells h.screen h.constants
$(CC) -c $(CFLAGS) act.c.informative -o act.o.informative
act.o.item: act.c.item h.conf h.sysdep h.structs \
h.utils h.comm h.interpreter h.handler \
h.db h.spells
$(CC) -c $(CFLAGS) act.c.item -o act.o.item
act.o.movement: act.c.movement h.conf h.sysdep \
h.structs h.utils h.comm h.interpreter \
h.handler h.db h.spells h.house h.constants
$(CC) -c $(CFLAGS) act.c.movement -o act.o.movement
act.o.offensive: act.c.offensive h.conf h.sysdep \
h.structs h.utils h.comm h.interpreter \
h.handler h.db h.spells
$(CC) -c $(CFLAGS) act.c.offensive -o act.o.offensive
act.o.other: act.c.other h.conf h.sysdep h.structs \
h.utils h.comm h.interpreter h.handler \
h.db h.spells h.screen h.house
$(CC) -c $(CFLAGS) act.c.other -o act.o.other
act.o.social: act.c.social h.conf h.sysdep h.structs \
h.utils h.comm h.interpreter h.handler \
h.db h.spells
$(CC) -c $(CFLAGS) act.c.social -o act.o.social
act.o.wizard: act.c.wizard h.conf h.sysdep h.structs \
h.utils h.comm h.interpreter h.handler \
h.db h.spells h.house h.screen h.constants
$(CC) -c $(CFLAGS) act.c.wizard -o act.o.wizard
o.ban: c.ban h.conf h.sysdep h.structs h.utils h.comm h.interpreter h.handler h.db
$(CC) -c $(CFLAGS) c.ban
o.boards: c.boards h.conf h.sysdep h.structs h.utils h.comm h.db h.boards \
h.interpreter h.handler
$(CC) -c $(CFLAGS) c.boards
o.castle: c.castle h.conf h.sysdep h.structs h.utils h.comm h.interpreter \
h.handler h.db h.spells
$(CC) -c $(CFLAGS) c.castle
o.class: c.class h.conf h.sysdep h.structs h.db h.utils h.spells h.interpreter
$(CC) -c $(CFLAGS) c.class
o.comm: c.comm h.conf h.sysdep h.structs h.utils h.comm h.interpreter h.handler \
h.db h.house
$(CC) -c $(CFLAGS) c.comm
o.config: c.config h.conf h.sysdep h.structs
$(CC) -c $(CFLAGS) c.config
o.constants: c.constants h.conf h.sysdep h.structs
$(CC) -c $(CFLAGS) c.constants
o.db: c.db h.conf h.sysdep h.structs h.utils h.db h.comm h.handler h.spells h.mail \
h.interpreter h.house
$(CC) -c $(CFLAGS) c.db
o.fight: c.fight h.conf h.sysdep h.structs h.utils h.comm h.handler h.interpreter \
h.db h.spells h.screen
$(CC) -c $(CFLAGS) c.fight
o.graph: c.graph h.conf h.sysdep h.structs h.utils h.comm h.interpreter h.handler \
h.db h.spells
$(CC) -c $(CFLAGS) c.graph
o.handler: c.handler h.conf h.sysdep h.structs h.utils h.comm h.db h.handler \
h.interpreter h.spells
$(CC) -c $(CFLAGS) c.handler
o.house: c.house h.conf h.sysdep h.structs h.comm h.handler h.db h.interpreter \
h.utils h.house h.constants
$(CC) -c $(CFLAGS) c.house
o.interpreter: c.interpreter h.conf h.sysdep h.structs h.comm h.interpreter h.db \
h.utils h.spells h.handler h.mail h.screen
$(CC) -c $(CFLAGS) c.interpreter
o.limits: c.limits h.conf h.sysdep h.structs h.utils h.spells h.comm h.db \
h.handler
$(CC) -c $(CFLAGS) c.limits
o.magic: c.magic h.conf h.sysdep h.structs h.utils h.comm h.spells h.handler h.db
$(CC) -c $(CFLAGS) c.magic
o.mail: c.mail h.conf h.sysdep h.structs h.utils h.comm h.db h.interpreter \
h.handler h.mail
$(CC) -c $(CFLAGS) c.mail
o.mobact: c.mobact h.conf h.sysdep h.structs h.utils h.db h.comm h.interpreter \
h.handler h.spells
$(CC) -c $(CFLAGS) c.mobact
o.modify: c.modify h.conf h.sysdep h.structs h.utils h.interpreter h.handler h.db \
h.comm h.spells h.mail h.boards
$(CC) -c $(CFLAGS) c.modify
o.objsave: c.objsave h.conf h.sysdep h.structs h.comm h.handler h.db \
h.interpreter h.utils h.spells
$(CC) -c $(CFLAGS) c.objsave
o.olc: c.olc h.conf h.sysdep h.structs h.utils h.comm h.interpreter h.handler h.db \
h.olc
$(CC) -c $(CFLAGS) c.olc
o.players: c.players.c h.conf h.sysdep h.structs h.utils h.db h.handler h.pfdefaults
$(CC) -c $(CFLAGS) c.players
o.random: c.random h.utils
$(CC) -c $(CFLAGS) c.random
o.shop: c.shop h.conf h.sysdep h.structs h.comm h.handler h.db h.interpreter \
h.utils h.shop
$(CC) -c $(CFLAGS) c.shop
o.spec_assign: c.spec_assign h.conf h.sysdep h.structs h.db h.interpreter \
h.utils
$(CC) -c $(CFLAGS) c.spec_assign
o.spec_procs: c.spec_procs h.conf h.sysdep h.structs h.utils h.comm \
h.interpreter h.handler h.db h.spells
$(CC) -c $(CFLAGS) c.spec_procs
o.spell_parser: c.spell_parser h.conf h.sysdep h.structs h.utils h.interpreter \
h.spells h.handler h.comm h.db
$(CC) -c $(CFLAGS) c.spell_parser
o.spells: c.spells h.conf h.sysdep h.structs h.utils h.comm h.spells h.handler \
h.db h.constants
$(CC) -c $(CFLAGS) c.spells
o.utils: c.utils h.conf h.sysdep h.structs h.utils h.comm h.screen h.spells \
h.handler h.db
$(CC) -c $(CFLAGS) c.utils
o.weather: c.weather h.conf h.sysdep h.structs h.utils h.comm h.handler \
h.interpreter h.db
$(CC) -c $(CFLAGS) c.weather
o.players: c.players h.conf h.sysdep h.structs h.utils h.db h.handler \
h.pfdefaults h.dg_scripts h.comm h.interpreter h.genolc h.config h.spells
$(CC) -c $(CFLAGS) c.players
o.quest: c.quest h.conf h.sysdep h.structs h.utils h.interpreter h.handler \
h.comm h.db h.screen h.quest
$(CC) -c $(CFLAGS) quest.c
o.qedit: c.qedit h.conf h.sysdep h.structs h.utils h.comm h.db h.oasis \
h.improved-edit h.screen h.genolc h.genzon h.interpreter h.quest
$(CC) -c $(CFLAGS) qedit.c
o.genqst: c.genqst h.conf h.sysdep h.structs h.utils h.db h.quest \
h.genolc h.genzon
$(CC) -c $(CFLAGS) genqst.c

View file

@ -1,343 +0,0 @@
#
# Borland C++ IDE generated makefile
# Generated 12/26/97 at 5:04:53 AM
#
.AUTODEPEND
#
# Borland C++ tools
#
IMPLIB = Implib
BCC32 = Bcc32 +BccW32.cfg
BCC32I = Bcc32i +BccW32.cfg
TLINK32 = TLink32
TLIB = TLib
BRC32 = Brc32
TASM32 = Tasm32
#
# IDE macros
#
#
# Options
#
IDE_LinkFLAGS32 = -LC:\BC5\LIB
LinkerLocalOptsAtC32_circledexe = -Tpe -ap -c
ResLocalOptsAtC32_circledexe =
BLocalOptsAtC32_circledexe =
CompInheritOptsAt_circledexe = -IC:\BC5\INCLUDE -D_RTLDLL;_BIDSDLL;
LinkerInheritOptsAt_circledexe = -x
LinkerOptsAt_circledexe = $(LinkerLocalOptsAtC32_circledexe)
ResOptsAt_circledexe = $(ResLocalOptsAtC32_circledexe)
BOptsAt_circledexe = $(BLocalOptsAtC32_circledexe)
#
# Dependency List
#
Dep_circle = \
circle.exe
circle : BccW32.cfg $(Dep_circle)
echo MakeNode
Dep_circledexe = \
act.comm.obj\
act.movement.obj\
act.item.obj\
act.informative.obj\
act.offensive.obj\
act.other.obj\
boards.obj\
ban.obj\
act.wizard.obj\
act.social.obj\
castle.obj\
class.obj\
db.obj\
constants.obj\
config.obj\
comm.obj\
fight.obj\
graph.obj\
limits.obj\
interpreter.obj\
house.obj\
handler.obj\
magic.obj\
mail.obj\
objsave.obj\
players.obj\
modify.obj\
mobact.obj\
random.obj\
shop.obj\
spells.obj\
spell_parser.obj\
spec_procs.obj\
spec_assign.obj\
utils.obj\
weather.obj\
quest.obj\
qedit.obj\
genqst.obj
circle.exe : $(Dep_circledexe)
$(TLINK32) @&&|
/v $(IDE_LinkFLAGS32) $(LinkerOptsAt_circledexe) $(LinkerInheritOptsAt_circledexe) +
C:\BC5\LIB\c0x32.obj+
act.comm.obj+
act.movement.obj+
act.item.obj+
act.informative.obj+
act.offensive.obj+
act.other.obj+
boards.obj+
ban.obj+
act.wizard.obj+
act.social.obj+
castle.obj+
class.obj+
db.obj+
constants.obj+
config.obj+
comm.obj+
fight.obj+
graph.obj+
limits.obj+
interpreter.obj+
house.obj+
handler.obj+
magic.obj+
mail.obj+
objsave.obj+
players.obj+
modify.obj+
mobact.obj+
random.obj+
shop.obj+
spells.obj+
spell_parser.obj+
spec_procs.obj+
spec_assign.obj+
utils.obj+
weather.obj+
quest.obj+
qedit.obj+
genqst.obj
$<,$*
C:\BC5\LIB\bidsfi.lib+
C:\BC5\LIB\import32.lib+
C:\BC5\LIB\cw32i.lib
|
act.comm.obj : act.comm.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.comm.c
|
act.movement.obj : act.movement.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.movement.c
|
act.item.obj : act.item.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.item.c
|
act.informative.obj : act.informative.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.informative.c
|
act.offensive.obj : act.offensive.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.offensive.c
|
act.other.obj : act.other.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.other.c
|
boards.obj : boards.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ boards.c
|
ban.obj : ban.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ ban.c
|
act.wizard.obj : act.wizard.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.wizard.c
|
act.social.obj : act.social.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.social.c
|
castle.obj : castle.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ castle.c
|
class.obj : class.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ class.c
|
db.obj : db.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ db.c
|
constants.obj : constants.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ constants.c
|
config.obj : config.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ config.c
|
comm.obj : comm.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ comm.c
|
fight.obj : fight.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ fight.c
|
graph.obj : graph.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ graph.c
|
limits.obj : limits.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ limits.c
|
interpreter.obj : interpreter.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ interpreter.c
|
house.obj : house.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ house.c
|
handler.obj : handler.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ handler.c
|
magic.obj : magic.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ magic.c
|
mail.obj : mail.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ mail.c
|
objsave.obj : objsave.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ objsave.c
|
players.obj : players.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ players.c
modify.obj : modify.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ modify.c
|
mobact.obj : mobact.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ mobact.c
|
random.obj : random.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ random.c
|
shop.obj : shop.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ shop.c
|
spells.obj : spells.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ spells.c
|
spell_parser.obj : spell_parser.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ spell_parser.c
|
spec_procs.obj : spec_procs.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ spec_procs.c
|
spec_assign.obj : spec_assign.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ spec_assign.c
|
utils.obj : utils.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ utils.c
|
weather.obj : weather.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ weather.c
|
quest.obj : quest.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ quest.c
|
qedit.obj : qedit.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ qedit.c
|
genqst.obj : genqst.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ genqst.c
|
# Compiler configuration file
BccW32.cfg :
Copy &&|
-w
-R
-v
-vi
-H
-H=circle.csm
-WC
-g0
| $@

View file

@ -1,343 +0,0 @@
# For Borland C++ 5.5
#
# Borland C++ IDE generated makefile
# Generated 12/26/97 at 5:04:53 AM
#
.AUTODEPEND
#
# Borland C++ tools
#
IMPLIB = Implib
BCC32 = Bcc32
BCC32I = Bcc32i
TLINK32 = ILink32
TLIB = TLib
BRC32 = Brc32
TASM32 = Tasm32
#
# IDE macros
#
#
# Options
#
IDE_LinkFLAGS32 = -LC:\BORLAND\BCC55\LIB
LinkerLocalOptsAtC32_circledexe = -Tpe -ap -c
ResLocalOptsAtC32_circledexe =
BLocalOptsAtC32_circledexe =
CompInheritOptsAt_circledexe = -IC:\BORLAND\BCC55\INCLUDE;
LinkerInheritOptsAt_circledexe = -x
LinkerOptsAt_circledexe = $(LinkerLocalOptsAtC32_circledexe)
ResOptsAt_circledexe = $(ResLocalOptsAtC32_circledexe)
BOptsAt_circledexe = $(BLocalOptsAtC32_circledexe)
#
# Dependency List
#
Dep_circle = \
circle.exe
circle : BccW32.cfg $(Dep_circle)
echo MakeNode
Dep_circledexe = \
act.comm.obj\
act.movement.obj\
act.item.obj\
act.informative.obj\
act.offensive.obj\
act.other.obj\
boards.obj\
ban.obj\
act.wizard.obj\
act.social.obj\
castle.obj\
class.obj\
db.obj\
constants.obj\
config.obj\
comm.obj\
fight.obj\
graph.obj\
limits.obj\
interpreter.obj\
house.obj\
handler.obj\
magic.obj\
mail.obj\
objsave.obj\
players.obj\
modify.obj\
mobact.obj\
random.obj\
shop.obj\
spells.obj\
spell_parser.obj\
spec_procs.obj\
spec_assign.obj\
utils.obj\
weather.obj\
quest.obj\
qedit.obj\
genqst.obj
circle.exe : $(Dep_circledexe)
$(TLINK32) @&&|
/v $(IDE_LinkFLAGS32) $(LinkerOptsAt_circledexe) $(LinkerInheritOptsAt_circledexe) +
C:\BORLAND\BCC55\LIB\c0x32.obj+
act.comm.obj+
act.movement.obj+
act.item.obj+
act.informative.obj+
act.offensive.obj+
act.other.obj+
boards.obj+
ban.obj+
act.wizard.obj+
act.social.obj+
castle.obj+
class.obj+
db.obj+
constants.obj+
config.obj+
comm.obj+
fight.obj+
graph.obj+
limits.obj+
interpreter.obj+
house.obj+
handler.obj+
magic.obj+
mail.obj+
objsave.obj+
players.obj+
modify.obj+
mobact.obj+
random.obj+
shop.obj+
spells.obj+
spell_parser.obj+
spec_procs.obj+
spec_assign.obj+
utils.obj+
weather.obj+
quest.obj+
qedit.obj+
genqst.obj
$<,$*
C:\BORLAND\BCC55\LIB\import32.lib+
C:\BORLAND\BCC55\LIB\cw32i.lib
|
act.comm.obj : act.comm.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.comm.c
|
act.movement.obj : act.movement.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.movement.c
|
act.item.obj : act.item.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.item.c
|
act.informative.obj : act.informative.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.informative.c
|
act.offensive.obj : act.offensive.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.offensive.c
|
act.other.obj : act.other.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.other.c
|
boards.obj : boards.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ boards.c
|
ban.obj : ban.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ ban.c
|
act.wizard.obj : act.wizard.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.wizard.c
|
act.social.obj : act.social.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ act.social.c
|
castle.obj : castle.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ castle.c
|
class.obj : class.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ class.c
|
db.obj : db.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ db.c
|
constants.obj : constants.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ constants.c
|
config.obj : config.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ config.c
|
comm.obj : comm.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ comm.c
|
fight.obj : fight.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ fight.c
|
graph.obj : graph.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ graph.c
|
limits.obj : limits.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ limits.c
|
interpreter.obj : interpreter.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ interpreter.c
|
house.obj : house.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ house.c
|
handler.obj : handler.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ handler.c
|
magic.obj : magic.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ magic.c
|
mail.obj : mail.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ mail.c
|
objsave.obj : objsave.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ objsave.c
|
players.obj : players.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ players.c
|
modify.obj : modify.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ modify.c
|
mobact.obj : mobact.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ mobact.c
|
random.obj : random.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ random.c
|
shop.obj : shop.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ shop.c
|
spells.obj : spells.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ spells.c
|
spell_parser.obj : spell_parser.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ spell_parser.c
|
spec_procs.obj : spec_procs.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ spec_procs.c
|
spec_assign.obj : spec_assign.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ spec_assign.c
|
utils.obj : utils.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ utils.c
|
weather.obj : weather.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ weather.c
|
quest.obj : quest.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ quest.c
|
qedit.obj : qedit.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ qedit.c
|
genqst.obj : genqst.c
$(BCC32) -P- -c @&&|
$(CompOptsAt_circledexe) $(CompInheritOptsAt_circledexe) -o$@ genqst.c
|
# Compiler configuration file
BccW32.cfg :
Copy &&|
-w
-R
-v
-vi
-H
-H=circle.csm
-WC
-g0
| $@

View file

@ -21,7 +21,7 @@ CFLAGS = @CFLAGS@ $(MYFLAGS) $(PROFILE)
LIBS = @LIBS@ @CRYPTLIB@ @NETLIB@
SRCFILES := $(shell ls *.c | sort)
OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
default: all

View file

@ -1,601 +0,0 @@
# Makefile for LCC-Win32 compile of CircleMUD
# Created by Eric Jones (mailto:fpicard@mindless.com)
# 08/31/98
# Added LCCDIR variable because new release of LCC-Win32 extracts
# to \LCC instead of \LCCPUB as in older versions
# Added DISTDIR variable to allow for an easy way to change
# where Circle is located, plus will allow for changes in the
# path between versions (e.g. bplZZ is circle30bplZZ)
# With addition of new variables as replacements for old
# hard-coded paths, display lines will be less than 80 columns
# thus less clutter on the screen during the make
LCCDIR=c:\lccpub
DISTDIR=c:\circle
CFLAGS=-c -I$(LCCDIR)\include -DLCC_WIN32
CC=lcc
OBJS=\
genqst.obj \
qedit.obj \
quest.obj \
weather.obj \
utils.obj \
spells.obj \
spell_parser.obj \
spec_procs.obj \
spec_assign.obj \
shop.obj \
random.obj \
players.obj \
objsave.obj \
modify.obj \
mobact.obj \
mail.obj \
magic.obj \
limits.obj \
interpreter.obj \
house.obj \
handler.obj \
graph.obj \
fight.obj \
db.obj \
constants.obj \
config.obj \
comm.obj \
class.obj \
castle.obj \
boards.obj \
ban.obj \
act.wizard.obj \
act.social.obj \
act.other.obj \
act.offensive.obj \
act.movement.obj \
act.item.obj \
act.informative.obj \
act.comm.obj \
LIBS=$(LCCDIR)\lib\wsock32.lib
circle.exe: $(OBJS)
lcclnk -subsystem console -o $(DISTDIR)\bin\circle.exe $(OBJS) $(LIBS)
# Build GENQST.C
GENQST_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\genolc.h\
$(DISTDIR)\src\genzon.h\
$(DISTDIR)\src\quest.h\
$(DISTDIR)\src\db.h\
genqst.obj: $(GENQST_C) $(DISTDIR)\src\genqst.c
$(CC) $(CFLAGS) $(DISTDIR)\src\genqst.c
# Build QEDIT.C
QEDIT_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\oasis.h\
$(DISTDIR)\src\improved-edit.h\
$(DISTDIR)\src\screen.h\
$(DISTDIR)\src\genolc.h\
$(DISTDIR)\src\genzon.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\quest.h\
qedit.obj: $(QEDIT_C) $(DISTDIR)\src\qedit.c
$(CC) $(CFLAGS) $(DISTDIR)\src\qedit.c
# Build QUEST.C
QUEST_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\screen.h\
$(DISTDIR)\src\quest.h\
quest.obj: $(QUEST_C) $(DISTDIR)\src\quest.c
$(CC) $(CFLAGS) $(DISTDIR)\src\quest.c
# Build WEATHER.C
WEATHER_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\db.h\
weather.obj: $(WEATHER_C) $(DISTDIR)\src\weather.c
$(CC) $(CFLAGS) $(DISTDIR)\src\weather.c
# Build UTILS.C
UTILS_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\screen.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\handler.h\
utils.obj: $(UTILS_C) $(DISTDIR)\src\utils.c
$(CC) $(CFLAGS) $(DISTDIR)\src\utils.c
# Build SPELLS.C
SPELLS_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\constants.h\
spells.obj: $(SPELLS_C) $(DISTDIR)\src\spells.c
$(CC) $(CFLAGS) $(DISTDIR)\src\spells.c
# Build SPELL_PARSER.C
SPELL_PARSER_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\db.h\
spell_parser.obj: $(SPELL_PARSER_C) $(DISTDIR)\src\spell_parser.c
$(CC) $(CFLAGS) $(DISTDIR)\src\spell_parser.c
# Build SPEC_PROCS.C
SPEC_PROCS_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
spec_procs.obj: $(SPEC_PROCS_C) $(DISTDIR)\src\spec_procs.c
$(CC) $(CFLAGS) $(DISTDIR)\src\spec_procs.c
# Build SPEC_ASSIGN.C
SPEC_ASSIGN_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\utils.h\
spec_assign.obj: $(SPEC_ASSIGN_C) $(DISTDIR)\src\spec_assign.c
$(CC) $(CFLAGS) $(DISTDIR)\src\spec_assign.c
# Build SHOP.C
SHOP_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\shop.h\
shop.obj: $(SHOP_C) $(DISTDIR)\src\shop.c
$(CC) $(CFLAGS) $(DISTDIR)\src\shop.c
# Build RANDOM.C
RANDOM_C=\
random.obj: $(RANDOM_C) $(DISTDIR)\src\random.c
$(CC) $(CFLAGS) $(DISTDIR)\src\random.c
# Build PLAYERS.C
PLAYERS_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\pfdefaults.h\
players.o: $(PLAYERS_C) $(DISTDIR)\src\players.c
$(CC) $(CFLAGS) $(DISTDIR)\src\players.c
# Build OBJSAVE.C
OBJSAVE_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\spells.h\
objsave.obj: $(OBJSAVE_C) $(DISTDIR)\src\objsave.c
$(CC) $(CFLAGS) $(DISTDIR)\src\objsave.c
# Build MODIFY.C
MODIFY_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\mail.h\
$(DISTDIR)\src\boards.h\
modify.obj: $(MODIFY_C) $(DISTDIR)\src\modify.c
$(CC) $(CFLAGS) $(DISTDIR)\src\modify.c
# Build MOBACT.C
MOBACT_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\spells.h\
mobact.obj: $(MOBACT_C) $(DISTDIR)\src\mobact.c
$(CC) $(CFLAGS) $(DISTDIR)\src\mobact.c
# Build MAIL.C
MAIL_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\mail.h\
mail.obj: $(MAIL_C) $(DISTDIR)\src\mail.c
$(CC) $(CFLAGS) $(DISTDIR)\src\mail.c
# Build MAGIC.C
MAGIC_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
magic.obj: $(MAGIC_C) $(DISTDIR)\src\magic.c
$(CC) $(CFLAGS) $(DISTDIR)\src\magic.c
# Build LIMITS.C
LIMITS_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\handler.h\
limits.obj: $(LIMITS_C) $(DISTDIR)\src\limits.c
$(CC) $(CFLAGS) $(DISTDIR)\src\limits.c
# Build INTERPRETER.C
INTERPRETER_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\mail.h\
$(DISTDIR)\src\screen.h\
interpreter.obj: $(INTERPRETER_C) $(DISTDIR)\src\interpreter.c
$(CC) $(CFLAGS) $(DISTDIR)\src\interpreter.c
# Build HOUSE.C
HOUSE_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\house.h\
$(DISTDIR)\src\constants.h\
house.obj: $(HOUSE_C) $(DISTDIR)\src\house.c
$(CC) $(CFLAGS) $(DISTDIR)\src\house.c
# Build HANDLER.C
HANDLER_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\spells.h\
handler.obj: $(HANDLER_C) $(DISTDIR)\src\handler.c
$(CC) $(CFLAGS) $(DISTDIR)\src\handler.c
# Build GRAPH.C
GRAPH_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
graph.obj: $(GRAPH_C) $(DISTDIR)\src\graph.c
$(CC) $(CFLAGS) $(DISTDIR)\src\graph.c
# Build FIGHT.C
FIGHT_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\screen.h\
fight.obj: $(FIGHT_C) $(DISTDIR)\src\fight.c
$(CC) $(CFLAGS) $(DISTDIR)\src\fight.c
# Build DB.C
DB_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\mail.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\house.h\
db.obj: $(DB_C) $(DISTDIR)\src\db.c
$(CC) $(CFLAGS) $(DISTDIR)\src\db.c
# Build CONSTANTS.C
CONSTANTS_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
constants.obj: $(CONSTANTS_C) $(DISTDIR)\src\constants.c
$(CC) $(CFLAGS) $(DISTDIR)\src\constants.c
# Build CONFIG.C
CONFIG_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
config.obj: $(CONFIG_C) $(DISTDIR)\src\config.c
$(CC) $(CFLAGS) $(DISTDIR)\src\config.c
# Build COMM.C
COMM_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\house.h\
$(DISTDIR)\src\telnet.h\
comm.obj: $(COMM_C) $(DISTDIR)\src\comm.c
$(CC) $(CFLAGS) $(DISTDIR)\src\comm.c
# Build CLASS.C
CLASS_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\interpreter.h\
class.obj: $(CLASS_C) $(DISTDIR)\src\class.c
$(CC) $(CFLAGS) $(DISTDIR)\src\class.c
# Build CASTLE.C
CASTLE_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
castle.obj: $(CASTLE_C) $(DISTDIR)\src\castle.c
$(CC) $(CFLAGS) $(DISTDIR)\src\castle.c
# Build BOARDS.C
BOARDS_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\boards.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
boards.obj: $(BOARDS_C) $(DISTDIR)\src\boards.c
$(CC) $(CFLAGS) $(DISTDIR)\src\boards.c
# Build BAN.C
BAN_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
ban.obj: $(BAN_C) $(DISTDIR)\src\ban.c
$(CC) $(CFLAGS) $(DISTDIR)\src\ban.c
# Build ACT.WIZARD.C
ACT_WIZARD_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\house.h\
$(DISTDIR)\src\screen.h\
$(DISTDIR)\src\constants.h\
act.wizard.obj: $(ACT_WIZARD_C) $(DISTDIR)\src\act.wizard.c
$(CC) $(CFLAGS) $(DISTDIR)\src\act.wizard.c
# Build ACT.SOCIAL.C
ACT_SOCIAL_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
act.social.obj: $(ACT_SOCIAL_C) $(DISTDIR)\src\act.social.c
$(CC) $(CFLAGS) $(DISTDIR)\src\act.social.c
# Build ACT.OTHER.C
ACT_OTHER_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\screen.h\
$(DISTDIR)\src\house.h\
act.other.obj: $(ACT_OTHER_C) $(DISTDIR)\src\act.other.c
$(CC) $(CFLAGS) $(DISTDIR)\src\act.other.c
# Build ACT.OFFENSIVE.C
ACT_OFFENSIVE_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
act.offensive.obj: $(ACT_OFFENSIVE_C) $(DISTDIR)\src\act.offensive.c
$(CC) $(CFLAGS) $(DISTDIR)\src\act.offensive.c
# Build ACT.MOVEMENT.C
ACT_MOVEMENT_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\house.h\
$(DISTDIR)\src\constants.h\
act.movement.obj: $(ACT_MOVEMENT_C) $(DISTDIR)\src\act.movement.c
$(CC) $(CFLAGS) $(DISTDIR)\src\act.movement.c
# Build ACT.ITEM.C
ACT_ITEM_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
act.item.obj: $(ACT_ITEM_C) $(DISTDIR)\src\act.item.c
$(CC) $(CFLAGS) $(DISTDIR)\src\act.item.c
# Build ACT.INFORMATIVE.C
ACT_INFORMATIVE_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\spells.h\
$(DISTDIR)\src\screen.h\
$(DISTDIR)\src\constants.h\
act.informative.obj: $(ACT_INFORMATIVE_C)
$(DISTDIR)\src\act.informative.c
$(CC) $(CFLAGS) $(DISTDIR)\src\act.informative.c
# Build ACT.COMM.C
ACT_COMM_C=\
$(DISTDIR)\src\sysdep.h\
$(DISTDIR)\src\structs.h\
$(DISTDIR)\src\utils.h\
$(DISTDIR)\src\comm.h\
$(DISTDIR)\src\interpreter.h\
$(DISTDIR)\src\handler.h\
$(DISTDIR)\src\db.h\
$(DISTDIR)\src\screen.h\
act.comm.obj: $(ACT_COMM_C) $(DISTDIR)\src\act.comm.c
$(CC) $(CFLAGS) $(DISTDIR)\src\act.comm.c

View file

@ -39,7 +39,7 @@ OBJFILES = comm.obj act.comm.obj act.informative.obj act.movement.obj act.item.o
asciimap.obj act.offensive.obj act.other.obj act.social.obj act.wizard.obj \
ban.obj boards.obj castle.obj class.obj config.obj constants.obj db.obj \
dg_event.obj dg_scripts.obj dg_triggers.obj fight.obj genolc.obj graph.obj \
handler.obj house.obj ibt.obj interpreter.obj limits.obj lists.obj magic.obj \
handler.obj house.obj ibt.obj interpreter.obj limits.obj lists.obj magic.obj main.obj \
mail.obj msgedit.obj mobact.obj modify.obj mud_event.obj oasis.obj oasis_copy.obj \
oasis_delete.obj oasis_list.obj objsave.obj protocol.obj shop.obj spec_assign.obj \
spec_procs.obj spell_parser.obj improved-edit.obj spells.obj utils.obj weather.obj \
@ -59,113 +59,312 @@ circle.exe : $(OBJFILES)
# Dependencies for the object files (automagically generated with
# gcc -MM)
act.comm.obj: act.comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h screen.h
act.comm.obj: act.comm.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h screen.h improved-edit.h \
dg_scripts.h act.h modify.h
$(CC) -c $(CFLAGS) act.comm.c
act.informative.obj: act.informative.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h screen.h constants.h
act.informative.obj: act.informative.c conf.h sysdep.h structs.h protocol.h \
lists.h utils.h comm.h interpreter.h handler.h db.h spells.h screen.h \
constants.h dg_scripts.h mud_event.h dg_event.h mail.h act.h class.h \
fight.h modify.h asciimap.h quest.h
$(CC) -c $(CFLAGS) act.informative.c
act.item.obj: act.item.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h
act.item.obj: act.item.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h spells.h constants.h \
dg_scripts.h oasis.h act.h quest.h
$(CC) -c $(CFLAGS) act.item.c
act.movement.obj: act.movement.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h house.h constants.h
act.movement.obj: act.movement.c conf.h sysdep.h structs.h protocol.h \
lists.h utils.h comm.h interpreter.h handler.h db.h spells.h house.h \
constants.h dg_scripts.h act.h fight.h oasis.h
$(CC) -c $(CFLAGS) act.movement.c
act.offensive.obj: act.offensive.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
act.offensive.obj: act.offensive.c conf.h sysdep.h structs.h protocol.h \
lists.h utils.h comm.h interpreter.h handler.h db.h spells.h act.h \
fight.h mud_event.h dg_event.h
$(CC) -c $(CFLAGS) act.offensive.c
act.other.obj: act.other.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h screen.h house.h
act.other.obj: act.other.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h spells.h screen.h house.h \
constants.h dg_scripts.h act.h spec_procs.h class.h fight.h mail.h \
shop.h quest.h modify.h
$(CC) -c $(CFLAGS) act.other.c
act.social.obj: act.social.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
act.social.obj: act.social.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h screen.h spells.h act.h
$(CC) -c $(CFLAGS) act.social.c
act.wizard.obj: act.wizard.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h house.h screen.h constants.h
act.wizard.obj: act.wizard.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h spells.h house.h screen.h \
constants.h oasis.h dg_scripts.h shop.h act.h genzon.h class.h genolc.h \
genobj.h fight.h modify.h quest.h ban.h
$(CC) -c $(CFLAGS) act.wizard.c
ban.obj: ban.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h db.h
aedit.obj: aedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
interpreter.h handler.h comm.h db.h oasis.h screen.h constants.h \
genolc.h act.h
$(CC) -c $(CFLAGS) aedit.c
asciimap.obj: asciimap.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h spells.h house.h constants.h \
dg_scripts.h asciimap.h
$(CC) -c $(CFLAGS) asciimap.c
ban.obj: ban.c conf.h sysdep.h structs.h protocol.h lists.h utils.h comm.h \
interpreter.h handler.h db.h ban.h
$(CC) -c $(CFLAGS) ban.c
boards.obj: boards.c conf.h sysdep.h structs.h utils.h comm.h db.h boards.h \
interpreter.h handler.h
boards.obj: boards.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h db.h boards.h interpreter.h handler.h improved-edit.h modify.h
$(CC) -c $(CFLAGS) boards.c
castle.obj: castle.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h
bsd-snprintf.obj: bsd-snprintf.c conf.h sysdep.h
castle.obj: castle.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h handler.h db.h spells.h act.h spec_procs.h fight.h
$(CC) -c $(CFLAGS) castle.c
class.obj: class.c conf.h sysdep.h structs.h db.h utils.h spells.h interpreter.h
cedit.obj: cedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h db.h constants.h genolc.h oasis.h improved-edit.h \
modify.h
$(CC) -c $(CFLAGS) cedit.c
class.obj: class.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h spells.h interpreter.h constants.h act.h class.h
$(CC) -c $(CFLAGS) class.c
comm.obj: comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h \
db.h house.h
comm.obj: comm.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h handler.h db.h house.h oasis.h genolc.h \
dg_scripts.h dg_event.h screen.h constants.h boards.h act.h ban.h \
msgedit.h fight.h spells.h modify.h quest.h ibt.h mud_event.h
$(CC) -c $(CFLAGS) comm.c
config.obj: config.c conf.h sysdep.h structs.h
config.obj: config.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
interpreter.h config.h asciimap.h
$(CC) -c $(CFLAGS) config.c
constants.obj: constants.c conf.h sysdep.h structs.h
constants.obj: constants.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h interpreter.h constants.h
$(CC) -c $(CFLAGS) constants.c
db.obj: db.c conf.h sysdep.h structs.h utils.h db.h comm.h handler.h spells.h mail.h \
interpreter.h house.h
db.obj: db.c conf.h sysdep.h structs.h protocol.h lists.h utils.h db.h \
comm.h handler.h spells.h mail.h interpreter.h house.h constants.h \
oasis.h dg_scripts.h dg_event.h act.h ban.h spec_procs.h genzon.h \
genolc.h genobj.h config.h fight.h modify.h shop.h quest.h ibt.h \
mud_event.h msgedit.h screen.h
$(CC) -c $(CFLAGS) db.c
fight.obj: fight.c conf.h sysdep.h structs.h utils.h comm.h handler.h interpreter.h \
db.h spells.h screen.h
dg_comm.obj: dg_comm.c conf.h sysdep.h structs.h protocol.h lists.h \
dg_scripts.h utils.h comm.h handler.h db.h constants.h
$(CC) -c $(CFLAGS) dg_comm.c
dg_db_scripts.obj: dg_db_scripts.c conf.h sysdep.h structs.h protocol.h \
lists.h dg_scripts.h utils.h db.h handler.h dg_event.h comm.h \
constants.h interpreter.h
$(CC) -c $(CFLAGS) dg_db_scripts.c
dg_event.obj: dg_event.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h db.h dg_event.h constants.h comm.h mud_event.h
$(CC) -c $(CFLAGS) dg_event.c
dg_handler.obj: dg_handler.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h dg_scripts.h comm.h db.h handler.h spells.h dg_event.h \
constants.h
$(CC) -c $(CFLAGS) dg_handler.c
dg_misc.obj: dg_misc.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
dg_scripts.h comm.h interpreter.h handler.h dg_event.h db.h screen.h \
spells.h constants.h fight.h
$(CC) -c $(CFLAGS) dg_misc.c
dg_mobcmd.obj: dg_mobcmd.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h screen.h dg_scripts.h db.h handler.h interpreter.h comm.h \
spells.h constants.h genzon.h act.h fight.h
$(CC) -c $(CFLAGS) dg_mobcmd.c
dg_objcmd.obj: dg_objcmd.c conf.h sysdep.h structs.h protocol.h lists.h \
screen.h dg_scripts.h utils.h comm.h interpreter.h handler.h db.h \
constants.h genzon.h fight.h
$(CC) -c $(CFLAGS) dg_objcmd.c
dg_olc.obj: dg_olc.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h db.h genolc.h interpreter.h oasis.h dg_olc.h dg_scripts.h \
dg_event.h genzon.h constants.h modify.h
$(CC) -c $(CFLAGS) dg_olc.c
dg_scripts.obj: dg_scripts.c conf.h sysdep.h structs.h protocol.h lists.h \
dg_scripts.h utils.h comm.h interpreter.h handler.h dg_event.h db.h \
screen.h constants.h spells.h oasis.h genzon.h act.h modify.h
$(CC) -c $(CFLAGS) dg_scripts.c
dg_triggers.obj: dg_triggers.c conf.h sysdep.h structs.h protocol.h lists.h \
dg_scripts.h utils.h comm.h interpreter.h handler.h db.h oasis.h \
constants.h spells.h act.h
$(CC) -c $(CFLAGS) dg_triggers.c
dg_variables.obj: dg_variables.c conf.h sysdep.h structs.h protocol.h \
lists.h dg_scripts.h utils.h comm.h interpreter.h handler.h dg_event.h \
db.h fight.h screen.h constants.h spells.h oasis.h class.h quest.h act.h \
genobj.h
$(CC) -c $(CFLAGS) dg_variables.c
dg_wldcmd.obj: dg_wldcmd.c conf.h sysdep.h structs.h protocol.h lists.h \
screen.h dg_scripts.h utils.h comm.h interpreter.h handler.h db.h \
constants.h genzon.h fight.h
$(CC) -c $(CFLAGS) dg_wldcmd.c
fight.obj: fight.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h handler.h interpreter.h db.h spells.h screen.h constants.h \
dg_scripts.h act.h class.h fight.h shop.h quest.h
$(CC) -c $(CFLAGS) fight.c
graph.obj: graph.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h \
db.h spells.h
$(CC) -c $(CFLAGS) graph.c
handler.obj: handler.c conf.h sysdep.h structs.h utils.h comm.h db.h handler.h \
interpreter.h spells.h
$(CC) -c $(CFLAGS) handler.c
house.obj: house.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
utils.h house.h constants.h
$(CC) -c $(CFLAGS) house.c
interpreter.obj: interpreter.c conf.h sysdep.h structs.h comm.h interpreter.h db.h \
utils.h spells.h handler.h mail.h screen.h
$(CC) -c $(CFLAGS) interpreter.c
limits.obj: limits.c conf.h sysdep.h structs.h utils.h spells.h comm.h db.h \
handler.h
$(CC) -c $(CFLAGS) limits.c
magic.obj: magic.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h db.h
$(CC) -c $(CFLAGS) magic.c
mail.obj: mail.c conf.h sysdep.h structs.h utils.h comm.h db.h interpreter.h \
handler.h mail.h
$(CC) -c $(CFLAGS) mail.c
mobact.obj: mobact.c conf.h sysdep.h structs.h utils.h db.h comm.h interpreter.h \
handler.h spells.h
$(CC) -c $(CFLAGS) mobact.c
modify.obj: modify.c conf.h sysdep.h structs.h utils.h interpreter.h handler.h db.h \
comm.h spells.h mail.h boards.h
$(CC) -c $(CFLAGS) modify.c
objsave.obj: objsave.c conf.h sysdep.h structs.h comm.h handler.h db.h \
interpreter.h utils.h spells.h
$(CC) -c $(CFLAGS) objsave.c
players.o: players.c conf.h sysdep.h structs.h utils.h db.h handler.h pfdefaults.h
$(CC) -c $(CFLAGS) players.c
random.obj: random.c
$(CC) -c $(CFLAGS) random.c
shop.obj: shop.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
utils.h shop.h
$(CC) -c $(CFLAGS) shop.c
spec_assign.obj: spec_assign.c conf.h sysdep.h structs.h db.h interpreter.h \
utils.h
$(CC) -c $(CFLAGS) spec_assign.c
spec_procs.obj: spec_procs.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) -c $(CFLAGS) spec_procs.c
spell_parser.obj: spell_parser.c conf.h sysdep.h structs.h utils.h interpreter.h \
spells.h handler.h comm.h db.h
$(CC) -c $(CFLAGS) spell_parser.c
spells.obj: spells.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h \
db.h constants.h
$(CC) -c $(CFLAGS) spells.c
utils.obj: utils.c conf.h sysdep.h structs.h utils.h comm.h screen.h spells.h \
handler.h
$(CC) -c $(CFLAGS) utils.c
weather.obj: weather.c conf.h sysdep.h structs.h utils.h comm.h handler.h \
interpreter.h db.h
$(CC) -c $(CFLAGS) weather.c
quest.obj: quest.c conf.h sysdep.h structs.h utils.h interpreter.h handler.h \
comm.h db.h screen.h quest.h
$(CC) -c $(CFLAGS) quest.c
qedit.obj: qedit.c conf.h sysdep.h structs.h utils.h comm.h db.h oasis.h \
improved-edit.h screen.h genolc.h genzon.h interpreter.h quest.h
$(CC) -c $(CFLAGS) qedit.c
genqst.obj: genqst.c conf.h sysdep.h structs.h utils.h db.h quest.h \
genolc.h genzon.h
genmob.obj: genmob.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h shop.h handler.h genolc.h genmob.h genzon.h dg_olc.h dg_scripts.h \
spells.h
$(CC) -c $(CFLAGS) genmob.c
genobj.obj: genobj.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h shop.h constants.h genolc.h genobj.h genzon.h dg_olc.h dg_scripts.h \
handler.h interpreter.h boards.h
$(CC) -c $(CFLAGS) genobj.c
genolc.obj: genolc.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h handler.h comm.h shop.h oasis.h genolc.h genwld.h genmob.h genshp.h \
genzon.h genobj.h dg_olc.h dg_scripts.h constants.h interpreter.h act.h \
modify.h quest.h
$(CC) -c $(CFLAGS) genolc.c
genqst.obj: genqst.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h quest.h genolc.h genzon.h
$(CC) -c $(CFLAGS) genqst.c
genshp.obj: genshp.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h shop.h genolc.h genshp.h genzon.h
$(CC) -c $(CFLAGS) genshp.c
genwld.obj: genwld.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h handler.h comm.h genolc.h genwld.h genzon.h shop.h dg_olc.h \
dg_scripts.h mud_event.h dg_event.h
$(CC) -c $(CFLAGS) genwld.c
genzon.obj: genzon.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h genolc.h genzon.h dg_scripts.h
$(CC) -c $(CFLAGS) genzon.c
graph.obj: graph.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h handler.h db.h spells.h act.h constants.h graph.h \
fight.h
$(CC) -c $(CFLAGS) graph.c
handler.obj: handler.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h db.h handler.h screen.h interpreter.h spells.h dg_scripts.h act.h \
class.h fight.h quest.h mud_event.h dg_event.h
$(CC) -c $(CFLAGS) handler.c
hedit.obj: hedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h db.h boards.h oasis.h genolc.h genzon.h handler.h \
improved-edit.h act.h hedit.h modify.h
$(CC) -c $(CFLAGS) hedit.c
house.obj: house.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h handler.h db.h interpreter.h house.h constants.h modify.h
$(CC) -c $(CFLAGS) house.c
ibt.obj: ibt.c conf.h sysdep.h structs.h protocol.h lists.h utils.h comm.h \
db.h handler.h interpreter.h constants.h screen.h act.h ibt.h oasis.h \
improved-edit.h modify.h
$(CC) -c $(CFLAGS) ibt.c
improved-edit.obj: improved-edit.c conf.h sysdep.h structs.h protocol.h \
lists.h utils.h db.h comm.h interpreter.h improved-edit.h dg_scripts.h \
modify.h
interpreter.obj: interpreter.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h db.h spells.h handler.h mail.h screen.h \
genolc.h oasis.h improved-edit.h dg_scripts.h constants.h act.h ban.h \
class.h graph.h hedit.h house.h config.h modify.h quest.h asciimap.h \
prefedit.h ibt.h mud_event.h dg_event.h
$(CC) -c $(CFLAGS) interpreter.c
limits.obj: limits.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
spells.h comm.h db.h handler.h interpreter.h dg_scripts.h class.h \
fight.h screen.h mud_event.h dg_event.h
$(CC) -c $(CFLAGS) limits.c
lists.obj: lists.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h dg_event.h
$(CC) -c $(CFLAGS) lists.c
magic.obj: magic.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h spells.h handler.h db.h interpreter.h constants.h dg_scripts.h \
class.h fight.h mud_event.h dg_event.h
$(CC) -c $(CFLAGS) magic.c
mail.obj: mail.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h db.h interpreter.h handler.h mail.h modify.h
$(CC) -c $(CFLAGS) mail.c
main.obj: main.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h handler.h db.h house.h oasis.h genolc.h \
dg_scripts.h dg_event.h screen.h constants.h boards.h act.h ban.h \
msgedit.h fight.h spells.h modify.h quest.h ibt.h mud_event.h
$(CC) -c $(CFLAGS) main.c
medit.obj: medit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
interpreter.h comm.h spells.h db.h shop.h genolc.h genmob.h genzon.h \
genshp.h oasis.h handler.h constants.h improved-edit.h dg_olc.h \
dg_scripts.h screen.h fight.h modify.h
$(CC) -c $(CFLAGS) medit.c
mobact.obj: mobact.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h comm.h interpreter.h handler.h spells.h constants.h act.h graph.h \
fight.h
$(CC) -c $(CFLAGS) mobact.c
modify.obj: modify.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
interpreter.h handler.h db.h comm.h spells.h mail.h boards.h \
improved-edit.h oasis.h class.h dg_scripts.h modify.h quest.h ibt.h
$(CC) -c $(CFLAGS) modify.c
msgedit.obj: msgedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h screen.h spells.h db.h msgedit.h oasis.h genolc.h interpreter.h \
modify.h
$(CC) -c $(CFLAGS) msgedit.c
mud_event.obj: mud_event.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h db.h dg_event.h constants.h comm.h mud_event.h
$(CC) -c $(CFLAGS) mud_event.c
oasis.obj: oasis.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
interpreter.h comm.h db.h shop.h genolc.h genmob.h genshp.h genzon.h \
genwld.h genobj.h oasis.h screen.h dg_olc.h dg_scripts.h act.h handler.h \
quest.h ibt.h msgedit.h
$(CC) -c $(CFLAGS) oasis.c
oasis_copy.obj: oasis_copy.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h shop.h genshp.h genolc.h \
genzon.h genwld.h oasis.h improved-edit.h constants.h dg_scripts.h
$(CC) -c $(CFLAGS) oasis_copy.c
oasis_delete.obj: oasis_delete.c conf.h sysdep.h structs.h protocol.h \
lists.h utils.h comm.h interpreter.h handler.h db.h genolc.h oasis.h \
improved-edit.h
$(CC) -c $(CFLAGS) oasis_delete.c
oasis_list.obj: oasis_list.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h genolc.h oasis.h \
improved-edit.h shop.h screen.h constants.h dg_scripts.h quest.h \
modify.h spells.h
$(CC) -c $(CFLAGS) oasis_list.c
objsave.obj: objsave.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h handler.h db.h interpreter.h spells.h act.h class.h config.h \
modify.h genolc.h
$(CC) -c $(CFLAGS) objsave.c
oedit.obj: oedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h spells.h db.h boards.h constants.h shop.h genolc.h \
genobj.h genzon.h oasis.h improved-edit.h dg_olc.h dg_scripts.h fight.h \
modify.h
$(CC) -c $(CFLAGS) oedit.c
players.obj: players.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h handler.h pfdefaults.h dg_scripts.h comm.h interpreter.h genolc.h \
config.h quest.h
$(CC) -c $(CFLAGS) players.c
prefedit.obj: prefedit.c conf.h sysdep.h structs.h protocol.h lists.h \
comm.h utils.h handler.h interpreter.h db.h oasis.h prefedit.h screen.h
$(CC) -c $(CFLAGS) prefedit.c
protocol.obj: protocol.c conf.h protocol.h sysdep.h structs.h lists.h \
utils.h comm.h interpreter.h handler.h db.h screen.h improved-edit.h \
dg_scripts.h act.h modify.h
$(CC) -c $(CFLAGS) protocol.c
qedit.obj: qedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h db.h oasis.h improved-edit.h screen.h genolc.h genzon.h \
interpreter.h modify.h quest.h
$(CC) -c $(CFLAGS) qedit.c
quest.obj: quest.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
interpreter.h handler.h db.h comm.h screen.h quest.h act.h
$(CC) -c $(CFLAGS) quest.c
random.obj: random.c conf.h sysdep.h structs.h protocol.h lists.h utils.h
$(CC) -c $(CFLAGS) random.c
redit.obj: redit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h db.h boards.h genolc.h genwld.h genzon.h oasis.h \
improved-edit.h dg_olc.h dg_scripts.h constants.h modify.h
$(CC) -c $(CFLAGS) redit.c
sedit.obj: sedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h db.h shop.h genolc.h genshp.h genzon.h oasis.h \
constants.h
$(CC) -c $(CFLAGS) sedit.c
shop.obj: shop.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h handler.h db.h interpreter.h shop.h genshp.h constants.h act.h \
modify.h spells.h screen.h
$(CC) -c $(CFLAGS) shop.c
spec_assign.obj: spec_assign.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h db.h interpreter.h spec_procs.h ban.h boards.h mail.h
$(CC) -c $(CFLAGS) spec_assign.c
spec_procs.obj: spec_procs.c conf.h sysdep.h structs.h protocol.h lists.h \
utils.h comm.h interpreter.h handler.h db.h spells.h constants.h act.h \
spec_procs.h class.h fight.h modify.h
$(CC) -c $(CFLAGS) spec_procs.c
spell_parser.obj: spell_parser.c conf.h sysdep.h structs.h protocol.h \
lists.h utils.h interpreter.h spells.h handler.h comm.h db.h \
dg_scripts.h fight.h
$(CC) -c $(CFLAGS) spell_parser.c
spells.obj: spells.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h spells.h handler.h db.h constants.h interpreter.h dg_scripts.h \
act.h fight.h
$(CC) -c $(CFLAGS) spells.c
tedit.obj: tedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
interpreter.h comm.h db.h genolc.h oasis.h improved-edit.h modify.h
$(CC) -c $(CFLAGS) tedit.c
utils.obj: utils.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
db.h comm.h modify.h screen.h spells.h handler.h interpreter.h class.h
$(CC) -c $(CFLAGS) utils.c
weather.obj: weather.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h db.h
$(CC) -c $(CFLAGS) weather.c
zedit.obj: zedit.c conf.h sysdep.h structs.h protocol.h lists.h utils.h \
comm.h interpreter.h db.h constants.h genolc.h genzon.h oasis.h \
dg_scripts.h
$(CC) -c $(CFLAGS) zedit.c
zmalloc.obj: zmalloc.c conf.h
$(CC) -c $(CFLAGS) zmalloc.c

View file

@ -1,205 +0,0 @@
# CircleMUD Makefile for OS/2 (manually created by David Carver)
# C compiler to use
CC = gcc
# Any special flags you want to pass to the compiler
MYFLAGS = -O2 -Wall
#flags for profiling (see hacker.doc for more information)
PROFILE =
# Libraires that need to be included for use with GCC for OS/2
LIB = -lsocket
##############################################################################
# Do Not Modify Anything Below This Line (unless you know what you're doing) #
##############################################################################
# For compiling circle with GDB debugger Information
#CFLAGS = -g -O $(MYFLAGS) $(PROFILE)
# Uncomment the line below if you don't want to compile with GDB info
CFLAGS = $(MYFLAGS) $(PROFILE)
OBJFILES = comm.o act.comm.o act.informative.o act.movement.o act.item.o \
act.offensive.o act.other.o act.social.o act.wizard.o ban.o boards.o \
castle.o class.o config.o constants.o db.o fight.o graph.o handler.o \
house.o interpreter.o limits.o magic.o mail.o mobact.o modify.o \
objsave.o shop.o spec_assign.o spec_procs.o spell_parser.o \
spells.o utils.o weather.o random.o players.o quest.o qedit.o genqst.o
default: .accepted
$(MAKE) ../bin/circle
.accepted:
@./licheck more
utils: .accepted
$(MAKE) ../bin/asciipasswd
$(MAKE) ../bin/autowiz
$(MAKE) ../bin/listrent
$(MAKE) ../bin/plrtoascii
$(MAKE) ../bin/shopconv
$(MAKE) ../bin/sign
$(MAKE) ../bin/split
$(MAKE) ../bin/wld2html
all: .accepted
$(MAKE) ../bin/circle
$(MAKE) utils
circle:
$(MAKE) ../bin/circle
asciipasswd:
$(MAKE) ../bin/asciipasswd
autowiz:
$(MAKE) ../bin/autowiz
listrent:
$(MAKE) ../bin/listrent
plrtoascii:
$(MAKE) ../bin/plrtoascii
shopconv:
$(MAKE) ../bin/shopconv
sign:
$(MAKE) ../bin/sign
split:
$(MAKE) ../bin/split
wld2html:
$(MAKE) ../bin/wld2html
../bin/asciipasswd: util/asciipasswd.c conf.h sysdep.h structs.h utils.h
$(CC) $(CFLAGS) -o ../bin/asciipasswd util/asciipasswd.c
../bin/autowiz: util/autowiz.c conf.h sysdep.h structs.h utils.h db.h
$(CC) $(CFLAGS) -o ../bin/autowiz util/autowiz.c
../bin/listrent: util/listrent.c conf.h sysdep.h structs.h
$(CC) $(CFLAGS) -o ../bin/listrent util/listrent.c
../bin/plrtoascii: util/plrtoascii.c conf.h sysdep.h db.h pfdefaults.h
$(CC) $(CFLAGS) -o ../bin/plrtoascii util/plrtoascii.c
../bin/shopconv: util/shopconv.c conf.h sysdep.h structs.h db.h utils.h shop.h
$(CC) $(CFLAGS) -o ../bin/shopconv util/shopconv.c
../bin/sign: util/sign.c conf.h sysdep.h
$(CC) $(CFLAGS) -o ../bin/sign util/sign.c
../bin/split: util/split.c
$(CC) $(CFLAGS) -o ../bin/split util/split.c
../bin/wld2html: util/wld2html.c
$(CC) $(CFLAGS) -o ../bin/wld2html util/wld2html.c
../bin/circle : $(OBJFILES)
$(CC) -o circle.exe $(PROFILE) $(OBJFILES) $(LIB)
clean:
rm -f *.o
# Dependencies for the object files (automagically generated with
# gcc -MM)
act.comm.o: act.comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h screen.h
$(CC) -c $(CFLAGS) act.comm.c
act.informative.o: act.informative.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h screen.h constants.h
$(CC) -c $(CFLAGS) act.informative.c
act.item.o: act.item.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h
$(CC) -c $(CFLAGS) act.item.c
act.movement.o: act.movement.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h house.h constants.h
$(CC) -c $(CFLAGS) act.movement.c
act.offensive.o: act.offensive.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) -c $(CFLAGS) act.offensive.c
act.other.o: act.other.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h screen.h house.h
$(CC) -c $(CFLAGS) act.other.c
act.social.o: act.social.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) -c $(CFLAGS) act.social.c
act.wizard.o: act.wizard.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h house.h screen.h constants.h
$(CC) -c $(CFLAGS) act.wizard.c
ban.o: ban.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h db.h
$(CC) -c $(CFLAGS) ban.c
boards.o: boards.c conf.h sysdep.h structs.h utils.h comm.h db.h boards.h \
interpreter.h handler.h
$(CC) -c $(CFLAGS) boards.c
castle.o: castle.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h
$(CC) -c $(CFLAGS) castle.c
class.o: class.c conf.h sysdep.h structs.h db.h utils.h spells.h interpreter.h
$(CC) -c $(CFLAGS) class.c
comm.o: comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h \
db.h house.h
$(CC) -c $(CFLAGS) comm.c
config.o: config.c conf.h sysdep.h structs.h
$(CC) -c $(CFLAGS) config.c
constants.o: constants.c conf.h sysdep.h structs.h
$(CC) -c $(CFLAGS) constants.c
db.o: db.c conf.h sysdep.h structs.h utils.h db.h comm.h handler.h spells.h mail.h \
interpreter.h house.h
$(CC) -c $(CFLAGS) db.c
fight.o: fight.c conf.h sysdep.h structs.h utils.h comm.h handler.h interpreter.h \
db.h spells.h screen.h
$(CC) -c $(CFLAGS) fight.c
graph.o: graph.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h \
db.h spells.h
$(CC) -c $(CFLAGS) graph.c
handler.o: handler.c conf.h sysdep.h structs.h utils.h comm.h db.h handler.h \
interpreter.h spells.h
$(CC) -c $(CFLAGS) handler.c
house.o: house.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
utils.h house.h constants.h
$(CC) -c $(CFLAGS) house.c
interpreter.o: interpreter.c conf.h sysdep.h structs.h comm.h interpreter.h db.h \
utils.h spells.h handler.h mail.h screen.h
$(CC) -c $(CFLAGS) interpreter.c
limits.o: limits.c conf.h sysdep.h structs.h utils.h spells.h comm.h db.h \
handler.h
$(CC) -c $(CFLAGS) limits.c
magic.o: magic.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h db.h
$(CC) -c $(CFLAGS) magic.c
mail.o: mail.c conf.h sysdep.h structs.h utils.h comm.h db.h interpreter.h \
handler.h mail.h
$(CC) -c $(CFLAGS) mail.c
mobact.o: mobact.c conf.h sysdep.h structs.h utils.h db.h comm.h interpreter.h \
handler.h spells.h
$(CC) -c $(CFLAGS) mobact.c
modify.o: modify.c conf.h sysdep.h structs.h utils.h interpreter.h handler.h db.h \
comm.h spells.h mail.h boards.h
$(CC) -c $(CFLAGS) modify.c
objsave.o: objsave.c conf.h sysdep.h structs.h comm.h handler.h db.h \
interpreter.h utils.h spells.h
$(CC) -c $(CFLAGS) objsave.c
players.o: players.c conf.h sysdep.h structs.h utils.h db.h handler.h pfdefaults.h
$(CC) -c $(CFLAGS) players.c
random.o: random.c
$(CC) -c $(CFLAGS) random.c
shop.o: shop.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
utils.h shop.h
$(CC) -c $(CFLAGS) shop.c
spec_assign.o: spec_assign.c conf.h sysdep.h structs.h db.h interpreter.h \
utils.h
$(CC) -c $(CFLAGS) spec_assign.c
spec_procs.o: spec_procs.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) -c $(CFLAGS) spec_procs.c
spell_parser.o: spell_parser.c conf.h sysdep.h structs.h utils.h interpreter.h \
spells.h handler.h comm.h db.h
$(CC) -c $(CFLAGS) spell_parser.c
spells.o: spells.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h \
db.h constants.h
$(CC) -c $(CFLAGS) spells.c
utils.o: utils.c conf.h sysdep.h structs.h utils.h comm.h screen.h spells.h \
handler.h
$(CC) -c $(CFLAGS) utils.c
weather.o: weather.c conf.h sysdep.h structs.h utils.h comm.h handler.h \
interpreter.h db.h
$(CC) -c $(CFLAGS) weather.c
quest.obj: quest.c conf.h sysdep.h structs.h utils.h interpreter.h handler.h \
comm.h db.h screen.h quest.h
$(CC) -c $(CFLAGS) quest.c
qedit.obj: qedit.c conf.h sysdep.h structs.h utils.h comm.h db.h oasis.h \
improved-edit.h screen.h genolc.h genzon.h interpreter.h quest.h
$(CC) -c $(CFLAGS) qedit.c
genqst.obj: genqst.c conf.h sysdep.h structs.h utils.h db.h quest.h \
genolc.h genzon.h
$(CC) -c $(CFLAGS) genqst.c

View file

@ -1,12 +0,0 @@
DATA=FAR
CODE=FAR
MATH=STANDARD
ANSI
NOSTACKCHECK
MODIFIED
STACKEXTEND
NOICONS
ONERROR=CONTINUE
INCLUDEDIR=include:netinclude
LIBRARY=LIB:net.lib
LINKEROPTIONS="bufsize 4096"

View file

@ -1,192 +0,0 @@
# CircleMUD makefile for the Amiga
# C compiler to use
CC = sc
# Any special flags you want to pass to the compiler
MYFLAGS =
#flags for profiling (see hacker.doc for more information)
PROFILE =
##############################################################################
# Do Not Modify Anything Below This Line (unless you know what you're doing) #
##############################################################################
CFLAGS = NOLINK $(MYFLAGS) $(PROFILE)
MAKE = SMAKE
OBJFILES = comm.o act.comm.o act.informative.o act.movement.o act.item.o \
act.offensive.o act.other.o act.social.o act.wizard.o ban.o boards.o \
castle.o class.o config.o constants.o db.o fight.o graph.o handler.o \
house.o interpreter.o limits.o magic.o mail.o mobact.o modify.o \
objsave.o olc.o shop.o spec_assign.o spec_procs.o spell_parser.o \
spells.o utils.o weather.o random.o players.o
default:
$(MAKE) /bin/circle
utils:
$(MAKE) /bin/asciipasswd
$(MAKE) /bin/autowiz
$(MAKE) /bin/listrent
$(MAKE) /bin/plrtoascii
$(MAKE) /bin/shopconv
$(MAKE) /bin/sign
$(MAKE) /bin/split
$(MAKE) /bin/wld2html
all: .accepted
$(MAKE) /bin/circle
$(MAKE) utils
circle:
$(MAKE) /bin/circle
asciipasswd:
$(MAKE) /bin/asciipasswd
autowiz:
$(MAKE) /bin/autowiz
listrent:
$(MAKE) /bin/listrent
plrtoascii:
$(MAKE) /bin/plrtoascii
shopconv:
$(MAKE) /bin/shopconv
sign:
$(MAKE) /bin/sign
split:
$(MAKE) /bin/split
wld2html:
$(MAKE) /bin/wld2html
/bin/asciipasswd: util/asciipasswd.c conf.h sysdep.h structs.h utils.h
$(CC) $(CFLAGS) /bin/asciipasswd util/asciipasswd.c LINK
/bin/autowiz: util/autowiz.c conf.h sysdep.h structs.h utils.h db.h
$(CC) $(CFLAGS) /bin/autowiz util/autowiz.c LINK
/bin/listrent: util/listrent.c conf.h sysdep.h structs.h
$(CC) $(CFLAGS) /bin/listrent util/listrent.c LINK
/bin/plrtoascii: util/plrtoascii.c conf.h sysdep.h db.h pfdefaults.h
$(CC) $(CFLAGS) /bin/plrtoascii util/plrtoascii.c LINK
/bin/shopconv: util/shopconv.c conf.h sysdep.h structs.h db.h utils.h shop.h
$(CC) $(CFLAGS) /bin/shopconv util/shopconv.c LINK
/bin/sign: util/sign.c conf.h sysdep.h
$(CC) $(CFLAGS) /bin/sign util/sign.c LINK
/bin/split: util/split.c
$(CC) $(CFLAGS) /bin/split util/split.c LINK
/bin/wld2html: util/wld2html.c
$(CC) $(CFLAGS) /bin/wld2html util/wld2html.c LINK
/bin/circle : $(OBJFILES)
$(CC) $(PROFILE) $(OBJFILES) TO /bin/circle LINK
# Dependencies for the object files (automagically generated with
# gcc -MM)
act.comm.o: act.comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h screen.h
$(CC) $(CFLAGS) act.comm.c
act.informative.o: act.informative.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h screen.h
$(CC) $(CFLAGS) act.informative.c
act.item.o: act.item.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h
$(CC) $(CFLAGS) act.item.c
act.movement.o: act.movement.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h house.h
$(CC) $(CFLAGS) act.movement.c
act.offensive.o: act.offensive.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) $(CFLAGS) act.offensive.c
act.other.o: act.other.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h screen.h house.h
$(CC) $(CFLAGS) act.other.c
act.social.o: act.social.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) $(CFLAGS) act.social.c
act.wizard.o: act.wizard.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h house.h screen.h
$(CC) $(CFLAGS) act.wizard.c
ban.o: ban.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h db.h
$(CC) $(CFLAGS) ban.c
boards.o: boards.c conf.h sysdep.h structs.h utils.h comm.h db.h boards.h \
interpreter.h handler.h
$(CC) $(CFLAGS) boards.c
castle.o: castle.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h
$(CC) $(CFLAGS) castle.c
class.o: class.c conf.h sysdep.h structs.h db.h utils.h spells.h interpreter.h
$(CC) $(CFLAGS) class.c
comm.o: comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h \
db.h house.h
$(CC) $(CFLAGS) comm.c
config.o: config.c conf.h sysdep.h structs.h
$(CC) $(CFLAGS) config.c
constants.o: constants.c conf.h sysdep.h structs.h
$(CC) $(CFLAGS) constants.c
db.o: db.c conf.h sysdep.h structs.h utils.h db.h comm.h handler.h spells.h mail.h \
interpreter.h house.h
$(CC) $(CFLAGS) db.c
fight.o: fight.c conf.h sysdep.h structs.h utils.h comm.h handler.h interpreter.h \
db.h spells.h screen.h
$(CC) $(CFLAGS) fight.c
graph.o: graph.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h \
db.h spells.h
$(CC) $(CFLAGS) graph.c
handler.o: handler.c conf.h sysdep.h structs.h utils.h comm.h db.h handler.h \
interpreter.h spells.h
$(CC) $(CFLAGS) handler.c
house.o: house.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
utils.h house.h
$(CC) $(CFLAGS) house.c
interpreter.o: interpreter.c conf.h sysdep.h structs.h comm.h interpreter.h db.h \
utils.h spells.h handler.h mail.h screen.h
$(CC) $(CFLAGS) interpreter.c
limits.o: limits.c conf.h sysdep.h structs.h utils.h spells.h comm.h db.h \
handler.h
$(CC) $(CFLAGS) limits.c
magic.o: magic.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h db.h
$(CC) $(CFLAGS) magic.c
mail.o: mail.c conf.h sysdep.h structs.h utils.h comm.h db.h interpreter.h \
handler.h mail.h
$(CC) $(CFLAGS) mail.c
mobact.o: mobact.c conf.h sysdep.h structs.h utils.h db.h comm.h interpreter.h \
handler.h spells.h
$(CC) $(CFLAGS) mobact.c
modify.o: modify.c conf.h sysdep.h structs.h utils.h interpreter.h handler.h db.h \
comm.h spells.h mail.h boards.h
$(CC) $(CFLAGS) modify.c
objsave.o: objsave.c conf.h sysdep.h structs.h comm.h handler.h db.h \
interpreter.h utils.h spells.h
$(CC) $(CFLAGS) objsave.c
olc.o: olc.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h handler.h db.h \
olc.h
$(CC) $(CFLAGS) olc.c
players.o: players.c conf.h sysdep.h structs.h utils.h db.h handler.h pfdefaults.h
$(CC) -c $(CFLAGS) players.c
random.o: random.c
$(CC) $(CFLAGS) random.c
shop.o: shop.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
utils.h shop.h
$(CC) $(CFLAGS) shop.c
spec_assign.o: spec_assign.c conf.h sysdep.h structs.h db.h interpreter.h \
utils.h
$(CC) $(CFLAGS) spec_assign.c
spec_procs.o: spec_procs.c conf.h sysdep.h structs.h utils.h comm.h \
interpreter.h handler.h db.h spells.h
$(CC) $(CFLAGS) spec_procs.c
spell_parser.o: spell_parser.c conf.h sysdep.h structs.h utils.h interpreter.h \
spells.h handler.h comm.h db.h
$(CC) $(CFLAGS) spell_parser.c
spells.o: spells.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h \
db.h
$(CC) $(CFLAGS) spells.c
utils.o: utils.c conf.h sysdep.h structs.h utils.h comm.h screen.h spells.h \
handler.h
$(CC) $(CFLAGS) utils.c
weather.o: weather.c conf.h sysdep.h structs.h utils.h comm.h handler.h \
interpreter.h db.h
$(CC) $(CFLAGS) weather.c

View file

@ -1,517 +0,0 @@
$!
$! BUILD_CIRCLEMUD.COM
$! Written By: Robert Alan Byer
$! byer@mail.ourservers.net
$!
$! This script checks the file names and then compiles and links CircleMUD for
$! OpenVMS using DEC C and the DEC C TCP/IP socket routines.
$!
$! The script accepts the following parameters.
$!
$! P1 ALL Build Everything.
$! CIRCLE Just Build [-.BIN]CIRCLE.EXE.
$! UTILS Just Build The CircleMUD Utilities.
$!
$! P2 DEBUG Build With Debugger Information.
$! NODEBUG Build Withoug Debugger Information.
$!
$! The default is "ALL" and "NODEBUG".
$!
$! Check To Make Sure We Have Valid Command Line Parameters.
$!
$ GOSUB CHECK_OPTIONS
$!
$! Check To See If We Are On An AXP Machine.
$!
$ IF (F$GETSYI("CPU").LT.128)
$ THEN
$!
$! We Are On A VAX Machine So Tell The User.
$!
$ WRITE SYS$OUTPUT "Compiling On A VAX Machine."
$!
$! Else, We Are On An AXP Machine.
$!
$ ELSE
$!
$! We Are On A AXP Machine So Tell The User.
$!
$ WRITE SYS$OUTPUT "Compiling On A AXP Machine."
$!
$! End Of The Machine Check.
$!
$ ENDIF
$!
$! Check The CONF.H File.
$!
$ GOSUB CHECK_CONF_FILE
$!
$! Check Filenames.
$!
$ GOSUB CHECK_FILE_NAMES
$!
$! Check To See What We Are To Do.
$!
$ IF (BUILDALL.EQS."TRUE")
$ THEN
$!
$! Since Nothing Special Was Specified, Build Everything.
$!
$ GOSUB BUILD_CIRCLE
$ GOSUB BUILD_UTILS
$!
$! Else...
$!
$ ELSE
$!
$! Build Just What The User Wants Us To Build.
$!
$ GOSUB BUILD_'BUILDALL'
$!
$! Time To End The Build Check.
$!
$ ENDIF
$!
$! Time To EXIT.
$!
$ EXIT
$!
$! Build [-.BIN]CIRCLE.EXE
$!
$ BUILD_CIRCLE:
$!
$! Tell The User What We Are Doing.
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "Compiling [-.BIN]CIRCLE.EXE"
$ WRITE SYS$OUTPUT ""
$!
$! Define The CIRCLE.EXE Files That Are Necessary.
$!
$ CIRCLE_FILES = "ACT_COMM,ACT_INFORMATIVE,ACT_ITEM,ACT_MOVEMENT," + -
"ACT_OFFENSIVE,ACT_OTHER,ACT_SOCIAL,ACT_WIZARD," + -
"ALIAS,BAN,BOARDS,CASTLE,CLASS,COMM,CONFIG," + -
"CONSTANTS,DB,FIGHT,GRAPH,HANDLER,HOUSE," + -
"INTERPRETER,LIMITS,MAGIC,MAIL,MOBACT,MODIFY," + -
"OBJSAVE,OLC,PLAYERS,RANDOM,SHOP,SPEC_ASSIGN," + -
"SPEC_PROCS,SPELLS,SPELL_PARSER,UTILS,WEATHER"
$!
$! Define A File Counter And Set It To "0".
$!
$ CIRCLE_FILE_COUNTER = 0
$!
$! Top Of The File Loop.
$!
$ NEXT_CIRCLE_FILE:
$!
$! O.K, Extract The File Name From The File List.
$!
$ CIRCLE_FILE_NAME = F$ELEMENT(CIRCLE_FILE_COUNTER,",",CIRCLE_FILES)
$!
$! Check To See If We Are At The End Of The File List.
$!
$ IF (CIRCLE_FILE_NAME.EQS.",") THEN GOTO CIRCLE_FILE_DONE
$!
$! Increment The Counter.
$!
$ CIRCLE_FILE_COUNTER = CIRCLE_FILE_COUNTER + 1
$!
$! Create The Source File Name.
$!
$ CIRCLE_SOURCE_FILE = "SYS$DISK:[]" + CIRCLE_FILE_NAME + ".C"
$!
$! Create The Object File Name.
$!
$ CIRCLE_OBJECT_FILE = "SYS$DISK:[]" + CIRCLE_FILE_NAME + ".OBJ"
$!
$! Check To See If The File We Want To Compile Actually Exists.
$!
$ IF (F$SEARCH(CIRCLE_SOURCE_FILE).EQS."")
$ THEN
$!
$! Tell The User That The File Dosen't Exist.
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "The File ",CIRCLE_SOURCE_FILE," Dosen't Exist."
$ WRITE SYS$OUTPUT ""
$!
$! Exit The Build.
$!
$ EXIT
$!
$! End The File Check.
$!
$ ENDIF
$!
$! Tell The User What We Are Compiling.
$!
$ WRITE SYS$OUTPUT " ",CIRCLE_SOURCE_FILE
$!
$! Compile The File.
$!
$ CC/PREFIX=ALL/'OPTIMIZE'/'DEBUGGER'/DEFINE=("DECC=1") -
/OBJECT='CIRCLE_OBJECT_FILE' 'CIRCLE_SOURCE_FILE'
$!
$! Go Back And Do It Again.
$!
$ GOTO NEXT_CIRCLE_FILE
$!
$! All Done Compiling.
$!
$ CIRCLE_FILE_DONE:
$!
$! Tell The User We Are Linking [-.BIN]CIRCLE.EXE
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "Linking [-.BIN]CIRCLE.EXE"
$ WRITE SYS$OUTPUT ""
$!
$! Link [-.BIN]CIRCLE.EXE
$!
$ LINK/'DEBUGGER'/'TRACEBACK'/EXE=[-.BIN]CIRCLE.EXE -
COMM.OBJ,ACT_COMM.OBJ,ACT_INFORMATIVE.OBJ,ACT_ITEM.OBJ, -
ACT_MOVEMENT.OBJ,ACT_OFFENSIVE.OBJ,ACT_OTHER.OBJ, -
ACT_SOCIAL.OBJ,ACT_WIZARD.OBJ,ALIAS.OBJ,BAN.OBJ,BOARDS.OBJ, -
CASTLE.OBJ,CLASS.OBJ,CONFIG.OBJ,CONSTANTS.OBJ,DB.OBJ,FIGHT.OBJ, -
GRAPH.OBJ,HANDLER.OBJ,HOUSE.OBJ,INTERPRETER.OBJ,LIMITS.OBJ,MAGIC.OBJ, -
MAIL.OBJ,MOBACT.OBJ,MODIFY.OBJ,OBJSAVE.OBJ,PLAYERS.OBJ,OLC.OBJ, -
RANDOM.OBJ,SHOP.OBJ,SPEC_ASSIGN.OBJ,SPEC_PROCS.OBJ,SPELLS.OBJ, -
SPELL_PARSER.OBJ,UTILS.OBJ,WEATHER.OBJ$!
$! That's It, Time To Return From Where We Came From.
$!
$ RETURN
$!
$! Build The CircleMUD Utilities.
$!
$ BUILD_UTILS:
$!
$! Tell The User What We Are Doing.
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "Building CircleMUD Utilities."
$ WRITE SYS$OUTPUT ""
$!
$! Define The Source Files That Are Necessary.
$!
$ UTIL_FILES = "ASCIIPASSWD,LISTRENT,PLRTOASCII,SHOPCONV,SPLIT," + -
"WLD2HTML"
$!
$! Define A File Counter And Set It To "0".
$!
$ UTIL_FILE_COUNTER = 0
$!
$! Top Of The File Loop.
$!
$ NEXT_UTIL_FILE:
$!
$! O.K, Extract The File Name From The File List.
$!
$ UTIL_FILE_NAME = F$ELEMENT(UTIL_FILE_COUNTER,",",UTIL_FILES)
$!
$! Check To See If We Are At The End Of The File List.
$!
$ IF (UTIL_FILE_NAME.EQS.",") THEN GOTO UTIL_FILE_DONE
$!
$! Increment The Counter.
$!
$ UTIL_FILE_COUNTER = UTIL_FILE_COUNTER + 1
$!
$! Create The Source File Name.
$!
$ UTIL_SOURCE_FILE = "SYS$DISK:[.UTIL]" + UTIL_FILE_NAME + ".C"
$!
$! Create The Object File Name.
$!
$ UTIL_OBJECT_FILE = "SYS$DISK:[.UTIL]" + UTIL_FILE_NAME + ".OBJ"
$!
$! Check To See If The File We Want To Compile Actually Exists.
$!
$ IF (F$SEARCH(UTIL_SOURCE_FILE).EQS."")
$ THEN
$!
$! Tell The User That The File Dosen't Exist.
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "The File ",UTIL_SOURCE_FILE," Dosen't Exist."
$ WRITE SYS$OUTPUT ""
$!
$! Exit The Build.
$!
$ EXIT
$ ENDIF
$!
$! Tell The User What We Are Building.
$!
$ WRITE SYS$OUTPUT "Building SYS$DISK:[-.BIN]",UTIL_FILE_NAME,".EXE"
$!
$! Compile The File.
$!
$ CC/PREFIX=ALL/STANDARD=ANSI89/'OPTIMIZE'/'DEBUGGER'/DEFINE=("DECC=1") -
/INCLUDE=SYS$DISK:[]/OBJECT='UTIL_OBJECT_FILE' 'UTIL_SOURCE_FILE'
$!
$! Link The File.
$!
$ LINK/'DEBUGGER'/'TRACEBACK'/EXE=[-.BIN]'UTIL_FILE_NAME'.EXE -
'UTIL_OBJECT_FILE'
$!
$! Go Back And Do It Again.
$!
$ GOTO NEXT_UTIL_FILE
$!
$! All Done Compiling.
$!
$ UTIL_FILE_DONE:
$!
$! That's It, Time To Return From Where We Came From.
$!
$ RETURN
$!
$! Check The User's Options.
$!
$ CHECK_OPTIONS:
$!
$! Check To See If We Are To "Just Build Everything".
$!
$ IF ((P1.EQS."").OR.(P1.EQS."ALL"))
$ THEN
$!
$! P1 Is "ALL", So Build Everything.
$!
$ BUILDALL = "TRUE"
$!
$! Else....
$!
$ ELSE
$!
$! Check To See If P1 Has A Valid Arguement.
$!
$ IF (P1.EQS."CIRCLE").OR.(P1.EQS."UTILS")
$ THEN
$!
$! A Valid Arguement.
$!
$ BUILDALL = P1
$!
$! Else...
$!
$ ELSE
$!
$! Tell The User We Don't Know What They Want.
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:"
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT " ALL : Just Build Everything."
$ WRITE SYS$OUTPUT " CIRCLE : Just Build [-.BIN]CIRCLE.EXE."
$ WRITE SYS$OUTPUT " UTILS : Just Build The CircleMUD Utilities."
$ WRITE SYS$OUTPUT ""
$!
$! Time To EXIT.
$!
$ EXIT
$ ENDIF
$ ENDIF
$!
$! Check To See If We Are To Compile Without Debugger Information.
$!
$ IF ((P2.EQS."").OR.(P2.EQS."NODEBUG"))
$ THEN
$!
$! P2 Is Either Blank Or "NODEBUG" So Compile Without Debugger Information.
$!
$ DEBUGGER = "NODEBUG"
$ OPTIMIZE = "OPTIMIZE"
$ TRACEBACK = "NOTRACEBACK"
$!
$! Tell The User What They Selected.
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile."
$ WRITE SYS$OUTPUT "Compiling With Compiler Optimization."
$ ELSE
$!
$! Check To See If We Are To Compile With Debugger Information.
$!
$ IF (P2.EQS."DEBUG")
$ THEN
$!
$! Compile With Debugger Information.
$!
$ DEBUGGER = "DEBUG"
$ OPTIMIZE = "NOOPTIMIZE"
$ TRACEBACK = "TRACEBACK"
$!
$! Tell The User What They Selected.
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "Debugger Information Will Be Produced During Compile."
$ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization."
$!
$! Else...
$!
$ ELSE
$!
$! Tell The User Entered An Invalid Option..
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "The Option ",P2," Is Invalid. The Valid Options Are:"
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information."
$ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information."
$ WRITE SYS$OUTPUT ""
$!
$! Time To EXIT.
$!
$ EXIT
$ ENDIF
$ ENDIF
$!
$! Time To Return To Where We Were.
$!
$ RETURN
$!
$! Subroutine To Check CONF.H File.
$!
$ CHECK_CONF_FILE:
$!
$! Tell The User We Are Checking CONF.H File.
$!
$ WRITE SYS$OUTPUT "Checking The CONF.H File."
$!
$! Check To See If The CONF.H File Exists.
$!
$ IF (F$SEARCH("SYS$DISK:[]CONF.H").EQS."")
$ THEN
$!
$! The File Dosen't Exist So Check To See If The CONF.H_VMS File Exists.
$!
$ IF (F$SEARCH("SYS$DISK:[]CONF.H_VMS").NES."")
$ THEN
$!
$! Copy CONF.H_VMS To CONF.H.
$!
$ COPY SYS$DISK:[]CONF.H_VMS SYS$DISK:[]CONF.H
$!
$! Else....
$!
$ ELSE
$!
$! Check To See If The CONF_H.VMS File Exists.
$!
$ IF (F$SEARCH("SYS$DISK:[]CONF_H.VMS").NES."")
$ THEN
$!
$! Copy CONF_H.VMS To CONF.H.
$!
$ COPY SYS$DISK:[]CONF_H.VMS SYS$DISK:[]CONF.H
$!
$! Else...
$!
$ ELSE
$!
$! The CONF.H_VMS And The CONF_H.VMS File Dosen't Exist, So Tell The User.
$!
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "The file CONF.H_VMS or CONF_H.VMS dosen't exist. This file is"
$ WRITE SYS$OUTPUT "necessary to compile CircleMUD and is distributed"
$ WRITE SYS$OUTPUT "with the source code."
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT "Since the CONF.H_VMS or CONF_H.VMS file is distributed with the"
$ WRITE SYS$OUTPUT "source files I recomend that you unpack the files"
$ WRITE SYS$OUTPUT "again or get a new source distribution."
$ WRITE SYS$OUTPUT ""
$!
$! Since We Can't Compile Without This File, Just EXIT.
$!
$ EXIT
$!
$! Time To End The CONF_H.VMS File Check.
$!
$ ENDIF
$!
$! Time To End The CONF.H_VMS File Check.
$!
$ ENDIF
$!
$! End The CONF.H Check.
$!
$ ENDIF
$!
$! Time To Return To Where We Were.
$!
$ RETURN
$!
$! Subroutine To Check File Names.
$!
$ CHECK_FILE_NAMES:
$!
$! Tell The User We Are Checking File Names.
$!
$ WRITE SYS$OUTPUT "Checking File Names."
$!
$! Define The File Names We Need To Check On.
$!
$ CHECK_FOR = "ACT.COMM_C,ACT.INFORMATIVE_C,ACT.ITEM_C,ACT.MOVEMENT_C," + -
"ACT.OFFENSIVE_C,ACT.OTHER_C,ACT.SOCIAL_C,ACT.WIZARD_C"
$!
$! Define What The File Names Need To Be.
$!
$ SHOULD_BE = "ACT_COMM.C,ACT_INFORMATIVE.C,ACT_ITEM.C,ACT_MOVEMENT.C," + -
"ACT_OFFENSIVE.C,ACT_OTHER.C,ACT_SOCIAL.C,ACT_WIZARD.C"
$!
$! Define A File Counter And Set It To "0".
$!
$ FILE_COUNTER = 0
$!
$! Top Of The File Loop.
$!
$ CHECK_NEXT_FILE:
$!
$! O.K, Extract The File Name We Are Looking For From The List.
$!
$ LOOKING_FOR = F$ELEMENT(FILE_COUNTER,",",CHECK_FOR)
$!
$! Extract The File Name It SHOULD Be From The List.
$!
$ RENAME_TO = F$ELEMENT(FILE_COUNTER,",",SHOULD_BE)
$!
$! Check To See If We Are At The End Of The File List.
$!
$ IF (LOOKING_FOR.EQS.",") THEN GOTO CHECK_FILES_DONE
$!
$! Increment The Counter.
$!
$ FILE_COUNTER = FILE_COUNTER + 1
$!
$! Check To See If The File We Are Checking For Exists.
$!
$ IF (F$SEARCH(LOOKING_FOR).EQS."")
$ THEN
$!
$! The File Dosen't Exist, Check For The Next File.
$!
$ GOTO CHECK_NEXT_FILE
$!
$! Else...
$!
$ ELSE
$!
$! The File Exists And Needs To Be Fixed.
$!
$ RENAME 'LOOKING_FOR' 'RENAME_TO'
$!
$! End The File Check.
$!
$ ENDIF
$!
$! Go Back And Do It Again.
$!
$ GOTO CHECK_NEXT_FILE
$!
$! All Done With Checking File Names.
$!
$ CHECK_FILES_DONE:
$!
$! Time To Return To Where We Were.
$!
$ RETURN

View file

@ -191,7 +191,7 @@ void gettimeofday(struct timeval *t, struct timezone *dummy)
#endif /* CIRCLE_WINDOWS || CIRCLE_MACINTOSH */
int main(int argc, char **argv)
int _main(int argc, char **argv)
{
int pos = 1;
const char *dir;
@ -383,6 +383,7 @@ int main(int argc, char **argv)
return (0);
}
/* Reload players after a copyover */
void copyover_recover()
{

View file

@ -17,6 +17,7 @@
#define COPYOVER_FILE "copyover.dat"
/* comm.c */
int _main(int argc, char **argv);
void close_socket(struct descriptor_data *d);
void game_info(const char *messg, ...) __attribute__ ((format (printf, 1, 2)));
size_t send_to_char(struct char_data *ch, const char *messg, ...) __attribute__

View file

@ -1,108 +0,0 @@
/* CircleMUD for Amiga conf.h file - manually created (N. Franceschi 26 Jul 1996)
/* src/conf.h.in. Generated automatically from configure.in by autoheader. */
#ifndef _CONF_H_
#define _CONF_H_
#undef CIRCLE_WINDOWS
#define AMIGA 1
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
/* #undef HAVE_SYS_WAIT_H */
/* Define to `int' if <sys/types.h> doesn't define. */
/*#define pid_t int*/
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* Define if you have 'struct in_addr' */
#define HAVE_STRUCT_IN_ADDR 1
/* Define if your crypt isn't safe with only 10 characters. */
#undef HAVE_UNSAFE_CRYPT
/* Define to `int' if <sys/socket.h> doesn't define. */
#define socklen_t int
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Define if you have the crypt function. */
#undef CIRCLE_CRYPT
/* Define if you have the random function. */
#undef HAVE_RANDOM
/* Define if you have the <arpa/telnet.h> header file. */
#define HAVE_ARPA_TELNET_H 1
/* Define if you have the <assert.h> header file. */
#define HAVE_ASSERT_H 1
/* Define if you have the <crypt.h> header file. */
#undef HAVE_CRYPT_H
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <net/errno.h> header file. */
/* #undef HAVE_NET_ERRNO_H */
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <sys/fcntl.h> header file. */
#define HAVE_SYS_FCNTL_H 1
/* Define if you have the <sys/select.h> header file. */
/* #undef HAVE_SYS_SELECT_H */
/* Define if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the crypt library (-lcrypt). */
/* #undef HAVE_LIBCRYPT */
/* Define if you have the malloc library (-lmalloc). */
/* #undef HAVE_LIBMALLOC */
/* Define if you have the nsl library (-lnsl). */
/* #undef HAVE_LIBNSL */
/* Define if you have the socket library (-lsocket). */
/* #undef HAVE_LIBSOCKET */
/* Define if your compiler does not prototype remove(). */
/* #undef NEED_REMOVE_PROTO */
/* Define if your compiler does not prototype strerror(). */
/* #undef NEED_STRERROR_PROTO */
#endif /* _CONF_H_ */

View file

@ -1,82 +0,0 @@
/* CircleMUD for ACORN conf.h file - manually created (G. Duncan 13 June 98)
#ifndef _CONF_H_
#define _CONF_H_
#define CIRCLE_ACORN
/* Define to empty if the keyword does not work. */
/*#define const*/
/* Define to `int' if <sys/types.h> doesn't define. */
/*#define pid_t int*/
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/*#define size_t*/
/* Define if you have 'struct in_addr' */
#define HAVE_STRUCT_IN_ADDR 1
/* Define if your crypt isn't safe with only 10 characters. */
#undef HAVE_UNSAFE_CRYPT
/* Define to `int' if <sys/socket.h> doesn't define. */
#define socklen_t int
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H
/* Define if you have the <strings.h> header file. */
#define HAVE_STRINGS_H
#define HAVE_MEMORY_H
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H
#define HAVE_UNISTD_H
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H
#define HAVE_SYS_ERRNO_H
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME
#define HAVE_SYS_TIME_H
/* Define if you have the <assert.h> header file. */
#define HAVE_ASSERT_H
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H
/*#define HAVE_SYS_FCNTL_H*/
/* Define if you have the <sys/socket.h> header file. */
#define HAVE_SYS_SOCKET_H
#define HAVE_SYS_RESOURCE_H
/* Define if you have <sys/wait.h> that is POSIX. compatible. */
#define HAVE_SYS_WAIT_H
#define HAVE_NETINET_IN_H
#define HAVE_NETDB_H
#define HAVE_SIGNAL_H
#define HAVE_SYS_UIO_H
#define HAVE_SYS_STAT_H
#define NEED_GETTIMEOFDAY_PROTO
/* Define if your compiler does not prototype remove(). */
/* #undef NEED_REMOVE_PROTO */
/* Define if your compiler does not prototype strerror(). */
/* #undef NEED_STRERROR_PROTO */
#endif /* _CONF_H_ */

View file

@ -1,108 +0,0 @@
/* src/conf.h.os2. Manually written by David Carver. */
#ifndef _CONF_H_
#define _CONF_H_
/* Define if we are compiling under OS2 */
#define CIRCLE_OS2
/* Define if we're compiling CircleMUD under any type of UNIX system */
/* #undef CIRCLE_UNIX */
/* Define to empty if the keyword does not work. */
#undef const
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H
/* Define to `int' if <sys/types.h> doesn't define. */
#undef pid_t
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE
/* Define to `unsigned' if <sys/types.h> doesn't define. */
#undef size_t
/* Define to `int' if <sys/socket.h> doesn't define. */
#define socklen_t int
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME
/* Define if you have the crypt function. */
#undef CIRCLE_CRYPT
/* Define if you have the random function. (-lbsd) */
#define HAVE_RANDOM 1
/* Define if you have the <arpa/telnet.h> header file. */
#define HAVE_ARPA_TELNET_H
/* Define if you have the <assert.h> header file. */
#define HAVE_ASSERT_H
/* Define if you have the <crypt.h> header file. */
#undef HAVE_CRYPT_H
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H
/* Define if you have the <net/errno.h> header file. */
#undef HAVE_NET_ERRNO_H
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H
/* Define if you have the <sys/fcntl.h> header file. */
#define HAVE_SYS_FCNTL_H
/* Define if you have the <sys/select.h> header file. */
#define HAVE_SYS_SELECT_H
/* Define if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H
/* Define if you have the crypt library (-lcrypt). */
#undef HAVE_LIBCRYPT
/* Define if you have the malloc library (-lmalloc). */
#undef HAVE_LIBMALLOC
/* Define if you have the nsl library (-lnsl). */
#undef HAVE_LIBNSL
/* Define if you have the socket library (-lsocket). */
#define HAVE_LIBSOCKET
/* Define if your compiler does not prototype remove(). */
/* #undef NEED_REMOVE_PROTO */
/* Define if your compiler does not prototype strerror(). */
/* #undef NEED_STRERROR_PROTO */
/* Define if you have 'struct in_addr' */
#define HAVE_STRUCT_IN_ADDR 1
/* Define if your crypt isn't safe with only 10 characters. */
#undef HAVE_UNSAFE_CRYPT
#endif /* _CONF_H_ */

View file

@ -1,300 +0,0 @@
/* src/conf.h.in. Generated automatically from cnf/configure.in by autoheader. */
#ifndef _CONF_H_
#define _CONF_H_
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#ifdef DECC
# define HAVE_SYS_WAIT_H 1
#endif
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef pid_t */
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to `unsigned int' if <sys/socket.h> doesn't define. */
#define socklen_t unsigned int
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#ifdef __GNUC__
# define TIME_WITH_SYS_TIME 1
#endif
/* Define if you have 'struct in_addr' */
#define HAVE_STRUCT_IN_ADDR 1
/* Define if we're compiling CircleMUD under any type of UNIX system */
/* #undef CIRCLE_UNIX */
/* Define if we're compiling CircleMUD under OpenVMS. */
#define CIRCLE_VMS 1
#define VMS 1
#define __VMS 1
/* Define if the system is capable of using crypt() to encrypt */
/* #undef CIRCLE_CRYPT*/
/* Define if your crypt isn't safe with only 10 characters. */
/* #undef HAVE_UNSAFE_CRYPT */
/* Define to `int' if <sys/types.h> doesn't define. */
#ifdef __GNUC__
# define ssize_t int
#endif
/* Define if you have the inet_addr function. */
/* #undef HAVE_INET_ADDR */
/* Define if you have the inet_aton function. */
/* #undef HAVE_INET_ATON */
/* Define if you have the <arpa/inet.h> header file. */
#ifdef DECC
# define HAVE_ARPA_INET_H 1
#endif
/* Define if you have the <arpa/telnet.h> header file. */
/* #undef HAVE_ARPA_TELNET_H */
/* Define if you have the <assert.h> header file. */
#define HAVE_ASSERT_H 1
/* Define if you have the <crypt.h> header file. */
/* #undef HAVE_CRYPT_H */
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <fcntl.h> header file. */
#ifdef DECC
# define HAVE_FCNTL_H 1
#endif
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <net/errno.h> header file. */
/* #undef HAVE_NET_ERRNO_H */
/* Define if you have the <netdb.h> header file. */
#ifdef DECC
# define HAVE_NETDB_H 1
#endif
/* Define if you have the <netinet/in.h> header file. */
#ifdef DECC
# define HAVE_NETINET_IN_H 1
#endif
/* Define if you have the <signal.h> header file. */
#define HAVE_SIGNAL_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define if you have the <sys/fcntl.h> header file. */
/* #undef HAVE_SYS_FCNTL_H */
/* Define if you have the <sys/resource.h> header file. */
#ifdef DECC
# define HAVE_SYS_RESOURCE_H 1
#endif
/* Define if you have the <sys/select.h> header file. */
/* #undef HAVE_SYS_SELECT_H */
/* Define if you have the <sys/socket.h> header file. */
#ifdef DECC
# define HAVE_SYS_SOCKET_H 1
#endif
/* Define if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define if you have the <sys/time.h> header file. */
#ifdef __GNUC__
# define HAVE_SYS_TIME_H 1
#endif
/* Define if you have the <sys/types.h> header file. */
#ifdef DECC
# define HAVE_SYS_TYPES_H 1
#endif
/* Define if you have the <sys/uio.h> header file. */
#ifdef DECC
# define HAVE_SYS_UIO_H 1
#endif
/* Define if you have the <unistd.h> header file. */
#ifdef __GNUC__
# define HAVE_UNISTD_H 1
#endif
/* Define if you have the malloc library (-lmalloc). */
/* #undef HAVE_LIBMALLOC */
/* Define if your compiler does not prototype accept(). */
/* #undef NEED_ACCEPT_PROTO */
/* Define if your compiler does not prototype atoi(). */
/* #undef NEED_ATOI_PROTO */
/* Define if your compiler does not prototype atol(). */
/* #undef NEED_ATOL_PROTO */
/* Define if your compiler does not prototype bind(). */
/* #undef NEED_BIND_PROTO */
/* Define if your compiler does not prototype bzero(). */
/* #undef NEED_BZERO_PROTO */
/* Define if your compiler does not prototype chdir(). */
/* #undef NEED_CHDIR_PROTO */
/* Define if your compiler does not prototype close(). */
/* #undef NEED_CLOSE_PROTO */
/* Define if your compiler does not prototype crypt(). */
/* #undef NEED_CRYPT_PROTO */
/* Define if your compiler does not prototype fclose(). */
/* #undef NEED_FCLOSE_PROTO */
/* Define if your compiler does not prototype fcntl(). */
/* #undef NEED_FCNTL_PROTO */
/* Define if your compiler does not prototype fflush(). */
/* #undef NEED_FFLUSH_PROTO */
/* Define if your compiler does not prototype fprintf(). */
/* #undef NEED_FPRINTF_PROTO */
/* Define if your compiler does not prototype fputc(). */
/* #undef NEED_FPUTC_PROTO */
/* Define if your compiler does not prototype fputs(). */
/* #undef NEED_FPUTS_PROTO */
/* Define if your compiler does not prototype fread(). */
/* #undef NEED_FREAD_PROTO */
/* Define if your compiler does not prototype fscanf(). */
/* #undef NEED_FSCANF_PROTO */
/* Define if your compiler does not prototype fseek(). */
/* #undef NEED_FSEEK_PROTO */
/* Define if your compiler does not prototype fwrite(). */
/* #undef NEED_FWRITE_PROTO */
/* Define if your compiler does not prototype getpeername(). */
/* #undef NEED_GETPEERNAME_PROTO */
/* Define if your compiler does not prototype getpid(). */
/* #undef NEED_GETPID_PROTO */
/* Define if your compiler does not prototype getrlimit(). */
/* #undef NEED_GETRLIMIT_PROTO */
/* Define if your compiler does not prototype getsockname(). */
/* #undef NEED_GETSOCKNAME_PROTO */
/* Define if your compiler does not prototype gettimeofday(). */
#ifdef DECC
# define NEED_GETTIMEOFDAY_PROTO 1
#endif
/* Define if your compiler does not prototype htonl(). */
/* #undef NEED_HTONL_PROTO */
/* Define if your compiler does not prototype htons(). */
/* #undef NEED_HTONS_PROTO */
/* Define if your compiler does not prototype inet_addr(). */
/* #undef NEED_INET_ADDR_PROTO */
/* Define if your compiler does not prototype inet_aton(). */
/* #undef NEED_INET_ATON_PROTO */
/* Define if your compiler does not prototype inet_ntoa(). */
/* #undef NEED_INET_NTOA_PROTO */
/* Define if your compiler does not prototype listen(). */
/* #undef NEED_LISTEN_PROTO */
/* Define if your compiler does not prototype ntohl(). */
/* #undef NEED_NTOHL_PROTO */
/* Define if your compiler does not prototype perror(). */
/* #undef NEED_PERROR_PROTO */
/* Define if your compiler does not prototype printf(). */
/* #undef NEED_PRINTF_PROTO */
/* Define if your compiler does not prototype qsort(). */
/* #undef NEED_QSORT_PROTO */
/* Define if your compiler does not prototype read(). */
/* #undef NEED_READ_PROTO */
/* Define if your compiler does not prototype remove(). */
/* #undef NEED_REMOVE_PROTO */
/* Define if your compiler does not prototype rewind(). */
/* #undef NEED_REWIND_PROTO */
/* Define if your compiler does not prototype select(). */
/* #undef NEED_SELECT_PROTO */
/* Define if your compiler does not prototype setitimer(). */
/* #undef NEED_SETITIMER_PROTO */
/* Define if your compiler does not prototype setrlimit(). */
/* #undef NEED_SETRLIMIT_PROTO */
/* Define if your compiler does not prototype setsockopt(). */
/* #undef NEED_SETSOCKOPT_PROTO */
/* Define if your compiler does not prototype socket(). */
/* #undef NEED_SOCKET_PROTO */
/* Define if your compiler does not prototype sprintf(). */
/* #undef NEED_SPRINTF_PROTO */
/* Define if your compiler does not prototype sscanf(). */
/* #undef NEED_SSCANF_PROTO */
/* Define if your compiler does not prototype strerror(). */
/* #undef NEED_STRERROR_PROTO */
/* Define if your compiler does not prototype system(). */
/* #undef NEED_SYSTEM_PROTO */
/* Define if your compiler does not prototype time(). */
/* #undef NEED_TIME_PROTO */
/* Define if your compiler does not prototype unlink(). */
/* #undef NEED_UNLINK_PROTO */
/* Define if your compiler does not prototype write(). */
/* #undef NEED_WRITE_PROTO */
#endif /* _CONF_H_ */

223
src/db.c
View file

@ -44,26 +44,26 @@
struct config_data config_info; /* Game configuration list. */
struct room_data *world = NULL; /* array of rooms */
room_rnum top_of_world = 0; /* ref to top element of world */
room_rnum top_of_world = NOWHERE; /* ref to top element of world */
struct char_data *character_list = NULL; /* global linked list of chars */
struct index_data *mob_index; /* index table for mobile file */
struct char_data *mob_proto; /* prototypes for mobs */
mob_rnum top_of_mobt = 0; /* top of mobile index table */
mob_rnum top_of_mobt = NOBODY; /* top of mobile index table */
struct obj_data *object_list = NULL; /* global linked list of objs */
struct index_data *obj_index; /* index table for object file */
struct obj_data *obj_proto; /* prototypes for objs */
obj_rnum top_of_objt = 0; /* top of object index table */
obj_rnum top_of_objt = NOTHING; /* top of object index table */
struct zone_data *zone_table; /* zone table */
zone_rnum top_of_zone_table = 0;/* top element of zone tab */
zone_rnum top_of_zone_table = NOTHING;/* top element of zone tab */
/* begin previously located in players.c */
struct player_index_element *player_table = NULL; /* index to plr file */
int top_of_p_table = 0; /* ref to top of table */
int top_of_p_file = 0; /* ref of size of p file */
long top_idnum = 0; /* highest idnum in use */
int top_of_p_table = NOBODY; /* ref to top of table */
int top_of_p_file = NOBODY; /* ref of size of p file */
long top_idnum = NOBODY; /* highest idnum in use */
/* end previously located in players.c */
struct message_list fight_messages[MAX_MESSAGES]; /* fighting messages */
@ -528,84 +528,91 @@ void destroy_db(void)
}
/* Rooms */
for (cnt = 0; cnt <= top_of_world; cnt++) {
if (world[cnt].name)
free(world[cnt].name);
if (world[cnt].description)
free(world[cnt].description);
free_extra_descriptions(world[cnt].ex_description);
if (top_of_world != NOWHERE) {
for (cnt = 0; cnt <= top_of_world; cnt++) {
if (world[cnt].name)
free(world[cnt].name);
if (world[cnt].description)
free(world[cnt].description);
free_extra_descriptions(world[cnt].ex_description);
if (world[cnt].events != NULL) {
if (world[cnt].events->iSize > 0) {
struct event * pEvent;
if (world[cnt].events != NULL) {
if (world[cnt].events->iSize > 0) {
struct event * pEvent;
while ((pEvent = simple_list(world[cnt].events)) != NULL)
event_cancel(pEvent);
}
free_list(world[cnt].events);
world[cnt].events = NULL;
}
while ((pEvent = simple_list(world[cnt].events)) != NULL)
event_cancel(pEvent);
}
free_list(world[cnt].events);
world[cnt].events = NULL;
}
/* free any assigned scripts */
if (SCRIPT(&world[cnt]))
extract_script(&world[cnt], WLD_TRIGGER);
/* free script proto list */
free_proto_script(&world[cnt], WLD_TRIGGER);
/* free any assigned scripts */
if (SCRIPT(&world[cnt]))
extract_script(&world[cnt], WLD_TRIGGER);
/* free script proto list */
free_proto_script(&world[cnt], WLD_TRIGGER);
for (itr = 0; itr < NUM_OF_DIRS; itr++) { /* NUM_OF_DIRS here, not DIR_COUNT */
if (!world[cnt].dir_option[itr])
continue;
for (itr = 0; itr < NUM_OF_DIRS; itr++) { /* NUM_OF_DIRS here, not DIR_COUNT */
if (world[cnt].dir_option[itr] == NULL)
continue;
if (world[cnt].dir_option[itr]->general_description)
free(world[cnt].dir_option[itr]->general_description);
if (world[cnt].dir_option[itr]->keyword)
free(world[cnt].dir_option[itr]->keyword);
free(world[cnt].dir_option[itr]);
if (world[cnt].dir_option[itr]->general_description)
free(world[cnt].dir_option[itr]->general_description);
if (world[cnt].dir_option[itr]->keyword)
free(world[cnt].dir_option[itr]->keyword);
free(world[cnt].dir_option[itr]);
}
}
free(world);
top_of_world = NOWHERE;
}
free(world);
top_of_world = 0;
/* Objects */
for (cnt = 0; cnt <= top_of_objt; cnt++) {
if (obj_proto[cnt].name)
free(obj_proto[cnt].name);
if (obj_proto[cnt].description)
free(obj_proto[cnt].description);
if (obj_proto[cnt].short_description)
free(obj_proto[cnt].short_description);
if (obj_proto[cnt].action_description)
free(obj_proto[cnt].action_description);
free_extra_descriptions(obj_proto[cnt].ex_description);
/* Objects */
if (top_of_objt != NOTHING) {
for (cnt = 0; cnt <= top_of_objt; cnt++) {
if (obj_proto[cnt].name)
free(obj_proto[cnt].name);
if (obj_proto[cnt].description)
free(obj_proto[cnt].description);
if (obj_proto[cnt].short_description)
free(obj_proto[cnt].short_description);
if (obj_proto[cnt].action_description)
free(obj_proto[cnt].action_description);
free_extra_descriptions(obj_proto[cnt].ex_description);
/* free script proto list */
free_proto_script(&obj_proto[cnt], OBJ_TRIGGER);
/* free script proto list */
free_proto_script(&obj_proto[cnt], OBJ_TRIGGER);
}
free(obj_proto);
free(obj_index);
top_of_objt = NOTHING;
}
free(obj_proto);
free(obj_index);
/* Mobiles */
for (cnt = 0; cnt <= top_of_mobt; cnt++) {
if (mob_proto[cnt].player.name)
free(mob_proto[cnt].player.name);
if (mob_proto[cnt].player.title)
free(mob_proto[cnt].player.title);
if (mob_proto[cnt].player.short_descr)
free(mob_proto[cnt].player.short_descr);
if (mob_proto[cnt].player.long_descr)
free(mob_proto[cnt].player.long_descr);
if (mob_proto[cnt].player.description)
free(mob_proto[cnt].player.description);
if (top_of_mobt != NOBODY) {
for (cnt = 0; cnt <= top_of_mobt; cnt++) {
if (mob_proto[cnt].player.name)
free(mob_proto[cnt].player.name);
if (mob_proto[cnt].player.title)
free(mob_proto[cnt].player.title);
if (mob_proto[cnt].player.short_descr)
free(mob_proto[cnt].player.short_descr);
if (mob_proto[cnt].player.long_descr)
free(mob_proto[cnt].player.long_descr);
if (mob_proto[cnt].player.description)
free(mob_proto[cnt].player.description);
/* free script proto list */
free_proto_script(&mob_proto[cnt], MOB_TRIGGER);
/* free script proto list */
free_proto_script(&mob_proto[cnt], MOB_TRIGGER);
while (mob_proto[cnt].affected)
affect_remove(&mob_proto[cnt], mob_proto[cnt].affected);
while (mob_proto[cnt].affected)
affect_remove(&mob_proto[cnt], mob_proto[cnt].affected);
}
free(mob_proto);
free(mob_index);
top_of_mobt = NOBODY;
}
free(mob_proto);
free(mob_index);
/* Shops */
destroy_shops();
@ -615,26 +622,29 @@ void destroy_db(void)
/* Zones */
#define THIS_CMD zone_table[cnt].cmd[itr]
for (cnt = 0; cnt <= top_of_zone_table; cnt++) {
if (zone_table[cnt].name)
free(zone_table[cnt].name);
if (zone_table[cnt].builders)
free(zone_table[cnt].builders);
if (zone_table[cnt].cmd) {
/* first see if any vars were defined in this zone */
for (itr = 0;THIS_CMD.command != 'S';itr++)
if (THIS_CMD.command == 'V') {
if (THIS_CMD.sarg1)
free(THIS_CMD.sarg1);
if (THIS_CMD.sarg2)
free(THIS_CMD.sarg2);
}
/* then free the command list */
free(zone_table[cnt].cmd);
if (top_of_zone_table != NOWHERE)
{
for (cnt = 0; cnt <= top_of_zone_table; cnt++) {
if (zone_table[cnt].name)
free(zone_table[cnt].name);
if (zone_table[cnt].builders)
free(zone_table[cnt].builders);
if (zone_table[cnt].cmd) {
/* first see if any vars were defined in this zone */
for (itr = 0;THIS_CMD.command != 'S';itr++)
if (THIS_CMD.command == 'V') {
if (THIS_CMD.sarg1)
free(THIS_CMD.sarg1);
if (THIS_CMD.sarg2)
free(THIS_CMD.sarg2);
}
/* then free the command list */
free(zone_table[cnt].cmd);
}
}
free(zone_table);
top_of_zone_table = NOWHERE;
}
free(zone_table);
#undef THIS_CMD
/* zone table reset queue */
@ -648,27 +658,30 @@ void destroy_db(void)
}
/* Triggers */
for (cnt=0; cnt < top_of_trigt; cnt++) {
if (trig_index[cnt]->proto) {
/* make sure to nuke the command list (memory leak) */
/* free_trigger() doesn't free the command list */
if (trig_index[cnt]->proto->cmdlist) {
struct cmdlist_element *i, *j;
i = trig_index[cnt]->proto->cmdlist;
while (i) {
j = i->next;
if (i->cmd)
free(i->cmd);
free(i);
i = j;
if (top_of_trigt != NOTHING)
{
for (cnt=0; cnt < top_of_trigt; cnt++) {
if (trig_index[cnt]->proto) {
/* make sure to nuke the command list (memory leak) */
/* free_trigger() doesn't free the command list */
if (trig_index[cnt]->proto->cmdlist) {
struct cmdlist_element *i, *j;
i = trig_index[cnt]->proto->cmdlist;
while (i) {
j = i->next;
if (i->cmd)
free(i->cmd);
free(i);
i = j;
}
}
free_trigger(trig_index[cnt]->proto);
}
free_trigger(trig_index[cnt]->proto);
free(trig_index[cnt]);
}
free(trig_index[cnt]);
free(trig_index);
top_of_trigt = NOTHING;
}
free(trig_index);
/* Events */
event_free_all();

View file

@ -592,14 +592,16 @@ int get_number(char **name)
{
int i;
char *ppos;
char number[MAX_INPUT_LENGTH];
char number[MAX_INPUT_LENGTH], tmp[MAX_INPUT_LENGTH];
*number = '\0';
if ((ppos = strchr(*name, '.')) != NULL) {
*ppos++ = '\0';
strlcpy(number, *name, sizeof(number));
strcpy(*name, ppos); /* strcpy: OK (always smaller) */
// avoid overlapping strings in strcpy which is undefined behaviour
strcpy(tmp, ppos); /* strcpy: OK (always smaller) */
strcpy(*name, tmp); /* strcpy: OK (always smaller) */
for (i = 0; *(number + i); i++)
if (!isdigit(*(number + i)))

90
src/main.c Normal file
View file

@ -0,0 +1,90 @@
/**************************************************************************
* File: comm.c Part of tbaMUD *
* Usage: Communication, socket handling, main(), central game loop. *
* *
* All rights reserved. See license for complete information. *
* *
* Copyright (C) 1993, 94 by the Trustees of the Johns Hopkins University *
* CircleMUD is based on DikuMUD, Copyright (C) 1990, 1991. *
**************************************************************************/
#include "conf.h"
#include "sysdep.h"
/* Begin conf.h dependent includes */
#if CIRCLE_GNU_LIBC_MEMORY_TRACK
# include <mcheck.h>
#endif
#ifdef CIRCLE_MACINTOSH /* Includes for the Macintosh */
# define SIGPIPE 13
# define SIGALRM 14
/* GUSI headers */
# include <sys/ioctl.h>
/* Codewarrior dependant */
# include <SIOUX.h>
# include <console.h>
#endif
#ifdef CIRCLE_WINDOWS /* Includes for Win32 */
# ifdef __BORLANDC__
# include <dir.h>
# else /* MSVC */
# include <direct.h>
# include <winsock.h>
# endif
# include <mmsystem.h>
#endif /* CIRCLE_WINDOWS */
#ifdef CIRCLE_AMIGA /* Includes for the Amiga */
# include <sys/ioctl.h>
# include <clib/socket_protos.h>
#endif /* CIRCLE_AMIGA */
#ifdef CIRCLE_ACORN /* Includes for the Acorn (RiscOS) */
# include <socklib.h>
# include <inetlib.h>
# include <sys/ioctl.h>
#endif
#ifdef HAVE_ARPA_TELNET_H
#include <arpa/telnet.h>
#else
#include "telnet.h"
#endif
/* end conf.h dependent includes */
/* Note, most includes for all platforms are in sysdep.h. The list of
* files that is included is controlled by conf.h for that platform. */
#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "interpreter.h"
#include "handler.h"
#include "db.h"
#include "house.h"
#include "oasis.h"
#include "genolc.h"
#include "dg_scripts.h"
#include "dg_event.h"
#include "screen.h" /* to support the gemote act type command */
#include "constants.h" /* For mud versions */
#include "boards.h"
#include "act.h"
#include "ban.h"
#include "msgedit.h"
#include "fight.h"
#include "spells.h" /* for affect_update */
#include "modify.h"
#include "quest.h"
#include "ibt.h" /* for free_ibt_lists */
#include "mud_event.h"
int main(int argc, char **argv)
{
return _main(argc, argv);
}

1
src/munit Submodule

@ -0,0 +1 @@
Subproject commit fbbdf1467eb0d04a6ee465def2e529e4c87f2118

80
src/test/Makefile Normal file
View file

@ -0,0 +1,80 @@
# Using µnit is very simple; just include the header and add the C
# file to your sources. That said, here is a simple Makefile to build
# the example.
CSTD:=99
OPENMP:=n
ASAN:=n
UBSAN:=n
EXTENSION:=
TEST_ENV:=
CFLAGS:=-Wall -Wno-char-subscripts -Wno-unused-but-set-variable -g
CFLAGS+=-Wl,--wrap=send_to_char,--wrap=vwrite_to_output
AGGRESSIVE_WARNINGS=n
LIBS:=-lcrypt
#ifeq ($(CC),pgcc)
# CFLAGS+=-c$(CSTD)
#else
# CFLAGS+=-std=c$(CSTD)
#endif
ifeq ($(OPENMP),y)
ifeq ($(CC),pgcc)
CFLAGS+=-mp
else
CFLAGS+=-fopenmp
endif
endif
ifneq ($(SANITIZER),)
CFLAGS+=-fsanitize=$(SANITIZER)
endif
ifneq ($(CC),pgcc)
ifeq ($(EXTRA_WARNINGS),y)
CFLAGS+=-Wall -Wextra -Werror
endif
ifeq ($(ASAN),y)
CFLAGS+=-fsanitize=address
endif
ifeq ($(UBSAN),y)
CFLAGS+=-fsanitize=undefined
endif
endif
#MUNIT_FILES := ../munit/munit.h ../munit/munit.c
TEST_FILES := $(ls *.c)
# exclude main.c to avoid having multiple entrypoints.
OBJ_FILES_FROM_MUD_CODE != ls ../*.c | grep -v main.c | sed 's/\.c$$/.o/g' | xargs
OBJ_FILES_FROM_MUNIT:= ../munit/munit.o
OBJ_FILES_FROM_TESTS!= ls *.c | sed 's/\.c/.o/g' | xargs
OBJ_FILES := $(OBJ_FILES_FROM_MUD_CODE) $(OBJ_FILES_FROM_MUNIT) $(OBJ_FILES_FROM_TESTS) $(LIBS)
testrunner: $(OBJ_FILES)
$(CC) $(CFLAGS) -o testrunner $(OBJ_FILES)
test: testrunner
$(TEST_ENV) ./testrunner
debug: testrunner
$(TEST_ENV) gdb -q --args ./testrunner --no-fork
$%.o: %.c
$(CC) $< $(CFLAGS) -c -o $@
clean:
rm -f *.o testrunner depend
all: test
default: all
depend:
$(CC) -MM *.c > depend
-include depend

47
src/test/README.md Normal file
View file

@ -0,0 +1,47 @@
# unit and integration tests for tbamud
## how do I add a new test?
Open the .c file of your choosing and add a `UNIT_TEST` function.
The function will have access to all the global variables and all non-static
functions in the code, but there will be no data loaded.
The name of the function will be listed when the tests are run.
The [munit website](https://nemequ.github.io/munit/#getting-started) may be useful for more details.
## how do I add new files with tests?
First, create your test file. As a general rule, keep unit tests in files named
after the files containing the functions you are testing. For instance, if you're
testing the `do_simple_move()` function, create a file called `test.act.movement.c`.
You can use the example file `test.example.c` as a template.
The `.c`-file needs a couple of boilerplate parts:
- An import statement to include the `.h`-file.
- UNIT_TEST-functions. See above.
- An array of `MunitTest`s for inclusion in the runner app.
The name in these are concatenated between the name in testrunner and the name of the tests in the output.
This is useful for grouping.
Next, create a header file for your tests. It's a good idea to keep the same name,
with a .h postfix. So in the example, it'll be `test.act.movement.h`.
You can use the `test.example.h` file as a template. It needs a little boilerplate, too.
- It needs to include the testrunner.h for the prototype of UNIT_TEST and access to munit-structs.
- It needs a guard to only be loaded once (the `#ifndef/#define/#endif` incantation at the start and end)
- It needs a prototype of all tests in the .c-file.
- It needs a prototype of the array of tests.
Finally, add the array to the suites array in `testrunner.c` to actually run the tests.
- Add the .h file to the list of imported files.
- Add a row to the suites array. The name in this list is prepended to every test in the given
file when listing the results.
Now, having all the bits and pieces ready, you can add you unit tests, and run them with `make test`

53
src/test/test.act.item.c Normal file
View file

@ -0,0 +1,53 @@
#include "test.act.item.h"
UNIT_TEST(test_do_remove_should_give_message_on_removing_of_unknown_item) {
char_data *ch = get_test_char();
do_remove(ch, "2.ring", 0, 0);
munit_assert_string_equal(get_last_messages(), "You don't seem to be using a ring.\r\n");
return MUNIT_OK;
}
UNIT_TEST(test_do_remove_should_remove_second_item_by_number) {
char_data *ch = get_test_char();
obj_data *ring1 = create_obj();
ring1->name = strdup("ring");
ring1->short_description = strdup("ring1");
obj_data *ring2 = create_obj();
ring2->name = strdup("ring");
ring2->short_description = strdup("ring2");
equip_char(ch, ring1, WEAR_FINGER_R);
equip_char(ch, ring2, WEAR_FINGER_L);
do_remove(ch, "2.ring", 0, 0);
munit_assert_ptr_equal(ch->carrying, ring2);
munit_assert_ptr_equal(ch->carrying->next, ring1);
return MUNIT_OK;
}
static void* before_each(const MunitParameter params[], void* user_data) {
simple_world();
add_test_char(0);
return NULL;
}
static void after_each(void* fixture) {
destroy_db();
}
MunitTest act_item_c_tests[] = {
EXT_TEST("/do_remove/item_not_found", test_do_remove_should_give_message_on_removing_of_unknown_item, before_each, after_each),
EXT_TEST("/do_remove/remove_second_item", test_do_remove_should_remove_second_item_by_number, before_each, after_each),
// end of array marker
{ NULL, NULL, NULL, NULL, MUNIT_TEST_OPTION_NONE, NULL }
};

10
src/test/test.act.item.h Normal file
View file

@ -0,0 +1,10 @@
#include "testrunner.h"
#ifndef TEST_ACT_ITEM_H
#define TEST_ACT_ITEM_H
extern MunitTest act_item_c_tests[];
UNIT_TEST(test_do_remove);
#endif

14
src/test/test.example.c Normal file
View file

@ -0,0 +1,14 @@
#include "test.example.h"
UNIT_TEST(example_test)
{
return MUNIT_OK;
}
MunitTest test_example_c_tests[] = {
STD_TEST("/example/example_test", example_test),
// end of array marker
{ NULL, NULL, NULL, NULL, MUNIT_TEST_OPTION_NONE, NULL }
};

10
src/test/test.example.h Normal file
View file

@ -0,0 +1,10 @@
#include "testrunner.h"
#ifndef TEST_EXAMPLE_H
#define TEST_EXAMPLE_H
extern MunitTest test_example_c_tests[];
UNIT_TEST(example_test);
#endif

46
src/test/test.fixtures.c Normal file
View file

@ -0,0 +1,46 @@
#include "test.fixtures.h"
/*
* test-fixtures common for many tests
*/
static char_data* test_char;
void simple_world()
{
int i;
CREATE(world, struct room_data, 1);
top_of_world = 0;
world[0].func = NULL;
world[0].contents = NULL;
world[0].people = NULL;
world[0].light = 0;
SCRIPT(&world[0]) = NULL;
for (i = 0; i < NUM_OF_DIRS; i++)
world[0].dir_option[i] = NULL;
world[0].ex_description = NULL;
}
char_data *get_test_char() {
return test_char;
}
void add_test_char(room_rnum target_room_rnum)
{
if (top_of_world < 0) {
fprintf(stderr, "World not created, nowhere to put character in add_test_char");
exit(-1);
}
char_data *ch = create_char();
CREATE(ch->player_specials, struct player_special_data, 1);
ch->char_specials.position = POS_STANDING;
CREATE(ch->desc, struct descriptor_data, 1);
char_to_room(ch, target_room_rnum);
test_char = ch;
}

34
src/test/test.fixtures.h Normal file
View file

@ -0,0 +1,34 @@
#ifndef TEST_FIXTURES_H
#define TEST_FIXTURES_H
#include "../conf.h"
#include "../sysdep.h"
#include "../structs.h"
#include "../utils.h"
#include "../comm.h"
#include "../db.h"
#include "../handler.h"
#include "../screen.h"
#include "../interpreter.h"
#include "../spells.h"
#include "../dg_scripts.h"
#include "../act.h"
#include "../class.h"
#include "../fight.h"
#include "../quest.h"
#include "../mud_event.h"
#include "../munit/munit.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
/*
* test fixtures
*/
char_data *get_test_char();
void simple_world();
void add_test_char(room_rnum target_room);
#endif //TEST_FIXTURES_H

34
src/test/test.handler.c Normal file
View file

@ -0,0 +1,34 @@
#include "test.handler.h"
static void run_single_get_number_test(const char* input_param, const char *name_result, int number_result);
UNIT_TEST(test_get_number)
{
run_single_get_number_test("1.feather", "feather", 1);
run_single_get_number_test("2.feather", "feather", 2);
run_single_get_number_test("1.feat", "feat", 1);
run_single_get_number_test("2.feat", "feat", 2);
run_single_get_number_test("feather", "feather", 1);
run_single_get_number_test("10.feather", "feather", 10);
return MUNIT_OK;
}
static void run_single_get_number_test(const char* input_param, const char *name_result, int number_result)
{
char *to_free;
char *input = to_free = strdup(input_param);
int number = get_number(&input);
munit_assert_int32(number, ==, number_result);
munit_assert_string_equal(input, name_result);
free(to_free);
}
/* Creating a test suite is pretty simple. First, you'll need an
* array of tests: */
MunitTest handler_c_tests[] = {
STD_TEST("/get_number", test_get_number),
{ NULL, NULL, NULL, NULL, MUNIT_TEST_OPTION_NONE, NULL }
};

10
src/test/test.handler.h Normal file
View file

@ -0,0 +1,10 @@
#include "testrunner.h"
#ifndef TEST_HANDLER_H
#define TEST_HANDLER_H
extern MunitTest handler_c_tests[];
UNIT_TEST(test_get_number);
#endif

57
src/test/testrunner.c Normal file
View file

@ -0,0 +1,57 @@
#include "testrunner.h"
#include "test.handler.h"
#include "test.act.item.h"
#include "test.example.h"
static MunitSuite suites[] = {
{ "/handler.c", handler_c_tests, NULL, 1, MUNIT_SUITE_OPTION_NONE },
{ "/act.item.c", act_item_c_tests, NULL, 1, MUNIT_SUITE_OPTION_NONE },
{ "/test.example.c", test_example_c_tests, NULL, 1, MUNIT_SUITE_OPTION_NONE },
{ NULL, NULL, NULL, 0, MUNIT_SUITE_OPTION_NONE }
};
static const MunitSuite test_suite = {
(char*) "",
/* The first parameter is the array of test suites. */
NULL,
/* The second an array of suites to trigger from this one */
suites,
MUNIT_SUITE_OPTION_NONE
};
int main(int argc, char* argv[MUNIT_ARRAY_PARAM(argc + 1)]) {
logfile = stderr;
return munit_suite_main(&test_suite, (void*) "µnit", argc, argv);
}
static char testbuf[MAX_OUTPUT_BUFFER];
static int testbuf_size = 0;
size_t __wrap_send_to_char(struct char_data *ch, const char *messg, ...)
{
int size = testbuf_size;
va_list args;
va_start(args, messg);
testbuf_size += vsnprintf(testbuf + size, MAX_OUTPUT_BUFFER - size, messg, args);
va_end(args);
return testbuf_size;
}
size_t __wrap_vwrite_to_output(struct descriptor_data *t, const char *format, va_list args)
{
int size = testbuf_size;
testbuf_size += vsnprintf(testbuf + size, MAX_OUTPUT_BUFFER - size, format, args);
return testbuf_size;
}
char *get_last_messages()
{
char *stored_response = strdup(testbuf);
testbuf_size = 0;
*testbuf = '\0';
return stored_response;
}

29
src/test/testrunner.h Normal file
View file

@ -0,0 +1,29 @@
#ifndef TESTRUNNER_H
#define TESTRUNNER_H
#include "test.fixtures.h"
/**
* Utility macro for defining tests.
*/
#define UNIT_TEST(test_name) MunitResult (test_name)(const MunitParameter params[], void* data)
/*
* A "standard test" needs no setup or teardown and doesn't take any parameters.
* This is a utility macro for the test suite listing.
*/
#define STD_TEST(test_name, test_fun) { (char *)(test_name), (test_fun), NULL, NULL, MUNIT_TEST_OPTION_NONE, NULL }
/*
* An "extended test" has setup or teardown but doesn't take any parameters.
* This is a utility macro for the test suite listing.
*/
#define EXT_TEST(test_name, test_fun, setup_fun, teardown_fun) { (char *)(test_name), (test_fun), (setup_fun), (teardown_fun), MUNIT_TEST_OPTION_NONE, NULL }
/*
* Returns the latest messages sent through send_to_char() or act()
*/
char *get_last_messages();
#endif