< prev index next >

make/windows/create_obj_files.sh

Print this page




  94   COMPILER2_PATHS="${ALTSRC}/share/vm/opto"
  95 fi
  96 COMPILER2_PATHS="${COMPILER2_PATHS} ${COMMONSRC}/share/vm/opto"
  97 if [ -d "${ALTSRC}/share/vm/libadt" ]; then
  98   COMPILER2_PATHS="${COMPILER2_PATHS} ${ALTSRC}/share/vm/libadt"
  99 fi
 100 COMPILER2_PATHS="${COMPILER2_PATHS} ${COMMONSRC}/share/vm/libadt"
 101 COMPILER2_PATHS="${COMPILER2_PATHS} ${GENERATED}/adfiles"
 102 
 103 # Include dirs per type.
 104 case "${TYPE}" in
 105     "compiler1") Src_Dirs="${BASE_PATHS} ${COMPILER1_PATHS}" ;;
 106     "compiler2") Src_Dirs="${BASE_PATHS} ${COMPILER2_PATHS}" ;;
 107     "tiered")    Src_Dirs="${BASE_PATHS} ${COMPILER1_PATHS} ${COMPILER2_PATHS}" ;;
 108     "zero")      Src_Dirs="${BASE_PATHS}" ;;
 109     "shark")     Src_Dirs="${BASE_PATHS}" ;;
 110 esac
 111 
 112 COMPILER2_SPECIFIC_FILES="opto libadt bcEscapeAnalyzer.cpp c2_* runtime_*"
 113 COMPILER1_SPECIFIC_FILES="c1_*"

 114 SHARK_SPECIFIC_FILES="shark"
 115 ZERO_SPECIFIC_FILES="zero"
 116 
 117 # Always exclude these.
 118 Src_Files_EXCLUDE="jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp"
 119 
 120 # Exclude per type.
 121 case "${TYPE}" in
 122     "compiler1") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER2_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES} ciTypeFlow.cpp" ;;
 123     "compiler2") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES}" ;;
 124     "tiered")    Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES}" ;;
 125     "zero")      Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${COMPILER2_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES} ciTypeFlow.cpp" ;;
 126     "shark")     Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${COMPILER2_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES}" ;;
 127 esac
 128 
 129 # Special handling of arch model.
 130 case "${Platform_arch_model}" in
 131         "x86_32") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_64*" ;;
 132         "x86_64") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_32*" ;;
 133 esac
 134 
 135 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
 136 function findsrc {
 137     $FIND ${1}/. ! -name . -prune \
 138                 -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
 139                 -a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) \
 140                 | sed 's/.*\/\(.*\)/\1/';
 141 }
 142 
 143 Src_Files=
 144 for e in ${Src_Dirs}; do
 145    Src_Files="${Src_Files}`findsrc ${e}` "
 146 done 


  94   COMPILER2_PATHS="${ALTSRC}/share/vm/opto"
  95 fi
  96 COMPILER2_PATHS="${COMPILER2_PATHS} ${COMMONSRC}/share/vm/opto"
  97 if [ -d "${ALTSRC}/share/vm/libadt" ]; then
  98   COMPILER2_PATHS="${COMPILER2_PATHS} ${ALTSRC}/share/vm/libadt"
  99 fi
 100 COMPILER2_PATHS="${COMPILER2_PATHS} ${COMMONSRC}/share/vm/libadt"
 101 COMPILER2_PATHS="${COMPILER2_PATHS} ${GENERATED}/adfiles"
 102 
 103 # Include dirs per type.
 104 case "${TYPE}" in
 105     "compiler1") Src_Dirs="${BASE_PATHS} ${COMPILER1_PATHS}" ;;
 106     "compiler2") Src_Dirs="${BASE_PATHS} ${COMPILER2_PATHS}" ;;
 107     "tiered")    Src_Dirs="${BASE_PATHS} ${COMPILER1_PATHS} ${COMPILER2_PATHS}" ;;
 108     "zero")      Src_Dirs="${BASE_PATHS}" ;;
 109     "shark")     Src_Dirs="${BASE_PATHS}" ;;
 110 esac
 111 
 112 COMPILER2_SPECIFIC_FILES="opto libadt bcEscapeAnalyzer.cpp c2_* runtime_*"
 113 COMPILER1_SPECIFIC_FILES="c1_*"
 114 JVMCI_SPECIFIC_FILES="*jvmci* *JVMCI*"
 115 SHARK_SPECIFIC_FILES="shark"
 116 ZERO_SPECIFIC_FILES="zero"
 117 
 118 # Always exclude these.
 119 Src_Files_EXCLUDE="jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp"
 120 
 121 # Exclude per type.
 122 case "${TYPE}" in
 123     "compiler1") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER2_SPECIFIC_FILES} ${JVMCI_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES} ciTypeFlow.cpp" ;;
 124     "compiler2") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES}" ;;
 125     "tiered")    Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${ZERO_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES}" ;;
 126     "zero")      Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${COMPILER2_SPECIFIC_FILES} ${JVMCI_SPECIFIC_FILES} ${SHARK_SPECIFIC_FILES} ciTypeFlow.cpp" ;;
 127     "shark")     Src_Files_EXCLUDE="${Src_Files_EXCLUDE} ${COMPILER1_SPECIFIC_FILES} ${COMPILER2_SPECIFIC_FILES} ${JVMCI_SPECIFIC_FILES} ${ZERO_SPECIFIC_FILES}" ;;
 128 esac
 129 
 130 # Special handling of arch model.
 131 case "${Platform_arch_model}" in
 132         "x86_32") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_64*" ;;
 133         "x86_64") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_32*" ;;
 134 esac
 135 
 136 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
 137 function findsrc {
 138     $FIND ${1}/. ! -name . -prune \
 139                 -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
 140                 -a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) \
 141                 | sed 's/.*\/\(.*\)/\1/';
 142 }
 143 
 144 Src_Files=
 145 for e in ${Src_Dirs}; do
 146    Src_Files="${Src_Files}`findsrc ${e}` "
 147 done 
< prev index next >