head	1.3;
access;
symbols;
locks
	ucmm:1.3; strict;
comment	@# @;


1.3
date	2000.03.18.15.57.03;	author ucmm;	state Exp;
branches;
next	1.2;

1.2
date	2000.02.13.18.17.39;	author ucmm;	state Exp;
branches;
next	1.1;

1.1
date	99.12.26.21.28.43;	author ucmm;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Various updates over time
@
text
@CC      = gcc
#PROF    = -p
NOCRYPT =

# Alter the directory below and mud.h to set the debugger
#DMALLOC = -L/home/ucmm/code/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

#TIMEFLAG = -DTIMEFORMAT

# Comment out below if you don't want compression
MCCP = -DMCCP

# Comment out below if you don't want ispell
ISPELL = -DISPELL

WARN_FLAGS = -Wall -O2 #-Werror

#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) -ggdb3 $(PROF) $(TIMEFLAG) $(NOCRYPT) $(DBUGFLG) $(SOLARIS_FLAG) $(ISPELL) $(MCCP) $(WARN_FLAGS)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT) $(DMALLOC) -lz

IMC_FILES = ice.c icec.c icec-mercbase.c imc.c imc-mail.c imc-interp.c \
        imc-util.c imc-config.c imc-events.c imc-version.c imc-mercbase.c \
	imc-color.c minilzo.c crwrapper.c

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c arena.c     \
	axsmaug.c ban.c bank.c base64.c bits.c boards.c build.c buffer.c   \
	clans.c	comm.c comments.c const.c db.c deity.c disable.c fear.c    \
	fight.c gboards.c grub.c handler.c hashstr.c hiscores.c hskelter.c \
	ibuild.c ident.c imm_host.c immscore.c interp.c ispell.c magic.c   \
	makeobjs.c marry.c mccp.c medit.c misc.c mobchat.c motd.c mpxset.c \
	mud_comm.c mud_prog.c oedit.c planes.c player.c polymorph.c redit.c\
	remort.c requests.c reset.c save.c services.c shops.c skills.c     \
	slay.c special.c stat_obj.c suicide.c tables.c track.c update.c    \
	websvr.c $(IMC_FILES)

O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))

H_FILES = $(wildcard *.h)

all:
	make -s rmexe

rmexe: $(O_FILES)
	rm -f rmexe
	$(CC) $(L_FLAGS) -o rmexe $(O_FILES) $(DMALLOC)
	echo "Done compiling rmexe...";

# Check in all files
checkin:
	ci -l $(C_FILES) $(H_FILES) Makefile
	rm -f *~

# Make a unified diff of all files.
diff:
	rcsdiff -u $(C_FILES) $(H_FILES) Makefile > ../diff.new
	gzip -9 ../diff.new

ftp:
	scripts/ftp-diff
	rm ../diff.new.gz
        
patch:
	gunzip diff.new.gz
	patch < diff.new
	rm diff.new

o/%.o: %.c
	echo "	Now compiling... $@@";
	$(CC) -c $(C_FLAGS) $< -o $@@

clean:
	rm -f o/*.o rmexe *~
@


1.2
log
@Updatez
@
text
@d29 1
a29 1
OPT_FLAG = -finline-functions -funroll-loops -fdefer-pop -fstrength-reduce
d39 9
a47 8
	axsmaug.c ban.c bank.c base64.c boards.c build.c buffer.c clans.c  \
	comm.c comments.c const.c db.c deity.c fear.c fight.c grub.c       \
	handler.c hashstr.c hiscores.c hskelter.c ibuild.c ident.c         \
	imm_host.c immscore.c interp.c ispell.c magic.c makeobjs.c marry.c \
	medit.c misc.c mobchat.c motd.c mpxset.c mud_comm.c mud_prog.c     \
	oedit.c planes.c player.c polymorph.c redit.c requests.c reset.c   \
	save.c services.c shops.c skills.c slay.c special.c stat_obj.c     \
	suicide.c tables.c track.c update.c websvr.c mccp.c $(IMC_FILES)
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
DMALLOC = -L/home/ucmm/code/src/dmalloc/lib -ldmalloclp -ldmalloc -ldl
d19 8
d29 1
a29 1
#OPT_FLAG = -finline-functions -funroll-loops -fdefer-pop -fstrength-reduce
d31 2
a32 3
C_FLAGS = $(OPT_FLAG) -ggdb3 -Wall $(PROF) $(TIMEFLAG) $(NOCRYPT) $(DBUGFLG) $(SOLARIS_FLAG)
#C_FLAGS = -DISPELL
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT) $(DMALLOC)
d34 3
a36 2
IMC_FILES = 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
d46 1
a46 1
	suicide.c tables.c track.c update.c websvr.c $(IMC_FILES)
d48 1
a48 1
O_FILES := $(patsubst %.c,%.o,$(C_FILES))
d53 1
a53 1
	make rmexe
d58 1
d79 3
a81 2
.c.o: mud.h
	$(CC) -c $(C_FLAGS) $<
d84 1
a84 1
	rm -f *.o rmexe *~
@
