2
|
1 |
#
|
|
2 |
# Copyright 1996-2005 Sun Microsystems, Inc. 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. Sun designates this
|
|
8 |
# particular file as subject to the "Classpath" exception as provided
|
|
9 |
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or
|
|
23 |
# have any questions.
|
|
24 |
#
|
|
25 |
|
|
26 |
BUILDDIR = ../..
|
|
27 |
PACKAGE = java.security
|
|
28 |
PRODUCT = sun
|
|
29 |
include $(BUILDDIR)/common/Defs.gmk
|
|
30 |
|
|
31 |
#
|
|
32 |
# Rules
|
|
33 |
#
|
|
34 |
AUTO_FILES_JAVA_DIRS = java/security
|
|
35 |
|
|
36 |
#
|
|
37 |
# Directories
|
|
38 |
#
|
|
39 |
|
|
40 |
PROPS_SRC = $(TOPDIR)/src/share/lib/security/java.security
|
|
41 |
SUNPKCS11 =
|
|
42 |
|
|
43 |
ifeq ($(PLATFORM), solaris)
|
|
44 |
PROPS_SRC = $(TOPDIR)/src/share/lib/security/java.security-solaris
|
|
45 |
SUNPKCS11 = sunpkcs11
|
|
46 |
|
|
47 |
else # PLATFORM
|
|
48 |
|
|
49 |
# Register Microsoft CryptoAPI provider only on (non-64-bit) Windows platform.
|
|
50 |
ifeq ($(PLATFORM), windows)
|
|
51 |
ifneq ($(ARCH_DATA_MODEL), 64)
|
|
52 |
PROPS_SRC = $(TOPDIR)/src/share/lib/security/java.security-windows
|
|
53 |
endif
|
|
54 |
endif
|
|
55 |
endif # PLATFORM
|
|
56 |
|
|
57 |
|
|
58 |
PROPS_BUILD = $(LIBDIR)/security/java.security
|
|
59 |
|
|
60 |
SUNPKCS11_SRC = $(TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
|
|
61 |
SUNPKCS11_BUILD = $(LIBDIR)/security/sunpkcs11-solaris.cfg
|
|
62 |
|
|
63 |
POLICY_SRC = $(TOPDIR)/src/share/lib/security/java.policy
|
|
64 |
POLICY_BUILD = $(LIBDIR)/security/java.policy
|
|
65 |
|
|
66 |
CACERTS_SRC = $(CACERTS_FILE)
|
|
67 |
CACERTS_BUILD = $(LIBDIR)/security/cacerts
|
|
68 |
|
|
69 |
FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class)
|
|
70 |
|
|
71 |
#
|
|
72 |
# Rules
|
|
73 |
#
|
|
74 |
include $(BUILDDIR)/common/Rules.gmk
|
|
75 |
|
|
76 |
build: properties $(SUNPKCS11) policy cacerts
|
|
77 |
|
|
78 |
install: all
|
|
79 |
|
|
80 |
properties: classes $(PROPS_BUILD)
|
|
81 |
|
|
82 |
sunpkcs11: classes $(SUNPKCS11_BUILD)
|
|
83 |
|
|
84 |
policy: classes $(POLICY_BUILD)
|
|
85 |
|
|
86 |
cacerts: classes $(CACERTS_BUILD)
|
|
87 |
|
|
88 |
$(PROPS_BUILD): $(PROPS_SRC)
|
|
89 |
$(install-file)
|
|
90 |
|
|
91 |
$(SUNPKCS11_BUILD): $(SUNPKCS11_SRC)
|
|
92 |
$(install-file)
|
|
93 |
|
|
94 |
$(POLICY_BUILD): $(POLICY_SRC)
|
|
95 |
$(install-file)
|
|
96 |
|
|
97 |
$(CACERTS_BUILD): $(CACERTS_SRC)
|
|
98 |
$(install-file)
|
|
99 |
|
|
100 |
clean clobber:: .delete.classlist
|
|
101 |
$(RM) -r $(CLASSBINDIR)/java/security
|
|
102 |
$(RM) $(PROPS_BUILD) $(POLICY_BUILD) $(CACERTS_BUILD) $(SUNPKCS11_BUILD)
|
|
103 |
|
|
104 |
# Additional Rule for building sun.security.util
|
|
105 |
$(CLASSBINDIR)/%.class: $(SHARE_SRC)/sun/%.java
|
|
106 |
@$(ECHO) $? >> $(TEMPDIR)/.classes.list
|
|
107 |
|