2007-12-01 00:00:00 +00:00
|
|
|
#
|
2017-12-04 22:55:52 +00:00
|
|
|
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
2010-05-25 22:58:33 +00:00
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
2007-12-01 00:00:00 +00:00
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
2010-05-25 22:58:33 +00:00
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
2007-12-01 00:00:00 +00:00
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
2010-05-25 22:58:33 +00:00
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
2007-12-01 00:00:00 +00:00
|
|
|
#
|
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
LIB_DST_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)
|
|
|
|
CONF_DST_DIR := $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE)
|
2016-12-13 02:56:50 +00:00
|
|
|
LEGAL_DST_DIR := $(SUPPORT_OUTPUTDIR)/modules_legal/$(MODULE)
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2017-12-04 22:55:52 +00:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Copy exported include headers files to output directory, if present.
|
|
|
|
#
|
|
|
|
|
|
|
|
INCLUDE_TARGET_DIR := $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE)
|
|
|
|
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_EXPORTED_INCLUDE, \
|
|
|
|
SRC := $(TOPDIR)/src/$(MODULE)/share/native/include, \
|
|
|
|
DEST := $(INCLUDE_TARGET_DIR), \
|
|
|
|
FILES := $(wildcard \
|
|
|
|
$(TOPDIR)/src/$(MODULE)/share/native/include/* \
|
|
|
|
$(TOPDIR)/src/$(MODULE)/share/native/include/*/*), \
|
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(COPY_EXPORTED_INCLUDE)
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2017-12-04 22:55:52 +00:00
|
|
|
# For historical reasons, the OS include directories have odd names.
|
|
|
|
INCLUDE_TARGET_OS_SUBDIR := $(OPENJDK_TARGET_OS)
|
2014-08-17 14:54:13 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
2017-12-04 22:55:52 +00:00
|
|
|
INCLUDE_TARGET_OS_SUBDIR := win32
|
2014-08-17 14:54:13 +00:00
|
|
|
else ifeq ($(OPENJDK_TARGET_OS), macosx)
|
2017-12-04 22:55:52 +00:00
|
|
|
INCLUDE_TARGET_OS_SUBDIR := darwin
|
2014-08-17 14:54:13 +00:00
|
|
|
endif
|
2017-12-04 22:55:52 +00:00
|
|
|
|
|
|
|
# Use the most specific of OS and OS_TYPE.
|
|
|
|
ifneq ($(wildcard $(TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS)/native/include/*), )
|
|
|
|
INCLUDE_SOURCE_OS_SUBDIR := $(OPENJDK_TARGET_OS)
|
|
|
|
else
|
|
|
|
INCLUDE_SOURCE_OS_SUBDIR := $(OPENJDK_TARGET_OS_TYPE)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_EXPORTED_INCLUDE_OS, \
|
|
|
|
SRC := $(TOPDIR)/src/$(MODULE)/$(INCLUDE_SOURCE_OS_SUBDIR)/native/include, \
|
|
|
|
DEST := $(INCLUDE_TARGET_DIR)/$(INCLUDE_TARGET_OS_SUBDIR), \
|
|
|
|
FILES := $(wildcard \
|
|
|
|
$(TOPDIR)/src/$(MODULE)/$(INCLUDE_SOURCE_OS_SUBDIR)/native/include/* \
|
|
|
|
$(TOPDIR)/src/$(MODULE)/$(INCLUDE_SOURCE_OS_SUBDIR)/native/include/*/*), \
|
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(COPY_EXPORTED_INCLUDE_OS)
|
|
|
|
|