make/CompileLaunchers.gmk

Print this page


   1 #
   2 # Copyright (c) 2011, 2013, 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


 662 ##########################################################################################
 663 # jabswitch
 664 
 665 ifndef OPENJDK
 666   ifeq ($(OPENJDK_TARGET_OS), windows)
 667 
 668     $(eval $(call SetupNativeCompilation,BUILD_JABSWITCH, \
 669         SRC := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge, \
 670         INCLUDE_FILES := jabswitch.cpp, \
 671         LANG := C++, \
 672         CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
 673             -analyze- -Od -Gd -D_WINDOWS \
 674             -D_UNICODE -DUNICODE -RTC1 -EHsc, \
 675         LDFLAGS := $(LDFLAGS_JDKEXE) \
 676             Advapi32.lib Version.lib User32.lib, \
 677         OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jabswitch, \
 678         OUTPUT_DIR := $(JDK_OUTPUTDIR)/bin, \
 679         PROGRAM := jabswitch, \
 680         DEBUG_SYMBOLS := true, \
 681         VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/AccessBridgeStatusWindow.rc, \
 682         RC_FLAGS := $(RC_FLAGS), \



 683         MANIFEST := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/jabswitch.manifest))
 684 
 685     BUILD_LAUNCHERS += $(BUILD_JABSWITCH)
 686 
 687   endif
 688 endif
 689 
 690 ##########################################################################################
 691 
 692 $(BUILD_LAUNCHERS): $(JDK_TOPDIR)/make/CompileLaunchers.gmk
 693 
 694 all: $(BUILD_LAUNCHERS)
 695 
 696 .PHONY: all
   1 #
   2 # Copyright (c) 2011, 2014, 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


 662 ##########################################################################################
 663 # jabswitch
 664 
 665 ifndef OPENJDK
 666   ifeq ($(OPENJDK_TARGET_OS), windows)
 667 
 668     $(eval $(call SetupNativeCompilation,BUILD_JABSWITCH, \
 669         SRC := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge, \
 670         INCLUDE_FILES := jabswitch.cpp, \
 671         LANG := C++, \
 672         CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
 673             -analyze- -Od -Gd -D_WINDOWS \
 674             -D_UNICODE -DUNICODE -RTC1 -EHsc, \
 675         LDFLAGS := $(LDFLAGS_JDKEXE) \
 676             Advapi32.lib Version.lib User32.lib, \
 677         OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jabswitch, \
 678         OUTPUT_DIR := $(JDK_OUTPUTDIR)/bin, \
 679         PROGRAM := jabswitch, \
 680         DEBUG_SYMBOLS := true, \
 681         VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/AccessBridgeStatusWindow.rc, \
 682         RC_FLAGS := $(RC_FLAGS) \
 683             -D "JDK_FNAME=jabswitch.exe" \
 684             -D "JDK_INTERNAL_NAME=jabswitch" \
 685             -D "JDK_FTYPE=0x01L", \
 686         MANIFEST := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/jabswitch.manifest))
 687 
 688     BUILD_LAUNCHERS += $(BUILD_JABSWITCH)
 689 
 690   endif
 691 endif
 692 
 693 ##########################################################################################
 694 
 695 $(BUILD_LAUNCHERS): $(JDK_TOPDIR)/make/CompileLaunchers.gmk
 696 
 697 all: $(BUILD_LAUNCHERS)
 698 
 699 .PHONY: all