# Memory File Server buildfile
# Kenneth Brooks, 7/84

HDR =	memserv.h

VPATH=../mi

SRC =	memserv.c instance.c file.c readwrite.c naming.c \
	directory.c insttable.c blocks.c misc.c

OBJ = 	memserv.b instance.b file.b readwrite.b naming.b \
	directory.b insttable.b blocks.b misc.b

#include ../../../buildprefix
XFLAGS = -v$(Xx)V -I../mi

memserver.m68k: $(OBJ)
	cc68 $(XFLAGS) $(OBJ) -r -o memserver.m68k

##temporary hack -- tpm
tmemserver.m68k: memserv.b instance.b file.b readwrite.b naming.b \
directory.b insttable.b blocks.b tmisc.b \
/xV/measure/naming/m68k/cputimer.b
	cc68 $(XFLAGS) memserv.b instance.b file.b readwrite.b naming.b \
	 directory.b insttable.b blocks.b tmisc.b \
	 /xV/measure/naming/m68k/cputimer.b -r -o tmemserver.m68k
tmisc.b: ../mi/misc.c
	cc68 -c ../mi/misc.c $(XFLAGS) -o tmisc.b -DTIME_NAMING
##end hack

.SUFFIXES:
.SUFFIXES: .b .c

.c.b:
	cc68 -c $*.c $(XFLAGS)

install: memserver.m68k
	$(NETINSTALL) -p "memserver.m68k" $(VSYS)/bin

clean:
	rm -f *.BAK *.CKP .emacs*
	rm -f *.b memserver.m68k

cleanbak:
	rm -f *.b memserver.m68k

lint:	$(HDR) $(SRC)
	lint68 $(XFLAGS) $(SRC) > lintlog

tags:	$(HDR) $(SRC)
	ctags $(HDR) $(SRC)

relink:
	rm -f memserver.m68k
