@@ -23,13 +23,14 @@ include LibCommon.gmk
23
23
ifeq (true,$(BUILD_OPENJCEPLUS))
24
24
25
25
# Identify the desired JGSKIT target platform.
26
- OPENJCEPLUS_BOOT_JDK := $(BOOT_JDK)
26
+ EXPORT_COMPILER_ENV_VARS :=
27
+ OPENJCEPLUS_JDK := $(JDK_OUTPUTDIR)
27
28
OPENJCEPLUS_GSKIT_HOME := $(OPENJCEPLUS_TOPDIR)/ock/jgsk_sdk
29
+ OPENJCEPLUS_HEADER_FILES := $(SUPPORT_OUTPUTDIR)/headers/openjceplus
28
30
OPENJCEPLUS_JCE_CLASSPATH := $(JDK_OUTPUTDIR)/modules/openjceplus:$(JDK_OUTPUTDIR)/modules/java.base
29
31
OPENJCEPLUS_JGSKIT_MAKE := jgskit.mak
30
32
OPENJCEPLUS_JGSKIT_MAKE_PATH := $(OPENJCEPLUS_TOPDIR)/src/main/native
31
33
OPENJCEPLUS_JGSKIT_PLATFORM :=
32
- OPENJCEPLUS_VS_LIB :=
33
34
34
35
ifeq ($(call isTargetOs, aix), true)
35
36
OPENJCEPLUS_JGSKIT_PLATFORM := ppc-aix64
@@ -43,12 +44,13 @@ else ifeq ($(call isTargetOs, linux), true)
43
44
endif
44
45
else ifeq ($(call isTargetOs, windows), true)
45
46
ifeq ($(call isTargetCpu, x86_64), true)
46
- OPENJCEPLUS_BOOT_JDK := $(call MixedPath,$(OPENJCEPLUS_BOOT_JDK))
47
+ EXPORT_COMPILER_ENV_VARS := LIB='$(OPENJ9_VS_LIB)'
48
+ OPENJCEPLUS_JDK := $(call MixedPath,$(OPENJCEPLUS_JDK))
47
49
OPENJCEPLUS_GSKIT_HOME := $(call MixedPath,$(OPENJCEPLUS_GSKIT_HOME))
48
- OPENJCEPLUS_JCE_CLASSPATH := "$(call MixedPath,$(JDK_OUTPUTDIR)/modules/openjceplus)\;$(call MixedPath,$(JDK_OUTPUTDIR)/modules/java.base)"
50
+ OPENJCEPLUS_HEADER_FILES := $(call MixedPath,$(OPENJCEPLUS_HEADER_FILES))
51
+ OPENJCEPLUS_JCE_CLASSPATH := "$(call MixedPath,$(JDK_OUTPUTDIR)/modules/openjceplus);$(call MixedPath,$(JDK_OUTPUTDIR)/modules/java.base)"
49
52
OPENJCEPLUS_JGSKIT_MAKE := jgskit.win64.mak
50
53
OPENJCEPLUS_JGSKIT_PLATFORM := win64
51
- OPENJCEPLUS_VS_LIB := LIB='$(OPENJ9_VS_LIB)'
52
54
endif
53
55
endif
54
56
@@ -60,13 +62,17 @@ endif # OPENJCEPLUS_JGSKIT_PLATFORM
60
62
61
63
compile-libs :
62
64
@$(ECHO) Compiling OpenJCEPlus native code
63
- export \
64
- $(OPENJCEPLUS_VS_LIB) \
65
+ $(EXPORT_COMPILER_ENV_VARS) \
66
+ $(MAKE) \
67
+ -C $(OPENJCEPLUS_JGSKIT_MAKE_PATH) \
68
+ -f $(OPENJCEPLUS_JGSKIT_MAKE) \
69
+ EXTERNAL_HEADERS=true \
65
70
GSKIT_HOME=$(OPENJCEPLUS_GSKIT_HOME) \
66
- JAVA_HOME=$(OPENJCEPLUS_BOOT_JDK ) \
71
+ JAVA_HOME=$(OPENJCEPLUS_JDK ) \
67
72
JCE_CLASSPATH=$(OPENJCEPLUS_JCE_CLASSPATH) \
73
+ OPENJCEPLUS_HEADER_FILES=$(OPENJCEPLUS_HEADER_FILES) \
68
74
PLATFORM=$(OPENJCEPLUS_JGSKIT_PLATFORM) \
69
- && $(MAKE) -j1 -C $(OPENJCEPLUS_JGSKIT_MAKE_PATH) -f $(OPENJCEPLUS_JGSKIT_MAKE) all
75
+ all
70
76
@$(ECHO) OpenJCEplus compile complete
71
77
72
78
TARGETS += compile-libs
0 commit comments