## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ## * This file is part of SableJIT. * ## * See the file "LICENSE.JIT" for Copyright information and * ## * the terms and conditions for copying, distribution and * ## * modification of SableJIT. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ### user-configurable data ### # Option names JAVAC_BOOT_CP_OPTION=-bootclasspath JAVAC_CP_OPTION=-classpath JAVAC_BOOT_CLASSPATH=${SABLEVM_DATADIR}/sablevm-classpath/libclasspath.jar # Additional compiler classpath entries JAVAC_ADD_CLASSPATH= # Additional compiler options JAVAC_OTHER_OPTIONS= # Additional JVM classpath entries JAVA_ADD_CLASSPATH= # Additional SableVM options JAVA_OTHER_OPTIONS=-Y -p sablevm.stack.size.min=500000 # Add methods to include/exclude list - for development/testing ADD_INCLUDE= ADD_EXCLUDE= # javadoc program to use JAVADOC=javadoc # Option names for SableVM JAVA_CP_OPTION=-c JAVA_PROPERTY_OPTION=-p # Location of libglue JAVA_LIBRARY=-p java.library.path=${SABLEJIT_SRC_ROOT}/src/sablejit/arch # Compiler command JAVAC=${JAVAC_BIN} ${JAVAC_FLAGS} \ ${JAVAC_BOOT_CP_OPTION} ${JAVAC_BOOT_CLASSPATH} # Classes to include for compilation - testing LIBINCLUDE=ALL # Classes to exclude for compilation - testing LIBEXCLUDECOMMON= LIBEXCLUDE=${LIBEXCLUDECOMMON} # Classes to exclude for recompilation - testing RECOMPILE_EXCLUDE_COMMON= ### end of user configurable data ### DEVROOT=${SABLEJIT_SRC_ROOT} # Note: We do not include ${DEVROOT}/src in run classpath because, # we want to make sure we are using files from sablejit.jar # or from the installation directory. RUN_COMMON_CLASSPATH=. BUILD_COMMON_CLASSPATH=.:${JUNIT_CLASSPATH} #BUILD_COMMON_CLASSPATH=.:${DEVROOT}/src:${JUNIT_CLASSPATH} # Classpath to run and to build JAVA_CLASSPATH=${JAVA_ADD_CLASSPATH}:${RUN_COMMON_CLASSPATH} JAVAC_CLASSPATH=${JAVAC_ADD_CLASSPATH}:${BUILD_COMMON_CLASSPATH} JAVATESTCMD=${SABLEVM_BIN} ${JAVA_LIBRARY} \ ${JAVA_CP_OPTION} ${JAVA_CLASSPATH} \ ${JAVA_OTHER_OPTIONS} MACROFILES= \ ${DEVROOT}/src/macros/svm_macros.m4 \ ${DEVROOT}/src/macros/sj_macros.m4 .SECONDARY: ${AUTO_FILES} #.SUFFIXES: .java .class .m4.java .SUFFIXES: .java .m4.java #.java.class: # ${JAVAC} ${JAVAC_CP_OPTION} ${JAVAC_CLASSPATH} ${JAVAC_OTHER_OPTIONS} $< .m4.java.java: rm -f $@ ${M4} -P ${MACROFILES} ${PRE_MACROFILES} $< ${POST_MACROFILES} > $@ chmod a-w $@ all: buildsubdir ${LIBS} buildsubdir: ${AUTO_FILES} list='${SUBDIRS}' ; \ for dir in $$list; do \ (cd $$dir; ${MAKE} all) \ done expandm4java: expandm4java_subdir ${AUTO_FILES} ${TEST_AUTO_FILES} expandm4java_subdir: list='${SUBDIRS}' ; \ for dir in $$list; do \ (cd $$dir ; ${MAKE} expandm4java) \ done .PHONY: cleanlocal clean: cleansubdir cleanlocal -rm -f ${CLASSES} ${AUTO_FILES} ${TEST_CLASSES} ${TEST_AUTO_FILES} -rm -f *.class -rm -f *~ *.so *.so.* *.a *.o *.lo *.la -rm -f sablejit.jar -rm -rf .libs cleansubdir: list='${SUBDIRS}' ; \ for dir in $$list; do \ (cd $$dir; ${MAKE} clean); \ done