forked from ibmruntimes/openj9-openjdk-jdk17
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
107 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# =========================================================================== | ||
# (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved | ||
# =========================================================================== | ||
|
||
include LibCommon.gmk | ||
|
||
ifeq (true,$(BUILD_OPENJCEPLUS)) | ||
|
||
# Identify the desired JGSKIT target platform. | ||
GSKIT_HOME := $(TOPDIR)/OpenJCEPlus/icc/jgsk_sdk | ||
JGSKIT_TARGET := | ||
JGSKIT_MAKE := jgskit.mak | ||
JGSKIT_MAKE_PATH := $(OPENJCEPLUS_TOPDIR)/src/main/native/ | ||
JCE_CLASSPATH := $(OPENJCEPLUS_TOPDIR)/src/main/java:$(TOPDIR)/src/java.base/share/classes | ||
|
||
ifeq ($(call isTargetOs, aix), true) | ||
JGSKIT_TARGET := ppc-aix64 | ||
else ifeq ($(call isTargetOs, linux), true) | ||
ifeq ($(call isTargetCpu, x86_64), true) | ||
JGSKIT_TARGET := x86-linux64 | ||
else ifeq ($(call isTargetCpu, ppc64le), true) | ||
JGSKIT_TARGET := ppcle-linux64 | ||
endif | ||
else ifeq ($(call isTargetOs, windows), true) | ||
ifeq ($(call isTargetCpu, x86_64), true) | ||
JGSKIT_TARGET := win64 | ||
JGSKIT_MAKE := jgskit.win64.mak | ||
JCE_CLASSPATH := "$(call MixedPath,$(OPENJCEPLUS_TOPDIR)/src/main/java)\;$(call MixedPath,$(TOPDIR)/src/java.base/share/classes)" | ||
GSKIT_HOME := $(call MixedPath,$(GSKIT_HOME)) | ||
BOOT_JDK := $(call MixedPath,$(BOOT_JDK)) | ||
endif | ||
endif | ||
|
||
ifeq (,$(JGSKIT_TARGET)) | ||
$(error Unsupported platform $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU)) | ||
endif # JGSKIT_TARGET | ||
|
||
.PHONY : compile-libs | ||
|
||
compile-libs : | ||
@$(ECHO) Compiling OpenJCEPlus native | ||
export PLATFORM=$(JGSKIT_TARGET) JAVA_HOME=$(BOOT_JDK) GSKIT_HOME=$(GSKIT_HOME) JCE_CLASSPATH=$(JCE_CLASSPATH) \ | ||
&& $(MAKE) -j1 -C $(JGSKIT_MAKE_PATH) -f $(JGSKIT_MAKE) all | ||
@$(ECHO) OpenJCEplus compile complete | ||
|
||
TARGETS += compile-libs | ||
|
||
endif # BUILD_OPENJCEPLUS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters