commit 000834cada1e227d61f6ec1f96bb75a9499ca802 parent 00079d8eafa305bc3f0ace03a4e9a33aec620a80 Author: Tomas Hlavaty <tom@logand.com> Date: Fri, 25 Dec 2015 23:10:23 +0100 add makefile Diffstat:
A | Makefile | | | 19 | +++++++++++++++++++ |
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,19 @@ +SRC = src/jmultimethod/AsteroidTest.java \ + src/jmultimethod/CarTest.java \ + src/jmultimethod/DispatchTest.java +CLS= $(SRC:.java=.class) + +.SUFFIXES : .class .java + +.java.class: + javac -sourcepath `pwd`/src -d `pwd`/bin $< + +all: $(CLS) + +test: + echo === AsteroidTest + java -classpath `pwd`/bin jmultimethod/AsteroidTest + echo === CarTest + java -classpath `pwd`/bin jmultimethod/CarTest + echo === DispatchTest + java -classpath `pwd`/bin jmultimethod/DispatchTest