# Makefile for tinymuck # #NB Check for comments beginning "#NB" before trying to build! # Whatever compiler you use, it **MUST** be able to grok ANSI C; # in particular, the muck is fully prototyped, and in some cases depends # on the argument-casting semantics of the prototypes. #NB Pick whatever looks likliest from the CC and CCFLAGS lines below. #NB The comments may or may not be useful in suggesting combinations. # Generic systems using GCC (first CC line if profiling, second if not) # # CC = gcc -g -p -DPROF -Wno-missing-prototypes # CC = gcc -g # CCFLAGS = -pipe -Wno-comment # IBM RT C compiler: # # CC= cc # CCFLAGS=-g # Dec 3100 C compiler and other MIPS machines # # CC= cc # CCFLAGS=-g # NeXT # # CC = cc -g # CCFLAGS = -W -Wreturn-type -Wunused -Wwrite-strings -DNOSYSCALLS # What I use (wgcc is a script that runs gcc with lots of -W options) CC = wgcc -g CCFLAGS = -pipe -Wno-comment #NB You probably want to change these to have nothing after the = sign #NB (the bsd-malloc stuff is for my hacks to make it run on a NeXT) # EXTRAC = bsd-malloc.c # EXTRAO = bsd-malloc.o # for RCS only GET= co CLEAN= rcsclean MV= -mv -f RM= -rm -f ROOT= .. MAKE= make LINT= lint MKTAGS= ctags MKDEPEND=mkdep $(CFLAGS) $(CSRC) $(MSRC) #MKDEPEND=${MKDEPEND} -- ${CFLAGS} -- ${CSRC} ${MSRC} SRC_PREFIX= #NB You probably want to remove -DMMMALLOC here. #NB (It says to use Mark Moreas' malloc library, as tweaked by me.) # DEFS = -DMMMALLOC CFLAGS = ${CCFLAGS} ${DEFS} # Destination for binaries DEST=${ROOT}/game MISCSRC = Makefile ChangeLog COPYING CSRC = $(EXTRAC) boolexp.c case.c compile.c create.c daemon.c db.c\ dbck.c debug.c disassem.c edit.c game.c hashtab.c help.c hostnames.c\ inst.c interface.c interp.c lib.c log.c look.c malloc.c match.c md5.c\ move.c p_array.c p_conversions.c p_create.c p_descriptor.c p_file.c\ p_for.c p_interaction.c p_logic.c p_objects.c p_operands.c p_property.c\ p_stack.c p_strings.c p_tests.c p_time.c player.c predicates.c\ property.c pw-a.c pw-b.c pw-crypt.c quota.c random.c recycle.c regexp.c\ regexp_m.c rob.c set.c speech.c str-core-plain.c str.c stringutil.c\ time.c unparse.c usernames.c utils.c wiz.c MSRC = decompress.c sanity.c SRC = ${MISCSRC} ${CSRC} ${MSRC} COBJ = $(EXTRAO) boolexp.o case.o compile.o create.o daemon.o db.o\ dbck.o debug.o disassem.o edit.o game.o hashtab.o help.o hostnames.o\ inst.o interface.o interp.o lib.o log.o look.o malloc.o match.o md5.o\ move.o p_array.o p_conversions.o p_create.o p_descriptor.o p_file.o\ p_for.o p_interaction.o p_logic.o p_objects.o p_operands.o p_property.o\ p_stack.o p_strings.o p_tests.o p_time.o player.o predicates.o\ property.o pw-a.o pw-b.o pw-crypt.o quota.o random.o recycle.o regexp.o\ regexp_m.o rob.o set.o speech.o str-core-plain.o str.o stringutil.o\ time.o unparse.o usernames.o utils.o wiz.o MOBJ = decompress.o sanity.o #NB You probably want to remove -lmmmalloc from this line. #NB See the comment above about -DMMMALLOC; they go together. # LIBS = -lmmmalloc -lm LIBS = -lcrypt -lm OBJ = ${COBJ} ${MOBJ} #### .c.o: #### ${CC} ${CFLAGS} -c $*.c default: netmuck copytolog netmuck: ${P} ${COBJ} ${MV} netmuck netmuck~ ${CC} ${CFLAGS} -o netmuck ${COBJ} ${LIBS} ${RM} netmuck~ all: netmuck copytolog decompress sanity tags copytolog: copytolog.o $(CC) -o copytolog copytolog.o bigram: bigram.o $(CC) -o bigram bigram.o sanity: ${P} sanity.o unparse.o utils.o db.o compress.o log.o ${RM} sanity ${CC} ${CFLAGS} -o sanity sanity.o unparse.o utils.o db.o compress.o log.o ${LIBS} decompress: decompress.o ${RM} decompress ${CC} ${CFLAGS} -o decompress decompress.o ${LIBS} index: index.o ${CC} ${CFLAGS} -o index index.o ${LIBS} stringutil.o: crctable crctable: gencrc gencrc edb88320 > crctable gencrc: gencrc.o $(CC) -o gencrc gencrc.o .PHONY: depend depend: $(MKDEPEND) .PHONY: clean clean: ${RM} ${OBJ} core netmuck copytolog decompress sanity tags gencrc copytolog.o gencrc.o .depend # DO NOT DELETE THIS LINE -- make depend depends on it.