1 | #
|
---|
2 | # Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
|
---|
3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
---|
4 | #
|
---|
5 | # This code is free software; you can redistribute it and/or modify it
|
---|
6 | # under the terms of the GNU General Public License version 2 only, as
|
---|
7 | # published by the Free Software Foundation.
|
---|
8 | #
|
---|
9 | # This code is distributed in the hope that it will be useful, but WITHOUT
|
---|
10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
---|
11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
---|
12 | # version 2 for more details (a copy is included in the LICENSE file that
|
---|
13 | # accompanied this code).
|
---|
14 | #
|
---|
15 | # You should have received a copy of the GNU General Public License version
|
---|
16 | # 2 along with this work; if not, write to the Free Software Foundation,
|
---|
17 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
---|
18 | #
|
---|
19 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
---|
20 | # CA 95054 USA or visit www.sun.com if you need additional information or
|
---|
21 | # have any questions.
|
---|
22 | #
|
---|
23 | #
|
---|
24 |
|
---|
25 | # The common definitions for hotspot OS/2 builds.
|
---|
26 | # Include the top level defs.make under make directory instead of this one.
|
---|
27 | # This file is included into make/defs.make.
|
---|
28 | # On OS/2 it is only used to construct parameters for
|
---|
29 | # make/os2/build.make when make/Makefile is used to build VM.
|
---|
30 |
|
---|
31 | SLASH_JAVA ?= J:
|
---|
32 | PATH_SEP = ;
|
---|
33 |
|
---|
34 | # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
|
---|
35 | ARCH_DATA_MODEL=32
|
---|
36 | PLATFORM=os2-i586
|
---|
37 | VM_PLATFORM=os2_i486
|
---|
38 | HS_ARCH=x86
|
---|
39 | MAKE_ARGS += ARCH=x86
|
---|
40 | MAKE_ARGS += BUILDARCH=i486
|
---|
41 | MAKE_ARGS += Platform_arch=x86
|
---|
42 | MAKE_ARGS += Platform_arch_model=x86_32
|
---|
43 |
|
---|
44 | JDK_INCLUDE_SUBDIR=os2
|
---|
45 |
|
---|
46 | ifndef USERNAME
|
---|
47 | USERNAME := $(USER)
|
---|
48 | endif
|
---|
49 |
|
---|
50 | # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
|
---|
51 | # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
|
---|
52 |
|
---|
53 | # next parameters are defined in $(GAMMADIR)/make/defs.make.
|
---|
54 | MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
|
---|
55 | MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION)
|
---|
56 | MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
|
---|
57 | MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
|
---|
58 |
|
---|
59 | ifdef COOKED_JDK_UPDATE_VERSION
|
---|
60 | MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
|
---|
61 | endif
|
---|
62 |
|
---|
63 | # COOKED_BUILD_NUMBER should only be set if we have a numeric
|
---|
64 | # build number. It must not be zero padded.
|
---|
65 | ifdef COOKED_BUILD_NUMBER
|
---|
66 | MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
|
---|
67 | endif
|
---|
68 |
|
---|
69 | NMAKE=make
|
---|
70 |
|
---|
71 | # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
|
---|
72 | VM_DEBUG=debug
|
---|
73 |
|
---|
74 | ABS_OUTPUTDIR := $(shell mkdir -p $(OUTPUTDIR); $(CD) $(OUTPUTDIR); $(PWD))
|
---|
75 | ABS_BOOTDIR := $(shell $(CD) $(BOOTDIR); $(PWD))
|
---|
76 | ABS_GAMMADIR := $(shell $(CD) $(GAMMADIR); $(PWD))
|
---|
77 | ABS_OS_MAKEFILE := $(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME); $(PWD))/build.make
|
---|
78 |
|
---|
79 | # Disable building SA on OS/2 until we are sure
|
---|
80 | # we want to release it. If we build it here,
|
---|
81 | # the SDK makefiles will copy it over and put it into
|
---|
82 | # the created image.
|
---|
83 | BUILD_OS2_SA = 0
|
---|
84 | ifneq ($(ALT_BUILD_OS2_SA),)
|
---|
85 | BUILD_OS2_SA = $(ALT_BUILD_OS2_SA)
|
---|
86 | endif
|
---|
87 |
|
---|
88 | ifndef BUILD_CLIENT_ONLY
|
---|
89 | EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server
|
---|
90 | EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
|
---|
91 | EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.dll
|
---|
92 | EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.map
|
---|
93 | endif
|
---|
94 |
|
---|
95 | EXPORT_LIST += $(EXPORT_LIB_DIR)/jvm.lib
|
---|
96 |
|
---|
97 | EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client
|
---|
98 | EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
|
---|
99 | EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.dll
|
---|
100 | EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.map
|
---|
101 |
|
---|
102 | ifndef BUILD_CLIENT_ONLY
|
---|
103 | # kernel vm
|
---|
104 | EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel
|
---|
105 | EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt
|
---|
106 | EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.dll
|
---|
107 | EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map
|
---|
108 | endif
|
---|
109 |
|
---|
110 | ifeq ($(BUILD_OS2_SA), 1)
|
---|
111 | EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/saos2dbg.dll
|
---|
112 | EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/saos2dbg.map
|
---|
113 | EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
|
---|
114 | # Must pass this down to make.
|
---|
115 | MAKE_ARGS += BUILD_OS2_SA=1
|
---|
116 | endif
|
---|