0N/A#
1879N/A# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
0N/A# published by the Free Software Foundation.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
1472N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A# or visit www.oracle.com if you need additional information or have any
1472N/A# questions.
0N/A#
0N/A#
0N/A
0N/A
0N/A# Rules for building adlc.exe
0N/A
0N/A# Need exception handling support here
0N/A# $(MS_RUNTIME_OPTION) ( with /D_STATIC_CPPLIB)
0N/A# causes adlc.exe to link with the static
0N/A# multithread Standard C++ library (libcpmt.lib) instead of
0N/A# the dynamic version (msvcprt.lib), which is not included
0N/A# in any of the free tools.
0N/AEXH_FLAGS=$(GX_OPTION) $(MS_RUNTIME_OPTION)
0N/A
0N/A!ifdef ALT_ADLC_PATH
0N/AADLC=$(ALT_ADLC_PATH)\adlc.exe
0N/A!else
0N/AADLC=adlc
0N/A!endif
0N/A
0N/A!ifdef LP64
0N/AADLCFLAGS=-q -T -D_LP64
0N/A!else
0N/AADLCFLAGS=-q -T -U_LP64
0N/A!endif
0N/A
3178N/AADLC_CXX_FLAGS=$(CXX_FLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
0N/A
3178N/ACXX_INCLUDE_DIRS=\
1879N/A /I "..\generated" \
1879N/A /I "$(WorkSpace)\src\share\vm" \
1879N/A /I "$(WorkSpace)\src\os\windows\vm" \
0N/A /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm"
0N/A
3041N/A!if "$(Platform_arch_model)" == "$(Platform_arch)"
3041N/ASOURCES_AD=\
3041N/A $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \
3041N/A $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad
3041N/A!else
3041N/ASOURCES_AD=\
3041N/A $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \
3041N/A $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch).ad \
3041N/A $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad
3041N/A!endif
3041N/A
1879N/A# NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_DIR
1879N/A# and ProjectCreatorIDEOptions in projectcreator.make.
0N/AGENERATED_NAMES=\
0N/A ad_$(Platform_arch_model).cpp \
0N/A ad_$(Platform_arch_model).hpp \
0N/A ad_$(Platform_arch_model)_clone.cpp \
0N/A ad_$(Platform_arch_model)_expand.cpp \
0N/A ad_$(Platform_arch_model)_format.cpp \
0N/A ad_$(Platform_arch_model)_gen.cpp \
0N/A ad_$(Platform_arch_model)_misc.cpp \
0N/A ad_$(Platform_arch_model)_peephole.cpp \
0N/A ad_$(Platform_arch_model)_pipeline.cpp \
0N/A adGlobals_$(Platform_arch_model).hpp \
0N/A dfa_$(Platform_arch_model).cpp
0N/A
0N/A# NOTE! This must be kept in sync with GENERATED_NAMES
1879N/AGENERATED_NAMES_IN_DIR=\
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model).cpp \
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model).hpp \
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model)_clone.cpp \
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model)_expand.cpp \
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model)_format.cpp \
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model)_gen.cpp \
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model)_misc.cpp \
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model)_peephole.cpp \
1879N/A $(AdlcOutDir)\ad_$(Platform_arch_model)_pipeline.cpp \
1879N/A $(AdlcOutDir)\adGlobals_$(Platform_arch_model).hpp \
1879N/A $(AdlcOutDir)\dfa_$(Platform_arch_model).cpp
0N/A
0N/A{$(WorkSpace)\src\share\vm\adlc}.cpp.obj::
3178N/A $(CXX) $(ADLC_CXX_FLAGS) $(EXH_FLAGS) $(CXX_INCLUDE_DIRS) /c $<
0N/A
0N/A{$(WorkSpace)\src\share\vm\opto}.cpp.obj::
3178N/A $(CXX) $(ADLC_CXX_FLAGS) $(EXH_FLAGS) $(CXX_INCLUDE_DIRS) /c $<
0N/A
0N/Aadlc.exe: main.obj adlparse.obj archDesc.obj arena.obj dfa.obj dict2.obj filebuff.obj \
0N/A forms.obj formsopt.obj formssel.obj opcodes.obj output_c.obj output_h.obj
3178N/A $(LD) $(LD_FLAGS) /subsystem:console /out:$@ $**
427N/A!if "$(MT)" != ""
427N/A# The previous link command created a .manifest file that we want to
427N/A# insert into the linked artifact so we do not need to track it
427N/A# separately. Use ";#2" for .dll and ";#1" for .exe:
427N/A $(MT) /manifest $@.manifest /outputresource:$@;#1
427N/A!endif
0N/A
1879N/A$(GENERATED_NAMES_IN_DIR): $(Platform_arch_model).ad adlc.exe
0N/A rm -f $(GENERATED_NAMES)
1879N/A if exist $(AdlcOutDir) rmdir /s /q $(AdlcOutDir)
1879N/A mkdir $(AdlcOutDir)
0N/A $(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad
1879N/A mv $(GENERATED_NAMES) $(AdlcOutDir)/
0N/A
3041N/A$(Platform_arch_model).ad: $(SOURCES_AD)
0N/A rm -f $(Platform_arch_model).ad
3041N/A cat $(SOURCES_AD) >$(Platform_arch_model).ad