jdk/make/bridge/JavaAccessBridge/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 JavaAccessBridge.DLL
       
    28 #
       
    29 
       
    30 BUILDDIR = ../..
       
    31 LIBRARY = JavaAccessBridge$(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 PLATFORM_INCLUDE_BRIDGE = $(PLATFORM_INCLUDE)/bridge
       
    57 
       
    58 VERSIONINFO_RESOURCE = $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeStatusWindow.rc
       
    59 
       
    60 OTHER_CPPFLAGS += -D$(ACCESSBRIDGE_ARCH) -I "$(INCLUDEDIR)" -I "$(PLATFORM_INCLUDE)"
       
    61 LDLIBS += kernel32.lib user32.lib gdi32.lib winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \
       
    62 	odbc32.lib odbccp32.lib /subsystem:windows /dll /incremental:no /machine:$(ABRIDGE_MACHINE) \
       
    63 	/def:$(CLOSED_PLATFORM_SRC)/native/sun/bridge/JavaAccessBridge.DEF  /libpath:"$(LIBDIR)"
       
    64 
       
    65 all : build postbuild
       
    66 
       
    67 postbuild :
       
    68 	$(MKDIR) -p $(PLATFORM_INCLUDE_BRIDGE) 
       
    69 	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/accessibility.properties $(LIBDIR)
       
    70 	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeCallbacks.h $(PLATFORM_INCLUDE_BRIDGE)
       
    71 	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeCalls.h $(PLATFORM_INCLUDE_BRIDGE)
       
    72 	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgePackages.h $(PLATFORM_INCLUDE_BRIDGE)
       
    73 	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeCalls.c $(PLATFORM_INCLUDE_BRIDGE)
       
    74 
       
    75 #
       
    76 # Rules
       
    77 #
       
    78 include $(BUILDDIR)/common/Library.gmk
       
    79 
       
    80 vpath %.cpp   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
       
    81 vpath %.DEF   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
       
    82 vpath %.rc   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
       
    83 vpath %.c   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
       
    84 vpath %.h   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
       
    85 
       
    86 #
       
    87 # Extra clean rule.
       
    88 #
       
    89 clean clobber::
       
    90 	$(RM) $(FILES_h)