hotspot/make/linux/makefiles/rules.make
author erikj
Tue, 24 Nov 2015 12:18:25 +0100
changeset 34289 2d1821a50263
parent 31620 53be635ad49c
permissions -rw-r--r--
8142336: Convert the SA agent build to modular build-infra makefiles Reviewed-by: ihse, sla, dsamersoff, twisti
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
31620
53be635ad49c 8087333: Optionally Pre-Generate the HotSpot Template Interpreter
bdelsart
parents: 29463
diff changeset
     2
# Copyright (c) 2003, 2015, Oracle and/or its affiliates. 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
#
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3818
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3818
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3818
diff changeset
    21
# questions.
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 13963
diff changeset
    22
#
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
# Common rules/macros for the vm, adlc.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
# Tell make that .cpp is important
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
.SUFFIXES: .cpp $(SUFFIXES)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
DEMANGLER       = c++filt
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 13963
diff changeset
    31
DEMANGLE        = $(DEMANGLER) < $@ > .$@ && $(MV) -f .$@ $@
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    33
# $(CC) is the c compiler (cc/gcc), $(CXX) is the c++ compiler (CC/g++).
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    34
CC_COMPILE       = $(CC) $(CXXFLAGS) $(CFLAGS)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    35
CXX_COMPILE      = $(CXX) $(CXXFLAGS) $(CFLAGS)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
31620
53be635ad49c 8087333: Optionally Pre-Generate the HotSpot Template Interpreter
bdelsart
parents: 29463
diff changeset
    37
AS.S             = $(AS) $(ASFLAGS)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    39
COMPILE.CC       = $(CC_COMPILE) -c
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    40
GENASM.CC        = $(CC_COMPILE) -S
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    41
LINK.CC          = $(CC) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    42
LINK_LIB.CC      = $(CC) $(LFLAGS) $(SHARED_FLAG)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    43
PREPROCESS.CC    = $(CC_COMPILE) -E
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    45
COMPILE.CXX      = $(CXX_COMPILE) -c
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    46
GENASM.CXX       = $(CXX_COMPILE) -S
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    47
LINK.CXX         = $(CXX) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    48
LINK_NOPROF.CXX  = $(CXX) $(LFLAGS) $(AOUT_FLAGS)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    49
LINK_LIB.CXX     = $(CXX) $(LFLAGS) $(SHARED_FLAG)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    50
PREPROCESS.CXX   = $(CXX_COMPILE) -E
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
8868
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 8114
diff changeset
    52
# cross compiling the jvm with c2 requires host compilers to build
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 8114
diff changeset
    53
# adlc tool
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 8114
diff changeset
    54
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    55
HOST.CXX_COMPILE      = $(HOSTCXX) $(CXXFLAGS) $(CFLAGS)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    56
HOST.COMPILE.CXX      = $(HOST.CXX_COMPILE) -c
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
    57
