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