CLASSES = \
	Exploit.java

.SUFFIXES: .java .class
.java.class:
	javac -source 1.2 -target 1.2 -cp "../../../../data/java" $*.java

all: $(CLASSES:.java=.class)

install:
	mv Exploit.class ../../../../data/exploits/jre17u17/Exploit.class
	mv SystemClass.class ../../../../data/exploits/jre17u17/SystemClass.class
	mv Union1.class ../../../../data/exploits/jre17u17/Union1.class
	mv Union2.class ../../../../data/exploits/jre17u17/Union2.class

clean:
	rm -rf *.class
