@@ -86,29 +86,22 @@ ifeq (false,$(WARNINGS_AS_ERRORS_OPENJ9))
86
86
endif
87
87
88
88
ifeq (windows,$(OPENJDK_TARGET_OS))
89
- # convert unix path to windows path
90
- FixPath = $(shell $(CYGPATH) -m $1)
91
89
# convert windows path to unix path
92
90
UnixPath = $(shell $(CYGPATH) -u $1)
93
91
# set Visual Studio environment
94
92
# wrap PATH in quotes as it contains spaces (unix path)
95
93
# INCLUDE, LIB are already wrapped in quotes (windows paths)
96
94
EXPORT_MSVS_ENV_VARS := PATH="$(PATH)" INCLUDE=$(INCLUDE) LIB=$(LIB)
97
- # set the output directory for shared libraries
98
- OPENJ9_BIN_OR_LIB_DIR := bin
99
95
else
100
- FixPath = $1
101
96
UnixPath = $1
102
97
EXPORT_MSVS_ENV_VARS :=
103
- OPENJ9_BIN_OR_LIB_DIR := lib
104
98
endif
105
99
106
100
.PHONY : \
107
101
build-j9 \
108
102
clean-j9 \
109
103
clean-j9-dist \
110
104
clean-openj9-thirdparty-binaries \
111
- generate-j9jcl-sources \
112
105
run-preprocessors-j9 \
113
106
stage-j9 \
114
107
#
@@ -324,7 +317,6 @@ $(OPENJ9_VM_BUILD_DIR)/omr/OMR_VERSION_STRING : $(call DependOnVariable, OPENJ9O
324
317
$(ECHO) '#define OMR_VERSION_STRING "$(OPENJ9OMR_SHA)"' > $@
325
318
326
319
run-preprocessors-j9 : \
327
- generate-j9jcl-sources \
328
320
$(OPENJ9_VM_BUILD_DIR)/omr/OMR_VERSION_STRING \
329
321
$(OPENJ9_VM_BUILD_DIR)/compiler/jit.version \
330
322
$(OPENJ9_VM_BUILD_DIR)/include/openj9_version_info.h
@@ -491,44 +483,6 @@ build-j9 : run-preprocessors-j9
491
483
@$(ECHO) OpenJ9 compile complete
492
484
+$(DDR_COMMAND)
493
485
494
- J9JCL_SOURCES_DONEFILE := $(MAKESUPPORT_OUTPUTDIR)/j9jcl_sources.done
495
-
496
- recur_wildcard = $(foreach dir,$(wildcard $1/*),$(call recur_wildcard,$(dir),$2) $(filter $(subst *,%,$2),$(dir)))
497
- AllJclSource = $(call recur_wildcard,$(OPENJ9_TOPDIR)/jcl/src,*.java)
498
-
499
- JPP_DEST := $(SUPPORT_OUTPUTDIR)/j9jcl_sources
500
- JPP_JAR := $(J9TOOLS_DIR)/jpp.jar
501
- JPP_TAGS := PLATFORM-$(OPENJ9_PLATFORM_CODE)
502
-
503
- ifeq (true,$(OPENJ9_ENABLE_OPENJDK_METHODHANDLES))
504
- JPP_TAGS += OPENJDK_METHODHANDLES
505
- endif # OPENJ9_ENABLE_OPENJDK_METHODHANDLES
506
-
507
- $(J9JCL_SOURCES_DONEFILE) : $(AllJclSource)
508
- @$(ECHO) Building OpenJ9 Java Preprocessor
509
- @$(MKDIR) -p $(J9TOOLS_DIR)
510
- $(MAKE) $(MAKE_ARGS) -C $(OPENJ9_TOPDIR)/sourcetools -f buildj9tools.mk \
511
- BOOT_JDK=$(BOOT_JDK) \
512
- DEST_DIR=$(call FixPath,$(J9TOOLS_DIR)) \
513
- JAVA_HOME=$(BOOT_JDK) \
514
- $(call FixPath,$(JPP_JAR))
515
- @$(ECHO) Generating J9JCL sources
516
- @$(BOOT_JDK)/bin/java \
517
- -cp "$(call FixPath,$(JPP_JAR))" \
518
- -Dfile.encoding=US-ASCII \
519
- com.ibm.jpp.commandline.CommandlineBuilder \
520
- -verdict \
521
- -baseDir "$(call FixPath,$(OPENJ9_TOPDIR))/" \
522
- -config JAVA11 \
523
- -srcRoot jcl/ \
524
- -xml jpp_configuration.xml \
525
- -dest "$(call FixPath,$(JPP_DEST))" \
526
- -tag:define "$(subst $(SPACE),;,$(sort $(JPP_TAGS)))"
527
- @$(MKDIR) -p $(@D)
528
- @$(TOUCH) $@
529
-
530
- generate-j9jcl-sources : $(J9JCL_SOURCES_DONEFILE)
531
-
532
486
clean-j9 : clean-openj9-thirdparty-binaries
533
487
+$(MAKE) $(MAKE_ARGS) -C $(OUTPUTDIR)/vm clean
534
488
0 commit comments