# CircleMUD 3.0 Makefile
#
# This makefile should work with no changes for compiling under SunOS, Ultrix,
# NeXTSTEP, HP/UX, DG/UX, and Linux. If you're using AIX, IRIX, some version
# of SVR4 or Solaris, uncomment the appropriate lines below. If you're using
# some other operating system not mentioned, just type 'make' and cross your
# fingers..
#compiler name and flags
CC = gcc
MYFLAGS = -g -Wall
#flags for profiling (see hacker.doc for more information)
PROFILE =
#remove the hash marks below if compiling under AIX
#CC = cc
#MYFLAGS = -g
#remove the hash marks below if compiling under IRIX
#CC = cc -cckr -fullwarn
#MYFLAGS = -g
#LIBS = -lmalloc
#remove the hash mark below if compiling under SVR4 or Solaris, or if your
#linker complains that the socket functions such as 'connect()', 'bind()',
#etc are undefined when you try to compile the server.
#LIBS = -lsocket -lnsl
##############################################################################
# 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.obj.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 mobcmd.o \
mobprog.o modify.o objsave.o olc.o random.o shop.o spec_assign.o \
spec_procs.o spell_parser.o spells.o utils.o weather.o redit.o iedit.o \
alias.o quest.o
default: .accepted
$(MAKE) ../bin/circle.new
.accepted:
@./licheck
utils: .accepted
$(MAKE) ../bin/autowiz
$(MAKE) ../bin/delobjs
$(MAKE) ../bin/listrent
$(MAKE) ../bin/mudpasswd
$(MAKE) ../bin/purgeplay
$(MAKE) ../bin/showplay
$(MAKE) ../bin/sign
$(MAKE) ../bin/split
all: .accepted
$(MAKE) ../bin/circle.new
$(MAKE) utils
circle:
$(MAKE) ../bin/circle.new
autowiz:
$(MAKE) ../bin/autowiz
delobjs:
$(MAKE) ../bin/delobjs
listrent:
$(MAKE) ../bin/listrent
mudpasswd:
$(MAKE) ../bin/mudpasswd
purgeplay:
$(MAKE) ../bin/purgeplay
showplay:
$(MAKE) ../bin/showplay
sign:
$(MAKE) ../bin/sign
split:
$(MAKE) ../bin/split
../bin/autowiz : util/autowiz.c structs.h db.h utils.h
$(CC) $(CFLAGS) -o ../bin/autowiz util/autowiz.c
../bin/delobjs : util/delobjs.c structs.h
$(CC) $(CFLAGS) -o ../bin/delobjs util/delobjs.c
../bin/listrent : util/listrent.c structs.h
$(CC) $(CFLAGS) -o ../bin/listrent util/listrent.c
../bin/mudpasswd : util/mudpasswd.c structs.h
$(CC) $(CFLAGS) -o ../bin/mudpasswd util/mudpasswd.c
../bin/purgeplay : util/purgeplay.c structs.h
$(CC) $(CFLAGS) -o ../bin/purgeplay util/purgeplay.c
../bin/showplay : util/showplay.c structs.h
$(CC) $(CFLAGS) -o ../bin/showplay util/showplay.c
../bin/sign: util/sign.c
$(CC) $(CFLAGS) -o ../bin/sign $(COMMFLAGS) util/sign.c
../bin/split: util/split.c
$(CC) $(CFLAGS) -o ../bin/split util/split.c
clean:
rm -f *.o
# Dependencies for the main mud
comm.o : comm.c structs.h utils.h comm.h interpreter.h handler.h db.h \
house.h
$(CC) -c $(CFLAGS) comm.c
act.comm.o : act.comm.c 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 structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h screen.h
$(CC) -c $(CFLAGS) act.informative.c
act.movement.o : act.movement.c structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h house.h
$(CC) -c $(CFLAGS) act.movement.c
act.obj.o : act.obj.c structs.h utils.h comm.h interpreter.h handler.h \
db.h spells.h
$(CC) -c $(CFLAGS) act.obj.c
act.offensive.o : act.offensive.c 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 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 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 structs.h utils.h comm.h interpreter.h \
handler.h db.h spells.h house.h screen.h
$(CC) -c $(CFLAGS) act.wizard.c
ban.o : ban.c structs.h utils.h comm.h interpreter.h handler.h db.h
$(CC) -c $(CFLAGS) ban.c
boards.o : boards.c structs.h utils.h comm.h db.h boards.h interpreter.h \
handler.h
$(CC) -c $(CFLAGS) boards.c
castle.o : castle.c structs.h utils.h comm.h interpreter.h handler.h \
db.h spells.h
$(CC) -c $(CFLAGS) castle.c
class.o : class.c structs.h utils.h spells.h interpreter.h
$(CC) -c $(CFLAGS) class.c
config.o : config.c structs.h
$(CC) -c $(CFLAGS) config.c
constants.o : constants.c structs.h
$(CC) -c $(CFLAGS) constants.c
db.o : db.c structs.h utils.h db.h comm.h handler.h spells.h \
mail.h interpreter.h
$(CC) -c $(CFLAGS) db.c
fight.o : fight.c 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 structs.h utils.h comm.h interpreter.h handler.h db.h \
spells.h
$(CC) -c $(CFLAGS) graph.c
handler.o : handler.c structs.h utils.h comm.h db.h handler.h interpreter.h \
spells.h
$(CC) -c $(CFLAGS) handler.c
house.o : house.c structs.h comm.h handler.h db.h interpreter.h utils.h house.h
$(CC) -c $(CFLAGS) house.c
interpreter.o : interpreter.c 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 structs.h utils.h spells.h comm.h db.h handler.h
$(CC) -c $(CFLAGS) limits.c
magic.o : magic.c structs.h utils.h comm.h spells.h handler.h interpreter.h \
db.h
$(CC) -c $(CFLAGS) magic.c
mail.o : mail.c mail.h structs.h utils.h comm.h db.h interpreter.h handler.h
$(CC) -c $(CFLAGS) mail.c
mobact.o : mobact.c utils.h structs.h db.h comm.h interpreter.h handler.h \
spells.h
$(CC) -c $(CFLAGS) mobact.c
mobcmd.o: mobcmd.c structs.h utils.h comm.h interpreter.h handler.h db.h
$(CC) -c $(CFLAGS) mobcmd.c
mobprog.o: mobprog.c structs.h utils.h comm.h interpreter.h handler.h db.h
$(CC) -c $(CFLAGS) mobprog.c
modify.o : modify.c 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 structs.h comm.h handler.h db.h interpreter.h utils.h \
spells.h
$(CC) -c $(CFLAGS) objsave.c
olc.o : olc.c structs.h utils.h comm.h interpreter.h handler.h db.h olc.h
$(CC) -c $(CFLAGS) olc.c
random.o : random.c
$(CC) -c $(CFLAGS) random.c
shop.o : shop.c 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 structs.h db.h interpreter.h utils.h
$(CC) -c $(CFLAGS) spec_assign.c
spec_procs.o : spec_procs.c 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 structs.h utils.h comm.h db.h interpreter.h \
spells.h handler.h
$(CC) -c $(CFLAGS) spell_parser.c
spells.o : spells.c structs.h utils.h comm.h db.h interpreter.h spells.h \
handler.h
$(CC) -c $(CFLAGS) spells.c
utils.o : utils.c structs.h utils.h comm.h screen.h
$(CC) -c $(CFLAGS) utils.c
weather.o : weather.c structs.h utils.h comm.h handler.h interpreter.h db.h
$(CC) -c $(CFLAGS) weather.c
iedit.o: iedit.c structs.h comm.h interpreter.h db.h utils.h spells.h \
boards.h
$(CC) -c $(CFLAGS) iedit.c
redit.o: redit.c structs.h comm.h interpreter.h db.h utils.h spells.h \
boards.h
$(CC) -c $(CFLAGS) redit.c
quest.o: structs.h utils.h interpreter.h
../bin/circle.new : $(OBJFILES)
$(CC) -o ../bin/circle.new $(PROFILE) $(OBJFILES) $(LIBS)