jdk/make/java/security/Makefile
changeset 4665 d14dc3d9e1fa
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
4664:0b0443cbc448 4665:d14dc3d9e1fa
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
    23 # have any questions.
    24 #
    24 #
    25 
    25 
    26 BUILDDIR = ../..
    26 BUILDDIR = ../..
       
    27 MODULE  = base
    27 PACKAGE = java.security
    28 PACKAGE = java.security
    28 PRODUCT = sun
    29 PRODUCT = sun
    29 include $(BUILDDIR)/common/Defs.gmk
    30 include $(BUILDDIR)/common/Defs.gmk
    30 
    31 
    31 #
    32 #
    36 #
    37 #
    37 # Directories
    38 # Directories
    38 #
    39 #
    39 
    40 
    40 PROPS_SRC   = $(TOPDIR)/src/share/lib/security/java.security
    41 PROPS_SRC   = $(TOPDIR)/src/share/lib/security/java.security
    41 SUNPKCS11   =
       
    42 
    42 
    43 ifeq ($(PLATFORM), solaris)
    43 ifeq ($(PLATFORM), solaris)
    44 PROPS_SRC   = $(TOPDIR)/src/share/lib/security/java.security-solaris
    44 PROPS_SRC   = $(TOPDIR)/src/share/lib/security/java.security-solaris
    45 SUNPKCS11   = sunpkcs11
       
    46 
    45 
    47 else # PLATFORM
    46 else # PLATFORM
    48 
    47 
    49 # Register Microsoft CryptoAPI provider only on (non-64-bit) Windows platform.
    48 # Register Microsoft CryptoAPI provider only on (non-64-bit) Windows platform.
    50 ifeq ($(PLATFORM), windows)
    49 ifeq ($(PLATFORM), windows)
    55 endif # PLATFORM
    54 endif # PLATFORM
    56 
    55 
    57 
    56 
    58 PROPS_BUILD = $(LIBDIR)/security/java.security
    57 PROPS_BUILD = $(LIBDIR)/security/java.security
    59 
    58 
    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
    59 POLICY_SRC =	$(TOPDIR)/src/share/lib/security/java.policy
    64 POLICY_BUILD = $(LIBDIR)/security/java.policy
    60 POLICY_BUILD = $(LIBDIR)/security/java.policy
    65 
    61 
    66 CACERTS_SRC =	$(CACERTS_FILE)
    62 CACERTS_SRC =	$(CACERTS_FILE)
    67 CACERTS_BUILD = $(LIBDIR)/security/cacerts
    63 CACERTS_BUILD = $(LIBDIR)/security/cacerts
    71 #
    67 #
    72 # Rules
    68 # Rules
    73 #
    69 #
    74 include $(BUILDDIR)/common/Rules.gmk
    70 include $(BUILDDIR)/common/Rules.gmk
    75 
    71 
    76 build: properties $(SUNPKCS11) policy cacerts
    72 build: properties policy cacerts
    77 
    73 
    78 install: all
    74 install: all
    79 
    75 
    80 properties: classes  $(PROPS_BUILD)
    76 properties: classes  $(PROPS_BUILD)
    81 
       
    82 sunpkcs11: classes $(SUNPKCS11_BUILD)
       
    83 
    77 
    84 policy: classes  $(POLICY_BUILD)
    78 policy: classes  $(POLICY_BUILD)
    85 
    79 
    86 cacerts: classes $(CACERTS_BUILD)
    80 cacerts: classes $(CACERTS_BUILD)
    87 
    81 
    88 $(PROPS_BUILD): $(PROPS_SRC)
    82 $(PROPS_BUILD): $(PROPS_SRC)
    89 	$(install-file)
       
    90 
       
    91 $(SUNPKCS11_BUILD): $(SUNPKCS11_SRC)
       
    92 	$(install-file)
    83 	$(install-file)
    93 
    84 
    94 $(POLICY_BUILD): $(POLICY_SRC)
    85 $(POLICY_BUILD): $(POLICY_SRC)
    95 	$(install-file)
    86 	$(install-file)
    96 
    87 
    97 $(CACERTS_BUILD): $(CACERTS_SRC)
    88 $(CACERTS_BUILD): $(CACERTS_SRC)
    98 	$(install-file)
    89 	$(install-file)
    99 
    90 
   100 clean clobber:: .delete.classlist
    91 clean clobber:: .delete.classlist
   101 	$(RM) -r $(CLASSBINDIR)/java/security
    92 	$(RM) -r $(CLASSBINDIR)/java/security
   102 	$(RM) $(PROPS_BUILD) $(POLICY_BUILD) $(CACERTS_BUILD) $(SUNPKCS11_BUILD)
    93 	$(RM) $(PROPS_BUILD) $(POLICY_BUILD) $(CACERTS_BUILD)
   103 
    94 
   104 # Additional Rule for building sun.security.util
    95 # Additional Rule for building sun.security.util
   105 $(CLASSBINDIR)/%.class: $(SHARE_SRC)/sun/%.java
    96 $(CLASSBINDIR)/%.class: $(SHARE_SRC)/sun/%.java
   106 	@$(ECHO) $? >> $(TEMPDIR)/.classes.list
    97 	@$(ECHO) $? >> $(TEMPDIR)/.classes.list
   107 
    98