25 26 ################################################################################ 27 # This file builds the native component of the JTReg tests for JDK. 28 # It also covers the test-image part, where the built files are copied to the 29 # test image. 30 ################################################################################ 31 32 default: all 33 34 include $(SPEC) 35 include MakeBase.gmk 36 include TestFilesCompilation.gmk 37 38 ################################################################################ 39 # Targets for building the native tests themselves. 40 ################################################################################ 41 42 # Add more directories here when needed. 43 BUILD_JDK_JTREG_NATIVE_SRC := \ 44 $(JDK_TOPDIR)/test/native_sanity \ 45 # 46 47 BUILD_JDK_JTREG_OUTPUT_DIR := $(BUILD_OUTPUT)/support/test/jdk/jtreg/native 48 49 BUILD_JDK_JTREG_IMAGE_DIR := $(TEST_IMAGE_DIR)/jdk/jtreg 50 51 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_LIBRARIES, \ 52 TYPE := LIBRARY, \ 53 SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \ 54 OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \ 55 )) 56 57 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_EXECUTABLES, \ 58 TYPE := PROGRAM, \ 59 SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \ 60 OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \ 61 )) 62 63 build-test-jdk-jtreg-native: $(BUILD_JDK_JTREG_LIBRARIES) $(BUILD_JDK_JTREG_EXECUTABLES) 64 65 66 ################################################################################ | 25 26 ################################################################################ 27 # This file builds the native component of the JTReg tests for JDK. 28 # It also covers the test-image part, where the built files are copied to the 29 # test image. 30 ################################################################################ 31 32 default: all 33 34 include $(SPEC) 35 include MakeBase.gmk 36 include TestFilesCompilation.gmk 37 38 ################################################################################ 39 # Targets for building the native tests themselves. 40 ################################################################################ 41 42 # Add more directories here when needed. 43 BUILD_JDK_JTREG_NATIVE_SRC := \ 44 $(JDK_TOPDIR)/test/native_sanity \ 45 $(JDK_TOPDIR)/test/java/lang/System \ 46 # 47 48 ifeq ($(TOOLCHAIN_TYPE), solstudio) 49 BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_librefreshEnv := -lc 50 endif 51 52 BUILD_JDK_JTREG_OUTPUT_DIR := $(BUILD_OUTPUT)/support/test/jdk/jtreg/native 53 54 BUILD_JDK_JTREG_IMAGE_DIR := $(TEST_IMAGE_DIR)/jdk/jtreg 55 56 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_LIBRARIES, \ 57 TYPE := LIBRARY, \ 58 SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \ 59 OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \ 60 )) 61 62 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_EXECUTABLES, \ 63 TYPE := PROGRAM, \ 64 SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \ 65 OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \ 66 )) 67 68 build-test-jdk-jtreg-native: $(BUILD_JDK_JTREG_LIBRARIES) $(BUILD_JDK_JTREG_EXECUTABLES) 69 70 71 ################################################################################ |