MAIN = JOGLbase # Java sources have to be given in the # order of thier dependencies or there has to be # a target below to specify the dependency. SRC = \ View.java \ Fullscreen.java \ DrawingBasics.java \ StipplePattern.java \ InputDevice.java \ UserEventMediator.java \ Bezier.java \ Light.java \ Blend.java \ GLUdemo.java \ GLUTdemo.java \ SolarSystem.java \ Imaging.java \ Font.java \ ResourceRetriever.java \ BitmapLoader.java \ TextureReader.java \ Texturing.java \ Texture3D.java \ Particle.java \ ParticleSystem.java \ VertexArray.java \ ${MAIN}.java CLASS = $(SRC:.java=.class) CLASSPATH = -classpath ./:/usr/local/lib/jogl/jogl.jar:jogl.jar JAVAC_OPTIONS = #JAVAC_OPTIONS += -g #debug JAVA_OPTIONS = -Djava.library.path=/usr/local/lib/jogl #JAVA_OPTIONS += -Xdebug # # Rules # %.class: %.java javac ${JAVAC_OPTIONS} ${CLASSPATH} $< # # Targets # go: compile run all: info clean tags go run: java ${CLASSPATH} ${JAVA_OPTIONS} ${MAIN} cleanMAIN: rm -f ${MAIN}.class clean: cleanMAIN rm -f ${CLASS} compile: ${CLASS} # javac ${CLASSPATH} ${SRC} info: echo ${CLASSPATH} tar: tar -cvf project.tar *.java makefile # Create TAGS file for emacs tags: TAGS TAGS: $(SRC) etags --declarations $(SRC) >$@ # # Dependencies # #JOGLframe.class: ${CLASS} JOGLframe.java