25
26 ################################################################################
27 # This makefile is called from Main.gmk, through a macro in MakeHelpers.gmk
28 # and wraps calls to makefiles for specific modules and build phases. Having
29 # this wrapper reduces the need for boilerplate code. It also provides
30 # opportunity for automatic copying of files to an interim exploded runnable
31 # image.
32
33 default: all
34
35 include $(SPEC)
36 include MakeBase.gmk
37
38 # All makefiles should add the targets to be built to this variable.
39 TARGETS :=
40
41 # Include the file being wrapped.
42 include $(MAKEFILE_PREFIX)-$(MODULE).gmk
43
44 # Setup copy rules from the modules directories to the jdk image directory.
45 ifeq ($(OPENJDK_TARGET_OS), windows)
46 TO_BIN_FILTER := %$(SHARED_LIBRARY_SUFFIX) %.diz %.pdb %.map
47
48 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_BIN, \
49 SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
50 DEST := $(JDK_OUTPUTDIR)/bin, \
51 FILES := $(filter $(TO_BIN_FILTER), \
52 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
53 $(TARGETS))), \
54 ))
55
56 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_LIB, \
57 SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
58 DEST := $(JDK_OUTPUTDIR)/lib, \
59 FILES := $(filter-out $(TO_BIN_FILTER), \
60 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
61 $(TARGETS))), \
62 ))
63
64 else
65 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_LIB, \
|
25
26 ################################################################################
27 # This makefile is called from Main.gmk, through a macro in MakeHelpers.gmk
28 # and wraps calls to makefiles for specific modules and build phases. Having
29 # this wrapper reduces the need for boilerplate code. It also provides
30 # opportunity for automatic copying of files to an interim exploded runnable
31 # image.
32
33 default: all
34
35 include $(SPEC)
36 include MakeBase.gmk
37
38 # All makefiles should add the targets to be built to this variable.
39 TARGETS :=
40
41 # Include the file being wrapped.
42 include $(MAKEFILE_PREFIX)-$(MODULE).gmk
43
44 # Setup copy rules from the modules directories to the jdk image directory.
45 ifeq ($(call isTargetOs, windows), true)
46 TO_BIN_FILTER := %$(SHARED_LIBRARY_SUFFIX) %.diz %.pdb %.map
47
48 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_BIN, \
49 SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
50 DEST := $(JDK_OUTPUTDIR)/bin, \
51 FILES := $(filter $(TO_BIN_FILTER), \
52 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
53 $(TARGETS))), \
54 ))
55
56 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_LIB, \
57 SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
58 DEST := $(JDK_OUTPUTDIR)/lib, \
59 FILES := $(filter-out $(TO_BIN_FILTER), \
60 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
61 $(TARGETS))), \
62 ))
63
64 else
65 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_LIB, \
|