- Location:
- /trunk
- Files:
-
- 4 deleted
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk
- Property svn:ignore deleted
-
/trunk/LocalEnv.tpl.cmd
r30 r20 43 43 44 44 /** 45 * Generate include file dependencies for C/C++ sources.46 */47 call EnvSet 'INCREMENTAL_BUILD', 'true'48 49 /**50 45 * Here you may put any additional environment variable definitions needed for 51 46 * your local environment or for the OpenJDK make files using the form shown -
/trunk/README
r30 r20 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 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) 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) 11 9 12 10 Copy LocalEnv.tpl.cmd to LocalEnv.cmd and alter according to your environment -
/trunk/env.cmd
r30 r20 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)88 87 call EnvSetIfEmtpy 'ALT_FREETYPE_HEADERS_PATH', UnixSlashes(ScriptDir'libs\freetype\include') 89 88 call EnvSetIfEmtpy 'ALT_FREETYPE_LIB_PATH', UnixSlashes(ScriptDir'libs\freetype\lib') -
/trunk/openjdk/Makefile
r30 r20 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)387 386 388 387 # Make variables to print out (description and value) … … 403 402 JDK_IMPORT_PATH \ 404 403 COMPILER_PATH \ 405 DEVTOOLS_PATH 404 DEVTOOLS_PATH 406 405 407 406 # Make variables that should refer to files that exist … … 421 420 MSDEVTOOLS_PATH \ 422 421 MSVCRT_DLL_PATH 423 424 endif425 426 # Some are OS/2 specific427 ifeq ($(PLATFORM), os2)428 429 VARIABLE_PRINTVAL_LIST += \430 ODINSDK_PATH431 432 VARIABLE_CHECKDIR_LIST += \433 ODINSDK_PATH434 422 435 423 endif … … 495 483 # Cycle build. Build the jdk, use it to build the jdk again. 496 484 ################################################################ 497 485 498 486 ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk 499 487 500 488 boot_cycle: 501 489 $(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) product_build -
/trunk/openjdk/jdk/make/Makefile
r30 r20 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)109 108 110 109 # Make variables to print out (description and value) … … 152 151 UNICOWS_DLL_PATH \ 153 152 UNICOWS_LIB_PATH 154 155 endif156 157 # Some are OS/2 specific158 ifeq ($(PLATFORM), os2)159 160 VARIABLE_PRINTVAL_LIST += \161 ODINSDK_PATH162 163 VARIABLE_CHECKDIR_LIST += \164 ODINSDK_PATH165 153 166 154 endif … … 225 213 # 'all' target intro 226 214 # 227 all:: 215 all:: 228 216 @$(ECHO) $(PLATFORM) $(ARCH) $(RELEASE) build started: $(shell $(DATE) '+%y-%m-%d %H:%M') 229 217 … … 295 283 # workspace, and if it is a Teamware workspace, then see if there are 296 284 # any files which are not under SCCS control. 297 clean clobber:: 285 clean clobber:: 298 286 ifndef EXTERNALSANITYCONTROL 299 287 @if [ -d $(TOPDIR)/Codemgr_wsdata ]; then \ -
/trunk/openjdk/jdk/make/common/Defs-os2.gmk
r30 r20 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 51 45 ifndef PLATFORM_SRC 52 # We mostly reuse the windows code so far. 53 PLATFORM_SRC = $(BUILDDIR)/../src/windows 46 PLATFORM_SRC = $(BUILDDIR)/../src/os2 54 47 endif # PLATFORM_SRC 55 48 … … 82 75 # level. 83 76 # 84 HPIS = windows77 HPIS = os2 85 78 86 79 # … … 141 134 # Linker options 142 135 # 143 LDFLAGS_COMMON = -Zomf -Z map -Zstack 0x2000 -Zlinker "DISABLE 1121" -Zhigh-mem136 LDFLAGS_COMMON = -Zomf -Zstack 0x2000 -Zlinker "DISABLE 1121" -Zhigh-mem 144 137 LDFLAGS_OPT = -s 145 138 LDFLAGS_DBG = 146 147 #148 # Additional libraries needed by all targets149 #150 151 CPPFLAGS_COMMON += -D__WIN32OS2__ -D__i386__ -DSTRICT -D_POSIX_SOURCE \152 -D_POSIX_C_SOURCE=200112153 CPPFLAGS_COMMON += -I$(ODINSDK_PATH)/include/Win -I$(ODINSDK_PATH)/include154 LDFLAGS_COMMON += -L$(ODINSDK_PATH)/lib -L$(ODINSDK_PATH)/lib/Release155 EXTRA_LIBS +=156 139 157 140 # -
/trunk/openjdk/jdk/make/common/Library.gmk
r30 r20 40 40 41 41 ifeq ($(LIBRARY), fdlibm) 42 ifeq ($( filter-out windows os2,$(PLATFORM)),)42 ifeq ($(PLATFORM),windows) 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
r30 r20 73 73 sane-ant_version \ 74 74 sane-zip_version \ 75 sane-msvcrt_path \ 76 sane-odinsdk 75 sane-msvcrt_path 77 76 78 77 # The rules sanity-* have a one-to-one correspondence with the major targets -
/trunk/openjdk/jdk/make/common/internal/NativeCompileRules.gmk
r30 r20 47 47 @$(ECHO) "Creating $@" 48 48 @$(RM) $@.temp 49 @$(CC) $(CC_DEPEND) $(CPPFLAGS) $< 2> $(DEV_NULL) \ 50 $(if $(CC_DEPEND_FILTER), | $(CC_DEPEND_FILTER)) \ 51 > $@.temp 49 @$(CC) $(CC_DEPEND) $(CPPFLAGS) $< 2> $(DEV_NULL) | \ 50 $(CC_DEPEND_FILTER) > $@.temp 52 51 @$(MV) $@.temp $@ 53 52 … … 56 55 @$(ECHO) "Creating $@" 57 56 @$(RM) $@.temp 58 @$(CXX) $(CC_DEPEND) $(CPPFLAGS) $(CXXFLAGS) $< 2> $(DEV_NULL) \ 59 $(if $(CC_DEPEND_FILTER), | $(CC_DEPEND_FILTER)) \ 60 > $@.temp 57 @$(CXX) $(CC_DEPEND) $(CPPFLAGS) $(CXXFLAGS) $< 2> $(DEV_NULL) | \ 58 $(CC_DEPEND_FILTER) > $@.temp 61 59 @$(MV) $@.temp $@ 62 60 -
/trunk/openjdk/jdk/make/common/shared/Defs-os2.gmk
r30 r20 49 49 # Indication that we are doing an incremental build. 50 50 # This may trigger the creation of make depend files. 51 ifndef INCREMENTAL_BUILD 52 INCREMENTAL_BUILD = false 53 endif 51 # (This may not be working on windows yet, always force to false.) 52 override INCREMENTAL_BUILD = false 54 53 55 54 # FullPath just makes sure it never ends with a / and no duplicates … … 141 140 _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) 142 141 endif 143 144 # ODINSDK_PATH: Path to the root directory of Odin32 SDK145 ifdef ALT_ODINSDK_PATH146 xALT_ODINSDK_PATH :="$(subst \,/,$(ALT_ODINSDK_PATH))"147 ODINSDK_PATH :=$(call FullPath,$(xALT_ODINSDK_PATH))148 endif149 ODINSDK_PATH :=$(call AltCheckSpaces,ODINSDK_PATH)150 ODINSDK_PATH :=$(call AltCheckValue,ODINSDK_PATH)151 142 152 143 # Import JDK images allow for partial builds, components not built are -
/trunk/openjdk/jdk/make/common/shared/Platform.gmk
r30 r20 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
r30 r20 247 247 endif 248 248 endif 249 ifeq ($(PLATFORM),os2)250 ALL_SETTINGS+=$(call addAltSetting,ODINSDK_PATH)251 endif252 249 ALL_SETTINGS+=$(call addAltSetting,CACERTS_FILE) 253 250 ifndef OPENJDK -
/trunk/openjdk/jdk/make/common/shared/Sanity.gmk
r30 r20 1344 1344 1345 1345 ###################################################### 1346 # Check for Odin32 SDK directory1347 ######################################################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 fi1358 @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 fi1368 endif1369 1370 ######################################################1371 1346 # Check the linker version(s) 1372 1347 ###################################################### -
/trunk/openjdk/langtools/make/Makefile
r30 r20 149 149 ifdef FINDBUGS_HOME 150 150 ANT_OPTIONS += -Dfindbugs.home=$(FINDBUGS_HOME) 151 endif152 153 ifeq ($(PLATFORM), os2)154 # system classpath isn't necessary for the build but it's usually long (due to155 # ant jars) and passing it to javac started through cmd.exe (as in case of156 # fork=yes) causes cmd.exe to crash with SYS0008, so disable this157 ANT_OPTIONS += -Dbuild.sysclasspath=ignore158 151 endif 159 152 -
/trunk/openjdk/langtools/make/build.xml
r30 r20 79 79 </condition> 80 80 <condition property="java.marker" value="bin/java.exe"> 81 <or> 82 <os family="windows"/> 83 <os family="os/2"/> 84 </or> 81 <os family="windows"/> 85 82 </condition> 86 83
Note:
See TracChangeset
for help on using the changeset viewer.