jdk/make/java/management/Makefile
changeset 2 90ce3da70b43
child 916 867515b155b5
equal deleted inserted replaced
0:fd16c54261b3 2:90ce3da70b43
       
     1 #
       
     2 # Copyright 2003-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.lang.management
       
    28 LIBRARY = management
       
    29 PRODUCT = java
       
    30 include $(BUILDDIR)/common/Defs.gmk
       
    31 
       
    32 MGMT_SRC  = $(SHARE_SRC)/classes/java/lang/management
       
    33 SMGMT_SRC = $(SHARE_SRC)/classes/sun/management
       
    34 
       
    35 AGENTJAR = $(LIBDIR)/management-agent.jar
       
    36 MANIFEST = $(SMGMT_SRC)/manifest
       
    37 
       
    38 #
       
    39 # Use mapfile
       
    40 #
       
    41 FILES_m = mapfile-vers
       
    42 include $(BUILDDIR)/common/Mapfile-vers.gmk
       
    43 
       
    44 #
       
    45 # Files to compile
       
    46 #
       
    47 include FILES_c.gmk
       
    48 
       
    49 AUTO_FILES_JAVA_DIRS = java/lang/management com/sun/management sun/management
       
    50 
       
    51 include Exportedfiles.gmk
       
    52 
       
    53 ifeq ($(PLATFORM),windows)
       
    54 
       
    55 FILES_c     +=  OperatingSystem_md.c
       
    56 
       
    57 FILES_export +=	com/sun/management/OperatingSystem.java
       
    58 
       
    59 else # PLATFORM (i.e. solaris & linux)
       
    60 
       
    61 FILES_c     +=  UnixOperatingSystem_md.c
       
    62 
       
    63 FILES_export +=	com/sun/management/UnixOperatingSystem.java
       
    64 endif # PLATFORM
       
    65 
       
    66 #
       
    67 # Resources
       
    68 #
       
    69 LOCALE_SET_DEFINITION = jre
       
    70 RESOURCE_BUNDLES_COMPILED_PROPERTIES = sun/management/resources/agent.properties
       
    71 
       
    72 #
       
    73 # Find C source files
       
    74 #
       
    75 vpath %.c $(SHARE_SRC)/native/sun/management
       
    76 vpath %.c $(PLATFORM_SRC)/native/sun/management
       
    77 vpath %.c $(PLATFORM_SRC)/native/com/sun/management
       
    78 
       
    79 #
       
    80 # Access to management.h 
       
    81 #
       
    82 
       
    83 OTHER_INCLUDES += \
       
    84   -I$(SHARE_SRC)/native/sun/management 
       
    85 
       
    86 ifeq ($(PLATFORM),windows)
       
    87   OTHER_LDLIBS += $(JVMLIB)
       
    88 endif
       
    89 
       
    90 #
       
    91 # Library to compile.
       
    92 #
       
    93 include $(BUILDDIR)/common/Library.gmk
       
    94 
       
    95 $(AGENTJAR): $(LIBDIR) $(TEMPDIR)/manifest
       
    96 	$(BOOT_JAR_CMD) -cfm $(AGENTJAR) $(TEMPDIR)/manifest
       
    97 
       
    98 $(TEMPDIR)/manifest: $(MANIFEST)
       
    99 	$(install-file)
       
   100 
       
   101 build: $(AGENTJAR)
       
   102 
       
   103 clean clobber::
       
   104 	$(RM) -r $(CLASSDESTDIR)/java/management
       
   105 	$(RM) -r $(CLASSDESTDIR)/sun/management
       
   106 	$(RM) $(TEMPDIR)/manifest $(AGENTJAR)
       
   107