HOST.LINK_NOPROF.CXX  = $(HOSTCXX) $(LFLAGS) $(AOUT_FLAGS)
8868
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 8114
diff changeset
    58
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 8114
diff changeset
    59
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
# Effect of REMOVE_TARGET is to delete out-of-date files during "gnumake -k".
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
REMOVE_TARGET   = rm -f $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
# Note use of ALT_BOOTDIR to explicitly specify location of java and
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
# javac; this is the same environment variable used in the J2SE build
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
# process for overriding the default spec, which is BOOTDIR.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
# Note also that we fall back to using JAVA_HOME if neither of these is
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
# specified.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
ifdef ALT_BOOTDIR
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
RUN.JAVA  = $(ALT_BOOTDIR)/bin/java
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
RUN.JAVAP = $(ALT_BOOTDIR)/bin/javap
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
RUN.JAVAH = $(ALT_BOOTDIR)/bin/javah
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
RUN.JAR   = $(ALT_BOOTDIR)/bin/jar
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
COMPILE.JAVAC = $(ALT_BOOTDIR)/bin/javac
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
COMPILE.RMIC = $(ALT_BOOTDIR)/bin/rmic
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
BOOT_JAVA_HOME = $(ALT_BOOTDIR)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
ifdef BOOTDIR
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
RUN.JAVA  = $(BOOTDIR)/bin/java
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
RUN.JAVAP = $(BOOTDIR)/bin/javap
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
RUN.JAVAH = $(BOOTDIR)/bin/javah
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
RUN.JAR   = $(BOOTDIR)/bin/jar
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
COMPILE.JAVAC = $(BOOTDIR)/bin/javac
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
COMPILE.RMIC  = $(BOOTDIR)/bin/rmic
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
BOOT_JAVA_HOME = $(BOOTDIR)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
ifdef JAVA_HOME
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
RUN.JAVA  = $(JAVA_HOME)/bin/java
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
RUN.JAVAP = $(JAVA_HOME)/bin/javap
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
RUN.JAVAH = $(JAVA_HOME)/bin/javah
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
RUN.JAR   = $(JAVA_HOME)/bin/jar
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
COMPILE.JAVAC = $(JAVA_HOME)/bin/javac
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
COMPILE.RMIC  = $(JAVA_HOME)/bin/rmic
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
BOOT_JAVA_HOME = $(JAVA_HOME)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
# take from the PATH, if ALT_BOOTDIR, BOOTDIR and JAVA_HOME are not defined
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
RUN.JAVA  = java
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
RUN.JAVAP = javap
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
RUN.JAVAH = javah
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
RUN.JAR   = jar
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
COMPILE.JAVAC = javac
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
COMPILE.RMIC  = rmic
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
3818
75004bf9026c 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents: 781
diff changeset
   118
COMPILE.JAVAC += $(BOOTSTRAP_JAVAC_FLAGS)
75004bf9026c 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents: 781
diff changeset
   119
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
SUM = /usr/bin/sum
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
# 'gmake MAKE_VERBOSE=y' gives all the gory details.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
QUIETLY$(MAKE_VERBOSE)  = @
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
RUN.JAR$(MAKE_VERBOSE) += >/dev/null
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
3818
75004bf9026c 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents: 781
diff changeset
   126
# Settings for javac
75004bf9026c 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents: 781
diff changeset
   127
JAVAC_FLAGS = -g -encoding ascii
29463
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   128
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   129
# Prefer BOOT_JDK_SOURCETARGET if it's set (typically by the top build system)
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   130
# Fall back to the values here if it's not set (hotspot only builds)
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   131
ifeq ($(BOOT_JDK_SOURCETARGET),)
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   132
BOOTSTRAP_SOURCETARGET := -source 8 -target 8
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   133
else
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   134
BOOTSTRAP_SOURCETARGET := $(BOOT_JDK_SOURCETARGET)
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   135
endif
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   136
4b16497408b9 8074726: Update source and target version used when compiling hotspot class files
mikael
parents: 26691
diff changeset
   137
BOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) $(BOOTSTRAP_SOURCETARGET)
3818
75004bf9026c 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents: 781
diff changeset
   138
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
# With parallel makes, print a message at the end of compilation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
ifeq    ($(findstring j,$(MFLAGS)),j)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
COMPILE_DONE    = && { echo Done with $<; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
774
e71318ea23e8 6717128: Using relative path for ALT_OUTPUTDIR does not work properly
xlu
parents: 744
diff changeset
   144
# Include $(NONPIC_OBJ_FILES) definition
e71318ea23e8 6717128: Using relative path for ALT_OUTPUTDIR does not work properly
xlu
parents: 744
diff changeset
   145
ifndef LP64
e71318ea23e8 6717128: Using relative path for ALT_OUTPUTDIR does not work properly
xlu
parents: 744
diff changeset
   146
include $(GAMMADIR)/make/pic.make
e71318ea23e8 6717128: Using relative path for ALT_OUTPUTDIR does not work properly
xlu
parents: 744
diff changeset
   147
endif
744
88e28f2ccee4 6647068: libjvm.so is not built PIC
xlu
parents: 338
diff changeset
   148
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 8107
diff changeset
   149
include $(GAMMADIR)/make/altsrc.make
8107
78e5bd944384 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 7397
diff changeset
   150
744
88e28f2ccee4 6647068: libjvm.so is not built PIC
xlu
parents: 338
diff changeset
   151
# The non-PIC object files are only generated for 32 bit platforms.
88e28f2ccee4 6647068: libjvm.so is not built PIC
xlu
parents: 338
diff changeset
   152
ifdef LP64
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
%.o: %.cpp
26691
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 25639
diff changeset
   154
	@echo $(LOG_INFO) Compiling $<
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
	$(QUIETLY) $(REMOVE_TARGET)
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
   156
	$(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
744
88e28f2ccee4 6647068: libjvm.so is not built PIC
xlu
parents: 338
diff changeset
   157
else
88e28f2ccee4 6647068: libjvm.so is not built PIC
xlu
parents: 338
diff changeset
   158
%.o: %.cpp
26691
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 25639
diff changeset
   159
	@echo $(LOG_INFO) Compiling $<
744
88e28f2ccee4 6647068: libjvm.so is not built PIC
xlu
parents: 338
diff changeset
   160
	$(QUIETLY) $(REMOVE_TARGET)
88e28f2ccee4 6647068: libjvm.so is not built PIC
xlu
parents: 338
diff changeset
   161
	$(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
   162
	   $(subst $(VM_PICFLAG), ,$(COMPILE.CXX)) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE), \
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
   163
	   $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE))
