Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/windows/makefiles/adlc.make
32285 views
#1# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.2# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3#4# This code is free software; you can redistribute it and/or modify it5# under the terms of the GNU General Public License version 2 only, as6# published by the Free Software Foundation.7#8# This code is distributed in the hope that it will be useful, but WITHOUT9# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11# version 2 for more details (a copy is included in the LICENSE file that12# accompanied this code).13#14# You should have received a copy of the GNU General Public License version15# 2 along with this work; if not, write to the Free Software Foundation,16# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17#18# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19# or visit www.oracle.com if you need additional information or have any20# questions.21#22#232425# Rules for building adlc.exe2627# Need exception handling support here28# $(MS_RUNTIME_OPTION) ( with /D_STATIC_CPPLIB)29# causes adlc.exe to link with the static30# multithread Standard C++ library (libcpmt.lib) instead of31# the dynamic version (msvcprt.lib), which is not included32# in any of the free tools.33EXH_FLAGS=$(GX_OPTION) $(MS_RUNTIME_OPTION)3435!ifdef ALT_ADLC_PATH36ADLC=$(ALT_ADLC_PATH)\adlc.exe37!else38ADLC=adlc39!endif4041!ifdef LP6442ADLCFLAGS=-q -T -D_LP6443!else44ADLCFLAGS=-q -T -U_LP6445!endif4647ADLC_CXX_FLAGS=$(CXX_FLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE4849CXX_INCLUDE_DIRS=\50/I "..\generated" \51/I "$(WorkSpace)\src\share\vm" \52/I "$(WorkSpace)\src\os\windows\vm" \53/I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm"5455!if "$(Platform_arch_model)" == "$(Platform_arch)"56SOURCES_AD=\57$(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad58!else59SOURCES_AD=\60$(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \61$(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch).ad62!endif6364# NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_DIR65# and ProjectCreatorIDEOptions in projectcreator.make.66GENERATED_NAMES=\67ad_$(Platform_arch_model).cpp \68ad_$(Platform_arch_model).hpp \69ad_$(Platform_arch_model)_clone.cpp \70ad_$(Platform_arch_model)_expand.cpp \71ad_$(Platform_arch_model)_format.cpp \72ad_$(Platform_arch_model)_gen.cpp \73ad_$(Platform_arch_model)_misc.cpp \74ad_$(Platform_arch_model)_peephole.cpp \75ad_$(Platform_arch_model)_pipeline.cpp \76adGlobals_$(Platform_arch_model).hpp \77dfa_$(Platform_arch_model).cpp7879# NOTE! This must be kept in sync with GENERATED_NAMES80GENERATED_NAMES_IN_DIR=\81$(AdlcOutDir)\ad_$(Platform_arch_model).cpp \82$(AdlcOutDir)\ad_$(Platform_arch_model).hpp \83$(AdlcOutDir)\ad_$(Platform_arch_model)_clone.cpp \84$(AdlcOutDir)\ad_$(Platform_arch_model)_expand.cpp \85$(AdlcOutDir)\ad_$(Platform_arch_model)_format.cpp \86$(AdlcOutDir)\ad_$(Platform_arch_model)_gen.cpp \87$(AdlcOutDir)\ad_$(Platform_arch_model)_misc.cpp \88$(AdlcOutDir)\ad_$(Platform_arch_model)_peephole.cpp \89$(AdlcOutDir)\ad_$(Platform_arch_model)_pipeline.cpp \90$(AdlcOutDir)\adGlobals_$(Platform_arch_model).hpp \91$(AdlcOutDir)\dfa_$(Platform_arch_model).cpp9293{$(WorkSpace)\src\share\vm\adlc}.cpp.obj::94$(CXX) $(ADLC_CXX_FLAGS) $(EXH_FLAGS) $(CXX_INCLUDE_DIRS) /c $<9596{$(WorkSpace)\src\share\vm\opto}.cpp.obj::97$(CXX) $(ADLC_CXX_FLAGS) $(EXH_FLAGS) $(CXX_INCLUDE_DIRS) /c $<9899adlc.exe: main.obj adlparse.obj archDesc.obj arena.obj dfa.obj dict2.obj filebuff.obj \100forms.obj formsopt.obj formssel.obj opcodes.obj output_c.obj output_h.obj101$(LD) $(LD_FLAGS) /subsystem:console /out:$@ $**102!if "$(MT)" != ""103# The previous link command created a .manifest file that we want to104# insert into the linked artifact so we do not need to track it105# separately. Use ";#2" for .dll and ";#1" for .exe:106$(MT) /manifest $@.manifest /outputresource:$@;#1107!endif108109$(GENERATED_NAMES_IN_DIR): $(Platform_arch_model).ad adlc.exe110rm -f $(GENERATED_NAMES)111if exist $(AdlcOutDir) rmdir /s /q $(AdlcOutDir)112mkdir $(AdlcOutDir)113$(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad114mv $(GENERATED_NAMES) $(AdlcOutDir)/115116$(Platform_arch_model).ad: $(SOURCES_AD)117rm -f $(Platform_arch_model).ad118cat $(SOURCES_AD) >$(Platform_arch_model).ad119120121