#	Makefile to create rectangle library
.SUFFIXES:	.o .s

CFLAGS = -O -c -I../h 

AS =		as

RECTANGLE = 	within.o overlap.o adjacent.o intersect.o union.o top.o \
		bottom.o left.o right.o

rectangle.a:	${RECTANGLE}
		ar cru $@ ${RECTANGLE}
		ranlib $@

.s.o:
	cp $*.s X.c
	${CC} ${CFLAGS} -c -E X.c > $*.i
	${AS} $*.i -o $*.o
	rm -f $*.i X.c

clean:
	rm -f *.a ${RECTANGLE} core Errs tags

bottom.o: bottom.s
intersect.o: intersect.s
left.o: left.s 
right.o: right.s
top.o: top.s
union.o: union.s