744
88e28f2ccee4 6647068: libjvm.so is not built PIC
xlu
parents: 338
diff changeset
   164
endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
%.o: %.s
26691
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 25639
diff changeset
   167
	@echo $(LOG_INFO) Assembling $<
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
	$(QUIETLY) $(REMOVE_TARGET)
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   169
	$(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
31620
53be635ad49c 8087333: Optionally Pre-Generate the HotSpot Template Interpreter
bdelsart
parents: 29463
diff changeset
   171
# gcc applies preprocessing if the file extension is .S instead of .s
53be635ad49c 8087333: Optionally Pre-Generate the HotSpot Template Interpreter
bdelsart
parents: 29463
diff changeset
   172
%.o: %.S
53be635ad49c 8087333: Optionally Pre-Generate the HotSpot Template Interpreter
bdelsart
parents: 29463
diff changeset
   173
	@echo $(LOG_INFO) Preprocessing and assembling $<
53be635ad49c 8087333: Optionally Pre-Generate the HotSpot Template Interpreter
bdelsart
parents: 29463
diff changeset
   174
	$(QUIETLY) $(REMOVE_TARGET)
53be635ad49c 8087333: Optionally Pre-Generate the HotSpot Template Interpreter
bdelsart
parents: 29463
diff changeset
   175
	$(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE) 
53be635ad49c 8087333: Optionally Pre-Generate the HotSpot Template Interpreter
bdelsart
parents: 29463
diff changeset
   176
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
%.s: %.cpp
26691
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 25639
diff changeset
   178
	@echo $(LOG_INFO) Generating assembly for $<
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
   179
	$(QUIETLY) $(GENASM.CXX) -o $@ $<
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
	$(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
# Intermediate files (for debugging macros)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
%.i: %.cpp
26691
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 25639
diff changeset
   184
	@echo $(LOG_INFO) Preprocessing $< to $@
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 8868
diff changeset
   185
	$(QUIETLY) $(PREPROCESS.CXX) $< > $@ $(COMPILE_DONE)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
#  Override gnumake built-in rules which do sccs get operations badly.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
#  (They put the checked out code in the current directory, not in the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
#  directory of the original file.)  Since this is a symptom of a teamware
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
#  failure, and since not all problems can be detected by gnumake due
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
#  to incomplete dependency checking... just complain and stop.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
%:: s.%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
	@echo "========================================================="
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
	@echo File $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
	@echo is out of date with respect to its SCCS file.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
	@echo This file may be from an unresolved Teamware conflict.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
	@echo This is also a symptom of a Teamware bringover/putback failure
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
	@echo in which SCCS files are updated but not checked out.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
	@echo Check for other out of date files in your workspace.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
	@echo "========================================================="
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
	@exit 666
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
%:: SCCS/s.%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
	@echo "========================================================="
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
	@echo File $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
	@echo is out of date with respect to its SCCS file.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
	@echo This file may be from an unresolved Teamware conflict.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
	@echo This is also a symptom of a Teamware bringover/putback failure
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
	@echo in which SCCS files are updated but not checked out.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
	@echo Check for other out of date files in your workspace.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
	@echo "========================================================="
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
	@exit 666
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
.PHONY: default