aoqi@0: # aoqi@0: # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. aoqi@0: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. aoqi@0: # aoqi@0: # This code is free software; you can redistribute it and/or modify it aoqi@0: # under the terms of the GNU General Public License version 2 only, as aoqi@0: # published by the Free Software Foundation. aoqi@0: # aoqi@0: # This code is distributed in the hope that it will be useful, but WITHOUT aoqi@0: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or aoqi@0: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License aoqi@0: # version 2 for more details (a copy is included in the LICENSE file that aoqi@0: # accompanied this code). aoqi@0: # aoqi@0: # You should have received a copy of the GNU General Public License version aoqi@0: # 2 along with this work; if not, write to the Free Software Foundation, aoqi@0: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. aoqi@0: # aoqi@0: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA aoqi@0: # or visit www.oracle.com if you need additional information or have any aoqi@0: # questions. aoqi@0: # aoqi@0: # aoqi@0: aoqi@0: HS_INTERNAL_NAME=jvm aoqi@0: HS_FNAME=$(HS_INTERNAL_NAME).dll aoqi@0: AOUT=$(HS_FNAME) aoqi@0: GENERATED=../generated aoqi@0: aoqi@0: # Allow the user to turn off precompiled headers from the command line. aoqi@0: !if "$(USE_PRECOMPILED_HEADER)" != "0" aoqi@0: BUILD_PCH_FILE=_build_pch_file.obj aoqi@0: !endif aoqi@0: aoqi@0: default:: $(BUILD_PCH_FILE) $(AOUT) checkAndBuildSA aoqi@0: aoqi@0: !include ../local.make aoqi@0: !include compile.make aoqi@0: aoqi@0: CXX_FLAGS=$(CXX_FLAGS) $(PRODUCT_OPT_OPTION) aoqi@0: aoqi@0: RELEASE= aoqi@0: aoqi@0: RC_FLAGS=$(RC_FLAGS) /D "NDEBUG" aoqi@0: aoqi@0: !include $(WorkSpace)/make/windows/makefiles/vm.make aoqi@0: !include local.make aoqi@0: aoqi@0: HS_BUILD_ID=$(HS_BUILD_VER) aoqi@0: aoqi@0: # Force resources to be rebuilt every time aoqi@0: $(Res_Files): FORCE aoqi@0: aoqi@0: $(AOUT): $(Res_Files) $(Obj_Files) vm.def aoqi@0: $(LD) @<< aoqi@0: $(LD_FLAGS) /out:$@ /implib:$*.lib /def:vm.def $(Obj_Files) $(Res_Files) aoqi@0: << aoqi@0: !if "$(MT)" != "" aoqi@0: # The previous link command created a .manifest file that we want to aoqi@0: # insert into the linked artifact so we do not need to track it aoqi@0: # separately. Use ";#2" for .dll and ";#1" for .exe: aoqi@0: $(MT) /manifest $@.manifest /outputresource:$@;#2 aoqi@0: !endif aoqi@0: !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1" aoqi@0: !if "$(ZIP_DEBUGINFO_FILES)" == "1" aoqi@0: $(ZIPEXE) -q $*.diz $*.map $*.pdb aoqi@0: $(RM) $*.map $*.pdb aoqi@0: !endif aoqi@0: !endif aoqi@0: aoqi@0: !include $(WorkSpace)/make/windows/makefiles/shared.make aoqi@0: !include $(WorkSpace)/make/windows/makefiles/sa.make