1 #
2 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
76 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
77 $(TARGETS))), \
78 MACRO := link-file-relative, \
79 LOG_ACTION := Creating symlink, \
80 ))
81 endif
82
83 $(eval $(call SetupCopyFiles, COPY_INCLUDE, \
84 SRC := $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE), \
85 DEST := $(JDK_OUTPUTDIR)/include, \
86 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE)/%, \
87 $(TARGETS)), \
88 ))
89
90 $(eval $(call SetupCopyFiles, COPY_CMDS, \
91 SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
92 DEST := $(JDK_OUTPUTDIR)/bin, \
93 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE)/%, $(TARGETS)), \
94 ))
95
96 $(eval $(call SetupCopyFiles, COPY_CONF, \
97 SRC := $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE), \
98 DEST := $(JDK_OUTPUTDIR)/conf, \
99 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE)/%, \
100 $(TARGETS)), \
101 ))
102
103 ifeq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
104 all: $(filter $(MAKESUPPORT_OUTPUTDIR)/compile-commands/%, $(TARGETS))
105 else
106 all: $(TARGETS) $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \
107 $(COPY_INCLUDE) $(COPY_CMDS) $(COPY_CONF) $(LINK_LIBS_TO_LIB)
108 endif
|
1 #
2 # Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
76 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
77 $(TARGETS))), \
78 MACRO := link-file-relative, \
79 LOG_ACTION := Creating symlink, \
80 ))
81 endif
82
83 $(eval $(call SetupCopyFiles, COPY_INCLUDE, \
84 SRC := $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE), \
85 DEST := $(JDK_OUTPUTDIR)/include, \
86 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE)/%, \
87 $(TARGETS)), \
88 ))
89
90 $(eval $(call SetupCopyFiles, COPY_CMDS, \
91 SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
92 DEST := $(JDK_OUTPUTDIR)/bin, \
93 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE)/%, $(TARGETS)), \
94 ))
95
96 $(eval $(call SetupCopyFiles, COPY_MAN, \
97 SRC := $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE), \
98 DEST := $(JDK_OUTPUTDIR)/man, \
99 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE)/%, $(TARGETS)), \
100 ))
101
102 $(eval $(call SetupCopyFiles, COPY_CONF, \
103 SRC := $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE), \
104 DEST := $(JDK_OUTPUTDIR)/conf, \
105 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE)/%, \
106 $(TARGETS)), \
107 ))
108
109 ifeq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
110 all: $(filter $(MAKESUPPORT_OUTPUTDIR)/compile-commands/%, $(TARGETS))
111 else
112 all: $(TARGETS) $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \
113 $(COPY_INCLUDE) $(COPY_CMDS) $(COPY_MAN) $(COPY_CONF) $(LINK_LIBS_TO_LIB)
114 endif
|