CC = gcc
#PROF = -p
NOCRYPT =
# Please read all the documents in the system dir and README.txt in src dir.
# Alter the directory below and mud.h to set the debugger
#DMALLOC = -L/home/rm4/src/dmalloc/lib -ldmalloclp -ldmalloc -ldl
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
# Uncomment the line below if you are getting undefined crypt errors
#NEED_CRYPT = -lcrypt
DBUGFLG = -DREQUESTS
# Uncomment the line below if you want a performance increase though beware
# your core files may not be as much of a benefit if you do.
#OPT_FLAG = -finline-functions -funroll-loops -fdefer-pop -fstrength-reduce
C_FLAGS = $(OPT_FLAG) -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG) -DSMAUG $(SOLARIS_FLAG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT) $(DMALLOC)
O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o \
build.o clans.o comm.o comments.o const.o db.o deity.o fight.o \
handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o \
misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o \
requests.o reset.o save.o shops.o skills.o special.o tables.o \
track.o update.o grub.o stat_obj.o ban.o services.o planes.o \
imm_host.o imc.o imc-mail.o imc-interp.o imc-util.o imc-config.o \
imc-events.o imc-version.o imc-mercbase.o ice.o icec.o icec-mercbase.o \
axsmaug.o medit.o redit.o oedit.o hiscores.o immscore.o\
hskelter.o arena.o suicide.o motd.o websvr.o base64.o \
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
build.c clans.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c ibuild.c ident.c interp.c magic.c makeobjs.c \
misc.c mpxset.c mud_comm.c mud_prog.c player.c polymorph.c \
requests.c reset.c save.c shops.c skills.c special.c tables.c \
track.c update.c grub.c stat_obj.c ban.c services.c planes.c \
imm_host.c imc.c imc-mail.c imc-interp.c imc-util.c imc-config.c \
imc-events.c imc-version.c imc-mercbase.c ice.c icec.c icec-mercbase.c \
axsmaug.c medit.c redit.c oedit.c hiscores.c immscore.c\
hskelter.c arena.c suicide.c motd.c websvr.c base64.c \
H_FILES = mud.h bet.h imc-config.h imc-mercbase.h imc-mercdefs.h imc.h \
ice.h icec.h icec-mercbase.h olc.h
all:
make rmexe
rmexe: $(O_FILES)
rm -f rmexe
$(CC) $(L_FLAGS) -o rmexe $(O_FILES) $(DMALLOC)
chmod g+w rmexe
chmod a+x rmexe
chmod g+w $(O_FILES)
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
clean:
rm -f *.o rmexe *~