MAINCLASS=Program01 SOURCES=Program01.java all: javac $(SOURCES) LINJUNIT=/usr/share/java/junit4.jar TESTSOURCE=Program01Test testl: javac -cp .:$(LINJUNIT) $(TESTSOURCE).java java -cp .:$(LINJUNIT) org.junit.runner.JUnitCore $(TESTSOURCE) WINJUNIT=c:\bin\SWScite\SWScite_0.5.2_20140505\javalibs\junit-4.11.jar WINHAMCREST=c:\bin\SWScite\SWScite_0.5.2_20140505\javalibs\hamcrest-core-1.3.jar testw: javac -cp .;$(WINJUNIT);$(WINHAMCREST) $(TESTSOURCE).java java -cp .;$(WINJUNIT);$(WINHAMCREST) org.junit.runner.JUnitCore $(TESTSOURCE) jar: echo "Main-Class: $(MAINCLASS)" > manifest.mf jar cvfm $(MAINCLASS).jar manifest.mf *.class echo "#!/bin/bash" > startProgram.sh echo "java -jar $(MAINCLASS).jar" >> startProgram.sh echo "java -jar $(MAINCLASS).JAR" > startProgram.bat