#
# 97/01/16, @(#)Makefile	1.2
#
# Makefile for building and running security product tests
#
# Modify these next five variables to suit your environment
#
#      BIN: location of java, javac, appletviewer
#  INSTALL: complete path name of the preferred version of install(1M)
#  DESTDIR: where the compiled security test classes (and the html test harness) end up
#      URL: the URL that is used to invoke the securityTest.html test harness
#      TMP: a directory from which the security tests are run
#
JAVA_HOME = ../../../../../build
BIN 	= ${JAVA_HOME}/bin
CLASSPATH = ${JAVA_HOME}/classes:classes

#
# You shouldn't need to modify anything after this.
#
TESTS	=\
	classes/test/Test.java \
	classes/test/TestException.java \
	classes/test/TestFailureException.java

CRYPTO  =\
	classes/crypto/DigestCloneTest.java \
	classes/crypto/GenerateDigestTest.java \
	classes/crypto/PKCS8KeyEncodeTest.java \
	classes/crypto/SimpleSignatureTest.java \
	classes/crypto/VerifyDigestTest.java

TESTSCLASS=\
	classes/test/Test.class \
	classes/test/TestException.class \
	classes/test/TestFailureException.class

CRYPTOCLASS  =\
	classes/crypto/DigestCloneTest.class \
	classes/crypto/GenerateDigestTest.class \
	classes/crypto/PKCS8KeyEncodeTest.class \
	classes/crypto/SimpleSignatureTest.class \
	classes/crypto/VerifyDigestTest.class \

all: test crypto

test:
	${BIN}/javac -classpath ${CLASSPATH} ${TESTS}
	chmod a+x run

crypto: test
	${BIN}/javac -classpath ${CLASSPATH} ${CRYPTO}

clean: 
	rm -f classes/crypto/*.class classes/test/*.class


