Changeset 10
- Timestamp:
- Jun 8, 2010, 2:31:31 PM (15 years ago)
- Location:
- trunk/openjdk/jdk/make/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/make/common/Defs-os2.gmk
r7 r10 56 56 endif 57 57 58 # for backwards compatability, the old "win32" is used here instead of 59 # the more proper "windows" 58 # platform specific include files 60 59 PLATFORM_INCLUDE_NAME = os2 61 60 PLATFORM_INCLUDE = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME) -
trunk/openjdk/jdk/make/common/shared/Defs-os2.gmk
r7 r10 62 62 endef 63 63 64 # System drive 65 ifdef SYSTEM_INI 66 _system_drive :=$(firstword $(subst :, ,$(SYSTEM_INI))): 67 endif 68 _system_drive:=$(call CheckValue,_system_drive,C:) 69 70 # Location on system where jdk installs might be 71 ifndef PROGRAMS 72 USRJDKINSTANCES_PATH :="$(subst \,/,$(PROGRAMS))" 73 else 74 USRJDKINSTANCES_PATH :=$(_system_drive)/ 75 endif 76 USRJDKINSTANCES_PATH := $(call FullPath,$(USRJDKINSTANCES_PATH)) 77 78 # UNIXCOMMAND_PATH: path to where the most common Unix commands are. 79 # NOTE: Must end with / so that it could be empty, allowing PATH usage. 80 ifdef ALT_UNIXCOMMAND_PATH 81 xALT_UNIXCOMMAND_PATH :="$(subst \,/,$(ALT_UNIXCOMMAND_PATH))" 82 fxALT_UNIXCOMMAND_PATH :=$(call FullPath,$(xALT_UNIXCOMMAND_PATH)) 83 UNIXCOMMAND_PATH :=$(call PrefixPath,$(fxALT_UNIXCOMMAND_PATH)) 84 else 85 # assume commands are in PATH 86 UNIXCOMMAND_PATH := 87 endif 88 UNIXCOMMAND_PATH:=$(call AltCheckSpaces,UNIXCOMMAND_PATH) 89 90 # DEVTOOLS_PATH: for other tools required for building (such as zip, etc.) 91 # NOTE: Must end with / so that it could be empty, allowing PATH usage. 92 ifdef ALT_DEVTOOLS_PATH 93 xALT_DEVTOOLS_PATH :="$(subst \,/,$(ALT_DEVTOOLS_PATH))" 94 fxALT_DEVTOOLS_PATH :=$(call FullPath,$(xALT_DEVTOOLS_PATH)) 95 DEVTOOLS_PATH :=$(call PrefixPath,$(fxALT_DEVTOOLS_PATH)) 96 else 97 DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH) 98 endif 99 DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH) 100 101 # _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK. 102 # _BOOTDIR2: Second choice 103 ifndef ALT_BOOTDIR 104 _BOOTDIR1 =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION) 105 _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) 106 endif 107 -
trunk/openjdk/jdk/make/common/shared/Defs-utils.gmk
r2 r10 32 32 # Unix Commands: Normally /bin/, /usr/bin/. or C:/mksnt/mksnt/ 33 33 # UTILS_COMMAND_PATH 34 # /usr/bin/ 34 # /usr/bin/ 35 35 # UTILS_USR_BIN_PATH 36 36 # /usr/ccs/bin/ (sccs, m4, lex, yacc, as, ar, strip, mcs) … … 61 61 endif 62 62 63 ifeq ($( PLATFORM),windows)63 ifeq ($(filter-out windows os2,$(PLATFORM)),) 64 64 UTILS_COMMAND_PATH=$(UNIXCOMMAND_PATH) 65 65 UTILS_USR_BIN_PATH=$(UNIXCOMMAND_PATH) … … 172 172 endif 173 173 174 # OS/2 specific 175 ifeq ($(PLATFORM),os2) 176 ECHO = $(UNIXCOMMAND_PATH)echo -e 177 NAWK = $(UNIXCOMMAND_PATH)awk 178 endif 179 174 180 # Linux specific 175 181 ifeq ($(PLATFORM),linux) -
trunk/openjdk/jdk/make/common/shared/Sanity.gmk
r2 r10 95 95 DXSDK_VER := $(shell $(EGREP) DIRECTDRAW_VERSION $(DXSDK_INCLUDE_PATH)/ddraw.h 2>&1 | \ 96 96 $(EGREP) "\#define" | $(NAWK) '{print $$3}') 97 endif 98 99 ifeq ($(PLATFORM), os2) 100 FREE_SPACE := $(shell $(DF) -kP $(OUTPUTDIR) | $(TAIL) -1 | $(NAWK) '{print $$4;}') 101 TEMP_FREE_SPACE := $(shell $(DF) -kP $(TEMP_DISK) | $(TAIL) -1 | $(NAWK) '{print $$4;}') 97 102 endif 98 103 … … 217 222 # Check the BUILD_NUMBER to make sure it contains bNN 218 223 ###################################################### 219 sane-build_number: 224 sane-build_number: 220 225 @if [ "`$(ECHO) $(BUILD_NUMBER) | $(SED) 's@.*b[0-9][0-9]*.*@bNN@'`" != "bNN" ] ; then \ 221 226 $(ECHO) "WARNING: The BUILD_NUMBER needs to contain b[0-9][0-9]*. Currently BUILD_NUMBER=$(BUILD_NUMBER). \n" \ … … 290 295 ###################################################### 291 296 sane-locale: 292 ifneq ($( PLATFORM), windows)297 ifneq ($(filter-out windows os2,$(PLATFORM)),) 293 298 @if [ "$(LC_ALL)" != "" -a "$(LC_ALL)" != "C" ]; then \ 294 299 $(ECHO) "WARNING: LC_ALL has been set to $(LC_ALL), this can cause build failures. \n" \ … … 662 667 "" >> $(ERROR_FILE) ; \ 663 668 fi 664 ifeq ($( PLATFORM), windows)669 ifeq ($(filter-out windows os2,$(PLATFORM)),) 665 670 @if [ `$(ECHO) $(subst \,/,$(ALT_OUTPUTDIR)) | $(EGREP) -ci '^([a-z]:)'` -ne 1 ]; then \ 666 $(ECHO) "ERROR: On windows, ALT_OUTPUTDIR must contain the drive letter. \n" \671 $(ECHO) "ERROR: On Windows and OS/2, ALT_OUTPUTDIR must contain the drive letter. \n" \ 667 672 "" >> $(ERROR_FILE) ; \ 668 673 fi … … 778 783 MOTIF_CHECK_FILE=$(MOTIF_INCLUDE)/Xm/AtomMgr.h 779 784 sane-motif: 780 ifneq ($( PLATFORM), windows)785 ifneq ($(filter-out windows os2,$(PLATFORM)),) 781 786 ifeq ($(MOTIF_REQUIRED), true) 782 787 ifeq ($(PLATFORM), solaris) … … 788 793 "" >> $(ERROR_FILE) ; \ 789 794 fi 790 endif 795 endif 791 796 ifeq ($(PLATFORM), linux) 792 797 @if [ ! -r $(MOTIF_LIB)/libXm.a ]; then \ … … 797 802 "" >> $(ERROR_FILE) ; \ 798 803 fi 799 endif 800 endif 804 endif 805 endif 801 806 @if [ ! -r $(MOTIF_CHECK_FILE) ]; then \ 802 807 $(ECHO) "ERROR: You do not have access to valid Motif 2.1 header files. \n" \ … … 833 838 else 834 839 #do nothing (not OpenJDK) 835 sane-freetype: 840 sane-freetype: 836 841 endif 837 842 … … 1080 1085 "" >> $(WARNING_FILE) ; \ 1081 1086 fi 1082 endif 1087 endif 1083 1088 1084 1089 … … 1106 1111 1107 1112 # Compare an interface file (Rule creates 2 temp files: %.h and %.h.IMPORT) 1108 # Files jvm.h, jvm_md.h and jmm.h are special in that they are not publicly 1113 # Files jvm.h, jvm_md.h and jmm.h are special in that they are not publicly 1109 1114 # exported but do represent VM interfaces used by the rest of the jdk. 1110 1115 # So these 3 will not be found in a promoted build and can only … … 1218 1223 1219 1224 ifeq ($(INCLUDE_SA), true) 1220 # Verify that hotspot Serviceability Agent files are present. To keep 1221 # it simple, we will just check for one of them. The others have arch 1225 # Verify that hotspot Serviceability Agent files are present. To keep 1226 # it simple, we will just check for one of them. The others have arch 1222 1227 # dependent paths. 1223 1228 … … 1327 1332 " and/or check your value of ALT_UNICOWS_LIB_PATH \n" \ 1328 1333 "" >> $(ERROR_FILE) ; \ 1329 fi 1334 fi 1330 1335 @if [ ! -r "$(UNICOWS_DLL_PATH)/unicows.dll" ]; then \ 1331 1336 $(ECHO) "ERROR: You do not have access to the Microsoft Layer for Unicode (MSLU) runtime files.\n" \ … … 1334 1339 " and/or check your value of ALT_UNICOWS_DLL_PATH \n" \ 1335 1340 "" >> $(ERROR_FILE) ; \ 1336 fi 1341 fi 1337 1342 endif 1338 1343 endif … … 1403 1408 1404 1409 ###################################################### 1405 # Check that ALSA headers and libs are installed and 1410 # Check that ALSA headers and libs are installed and 1406 1411 # that the header has the right version. We only 1407 1412 # need /usr/include/alsa/*.h and /usr/lib/libasound.so
Note:
See TracChangeset
for help on using the changeset viewer.