jdk/make/bridge/JAWTAccessBridge/Makefile
changeset 15324 74584166bb07
equal deleted inserted replaced
15323:9087838098e6 15324:74584166bb07
       
     1 #
       
     2 # Copyright (c) 2012, 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 #
       
    27 # Makefile for building JAWTAccessBridge
       
    28 #
       
    29 
       
    30 BUILDDIR = ../..
       
    31 LIBRARY = JAWTAccessBridge$(ABSUFFIX)
       
    32 include $(BUILDDIR)/common/Defs.gmk
       
    33 
       
    34 # Indicate we want the C++ compiler to do the linking.
       
    35 CPLUSPLUSLIBRARY=true
       
    36 
       
    37 ifeq ($(ARCH_DATA_MODEL), 64)
       
    38   ABSUFFIX = -64
       
    39   ACCESSBRIDGE_ARCH = ACCESSBRIDGE_ARCH_64
       
    40   ABRIDGE_MACHINE=X64
       
    41 else
       
    42 ifeq ($(ARCH_DATA_MODEL), 32)
       
    43   ABRIDGE_MACHINE=I386
       
    44 ifdef ABLEGACY
       
    45   ABSUFFIX = 
       
    46   ACCESSBRIDGE_ARCH = ACCESSBRIDGE_ARCH_LEGACY
       
    47 else
       
    48   ABSUFFIX = -32
       
    49   ACCESSBRIDGE_ARCH = ACCESSBRIDGE_ARCH_32
       
    50 endif
       
    51 endif
       
    52 endif
       
    53 
       
    54 include FILES_cpp.gmk
       
    55 
       
    56 VERSIONINFO_RESOURCE = $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeStatusWindow.rc
       
    57 
       
    58 OTHER_CPPFLAGS += -D$(ACCESSBRIDGE_ARCH) -I "$(INCLUDEDIR)" -I "$(PLATFORM_INCLUDE)"
       
    59 LDLIBS += kernel32.lib user32.lib gdi32.lib winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
       
    60 	uuid.lib odbc32.lib odbccp32.lib /subsystem:windows /dll /incremental:no /machine:$(ABRIDGE_MACHINE) \
       
    61 	/def:$(CLOSED_PLATFORM_SRC)/native/sun/bridge/JAWTAccessBridge.DEF  /libpath:"$(LIBDIR)"
       
    62 
       
    63 #
       
    64 # Rules
       
    65 #
       
    66 include $(BUILDDIR)/common/Library.gmk
       
    67 
       
    68 vpath %.cpp   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
       
    69 vpath %.RC   $(CLOSED_PLATFORM_SRC)/native/sun/bridge