jdk/makefiles/java/security/Makefile
changeset 12317 9670c1610c53
equal deleted inserted replaced
12316:ba6b7a51e226 12317:9670c1610c53
       
     1 #
       
     2 # Copyright (c) 1996, 2011, 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
       
    23 # questions.
       
    24 #
       
    25 
       
    26 BUILDDIR = ../..
       
    27 PACKAGE = java.security
       
    28 PRODUCT = sun
       
    29 JAVAC_MAX_WARNINGS = true 
       
    30 JAVAC_LINT_OPTIONS = -Xlint:all
       
    31 JAVAC_WARNINGS_FATAL = true
       
    32 include $(BUILDDIR)/common/Defs.gmk
       
    33 
       
    34 #
       
    35 # Rules
       
    36 #
       
    37 AUTO_FILES_JAVA_DIRS = java/security
       
    38 
       
    39 #
       
    40 # Directories
       
    41 #
       
    42 
       
    43 PROPS_SRC   = $(JDK_TOPDIR)/src/share/lib/security/java.security
       
    44 
       
    45 ifeq ($(PLATFORM), solaris)
       
    46 PROPS_SRC   = $(JDK_TOPDIR)/src/share/lib/security/java.security-solaris
       
    47 
       
    48 else # NOT_SOLARIS
       
    49 
       
    50 # Register Microsoft CryptoAPI provider only on Windows platform.
       
    51 ifeq ($(PLATFORM), windows)
       
    52   PROPS_SRC   = $(JDK_TOPDIR)/src/share/lib/security/java.security-windows
       
    53 else # NOT_WINDOWS
       
    54 
       
    55 ifeq ($(PLATFORM), macosx)
       
    56   PROPS_SRC   = $(JDK_TOPDIR)/src/share/lib/security/java.security-macosx
       
    57 endif # MACOSX
       
    58 
       
    59 endif # NOT_WINDOWS
       
    60 endif # NOT_SOLARIS
       
    61 
       
    62 
       
    63 PROPS_BUILD = $(LIBDIR)/security/java.security
       
    64 
       
    65 POLICY_SRC =	$(JDK_TOPDIR)/src/share/lib/security/java.policy
       
    66 POLICY_BUILD = $(LIBDIR)/security/java.policy
       
    67 
       
    68 CACERTS_SRC =	$(CACERTS_FILE)
       
    69 CACERTS_BUILD = $(LIBDIR)/security/cacerts
       
    70 
       
    71 ifndef OPENJDK
       
    72   BLACKLIST_SRC =	$(CLOSED_SHARE_SRC)/lib/security/blacklist
       
    73   BLACKLIST_BUILD = $(LIBDIR)/security/blacklist
       
    74   TRUSTEDLIBS_SRC = $(CLOSED_SHARE_SRC)/lib/security/trusted.libraries
       
    75   TRUSTEDLIBS_BUILD = $(LIBDIR)/security/trusted.libraries
       
    76 endif
       
    77 
       
    78 FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class)
       
    79 
       
    80 #
       
    81 # Rules
       
    82 #
       
    83 include $(BUILDDIR)/common/Rules.gmk
       
    84 
       
    85 ifdef OPENJDK
       
    86 build: properties policy cacerts
       
    87 else
       
    88 build: properties policy cacerts blacklist trustedlibs
       
    89 endif
       
    90 
       
    91 install: all
       
    92 
       
    93 properties: classes  $(PROPS_BUILD)
       
    94 
       
    95 policy: classes  $(POLICY_BUILD)
       
    96 
       
    97 cacerts: classes $(CACERTS_BUILD)
       
    98 
       
    99 blacklist: classes $(BLACKLIST_BUILD)
       
   100 
       
   101 trustedlibs: classes $(TRUSTEDLIBS_BUILD)
       
   102 
       
   103 $(PROPS_BUILD): $(PROPS_SRC)
       
   104 	$(install-file)
       
   105 
       
   106 $(POLICY_BUILD): $(POLICY_SRC)
       
   107 	$(install-file)
       
   108 
       
   109 $(CACERTS_BUILD): $(CACERTS_SRC)
       
   110 	$(install-file)
       
   111 
       
   112 $(BLACKLIST_BUILD): $(BLACKLIST_SRC)
       
   113 	$(install-file)
       
   114 
       
   115 $(TRUSTEDLIBS_BUILD): $(TRUSTEDLIBS_SRC)
       
   116 	$(install-file)
       
   117 
       
   118 clean clobber:: .delete.classlist
       
   119 	$(RM) -r $(CLASSBINDIR)/java/security
       
   120 	$(RM) $(PROPS_BUILD) $(POLICY_BUILD) $(CACERTS_BUILD) $(BLACKLIST_BUILD) $(TRUSTEDLIBS_BUILD)
       
   121 
       
   122 # Additional Rule for building sun.security.util
       
   123 $(CLASSBINDIR)/%.class: $(SHARE_SRC)/sun/%.java
       
   124 	@$(ECHO) $? >> $(TEMPDIR)/.classes.list
       
   125