# added by Raphael
#

JLIBS = jogl-1.1.1-rc6-linux-i586/lib
CP = -classpath $(JLIBS)/jogl.jar:lib/ext/vecmath.jar

compile:
	find src -name '*.java' -print | \
		xargs javac -deprecation -Xlint:all $(CP) 

run:
	LD_RUN_PATH=../$(JLIBS); export LD_RUN_PATH; \
	cd src; java -Djava.library.path=../$(JLIBS) \
		-classpath .:../$(JLIBS)/jogl.jar:../$(JLIBS)/gluegen-rt.jar:../lib/ext/vecmath.jar \
		rbs.RigidBodySimulator
