# Makefile for RAMFile library and server
# PARALLELISM 26
# note that alloc.o is used for ../pattern 
# $Id: Makefile,v 7.2 91/05/09 19:38:16 dfk Tape2 $

I=../include
IFLAGS=-I$I
X=-g     # -X18 is old; is default with -g in new compiler
CFLAGS=$(IFLAGS) $X

all: $(PARALLEL) lib.a 

clean:
	-rm -f *~ *.o

spotless:
	-rm -f *~ *.a *.o *.out 

SRC= alloc.c binarith.c coroutine.c error.c frame.c globalws.c init.c \
	interface.c io.c prefetch.c \
	predict-exact.c predict-obl.c predict-ibl.c predict-port.c \
	predict-adapt.c predict-iobl.c predict-iport.c predict-iopor.c \
	predict-gaps.c predict-rgaps.c predict-gw.c predict-sw.c \
	replace-toss.c replace-ws.c replace.c stats.c suppt.c \
	queue.c

RCSLIST=Makefile $(SRC) corout.s cotest.c predict-debug.h

dep:
	mkdep $(IFLAGS) $(SRC)

print:
	claser $(SRC)

OBJ_LIB_A = alloc.o binarith.o corout.o coroutine.o error.o frame.o \
	globalws.o init.o interface.o io.o prefetch.o \
	predict-exact.o predict-obl.o predict-ibl.o predict-port.o \
	predict-adapt.o predict-iobl.o predict-iport.o predict-iopor.o \
	predict-gaps.o predict-rgaps.o predict-gw.o predict-sw.o \
	replace-toss.o replace-ws.o replace.o stats.o suppt.o \
	queue.o

$(OBJ_LIB_A): ../force

lib.a: $(PARALLEL) $(OBJ_LIB_A)
#	rm -f $@
#	ar q $@ $(OBJ_LIB_A)
	ar rv $@ $?
	ranlib $@

# Special handling for this assembler file
corout.o: corout.s
	-rm -f corout.o corout.l
#	as corout.s -defineall -o $@
	as corout.s -o $@

# Test of coroutines
cotest: cotest.o coroutine.o corout.o error.o
	cc -o cotest cotest.o coroutine.o corout.o error.o

# Test of queue.c
LIBS=/usr/bfly/dfk/mycode/lib/libdfk.a
qtest: queue.c $I/error.h $I/dfk.h $I/queue.h $(LIBS) alloc.o
	cc $(CFLAGS) -DTEST queue.c $(LIBS) alloc.o -o qtest -lus

