initial
authorbrian <brian@brianweb.net>
Sun, 9 May 2004 07:45:25 +0000 (07:45 +0000)
committerbrian <brian@brianweb.net>
Sun, 9 May 2004 07:45:25 +0000 (07:45 +0000)
darcs-hash:20040509074525-24bed-6a9cbeda28c45856a425874c642f31bf6a78b311.gz

Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..2b1465f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+JAVAC = javac
+sources = $(shell find src -name '*.java')
+classes = $(sources:src/%.java=build/%.class)
+
+all: $(classes)
+
+$(classes): $(sources)
+       @mkdir -p build
+       $(JAVAC) -classpath lib/bcel-5.1.jar -d build $(sources)
+
+Test.class: Test.java
+       javac $<
+       
+test: all Test.class
+       java -cp build:lib/bcel-5.1.jar com.brian_web.gcclass.GCClass . stripped Test.main
+
+clean: 
+       rm -rf build/*