# # Top Level makefile for the j3d.org code repository. # # To use this, make sure that you have the PROJECT_ROOT environment variable # set # # This makefile is designed to build the entire library from scratch. It is # not desigend as a hacking system. It is recommended that you use the normal # javac/CLASSPATH setup for that. # # The following commands are offered: # # - class: Compile just the classes. Don't make JAR file # - jar: Make the java JAR file # - javadoc: Generate the javadoc information # - shaders: Copy the shader definitions into the classes area # - all: Build everything (including docs) # - clean: Blow everything away # ifndef PROJECT_ROOT export PROJECT_ROOT=/usr/local/src/projects/j3d.org/aviatrix3d endif include $(PROJECT_ROOT)/make/Makefile.inc VERSION=0.1 # Default instruction is to print out the help list help: $(PRINT) $(PRINT) " The Aviatrix3D Project" $(PRINT) $(PRINT) "More information on this project can be found at http://aviatrix3d.j3d.org" $(PRINT) $(PRINT) "The following options are offered and will build the entire codebase:" $(PRINT) $(PRINT) "class: Compile just the classes. Don't make JAR files." $(PRINT) "bin: Build parsers and classes" $(PRINT) "jar: Make the java JAR file" $(PRINT) "javadoc: Generate the javadoc information" $(PRINT) "shaders: Copy the shader source files into the classes area" $(PRINT) "shaderjar: Build the shader files into a separate JAR" $(PRINT) "all: Build everything (including docs)" $(PRINT) "clean: Blow all the library classes away" $(PRINT) "nuke: Blow both lib and example code away" $(PRINT) all: class shaders jar javadoc class: cd $(JAVA_DIR) && make buildall jar: cd $(SHADER_DIR) && make jar cd $(JAVA_DIR) && make jar jni: cd $(JAVA_DIR) && make jni shaders: cd $(SHADER_DIR) && make buildall shaderjar: cd $(SHADER_DIR) && make jar libs: cd $(JAVA_DIR) && make nativeall cd $(NATIVE_DIR) && make buildall javadoc: cd $(JAVA_DIR) && make javadoc clean: cd $(JAVA_DIR) && make clean