CLASSES = \
	Exploit.java  \
	FakeDriver.java \
    FakeDriver2.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/cve-2013-1488/
	mv FakeDriver.class ../../../../data/exploits/cve-2013-1488/
	mv FakeDriver2.class ../../../../data/exploits/cve-2013-1488/
	cp -r META-INF ../../../../data/exploits/cve-2013-1488/

clean:
	rm -rf *.class
