# -*- Mode: Makefile -*- CC = cc JAVA = java JAVAC = javac all: c rotorgen: rotorgen.c $(CC) -o rotorgen rotorgen.c c: Rotor.java $(JAVAC) Rotor.java clean: rm -f *~ core *.class spotless: clean rm -f *.class t0: -$(JAVA) Rotor E test0.in test0a.out rotora.dat rotora.dat 0 0 -$(JAVA) Rotor D test0a.out test0b.out rotora.dat rotora.dat 0 0 diff test0.in test0b.out t1: -$(JAVA) Rotor E test1.in test1a.out rotora.dat rotorb.dat 100 5 -$(JAVA) Rotor D test1a.out test1b.out rotora.dat rotorb.dat 100 5 diff test1.in test1b.out t2: -$(JAVA) Rotor E test2.in test2a.out rotorc.dat rotorf.dat 102 127 -$(JAVA) Rotor D test2a.out test2b.out rotorc.dat rotorf.dat 102 127 diff test2.in test2b.out t3: -$(JAVA) Rotor E test3.in test3a.out rotorc.dat rotorf.dat 0 0 -$(JAVA) Rotor D test3a.out test3b.out rotorc.dat rotorf.dat 0 0 diff test3.in test3b.out t4: -$(JAVA) Rotor E test4.in test4a.out rotore.dat rotorg.dat 0 0 -$(JAVA) Rotor D test4a.out test4b.out rotore.dat rotorg.dat 0 0 diff test4.in test4b.out t5: -$(JAVA) Rotor E test5.in test5a.out rotorb.dat rotora.dat 0 0 -$(JAVA) Rotor D test5a.out test5b.out rotorb.dat rotora.dat 0 0 diff test5.in test5b.out test: t0 t1 t2 t3 t4 t5 Rotor.class: Rotor.java