## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ## * 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 ### # Java compiler to use JAVAC=jikes -bootclasspath ${SABLEVM_DATADIR}/sablevm/sablevm-classpath JAVAC_CP_OPTION=-classpath JAVAC_ADD_CLASSPATH= JAVAC_OTHER_OPTIONS= # javadoc program to use JAVADOC=javadoc # These should be okay JAVA_CP_OPTION=-c JAVA_PROPERTY_OPTION=-p JAVA_LIBRARY=-p java.library.path=${SABLEJIT_SRC_ROOT}/src/sablejit/arch # Add to Classpath JAVA_ADD_CLASSPATH= # Other options to pass in JAVA_OTHER_OPTIONS=-Y -p sablevm.stack.size.min=500000 # Add methods to include/exclude list ADD_INCLUDE= ADD_EXCLUDE= ### end of user configurable data ### # classes to include for compilation LIBINCLUDE=ALL # classes to exclude for compilation LIBEXCLUDECOMMON= # classes to exclude for recompilation RECOMPILE_EXCLUDE_COMMON= # classes to exclude for compilation on ppc PPCLIBEXCLUDE= # classes to exclude for compilation on x86 # does OutOfRegEx if callReg is compiled X86LIBEXCLUDE=sablejit/arch/x86/X86ABI.callReg #ifeq ($(MACHTYPE), sparc-sun-solaris) LIBEXCLUDE=${LIBEXCLUDECOMMON} #endif #ifeq (${MACHTYPE},powerpc) #LIBEXCLUDE=${LIBEXCLUDECOMMON}:${PPCLIBEXCLUDE} #endif #ifeq (${MACHTYPE},x86) #LIBEXCLUDE=${LIBEXCLUDECOMMON}:${X86LIBEXCLUDE} #endif 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=.:${JUNIT_JAR} BUILD_COMMON_CLASSPATH=.:${DEVROOT}/src:${JUNIT_JAR} # 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 .SUFFIXES: .java .class .m4.java .SECONDARY: ${AUTO_FILES} .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 $@ # # For now, we always build the test classes as they need to be installed. # all: buildsubdir ${CLASSES} ${TEST_CLASSES} buildsubdir: ${AUTO_FILES} list='${SUBDIRS}' ; \ for dir in $$list; do \ (cd $$dir; ${MAKE} all) \ done build_tests: all build_tests_subdir ${TEST_CLASSES} build_tests_subdir: ${TEST_AUTO_FILES} list='${SUBDIRS}' ; \ for dir in $$list; do \ (cd $$dir; ${MAKE} build_tests) \ done clean: cleansubdir -rm -f ${CLASSES} ${AUTO_FILES} ${TEST_CLASSES} ${TEST_AUTO_FILES} -rm -f *.class -rm -f *~ *.so *.so.* *.a *.o *.lo *.la -rm -rf .libs cleansubdir: list='${SUBDIRS}' ; \ for dir in $$list; do \ (cd $$dir; ${MAKE} clean); \ done