- Location:
- /trunk
- Files:
-
- 4 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk
-
Property svn:ignore
set to
LocalEnv.cmd
-
Property svn:ignore
set to
-
/trunk/LocalEnv.tpl.cmd
r20 r30 43 43 44 44 /** 45 * Generate include file dependencies for C/C++ sources. 46 */ 47 call EnvSet 'INCREMENTAL_BUILD', 'true' 48 49 /** 45 50 * Here you may put any additional environment variable definitions needed for 46 51 * your local environment or for the OpenJDK make files using the form shown -
/trunk/README
r20 r30 3 3 Requirements (draft) 4 4 5 1. GCC 4.4.2 + WLINK (ftp://ftp.netlabs.org/pub/qt4/gcc-4_4_2-complete-20091205.zip) 6 2. Odin32 SDK (take from SVN at http://svn.netlabs.org/repos/odin32) 7 3. Java 1.5.0 (so far, download link is to be clarified) 8 4. Ant 1.8.1 and above (http://ant.apache.org/bindownload.cgi) 5 1. GCC 4.4.2 + WLINK (ftp://ftp.netlabs.org/pub/qt4/gcc-4_4_2-complete-20091205.zip) 6 2. Odin32 SDK (take from SVN at http://svn.netlabs.org/repos/odin32) 7 3a. Java 1.5.0 (so far, download link is to be clarified) 8 3b. JAXB 2.1 (https://jaxb.dev.java.net/2.1/JAXB2_20061211.jar) 9 4a. Ant 1.8.1 (http://ant.apache.org/bindownload.cgi) 10 4b. Patched ant.jar for Ant 1.8.1 (ftp://ftp.netlabs.org/pub/qt4/tmp/ant-1.8.1-patch-os2_cmd_line_length.zip) 9 11 10 12 Copy LocalEnv.tpl.cmd to LocalEnv.cmd and alter according to your environment -
/trunk/env.cmd
r20 r30 85 85 */ 86 86 call EnvSetIfEmtpy 'ALT_BOOTDIR', UnixSlashes(G.PATH_TOOL_BOOT_JDK) 87 call EnvSetIfEmtpy 'ALT_ODINSDK_PATH', UnixSlashes(G.PATH_LIB_ODIN32) 87 88 call EnvSetIfEmtpy 'ALT_FREETYPE_HEADERS_PATH', UnixSlashes(ScriptDir'libs\freetype\include') 88 89 call EnvSetIfEmtpy 'ALT_FREETYPE_LIB_PATH', UnixSlashes(ScriptDir'libs\freetype\lib') -
/trunk/openjdk/Makefile
r20 r30 116 116 endif 117 117 118 build:: sanity 118 build:: sanity 119 119 120 120 clobber:: … … 141 141 142 142 ifeq ($(BUILD_HOTSPOT), true) 143 build:: $(HOTSPOT) 143 build:: $(HOTSPOT) 144 144 clobber:: hotspot-clobber 145 145 endif … … 168 168 # ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix 169 169 # The resulting j2sdk-image is used by the install makefiles to create a 170 # debug install bundle jdk-*-debug-** bundle (tar or zip) 170 # debug install bundle jdk-*-debug-** bundle (tar or zip) 171 171 # which will install in the debug or fastdebug subdirectory of the 172 172 # normal product install area. … … 281 281 @$(ECHO) "=================================================" 282 282 @$(ECHO) " " 283 283 284 284 endif 285 285 endif … … 294 294 clean: clobber 295 295 296 all:: 296 all:: 297 297 @$(ECHO) Control build finished: `$(DATE) '+%y-%m-%d %H:%M'` 298 298 … … 384 384 MSDEVTOOLS_PATH.desc = Root directory of VC++ tools (e.g. rc.exe) 385 385 MSVCRT_DLL_PATH.desc = Directory containing mscvrt.dll 386 ODINSDK_PATH.desc = Root directory of Odin32 SDK (OS/2) 386 387 387 388 # Make variables to print out (description and value) … … 402 403 JDK_IMPORT_PATH \ 403 404 COMPILER_PATH \ 404 DEVTOOLS_PATH 405 DEVTOOLS_PATH 405 406 406 407 # Make variables that should refer to files that exist … … 420 421 MSDEVTOOLS_PATH \ 421 422 MSVCRT_DLL_PATH 423 424 endif 425 426 # Some are OS/2 specific 427 ifeq ($(PLATFORM), os2) 428 429 VARIABLE_PRINTVAL_LIST += \ 430 ODINSDK_PATH 431 432 VARIABLE_CHECKDIR_LIST += \ 433 ODINSDK_PATH 422 434 423 435 endif … … 483 495 # Cycle build. Build the jdk, use it to build the jdk again. 484 496 ################################################################ 485 497 486 498 ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk 487 499 488 500 boot_cycle: 489 501 $(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) product_build -
/trunk/openjdk/jdk/make/Makefile
r20 r30 106 106 UNICOWS_DLL_PATH.desc = Directory containing unicows.dll 107 107 UNICOWS_LIB_PATH.desc = Directory containing unicows.lib 108 ODINSDK_PATH.desc = Root directory of Odin32 SDK (OS/2) 108 109 109 110 # Make variables to print out (description and value) … … 151 152 UNICOWS_DLL_PATH \ 152 153 UNICOWS_LIB_PATH 154 155 endif 156 157 # Some are OS/2 specific 158 ifeq ($(PLATFORM), os2) 159 160 VARIABLE_PRINTVAL_LIST += \ 161 ODINSDK_PATH 162 163 VARIABLE_CHECKDIR_LIST += \ 164 ODINSDK_PATH 153 165 154 166 endif … … 213 225 # 'all' target intro 214 226 # 215 all:: 227 all:: 216 228 @$(ECHO) $(PLATFORM) $(ARCH) $(RELEASE) build started: $(shell $(DATE) '+%y-%m-%d %H:%M') 217 229 … … 283 295 # workspace, and if it is a Teamware workspace, then see if there are 284 296 # any files which are not under SCCS control. 285 clean clobber:: 297 clean clobber:: 286 298 ifndef EXTERNALSANITYCONTROL 287 299 @if [ -d $(TOPDIR)/Codemgr_wsdata ]; then \ -
/trunk/openjdk/jdk/make/common/Defs-os2.gmk
r20 r30 43 43 endif # LIB_LOCATION 44 44 45 # Part of INCREMENTAL_BUILD mechanism. 46 # Compiler emits things like: file.obj: file.c file.h... 47 # We want something like: obj_path/file.obj: file.c file.h... 48 CC_DEPEND = -MM -MT $(@:$(suffix $@)=.$(OBJECT_SUFFIX)) 49 CC_DEPEND_FILTER = 50 45 51 ifndef PLATFORM_SRC 46 PLATFORM_SRC = $(BUILDDIR)/../src/os2 52 # We mostly reuse the windows code so far. 53 PLATFORM_SRC = $(BUILDDIR)/../src/windows 47 54 endif # PLATFORM_SRC 48 55 … … 75 82 # level. 76 83 # 77 HPIS = os284 HPIS = windows 78 85 79 86 # … … 134 141 # Linker options 135 142 # 136 LDFLAGS_COMMON = -Zomf -Z stack 0x2000 -Zlinker "DISABLE 1121" -Zhigh-mem143 LDFLAGS_COMMON = -Zomf -Zmap -Zstack 0x2000 -Zlinker "DISABLE 1121" -Zhigh-mem 137 144 LDFLAGS_OPT = -s 138 145 LDFLAGS_DBG = 146 147 # 148 # Additional libraries needed by all targets 149 # 150 151 CPPFLAGS_COMMON += -D__WIN32OS2__ -D__i386__ -DSTRICT -D_POSIX_SOURCE \ 152 -D_POSIX_C_SOURCE=200112 153 CPPFLAGS_COMMON += -I$(ODINSDK_PATH)/include/Win -I$(ODINSDK_PATH)/include 154 LDFLAGS_COMMON += -L$(ODINSDK_PATH)/lib -L$(ODINSDK_PATH)/lib/Release 155 EXTRA_LIBS += 139 156 140 157 # -
/trunk/openjdk/jdk/make/common/Library.gmk
r20 r30 40 40 41 41 ifeq ($(LIBRARY), fdlibm) 42 ifeq ($( PLATFORM),windows)42 ifeq ($(filter-out windows os2,$(PLATFORM)),) 43 43 ACTUAL_LIBRARY_NAME = $(LIB_PREFIX)$(LIBRARY).$(FDDLIBM_SUFFIX) 44 44 ACTUAL_LIBRARY_DIR = $(OBJDIR) … … 177 177 @$(OBJDIR)/$(LIBRARY).lcf $(OTHER_LCF) $(LDLIBS_COMMON) 178 178 else # LIBRARY 179 # build it into $(OBJDIR) so that the other generated files get put 179 # build it into $(OBJDIR) so that the other generated files get put 180 180 # there, then copy just the DLL (and MAP file) to the requested directory. 181 181 # … … 196 196 @$(prep-target) 197 197 @$(MKDIR) -p $(TEMPDIR) 198 @$(ECHO) $(FILES_o) > $@ 198 @$(ECHO) $(FILES_o) > $@ 199 199 ifndef LOCAL_RESOURCE_FILE 200 200 @$(ECHO) $(OBJDIR)/$(LIBRARY).res >> $@ 201 201 endif 202 @$(ECHO) Created $@ 202 @$(ECHO) Created $@ 203 203 204 204 # J2SE name required here … … 219 219 $(ACTUAL_LIBRARY):: $(LIBDIR)/$(LIBRARY).lib 220 220 221 clean:: 221 clean:: 222 222 -$(RM) $(LIBDIR)/$(LIBRARY).lib 223 223 … … 257 257 ifeq ($(PLATFORM),solaris) 258 258 lint.errors : $(FILES_ln) 259 $(LINT.c) $(FILES_ln) $(LDLIBS) 259 $(LINT.c) $(FILES_ln) $(LDLIBS) 260 260 endif 261 261 -
/trunk/openjdk/jdk/make/common/Sanity.gmk
r20 r30 73 73 sane-ant_version \ 74 74 sane-zip_version \ 75 sane-msvcrt_path 75 sane-msvcrt_path \ 76 sane-odinsdk 76 77 77 78 # The rules sanity-* have a one-to-one correspondence with the major targets -
/trunk/openjdk/jdk/make/common/internal/NativeCompileRules.gmk
r20 r30 47 47 @$(ECHO) "Creating $@" 48 48 @$(RM) $@.temp 49 @$(CC) $(CC_DEPEND) $(CPPFLAGS) $< 2> $(DEV_NULL) | \ 50 $(CC_DEPEND_FILTER) > $@.temp 49 @$(CC) $(CC_DEPEND) $(CPPFLAGS) $< 2> $(DEV_NULL) \ 50 $(if $(CC_DEPEND_FILTER), | $(CC_DEPEND_FILTER)) \ 51 > $@.temp 51 52 @$(MV) $@.temp $@ 52 53 … … 55 56 @$(ECHO) "Creating $@" 56 57 @$(RM) $@.temp 57 @$(CXX) $(CC_DEPEND) $(CPPFLAGS) $(CXXFLAGS) $< 2> $(DEV_NULL) | \ 58 $(CC_DEPEND_FILTER) > $@.temp 58 @$(CXX) $(CC_DEPEND) $(CPPFLAGS) $(CXXFLAGS) $< 2> $(DEV_NULL) \ 59 $(if $(CC_DEPEND_FILTER), | $(CC_DEPEND_FILTER)) \ 60 > $@.temp 59 61 @$(MV) $@.temp $@ 60 62 -
/trunk/openjdk/jdk/make/common/shared/Defs-os2.gmk
r20 r30 49 49 # Indication that we are doing an incremental build. 50 50 # This may trigger the creation of make depend files. 51 # (This may not be working on windows yet, always force to false.) 52 override INCREMENTAL_BUILD = false 51 ifndef INCREMENTAL_BUILD 52 INCREMENTAL_BUILD = false 53 endif 53 54 54 55 # FullPath just makes sure it never ends with a / and no duplicates … … 140 141 _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) 141 142 endif 143 144 # ODINSDK_PATH: Path to the root directory of Odin32 SDK 145 ifdef ALT_ODINSDK_PATH 146 xALT_ODINSDK_PATH :="$(subst \,/,$(ALT_ODINSDK_PATH))" 147 ODINSDK_PATH :=$(call FullPath,$(xALT_ODINSDK_PATH)) 148 endif 149 ODINSDK_PATH :=$(call AltCheckSpaces,ODINSDK_PATH) 150 ODINSDK_PATH :=$(call AltCheckValue,ODINSDK_PATH) 142 151 143 152 # Import JDK images allow for partial builds, components not built are -
/trunk/openjdk/jdk/make/common/shared/Platform.gmk
r20 r30 408 408 DEV_NULL = nul 409 409 # Classpath separator 410 CLASSPATH_SEPARATOR = ;410 CLASSPATH_SEPARATOR = \; 411 411 # The suffix used for object file (.o for unix .obj for windows) 412 412 OBJECT_SUFFIX = obj -
/trunk/openjdk/jdk/make/common/shared/Sanity-Settings.gmk
r20 r30 247 247 endif 248 248 endif 249 ifeq ($(PLATFORM),os2) 250 ALL_SETTINGS+=$(call addAltSetting,ODINSDK_PATH) 251 endif 249 252 ALL_SETTINGS+=$(call addAltSetting,CACERTS_FILE) 250 253 ifndef OPENJDK -
/trunk/openjdk/jdk/make/common/shared/Sanity.gmk
r20 r30 1344 1344 1345 1345 ###################################################### 1346 # Check for Odin32 SDK directory 1347 ###################################################### 1348 sane-odinsdk: 1349 ifeq ($(PLATFORM), os2) 1350 @if [ ! -r $(ODINSDK_PATH)/include/odin.h ]; then \ 1351 $(ECHO) "ERROR: You do not have access to a valid Odin32 SDK include dir.\n" \ 1352 " The value of ODINSDK_PATH must point a valid Odin32 SDK dir.\n" \ 1353 " Please check your access to \n" \ 1354 " $(ODINSDK_PATH)/include \n" \ 1355 " and/or check your value of ALT_ODINSDK_PATH.\n" \ 1356 "" >> $(ERROR_FILE) ; \ 1357 fi 1358 @if [ ! -r $(ODINSDK_PATH)/lib/odincrt.lib -a \ 1359 ! -r $(ODINSDK_PATH)/lib/Release/odincrt.lib ]; then \ 1360 $(ECHO) "ERROR: You do not have access to a valid Odin32 SDK lib dir.\n" \ 1361 " The value of ODINSDK_PATH must point a valid Odin32 SDK dir.\n" \ 1362 " Please check your access to \n" \ 1363 " $(ODINSDK_PATH)/lib or \n" \ 1364 " $(ODINSDK_PATH)/lib/Release \n" \ 1365 " and/or check your value of ALT_ODINSDK_PATH.\n" \ 1366 "" >> $(ERROR_FILE) ; \ 1367 fi 1368 endif 1369 1370 ###################################################### 1346 1371 # Check the linker version(s) 1347 1372 ###################################################### -
/trunk/openjdk/langtools/make/Makefile
r20 r30 149 149 ifdef FINDBUGS_HOME 150 150 ANT_OPTIONS += -Dfindbugs.home=$(FINDBUGS_HOME) 151 endif 152 153 ifeq ($(PLATFORM), os2) 154 # system classpath isn't necessary for the build but it's usually long (due to 155 # ant jars) and passing it to javac started through cmd.exe (as in case of 156 # fork=yes) causes cmd.exe to crash with SYS0008, so disable this 157 ANT_OPTIONS += -Dbuild.sysclasspath=ignore 151 158 endif 152 159 -
/trunk/openjdk/langtools/make/build.xml
r20 r30 79 79 </condition> 80 80 <condition property="java.marker" value="bin/java.exe"> 81 <os family="windows"/> 81 <or> 82 <os family="windows"/> 83 <os family="os/2"/> 84 </or> 82 85 </condition> 83 86
Note:
See TracChangeset
for help on using the changeset viewer.