
## Ensure that you have
##   jmlruntime.jar
##   jmljunitruntime.jar
## in your CLASSPATH.
## These jar files are part of the JML distribution, see www.jmlspecs.org

## For the jmlunit test you also need
##     junit.jar
## in your CLASSPATH. This jar file can be downloaded at www.junit.org

## Compile Person.java with runtime assertion testing included

jmlc:
	jmlc Person.java

## Compile and execute a stand-alone test

simpletest:
	javac SimpleTest.java
	java SimpleTest

## Generate jmlunit test harness for Person.java.

jmlunit:
	jmlunit Person.java

## This generates files
##   Person_JML_Test.java
##   Person_JML_TestData.java
## but it will not generate & overwrite Person_JML_TestData.java
## if this file already exists.
##
## Person_JML_TestData.java can be edited to add test data.
## See Person_JML_TestData.java_edited for an example.
## The added lines in Person_JML_TestData.java_edited are marked with //EP.


## Compile the test files, after editing Person_JML_TestData.java

buildtest:
	javac Person_JML_Test*.java

## Execute the jml unit test

dotest:
	jml-junit Person_JML_Test


