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
642 $(eval $(call SetupNativeCompilation,BUILD_JSPAWNHELPER, \
643 SRC := $(BUILD_JSPAWNHELPER_SRC), \
644 INCLUDE_FILES := jspawnhelper.c, \
645 LANG := C, \
646 OPTIMIZATION := LOW, \
647 CFLAGS := $(CFLAGS_JDKEXE), \
648 LDFLAGS := $(LDFLAGS_JDKEXE) $(LINK_JSPAWNHELPER_FLAGS), \
649 LDFLAGS_SUFFIX := $(LINK_JSPAWNHELPER_OBJECTS), \
650 OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jspawnhelper, \
651 OUTPUT_DIR := $(BUILD_JSPAWNHELPER_DST_DIR), \
652 PROGRAM := jspawnhelper))
653
654 $(BUILD_JSPAWNHELPER): $(LINK_JSPAWNHELPER_OBJECTS)
655
656 BUILD_LAUNCHERS += $(BUILD_JSPAWNHELPER)
657 endif
658
659 ##########################################################################################
660 # jabswitch
661
662 ifndef OPENJDK
663 ifeq ($(OPENJDK_TARGET_OS), windows)
664
665 $(eval $(call SetupNativeCompilation,BUILD_JABSWITCH, \
666 SRC := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge, \
667 INCLUDE_FILES := jabswitch.cpp, \
668 LANG := C++, \
669 CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
670 -analyze- -Od -Gd -D_WINDOWS \
671 -D_UNICODE -DUNICODE -RTC1 -EHsc, \
672 LDFLAGS := $(LDFLAGS_JDKEXE) \
673 Advapi32.lib Version.lib User32.lib, \
674 OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jabswitch, \
675 OUTPUT_DIR := $(JDK_OUTPUTDIR)/bin, \
676 PROGRAM := jabswitch, \
677 DEBUG_SYMBOLS := true, \
678 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/AccessBridgeStatusWindow.rc, \
679 RC_FLAGS := $(RC_FLAGS) \
680 -D "JDK_FNAME=jabswitch.exe" \
681 -D "JDK_INTERNAL_NAME=jabswitch" \
682 -D "JDK_FTYPE=0x01L", \
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, 2015, 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
642 $(eval $(call SetupNativeCompilation,BUILD_JSPAWNHELPER, \
643 SRC := $(BUILD_JSPAWNHELPER_SRC), \
644 INCLUDE_FILES := jspawnhelper.c, \
645 LANG := C, \
646 OPTIMIZATION := LOW, \
647 CFLAGS := $(CFLAGS_JDKEXE), \
648 LDFLAGS := $(LDFLAGS_JDKEXE) $(LINK_JSPAWNHELPER_FLAGS), \
649 LDFLAGS_SUFFIX := $(LINK_JSPAWNHELPER_OBJECTS), \
650 OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jspawnhelper, \
651 OUTPUT_DIR := $(BUILD_JSPAWNHELPER_DST_DIR), \
652 PROGRAM := jspawnhelper))
653
654 $(BUILD_JSPAWNHELPER): $(LINK_JSPAWNHELPER_OBJECTS)
655
656 BUILD_LAUNCHERS += $(BUILD_JSPAWNHELPER)
657 endif
658
659 ##########################################################################################
660 # jabswitch
661
662 ifeq ($(OPENJDK_TARGET_OS), windows)
663
664 $(eval $(call SetupNativeCompilation,BUILD_JABSWITCH, \
665 SRC := $(JDK_TOPDIR)/src/windows/native/sun/bridge, \
666 INCLUDE_FILES := jabswitch.cpp, \
667 LANG := C++, \
668 CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
669 -analyze- -Od -Gd -D_WINDOWS \
670 -D_UNICODE -DUNICODE -RTC1 -EHsc, \
671 LDFLAGS := $(LDFLAGS_JDKEXE) \
672 Advapi32.lib Version.lib User32.lib, \
673 OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jabswitch, \
674 OUTPUT_DIR := $(JDK_OUTPUTDIR)/bin, \
675 PROGRAM := jabswitch, \
676 DEBUG_SYMBOLS := true, \
677 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/native/sun/bridge/AccessBridgeStatusWindow.rc, \
678 RC_FLAGS := $(RC_FLAGS) \
679 -D "JDK_FNAME=jabswitch.exe" \
680 -D "JDK_INTERNAL_NAME=jabswitch" \
681 -D "JDK_FTYPE=0x01L", \
682 MANIFEST := $(JDK_TOPDIR)/src/windows/native/sun/bridge/jabswitch.manifest))
683
684 BUILD_LAUNCHERS += $(BUILD_JABSWITCH)
685
686 endif
687
688 ##########################################################################################
689
690 $(BUILD_LAUNCHERS): $(JDK_TOPDIR)/make/CompileLaunchers.gmk
691
692 all: $(BUILD_LAUNCHERS)
693
694 .PHONY: all
|