adlc.make revision 1472
0N/A#
1472N/A# Copyright (c) 1999, 2009, 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
91N/A!include $(WorkSpace)/make/windows/makefiles/compile.make
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
659N/ACPP_FLAGS=$(CPP_FLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
0N/A
0N/ACPP_INCLUDE_DIRS=\
0N/A /I "..\generated" \
0N/A /I "$(WorkSpace)\src\share\vm\compiler" \
0N/A /I "$(WorkSpace)\src\share\vm\code" \
0N/A /I "$(WorkSpace)\src\share\vm\interpreter" \
0N/A /I "$(WorkSpace)\src\share\vm\classfile" \
0N/A /I "$(WorkSpace)\src\share\vm\asm" \
0N/A /I "$(WorkSpace)\src\share\vm\memory" \
0N/A /I "$(WorkSpace)\src\share\vm\oops" \
0N/A /I "$(WorkSpace)\src\share\vm\prims" \
0N/A /I "$(WorkSpace)\src\share\vm\runtime" \
0N/A /I "$(WorkSpace)\src\share\vm\utilities" \
0N/A /I "$(WorkSpace)\src\share\vm\libadt" \
0N/A /I "$(WorkSpace)\src\share\vm\opto" \
0N/A /I "$(WorkSpace)\src\os\windows\vm" \
0N/A /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm"
0N/A
0N/A# NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_INCL
0N/A# and MakeDepsIDEOptions in makedeps.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
0N/AGENERATED_NAMES_IN_INCL=\
0N/A incls/ad_$(Platform_arch_model).cpp \
0N/A incls/ad_$(Platform_arch_model).hpp \
0N/A incls/ad_$(Platform_arch_model)_clone.cpp \
0N/A incls/ad_$(Platform_arch_model)_expand.cpp \
0N/A incls/ad_$(Platform_arch_model)_format.cpp \
0N/A incls/ad_$(Platform_arch_model)_gen.cpp \
0N/A incls/ad_$(Platform_arch_model)_misc.cpp \
0N/A incls/ad_$(Platform_arch_model)_peephole.cpp \
0N/A incls/ad_$(Platform_arch_model)_pipeline.cpp \
0N/A incls/adGlobals_$(Platform_arch_model).hpp \
0N/A incls/dfa_$(Platform_arch_model).cpp
0N/A
0N/A{$(WorkSpace)\src\share\vm\adlc}.cpp.obj::
0N/A $(CPP) $(CPP_FLAGS) $(EXH_FLAGS) $(CPP_INCLUDE_DIRS) /c $<
0N/A
0N/A{$(WorkSpace)\src\share\vm\opto}.cpp.obj::
0N/A $(CPP) $(CPP_FLAGS) $(EXH_FLAGS) $(CPP_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
0N/A $(LINK) $(LINK_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
0N/A$(GENERATED_NAMES_IN_INCL): $(Platform_arch_model).ad adlc.exe includeDB.current
0N/A rm -f $(GENERATED_NAMES)
0N/A $(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad
0N/A mv $(GENERATED_NAMES) incls/
0N/A
0N/A$(Platform_arch_model).ad: $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad
0N/A rm -f $(Platform_arch_model).ad
0N/A cat $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \
0N/A $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad >$(Platform_arch_model).ad