jdk/make/java/security/Makefile
changeset 20774 330ea6efa3fd
parent 20177 8ea486a4f36e
equal deleted inserted replaced
20512:91e823665026 20774:330ea6efa3fd
     1 #
     1 #
     2 # Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     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
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    77   BLACKLIST_SRC =	$(CLOSED_SHARE_SRC)/lib/security/blacklist
    77   BLACKLIST_SRC =	$(CLOSED_SHARE_SRC)/lib/security/blacklist
    78   BLACKLIST_BUILD = $(LIBDIR)/security/blacklist
    78   BLACKLIST_BUILD = $(LIBDIR)/security/blacklist
    79   BLACKLISTED_CERTS_SRC +=	$(wildcard $(CLOSED_SHARE_SRC)/lib/security/blacklisted.certs)
    79   BLACKLISTED_CERTS_SRC +=	$(wildcard $(CLOSED_SHARE_SRC)/lib/security/blacklisted.certs)
    80   TRUSTEDLIBS_SRC = $(CLOSED_SHARE_SRC)/lib/security/trusted.libraries
    80   TRUSTEDLIBS_SRC = $(CLOSED_SHARE_SRC)/lib/security/trusted.libraries
    81   TRUSTEDLIBS_BUILD = $(LIBDIR)/security/trusted.libraries
    81   TRUSTEDLIBS_BUILD = $(LIBDIR)/security/trusted.libraries
       
    82   RESTRICTED_PKGS_SRC = $(CLOSED_SHARE_SRC)/lib/security/restricted.pkgs
       
    83   RESTRICTED_PKGS := $(shell $(CAT) $(RESTRICTED_PKGS_SRC) | $(TR) "\n" " ")
       
    84   ADDTORESTRICTEDPKGS_JARFILE = $(BUILDTOOLJARDIR)/addtorestrictedpkgs.jar
    82 endif
    85 endif
    83 
    86 
    84 FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class)
    87 FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class)
    85 
    88 
    86 #
    89 #
   106 
   109 
   107 blacklisted-certs: classes $(BLACKLISTED_CERTS_BUILD)
   110 blacklisted-certs: classes $(BLACKLISTED_CERTS_BUILD)
   108 
   111 
   109 trustedlibs: classes $(TRUSTEDLIBS_BUILD)
   112 trustedlibs: classes $(TRUSTEDLIBS_BUILD)
   110 
   113 
       
   114 ifdef OPENJDK
   111 $(PROPS_BUILD): $(PROPS_SRC)
   115 $(PROPS_BUILD): $(PROPS_SRC)
   112 	$(install-file)
   116 	$(install-file)
       
   117 else
       
   118 $(PROPS_BUILD): $(PROPS_SRC)
       
   119 	$(MKDIR) -p $(@D)
       
   120 	$(BOOT_JAVA_CMD) -jar $(ADDTORESTRICTEDPKGS_JARFILE) $^ $@.tmp $(RESTRICTED_PKGS)
       
   121 	$(MV) $@.tmp $@
       
   122 endif
   113 
   123 
   114 $(POLICY_BUILD): $(POLICY_SRC)
   124 $(POLICY_BUILD): $(POLICY_SRC)
   115 	$(install-file)
   125 	$(install-file)
   116 
   126 
   117 $(CACERTS_BUILD): $(CACERTS_SRC)
   127 $(CACERTS_BUILD): $(CACERTS_SRC)