#
# makefile: makefile to build the OpenJDK class library
#

# Copyright (C) 2018-2020 Western Digital Corporation or its affiliates
# Copyright (C) 2017-2018 Wearable, Inc.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# This Source Code Form is “Incompatible With Secondary Licenses”,
# as defined by the Mozilla Public License, v. 2.0.

include ../../common.mk

PROJECT_NAME = OpenJDK Classlib
PRODUCT_NAME = openjdk-classes
SOURCE_ROOT = ./src
DOC_PACKAGE = java.awt java.awt.geom java.beans java.io java.lang java.lang.annotation java.lang.ref java.lang.reflect java.math java.net java.nio java.nio.charset java.nio.charset.spi java.nio.file java.nio.file.attribute java.security java.text java.text.spi java.util java.util.concurrent java.util.concurrent.atomic java.util.concurrent.locks java.util.regex java.util.spi javax.annotation sun.awt sun.awt.geom sun.misc sun.misc.resources sun.net sun.net.util sun.nio sun.nio.ch sun.nio.cs sun.nio.cs.ext sun.text sun.text.normalizer sun.text.resources sun.util sun.util.calendar sun.util.locale sun.util.resources
BIN_TARGET_PATH = classlib/openjdk
DOCS_TARGET_PATH = classes/openjdk
NANITE_SOURCES := $(shell find $(SOURCE_ROOT) -name '*.java')
NANITE_BOOTCLASSES = "$(NANITE_CLASSLIB_PATH)/nanite/nanite-classes.jar"
NANITE_CLASSPATH = .
MD_SOURCES=features
MD_PATH=..

docs: .nanite-docs .md-docs
build: .nanite-jar .nanite-jar-sources .nanite-jar-docs .nanite-deploy
clean: .nanite-clean