annotate make/windows/makefiles/adlc.make @ 427:3c07cda72b7d

6764892: VS2008 changes required to compile hotspot sources Summary: Minor changes required to build using the Visual Studio 2008 compiler Reviewed-by: kvn, ohair
author tbell
date Tue, 11 Nov 2008 22:01:08 -0800
parents d1605aabd0a1
children 520d43965b1f
rev   line source
duke@0 1 #
xdono@196 2 # Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation.
duke@0 8 #
duke@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 # accompanied this code).
duke@0 14 #
duke@0 15 # You should have received a copy of the GNU General Public License version
duke@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 #
duke@0 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 20 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 21 # have any questions.
duke@0 22 #
duke@0 23 #
duke@0 24
kamg@91 25 !include $(WorkSpace)/make/windows/makefiles/compile.make
duke@0 26
duke@0 27 # Rules for building adlc.exe
duke@0 28
duke@0 29 # Need exception handling support here
duke@0 30 # $(MS_RUNTIME_OPTION) ( with /D_STATIC_CPPLIB)
duke@0 31 # causes adlc.exe to link with the static
duke@0 32 # multithread Standard C++ library (libcpmt.lib) instead of
duke@0 33 # the dynamic version (msvcprt.lib), which is not included
duke@0 34 # in any of the free tools.
duke@0 35 EXH_FLAGS=$(GX_OPTION) $(MS_RUNTIME_OPTION)
duke@0 36
duke@0 37 !ifdef ALT_ADLC_PATH
duke@0 38 ADLC=$(ALT_ADLC_PATH)\adlc.exe
duke@0 39 !else
duke@0 40 ADLC=adlc
duke@0 41 !endif
duke@0 42
duke@0 43 !ifdef LP64
duke@0 44 ADLCFLAGS=-q -T -D_LP64
duke@0 45 !else
duke@0 46 ADLCFLAGS=-q -T -U_LP64
duke@0 47 !endif
duke@0 48
duke@0 49
duke@0 50 CPP_INCLUDE_DIRS=\
duke@0 51 /I "..\generated" \
duke@0 52 /I "$(WorkSpace)\src\share\vm\compiler" \
duke@0 53 /I "$(WorkSpace)\src\share\vm\code" \
duke@0 54 /I "$(WorkSpace)\src\share\vm\interpreter" \
duke@0 55 /I "$(WorkSpace)\src\share\vm\classfile" \
duke@0 56 /I "$(WorkSpace)\src\share\vm\asm" \
duke@0 57 /I "$(WorkSpace)\src\share\vm\memory" \
duke@0 58 /I "$(WorkSpace)\src\share\vm\oops" \
duke@0 59 /I "$(WorkSpace)\src\share\vm\prims" \
duke@0 60 /I "$(WorkSpace)\src\share\vm\runtime" \
duke@0 61 /I "$(WorkSpace)\src\share\vm\utilities" \
duke@0 62 /I "$(WorkSpace)\src\share\vm\libadt" \
duke@0 63 /I "$(WorkSpace)\src\share\vm\opto" \
duke@0 64 /I "$(WorkSpace)\src\os\windows\vm" \
duke@0 65 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm"
duke@0 66
duke@0 67 # NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_INCL
duke@0 68 # and MakeDepsIDEOptions in makedeps.make.
duke@0 69 GENERATED_NAMES=\
duke@0 70 ad_$(Platform_arch_model).cpp \
duke@0 71 ad_$(Platform_arch_model).hpp \
duke@0 72 ad_$(Platform_arch_model)_clone.cpp \
duke@0 73 ad_$(Platform_arch_model)_expand.cpp \
duke@0 74 ad_$(Platform_arch_model)_format.cpp \
duke@0 75 ad_$(Platform_arch_model)_gen.cpp \
duke@0 76 ad_$(Platform_arch_model)_misc.cpp \
duke@0 77 ad_$(Platform_arch_model)_peephole.cpp \
duke@0 78 ad_$(Platform_arch_model)_pipeline.cpp \
duke@0 79 adGlobals_$(Platform_arch_model).hpp \
duke@0 80 dfa_$(Platform_arch_model).cpp
duke@0 81
duke@0 82 # NOTE! This must be kept in sync with GENERATED_NAMES
duke@0 83 GENERATED_NAMES_IN_INCL=\
duke@0 84 incls/ad_$(Platform_arch_model).cpp \
duke@0 85 incls/ad_$(Platform_arch_model).hpp \
duke@0 86 incls/ad_$(Platform_arch_model)_clone.cpp \
duke@0 87 incls/ad_$(Platform_arch_model)_expand.cpp \
duke@0 88 incls/ad_$(Platform_arch_model)_format.cpp \
duke@0 89 incls/ad_$(Platform_arch_model)_gen.cpp \
duke@0 90 incls/ad_$(Platform_arch_model)_misc.cpp \
duke@0 91 incls/ad_$(Platform_arch_model)_peephole.cpp \
duke@0 92 incls/ad_$(Platform_arch_model)_pipeline.cpp \
duke@0 93 incls/adGlobals_$(Platform_arch_model).hpp \
duke@0 94 incls/dfa_$(Platform_arch_model).cpp
duke@0 95
duke@0 96 {$(WorkSpace)\src\share\vm\adlc}.cpp.obj::
duke@0 97 $(CPP) $(CPP_FLAGS) $(EXH_FLAGS) $(CPP_INCLUDE_DIRS) /c $<
duke@0 98
duke@0 99 {$(WorkSpace)\src\share\vm\opto}.cpp.obj::
duke@0 100 $(CPP) $(CPP_FLAGS) $(EXH_FLAGS) $(CPP_INCLUDE_DIRS) /c $<
duke@0 101
duke@0 102 adlc.exe: main.obj adlparse.obj archDesc.obj arena.obj dfa.obj dict2.obj filebuff.obj \
duke@0 103 forms.obj formsopt.obj formssel.obj opcodes.obj output_c.obj output_h.obj
duke@0 104 $(LINK) $(LINK_FLAGS) /subsystem:console /out:$@ $**
tbell@427 105 !if "$(MT)" != ""
tbell@427 106 # The previous link command created a .manifest file that we want to
tbell@427 107 # insert into the linked artifact so we do not need to track it
tbell@427 108 # separately. Use ";#2" for .dll and ";#1" for .exe:
tbell@427 109 $(MT) /manifest $@.manifest /outputresource:$@;#1
tbell@427 110 !endif
duke@0 111
duke@0 112 $(GENERATED_NAMES_IN_INCL): $(Platform_arch_model).ad adlc.exe includeDB.current
duke@0 113 rm -f $(GENERATED_NAMES)
duke@0 114 $(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad
duke@0 115 mv $(GENERATED_NAMES) incls/
duke@0 116
duke@0 117 $(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
duke@0 118 rm -f $(Platform_arch_model).ad
duke@0 119 cat $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \
duke@0 120 $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad >$(Platform_arch_model).ad