jdk/make/com/sun/jmx/Makefile
changeset 13039 d1c92b8e703a
parent 7668 d4a77089c587
child 20808 87159c70b5fd
equal deleted inserted replaced
13038:e6024efff1b6 13039:d1c92b8e703a
     1 #
     1 #
     2 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2003, 2012, 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
    98 #
    98 #
    99 # For RMI/IIOP call rmic a second time with -standardPackage option
    99 # For RMI/IIOP call rmic a second time with -standardPackage option
   100 # so that *_tie classes are generated in package without the prefix
   100 # so that *_tie classes are generated in package without the prefix
   101 # org.omg.stub (6375696)
   101 # org.omg.stub (6375696)
   102 # 
   102 # 
       
   103 # To ensure the latest stub generator files are picked up from corba repo
       
   104 # when available, we need to run with latest rmic version available. rmic 
       
   105 # launch tool not built at this stage but we can invoke via rmi class.
       
   106 
       
   107 RMIC_JAVA = $(OUTPUTDIR)/bin/java
       
   108 # need to treat 64bit solaris differently
       
   109 ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64)
       
   110 RMIC_JAVA = $(OUTPUTDIR)/bin/amd64/java
       
   111 endif
       
   112 ifeq ($(PLATFORM)-$(LIBARCH), solaris-sparcv9)
       
   113 RMIC_JAVA = $(OUTPUTDIR)/bin/sparcv9/java
       
   114 endif
       
   115 
       
   116 ifeq ($(CROSS_COMPILE_ARCH),)
       
   117 RMIC = $(RMIC_JAVA) $(JAVA_TOOLS_FLAGS) -cp $(OUTPUTDIR)/classes sun.rmi.rmic.Main
       
   118 endif  
       
   119 
   103 $(CLASSDESTDIR)/%_Stub.class: $(CLASSDESTDIR)/%.class
   120 $(CLASSDESTDIR)/%_Stub.class: $(CLASSDESTDIR)/%.class
   104 	$(prep-target)
   121 	$(prep-target)
   105 	$(RMIC) -classpath "$(CLASSDESTDIR)"    \
   122 	$(RMIC) -classpath "$(CLASSDESTDIR)"    \
   106                 -d $(CLASSDESTDIR)              \
   123                 -d $(CLASSDESTDIR)              \
   107                 -v1.2                           \
   124                 -v1.2                           \