abermud/DATA/
head     1.3;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.3
date     89.07.03.08.33.36;  author rsalz;  state Exp;
branches ;
next     1.2;

1.2
date     89.07.03.08.18.56;  author rsalz;  state Exp;
branches ;
next     1.1;

1.1
date     89.03.13.09.39.21;  author rsalz;  state Exp;
branches ;
next     ;


desc
@@


1.3
log
@Fix cleanup stuff.
@
text
@##  Abermud.
##  $Header: Makefile,v 1.2 89/07/03 08:18:56 rsalz Exp $


DEFS	=
LDEFS	= $(DEFS) -a -b -h
CFLAGS	= $(DEFS)

##  To compile with GCC use this line:
#CC	= gcc -fwritable-strings -traditional -O

HEADERS	= \
	kernel.h condact.h

SRC_PROG= \
	action.c blib.c blood.c bootstrap.c bprintf.c condition.c \
	database.c debug.c exec.c extra.c frob.c key.c locdir.c loctable.c \
	magic.c mobile.c mudprog.c new1.c newuaf.c objsys.c opensys.c \
	parse.c parser.c showpriv.c support.c tk.c weather.c zones.c
OBJ_PROG= \
	action.o blib.o blood.o bootstrap.o bprintf.o condition.o \
	database.o debug.o exec.o extra.o frob.o key.o locdir.o loctable.o \
	magic.o mobile.o mudprog.o new1.o newuaf.o objsys.o opensys.o \
	parse.o parser.o showpriv.o support.o tk.o weather.o zones.o

SRC_DRIVER= \
	mud.c blib.c
OBJ_DRIVER= \
	mud.o blib.o

SRC_GEN	= \
	generate.c blib.c
OBJ_GEN	= \
	generate.o blib.o

##  These are the two programs that are built.
PROGRAMS= \
	mud mudprog generate

##  Data files.  If you change the pathnames, edit kernel.h and rebuild
##  the world.
DATA	= \
	DATA/locations \
	DATA/reset_data DATA/world_file DATA/uaf.rand DATA/user_file


##
all:			$(PROGRAMS) $(DATA)

install:		all
	chown mud.mud mud mudprog DATA/*
	chmod 4700 mudprog
	chmod 4711 mud

clean:
	rm -f $(PROGRAMS) $(DATA) DATA/mud_syslog *.o
	rm -f a.out foo core tags lint* MANIFEST.BAK

lint:			lint.mud lint.prog lint.gen

tags:			FORCE
	ctags -t *.[ch]

FORCE:


##
lint.mud:		mud
	lint $(LDEFS) $(SRC_DRIVER) | sed -f Fluff.sed >lint.mud
lint.prog:		mudprog
	lint $(LDEFS) $(SRC_PROG) | sed -f Fluff.sed >lint.prog
lint.gen:		generate
	lint $(LDEFS) $(SRC_GEN) >lint.gen


##  Packing.
tar:			clean
	tar cvf ../abermud.new.tar .
	compress ../abermud.new.tar


##  Programs.
mudprog:		$(OBJ_PROG)
	@@rm -f mudprog
	cc -o mudprog $(OBJ_PROG)

mud:			$(OBJ_DRIVER)
	@@rm -f mud
	cc -o mud $(OBJ_DRIVER)

generate:		$(OBJ_GEN)
	@@rm -f generate
	cc -o generate $(OBJ_GEN)


##  Header file dependencies.
#$(OBJ_DRIVER):		kernel.h
#$(OBJ_PROG):		kernel.h
action.o condition.o database.o debug.o exec.o:	condact.h


##  Data files built by the tools.
DATA/locations:		DATA/locations.1 DATA/locations.2 DATA/locations.3
	cat DATA/locations.1 DATA/locations.2 DATA/locations.3 >DATA/locations
DATA/reset_data:	generate DATA/reset.txt
	./generate reset DATA/reset.txt DATA/reset_data
DATA/world_file:	generate
	./generate world DATA/world_file
DATA/uaf.rand:	generate
	./generate uaf DATA/uaf.rand
DATA/user_file:	generate
	./generate userfile DATA/user_file
@


1.2
log
@Incorporate many fixes by Jussi <eloranta@@tukki.jyu.fi>,
and some minor tweaks by Rich.
@
text
@d2 1
a2 1
##  $Header: Makefile,v 1.1 89/03/13 09:39:21 rsalz Exp $
d43 1
d56 1
a56 1
	rm -f $(PROGRAMS) $(DATA) mud_syslog *.o
d103 2
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
##  $Header$
a3 2
CC_OPTS	=
#CC_OPTS= -X55 -Z85 -X18
d9 3
d43 1
a43 2
	DATAFILES/reset_data DATAFILES/world_file DATAFILES/uaf.rand \
	DATAFILES/user_file
d49 5
d75 7
a81 1
##
a84 1
	chmod 4700 mudprog
a88 1
	chmod 4711 mud
d101 9
a109 9
##  Data files built by the tools
DATAFILES/reset_data:	generate DATAFILES/reset.txt
	./generate reset DATAFILES/reset.txt DATAFILES/reset_data
DATAFILES/world_file:	generate
	./generate world DATAFILES/world_file
DATAFILES/uaf.rand:	generate
	./generate uaf DATAFILES/uaf.rand
DATAFILES/user_file:	generate
	./generate userfile DATAFILES/user_file
@