Makefile 3.2 KB
Newer Older
D
duke 已提交
1
#
2
# Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
D
duke 已提交
3 4 5 6
# 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
7
# published by the Free Software Foundation.  Oracle designates this
D
duke 已提交
8
# particular file as subject to the "Classpath" exception as provided
9
# by Oracle in the LICENSE file that accompanied this code.
D
duke 已提交
10 11 12 13 14 15 16 17 18 19 20
#
# 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.
#
21 22 23
# 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.
D
duke 已提交
24 25 26 27 28
#

BUILDDIR = ../..
PACKAGE = java.security
PRODUCT = sun
29 30 31
JAVAC_MAX_WARNINGS = false
JAVAC_LINT_OPTIONS = -Xlint:all,-deprecation
JAVAC_WARNINGS_FATAL = true
D
duke 已提交
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
include $(BUILDDIR)/common/Defs.gmk

#
# Rules
#
AUTO_FILES_JAVA_DIRS = java/security

#
# Directories
#

PROPS_SRC   = $(TOPDIR)/src/share/lib/security/java.security

ifeq ($(PLATFORM), solaris)
PROPS_SRC   = $(TOPDIR)/src/share/lib/security/java.security-solaris

else # PLATFORM

50
# Register Microsoft CryptoAPI provider only on Windows platform.
D
duke 已提交
51
ifeq ($(PLATFORM), windows)
52
  PROPS_SRC   = $(TOPDIR)/src/share/lib/security/java.security-windows
D
duke 已提交
53 54 55 56 57 58 59 60 61 62 63 64
endif
endif # PLATFORM


PROPS_BUILD = $(LIBDIR)/security/java.security

POLICY_SRC =	$(TOPDIR)/src/share/lib/security/java.policy
POLICY_BUILD = $(LIBDIR)/security/java.policy

CACERTS_SRC =	$(CACERTS_FILE)
CACERTS_BUILD = $(LIBDIR)/security/cacerts

65 66 67
ifndef OPENJDK
  BLACKLIST_SRC =	$(CLOSED_SHARE_SRC)/lib/security/blacklist
  BLACKLIST_BUILD = $(LIBDIR)/security/blacklist
68 69
  TRUSTEDLIBS_SRC = $(CLOSED_SHARE_SRC)/lib/security/trusted.libraries
  TRUSTEDLIBS_BUILD = $(LIBDIR)/security/trusted.libraries
70 71
endif

D
duke 已提交
72 73 74 75 76 77 78
FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class)

#
# Rules
#
include $(BUILDDIR)/common/Rules.gmk

79
ifdef OPENJDK
80
build: properties policy cacerts
81
else
82
build: properties policy cacerts blacklist trustedlibs
83
endif
D
duke 已提交
84 85 86 87 88 89 90 91 92

install: all

properties: classes  $(PROPS_BUILD)

policy: classes  $(POLICY_BUILD)

cacerts: classes $(CACERTS_BUILD)

93 94
blacklist: classes $(BLACKLIST_BUILD)

95 96
trustedlibs: classes $(TRUSTEDLIBS_BUILD)

D
duke 已提交
97 98 99 100 101 102 103 104 105
$(PROPS_BUILD): $(PROPS_SRC)
	$(install-file)

$(POLICY_BUILD): $(POLICY_SRC)
	$(install-file)

$(CACERTS_BUILD): $(CACERTS_SRC)
	$(install-file)

106 107 108
$(BLACKLIST_BUILD): $(BLACKLIST_SRC)
	$(install-file)

109 110 111
$(TRUSTEDLIBS_BUILD): $(TRUSTEDLIBS_SRC)
	$(install-file)

D
duke 已提交
112 113
clean clobber:: .delete.classlist
	$(RM) -r $(CLASSBINDIR)/java/security
114
	$(RM) $(PROPS_BUILD) $(POLICY_BUILD) $(CACERTS_BUILD) $(BLACKLIST_BUILD) $(TRUSTEDLIBS_BUILD)
D
duke 已提交
115 116 117 118 119

# Additional Rule for building sun.security.util
$(CLASSBINDIR)/%.class: $(SHARE_SRC)/sun/%.java
	@$(ECHO) $? >> $(TEMPDIR)/.classes.list