##Copyright, 2001, Astra Network Inc.  All Rights Reserved

##This source code has been published by Astra Network Inc. However, any
##use, reproduction, modification, distribution or transfer of this
##software, or any software which includes or is based upon any of this
##code, is only permitted if expressly authorized by a written license
##agreement from Astra. Contact your Astra representitive directly for
##more information.

#	@(#)Makefile	8.1 (Berkeley) 6/4/93
TOPDIR:=%%TOPDIR%%
include $(TOPDIR)/mkfiles/def_glob.mk

VPATH=$(TOPDIR)/lib/quad/test

MYINCLUDES:=-I $(TOPDIR)/lib/quad/ -I $(TOPDIR)/lib/quad/$(PLAT) -I $(TOPDIR)/lib/quad/$(PLAT)/$(ARCH) -I $(INCLUDEDIR) -L /opt/ctest/lib -I /opt/ctest/include -L ../

CFLAGS= $(MYINCLUDES) $(DEBUG)

test: test1
	@echo "libquad: testing..."
	./test1 --runtests -vv

test1: main.o
	$(CC) $(CFLAGS) main.o -o $@ -lctest -lquad 

str: str.o
	$(CC) $(CFLAGS) str.o -o $@ -lquad

clean:
	-rm test *.o