jdk/makefiles/sun/jkernel/Makefile
changeset 12317 9670c1610c53
equal deleted inserted replaced
12316:ba6b7a51e226 12317:9670c1610c53
       
     1 #
       
     2 # Copyright (c) 2008, 2010, 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 MODULE  = jkernel
       
    28 PACKAGE = sun.jkernel
       
    29 LIBRARY = jkernel
       
    30 PRODUCT = sun
       
    31 
       
    32 include $(BUILDDIR)/common/Defs.gmk
       
    33 
       
    34 #
       
    35 # Use highest optimization level
       
    36 #
       
    37 _OPT = $(CC_HIGHEST_OPT)
       
    38 
       
    39 #
       
    40 # Java source files
       
    41 #
       
    42 include FILES_java.gmk
       
    43 AUTO_FILES_JAVA_DIRS = sun/jkernel
       
    44 
       
    45 LOCALE_SUFFIXES = $(JDK_LOCALES)
       
    46 
       
    47 #
       
    48 # Native source files
       
    49 #
       
    50 
       
    51 ifeq ($(ARCH_DATA_MODEL), 32) 
       
    52 
       
    53 ifeq ($(PLATFORM), windows)
       
    54 
       
    55 # If this is the VS Express compiler it will lack vc/atlmfc/
       
    56 ATL_MFC_DIR :=$(call DirExists,$(COMPILER_PATH)/../atlmfc,,)
       
    57 
       
    58 ifneq ($(ATL_MFC_DIR),)
       
    59 
       
    60 include FILES_c_windows.gmk
       
    61 
       
    62 vpath %.cpp   $(PLATFORM_SRC)/native/sun/jkernel
       
    63 
       
    64 
       
    65 VERSIONINFO_RESOURCE = $(PLATFORM_SRC)/native/sun/jkernel/kernel.rc
       
    66 
       
    67 LDLIBS += urlmon.lib wininet.lib shlwapi.lib version.lib comctl32.lib gdi32.lib -def:$(PLATFORM_SRC)/native/sun/jkernel/kernel.def
       
    68 
       
    69 include $(BUILDDIR)/common/Library.gmk
       
    70 
       
    71 endif
       
    72 
       
    73 endif
       
    74 
       
    75 endif
       
    76 
       
    77 #
       
    78 # Resources
       
    79 #
       
    80 include $(JDK_TOPDIR)/makefiles/common/internal/Resources.gmk
       
    81 
       
    82 #
       
    83 # Rules
       
    84 #
       
    85 include $(BUILDDIR)/common/Classes.gmk
       
    86 
       
    87 # If extra compression is going to be available in the deploy build enable 
       
    88 # its use here by defining the JRE-relative pathname of the shared library
       
    89 
       
    90 ifeq ($(PLATFORM), windows)
       
    91   ifdef EXTRA_COMP_INSTALL_PATH
       
    92     CPPFLAGS += -DEXTRA_COMP_INSTALL_PATH=$(EXTRA_COMP_INSTALL_PATH)
       
    93   endif
       
    94 endif