# Makefile for Chrysalis simulator stuff
# PARALLELISM 3
# $Id: Makefile,v 6.7 90/09/01 20:29:35 dfk Exp Locker: dfk $

I=../include
IFLAGS=-I$I
X=-g -X18
CFLAGS=$(IFLAGS) $X

OBJ=error.o coroutine.o corout.o
SRC=error.c coroutine.c

chrys.a: $(PARALLEL) $(OBJ)
	ar r $@ $?
	-ar d $@ __.SYMDEF
	ranlib $@

corout.o: corout.s
	-rm -f corout.o corout.l
	/lib/cpp -P corout.s > temp.s
	as temp.s -defineall -o $@
	-rm -f temp.s

cotest: cotest.o chrys.a
	cc -o cotest cotest.o chrys.a

dep:
	mkdep $(IFLAGS) $(SRC)

print:
	claser $(SRC)

clean:
	rm -f *~ *.o temp.s

spotless:
	rm -f *~ *.o chrys.a temp.s cotest dqtest

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

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

$(OBJ): ../force

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

error.o: error.c /usr/include/stdio.h ../include/dfk.h ../include/error.h
coroutine.o: coroutine.c /usr/include/stdio.h ../include/coroutine.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
