#
# 97/07/02, @(#)Makefile	1.4
#
# 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/solaris
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/SimpleSignatureTest.java \
	classes/crypto/SignedObjectTest.java \
	classes/crypto/VerifyDigestTest.java

PKCS	=\
	classes/pkcs/TestParsePKCS7.java

PKCSCLASS=\
	classes/pkcs/TestParsePKCS7.class

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

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

all: test crypto pkcs

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

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

pkcs: 	test
	${BIN}/javac -classpath ${CLASSPATH} ${PKCS}

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