rcs:
	-uncompress RCS/*.Z
	checkin $(RCSLIST)

rcsn:
	-uncompress RCS/*.Z
	checkin -n $(RCSLIST)

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

alloc.o: alloc.c /usr/include/stdio.h ../include/usdfk.h /usr/include/us.h
alloc.o: ../include/dfk.h
binarith.o: binarith.c
coroutine.o: coroutine.c /usr/include/stdio.h ../include/coroutine.h
error.o: error.c /usr/include/stdio.h ../include/dfk.h ../include/error.h
frame.o: frame.c /usr/include/stdio.h ../include/usdfk.h /usr/include/us.h
frame.o: ../include/dfk.h ../include/internal.h ../include/vnode.h
frame.o: ../include/replace.h ../include/prefetch.h ../include/rapidelog.h
frame.o: /usr/include/elog.h ../include/stats.h ../include/error.h
frame.o: ../include/own.h ../include/wanted.h predict-debug.h
globalws.o: globalws.c /usr/include/stdio.h ../include/usdfk.h
globalws.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
globalws.o: ../include/vnode.h ../include/rapidelog.h /usr/include/elog.h
globalws.o: ../include/error.h ../include/replace.h ../include/stats.h
globalws.o: ../include/wanted.h ../include/queue.h
init.o: init.c /usr/include/stdio.h ../include/usdfk.h /usr/include/us.h
init.o: ../include/dfk.h ../include/rapidelog.h /usr/include/elog.h
init.o: ../include/io.h ../include/vnode.h
interface.o: interface.c /usr/include/stdio.h ../include/usdfk.h
interface.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
interface.o: ../include/vnode.h ../include/replace.h ../include/stats.h
interface.o: ../include/wanted.h ../include/rapidelog.h /usr/include/elog.h
interface.o: ../include/queue.h ../include/write.h
io.o: io.c /usr/include/stdio.h ../include/usdfk.h /usr/include/us.h
io.o: ../include/dfk.h ../include/io.h ../include/rapidelog.h
io.o: /usr/include/elog.h
prefetch.o: prefetch.c /usr/include/stdio.h ../include/usdfk.h
prefetch.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
prefetch.o: ../include/vnode.h ../include/prefetch.h ../include/replace.h
prefetch.o: ../include/stats.h ../include/rapidelog.h /usr/include/elog.h
prefetch.o: ../include/others.h ../include/own.h ../include/wanted.h
prefetch.o: predict-debug.h
predict-exact.o: predict-exact.c /usr/include/stdio.h ../include/usdfk.h
predict-exact.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-exact.o: ../include/vnode.h ../include/refs.h ../include/prefetch.h
predict-exact.o: ../include/stats.h ../include/rapidelog.h /usr/include/elog.h
predict-exact.o: ../include/others.h ../include/own.h ../include/wanted.h
predict-obl.o: predict-obl.c /usr/include/stdio.h ../include/usdfk.h
predict-obl.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-obl.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-obl.o: ../include/rapidelog.h /usr/include/elog.h
predict-ibl.o: predict-ibl.c /usr/include/stdio.h ../include/usdfk.h
predict-ibl.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-ibl.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-ibl.o: ../include/rapidelog.h /usr/include/elog.h
predict-port.o: predict-port.c /usr/include/stdio.h ../include/usdfk.h
predict-port.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-port.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-port.o: ../include/rapidelog.h /usr/include/elog.h predict-debug.h
predict-adapt.o: predict-adapt.c /usr/include/stdio.h ../include/usdfk.h
predict-adapt.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-adapt.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-adapt.o: ../include/rapidelog.h /usr/include/elog.h predict-debug.h
predict-iobl.o: predict-iobl.c /usr/include/stdio.h ../include/usdfk.h
predict-iobl.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-iobl.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-iobl.o: ../include/rapidelog.h /usr/include/elog.h
predict-iport.o: predict-iport.c /usr/include/stdio.h ../include/usdfk.h
predict-iport.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-iport.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-iport.o: ../include/rapidelog.h /usr/include/elog.h predict-debug.h
predict-iopor.o: predict-iopor.c /usr/include/stdio.h ../include/usdfk.h
predict-iopor.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-iopor.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-iopor.o: ../include/rapidelog.h /usr/include/elog.h predict-debug.h
predict-gaps.o: predict-gaps.c /usr/include/stdio.h ../include/usdfk.h
predict-gaps.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-gaps.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-gaps.o: ../include/rapidelog.h /usr/include/elog.h predict-debug.h
predict-gaps.o: ../include/fifolock.h ../include/wanted.h ../include/own.h
predict-gaps.o: ../include/queue.h
predict-rgaps.o: predict-rgaps.c /usr/include/stdio.h ../include/usdfk.h
predict-rgaps.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-rgaps.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-rgaps.o: ../include/rapidelog.h /usr/include/elog.h predict-debug.h
predict-rgaps.o: ../include/fifolock.h ../include/wanted.h ../include/own.h
predict-rgaps.o: ../include/queue.h
predict-gw.o: predict-gw.c /usr/include/stdio.h ../include/usdfk.h
predict-gw.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-gw.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-gw.o: ../include/rapidelog.h /usr/include/elog.h predict-debug.h
predict-gw.o: ../include/queue.h
predict-sw.o: predict-sw.c /usr/include/stdio.h ../include/usdfk.h
predict-sw.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
predict-sw.o: ../include/vnode.h ../include/prefetch.h ../include/stats.h
predict-sw.o: ../include/rapidelog.h /usr/include/elog.h
replace-toss.o: replace-toss.c /usr/include/stdio.h ../include/usdfk.h
replace-toss.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
replace-toss.o: ../include/vnode.h ../include/replace.h
replace-ws.o: replace-ws.c /usr/include/stdio.h ../include/usdfk.h
replace-ws.o: /usr/include/us.h ../include/dfk.h ../include/internal.h
replace-ws.o: ../include/vnode.h ../include/replace.h
replace.o: replace.c /usr/include/stdio.h ../include/usdfk.h /usr/include/us.h
replace.o: ../include/dfk.h ../include/replace.h ../include/internal.h
replace.o: ../include/vnode.h
stats.o: stats.c /usr/include/stdio.h ../include/usdfk.h /usr/include/us.h
stats.o: ../include/dfk.h ../include/stats.h
suppt.o: suppt.c /usr/include/stdio.h ../include/usdfk.h /usr/include/us.h
suppt.o: ../include/dfk.h ../include/internal.h ../include/vnode.h
queue.o: queue.c /usr/include/stdio.h ../include/usdfk.h /usr/include/us.h
queue.o: ../include/dfk.h ../include/queue.h ../include/error.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
