Makefile revision 5045
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# This code is free software; you can redistribute it and/or modify it
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# under the terms of the GNU General Public License version 2 only, as
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# published by the Free Software Foundation. Oracle designates this
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# particular file as subject to the "Classpath" exception as provided
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# by Oracle in the LICENSE file that accompanied this code.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# This code is distributed in the hope that it will be useful, but WITHOUT
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# version 2 for more details (a copy is included in the LICENSE file that
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# accompanied this code).
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# You should have received a copy of the GNU General Public License version
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# 2 along with this work; if not, write to the Free Software Foundation,
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# or visit www.oracle.com if you need additional information or have any
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# questions.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Makefile for building jabswitch.exe
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserBUILDDIR = ../..
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserPROGRAM = jabswitch
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userinclude $(BUILDDIR)/common/Defs.gmk
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Indicate we want the C++ compiler to do the linking.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCPLUSPLUSLIBRARY=true
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserVERSIONINFO_RESOURCE = $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeStatusWindow.rc
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserVERSIONRES = $(TEMPDIR)/AccessBridgeStatusWindow.res
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserJAB_EXE= $(TEMPDIR)/jabswitch.exe
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserJAB_SRC = $(CLOSED_PLATFORM_SRC)/native/sun/bridge/jabswitch.cpp
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserJAB_MANIFEST_INP = $(CLOSED_PLATFORM_SRC)/native/sun/bridge/jabswitch.manifest
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserJAB_MANIFEST_OUT = $(TEMPDIR)/jabswitch.exe.intermediate.manifest
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserRC_FLAGS += /fo "$(VERSIONRES)"
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserOTHER_CPPFLAGS += /Fo"$(TEMPDIR)/" /Fd"$(TEMPDIR)/" /analyze- /Od /Gd /nologo /MDd /Gm /D "WIN32" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /RTC1 /W3 /ZI /Zc:wchar_t /EHsc
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLDDFLAGS += Advapi32.lib Version.lib User32.lib
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userall: buildexe copyfilejab
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userbuildexe :
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User $(CD) $(TEMPDIR)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User $(RC) $(RC_FLAGS) $(VERSIONINFO_RESOURCE)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User $(CC) $(CPPFLAGS) $(JAB_SRC) $(LDDFLAGS) $(VERSIONRES) -o $(JAB_EXE)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User $(MT) /nologo /verbose /manifest $(JAB_MANIFEST_INP) /outputresource:$(JAB_EXE)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Usercopyfilejab :
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(CP) $(JAB_EXE) $(BINDIR)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Uservpath %.cpp $(CLOSED_PLATFORM_SRC)/native/sun/bridge
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntvpath %.rc $(CLOSED_PLATFORM_SRC)/native/sun/bridge
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User