jdk/make/bridge/JavaAccessBridge/Makefile
author raginip
Fri, 18 Jan 2013 11:33:31 -0800
changeset 15324 74584166bb07
permissions -rw-r--r--
8000839: Integrate the Java Access Bridge with Java Runtime Reviewed-by: ptbrunet, erikj
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     1
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     2
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     4
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    10
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    15
# accompanied this code).
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    16
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    20
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    23
# questions.
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    24
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    25
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    26
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    27
# Makefile for building JavaAccessBridge.DLL
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    28
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    29
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    30
BUILDDIR = ../..
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    31
LIBRARY = JavaAccessBridge$(ABSUFFIX)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    32
include $(BUILDDIR)/common/Defs.gmk
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    33
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    34
# Indicate we want the C++ compiler to do the linking.
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    35
CPLUSPLUSLIBRARY=true
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    36
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    37
ifeq ($(ARCH_DATA_MODEL), 64)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    38
  ABSUFFIX = -64
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    39
  ACCESSBRIDGE_ARCH = ACCESSBRIDGE_ARCH_64
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    40
  ABRIDGE_MACHINE=X64
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    41
else
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    42
ifeq ($(ARCH_DATA_MODEL), 32)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    43
  ABRIDGE_MACHINE=I386
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    44
ifdef ABLEGACY
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    45
  ABSUFFIX = 
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    46
  ACCESSBRIDGE_ARCH = ACCESSBRIDGE_ARCH_LEGACY
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    47
else
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    48
  ABSUFFIX = -32
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    49
  ACCESSBRIDGE_ARCH = ACCESSBRIDGE_ARCH_32
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    50
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    51
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    52
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    53
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    54
include FILES_cpp.gmk
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    55
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    56
PLATFORM_INCLUDE_BRIDGE = $(PLATFORM_INCLUDE)/bridge
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    57
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    58
VERSIONINFO_RESOURCE = $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeStatusWindow.rc
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    59
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    60
OTHER_CPPFLAGS += -D$(ACCESSBRIDGE_ARCH) -I "$(INCLUDEDIR)" -I "$(PLATFORM_INCLUDE)"
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    61
LDLIBS += kernel32.lib user32.lib gdi32.lib winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    62
	odbc32.lib odbccp32.lib /subsystem:windows /dll /incremental:no /machine:$(ABRIDGE_MACHINE) \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    63
	/def:$(CLOSED_PLATFORM_SRC)/native/sun/bridge/JavaAccessBridge.DEF  /libpath:"$(LIBDIR)"
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    64
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    65
all : build postbuild
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    66
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    67
postbuild :
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    68
	$(MKDIR) -p $(PLATFORM_INCLUDE_BRIDGE) 
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    69
	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/accessibility.properties $(LIBDIR)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    70
	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeCallbacks.h $(PLATFORM_INCLUDE_BRIDGE)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    71
	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeCalls.h $(PLATFORM_INCLUDE_BRIDGE)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    72
	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgePackages.h $(PLATFORM_INCLUDE_BRIDGE)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    73
	$(CP) $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeCalls.c $(PLATFORM_INCLUDE_BRIDGE)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    74
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    75
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    76
# Rules
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    77
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    78
include $(BUILDDIR)/common/Library.gmk
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    79
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    80
vpath %.cpp   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    81
vpath %.DEF   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    82
vpath %.rc   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    83
vpath %.c   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    84
vpath %.h   $(CLOSED_PLATFORM_SRC)/native/sun/bridge
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    85
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    86
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    87
# Extra clean rule.
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    88
#
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    89
clean clobber::
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
diff changeset
    90
	$(RM) $(FILES_h)