hotspot/make/bsd/makefiles/rules.make
author jmasa
Thu, 28 Aug 2014 17:45:58 +0000
changeset 26318 4a618975cfcc
parent 25639 61be16de0fd5
child 26691 40ea2c41f53b
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     1
#
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 13963
diff changeset
     2
# Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     4
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     7
# published by the Free Software Foundation.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     8
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    13
# accompanied this code).
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    14
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    18
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    21
# questions.
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 13963
diff changeset
    22
#
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    23
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    24
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    25
# Common rules/macros for the vm, adlc.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    26
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    27
# Tell make that .cpp is important
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    28
.SUFFIXES: .cpp $(SUFFIXES)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    29
dc90c239f4ec 7089790: integrate bsd-port changes
never
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 .$@ $@
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    32
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
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: 10565
diff changeset
    34
CC_COMPILE       = $(CC) $(CXXFLAGS) $(CFLAGS)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    35
CXX_COMPILE      = $(CXX) $(CXXFLAGS) $(CFLAGS)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    36
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    37
AS.S            = $(AS) $(ASFLAGS)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    38
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    39
COMPILE.CC       = $(CC_COMPILE) -c
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    40
GENASM.CC        = $(CC_COMPILE) -S
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
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: 10565
diff changeset
    42
LINK_LIB.CC      = $(CC) $(LFLAGS) $(SHARED_FLAG)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    43
PREPROCESS.CC    = $(CC_COMPILE) -E
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    44
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    45
COMPILE.CXX      = $(CXX_COMPILE) -c
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    46
GENASM.CXX       = $(CXX_COMPILE) -S
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
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: 10565
diff changeset
    48
LINK_NOPROF.CXX  = $(CXX) $(LFLAGS) $(AOUT_FLAGS)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    49
LINK_LIB.CXX     = $(CXX) $(LFLAGS) $(SHARED_FLAG)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    50
PREPROCESS.CXX   = $(CXX_COMPILE) -E
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    51
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    52
# cross compiling the jvm with c2 requires host compilers to build
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    53
# adlc tool
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    54
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    55
HOST.CXX_COMPILE      = $(HOSTCXX) $(CXXFLAGS) $(CFLAGS)
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    56
HOST.COMPILE.CXX      = $(HOST.CXX_COMPILE) -c
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
    57
HOST.LINK_NOPROF.CXX  = $(HOSTCXX) $(LFLAGS) $(AOUT_FLAGS)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    58
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    59
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    60
# Effect of REMOVE_TARGET is to delete out-of-date files during "gnumake -k".
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    61
REMOVE_TARGET   = rm -f $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    62
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    63
# Note use of ALT_BOOTDIR to explicitly specify location of java and
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    64
# javac; this is the same environment variable used in the J2SE build
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    65
# process for overriding the default spec, which is BOOTDIR.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    66
# Note also that we fall back to using JAVA_HOME if neither of these is
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    67
# specified.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    68
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    69
ifdef ALT_BOOTDIR
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    70
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    71
RUN.JAVA  = $(ALT_BOOTDIR)/bin/java
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    72
RUN.JAVAP = $(ALT_BOOTDIR)/bin/javap
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    73
RUN.JAVAH = $(ALT_BOOTDIR)/bin/javah
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    74
RUN.JAR   = $(ALT_BOOTDIR)/bin/jar
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    75
COMPILE.JAVAC = $(ALT_BOOTDIR)/bin/javac
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    76
COMPILE.RMIC = $(ALT_BOOTDIR)/bin/rmic
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    77
BOOT_JAVA_HOME = $(ALT_BOOTDIR)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    78
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    79
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    80
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    81
ifdef BOOTDIR
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    82
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    83
RUN.JAVA  = $(BOOTDIR)/bin/java
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    84
RUN.JAVAP = $(BOOTDIR)/bin/javap
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    85
RUN.JAVAH = $(BOOTDIR)/bin/javah
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    86
RUN.JAR   = $(BOOTDIR)/bin/jar
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    87
COMPILE.JAVAC = $(BOOTDIR)/bin/javac
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    88
COMPILE.RMIC  = $(BOOTDIR)/bin/rmic
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    89
BOOT_JAVA_HOME = $(BOOTDIR)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    90
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    91
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    92
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    93
ifdef JAVA_HOME
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    94
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    95
RUN.JAVA  = $(JAVA_HOME)/bin/java
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    96
RUN.JAVAP = $(JAVA_HOME)/bin/javap
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    97
RUN.JAVAH = $(JAVA_HOME)/bin/javah
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    98
RUN.JAR   = $(JAVA_HOME)/bin/jar
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    99
COMPILE.JAVAC = $(JAVA_HOME)/bin/javac
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   100
COMPILE.RMIC  = $(JAVA_HOME)/bin/rmic
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   101
BOOT_JAVA_HOME = $(JAVA_HOME)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   102
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   103
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   104
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   105
# take from the PATH, if ALT_BOOTDIR, BOOTDIR and JAVA_HOME are not defined
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   106
# note that this is to support hotspot build without SA. To build
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   107
# SA along with hotspot, you need to define ALT_BOOTDIR, BOOTDIR or JAVA_HOME
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   108
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   109
RUN.JAVA  = java
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   110
RUN.JAVAP = javap
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   111
RUN.JAVAH = javah
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   112
RUN.JAR   = jar
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   113
COMPILE.JAVAC = javac
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   114
COMPILE.RMIC  = rmic
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   115
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   116
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   117
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   118
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   119
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   120
COMPILE.JAVAC += $(BOOTSTRAP_JAVAC_FLAGS)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   121
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   122
SUM = /usr/bin/sum
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   123
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   124
# 'gmake MAKE_VERBOSE=y' gives all the gory details.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   125
QUIETLY$(MAKE_VERBOSE)  = @
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   126
RUN.JAR$(MAKE_VERBOSE) += >/dev/null
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   127
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   128
# Settings for javac
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   129
BOOT_SOURCE_LANGUAGE_VERSION = 6
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   130
BOOT_TARGET_CLASS_VERSION = 6
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   131
JAVAC_FLAGS = -g -encoding ascii
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   132
BOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   133
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   134
# With parallel makes, print a message at the end of compilation.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   135
ifeq    ($(findstring j,$(MFLAGS)),j)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   136
COMPILE_DONE    = && { echo Done with $<; }
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   137
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   138
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   139
# Include $(NONPIC_OBJ_FILES) definition
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   140
ifndef LP64
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   141
include $(GAMMADIR)/make/pic.make
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   142
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   143
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   144
include $(GAMMADIR)/make/altsrc.make
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   145
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   146
# The non-PIC object files are only generated for 32 bit platforms.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   147
ifdef LP64
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   148
%.o: %.cpp
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   149
	@echo Compiling $<
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   150
	$(QUIETLY) $(REMOVE_TARGET)
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
   151
	$(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   152
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   153
%.o: %.cpp
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   154
	@echo Compiling $<
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   155
	$(QUIETLY) $(REMOVE_TARGET)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   156
	$(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
   157
	   $(subst $(VM_PICFLAG), ,$(COMPILE.CXX)) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE), \
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
   158
	   $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE))
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   159
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   160
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   161
%.o: %.s
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   162
	@echo Assembling $<
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   163
	$(QUIETLY) $(REMOVE_TARGET)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   164
	$(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   165
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   166
%.s: %.cpp
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   167
	@echo Generating assembly for $<
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
   168
	$(QUIETLY) $(GENASM.CXX) -o $@ $<
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   169
	$(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   170
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   171
# Intermediate files (for debugging macros)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   172
%.i: %.cpp
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   173
	@echo Preprocessing $< to $@
11721
dcd1f62c9caf 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 10565
diff changeset
   174
	$(QUIETLY) $(PREPROCESS.CXX) $< > $@ $(COMPILE_DONE)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   175
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   176
#  Override gnumake built-in rules which do sccs get operations badly.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   177
#  (They put the checked out code in the current directory, not in the
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   178
#  directory of the original file.)  Since this is a symptom of a teamware
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   179
#  failure, and since not all problems can be detected by gnumake due
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   180
#  to incomplete dependency checking... just complain and stop.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   181
%:: s.%
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   182
	@echo "========================================================="
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   183
	@echo File $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   184
	@echo is out of date with respect to its SCCS file.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   185
	@echo This file may be from an unresolved Teamware conflict.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   186
	@echo This is also a symptom of a Teamware bringover/putback failure
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   187
	@echo in which SCCS files are updated but not checked out.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   188
	@echo Check for other out of date files in your workspace.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   189
	@echo "========================================================="
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   190
	@exit 666
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   191
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   192
%:: SCCS/s.%
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   193
	@echo "========================================================="
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   194
	@echo File $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   195
	@echo is out of date with respect to its SCCS file.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   196
	@echo This file may be from an unresolved Teamware conflict.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   197
	@echo This is also a symptom of a Teamware bringover/putback failure
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   198
	@echo in which SCCS files are updated but not checked out.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   199
	@echo Check for other out of date files in your workspace.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   200
	@echo "========================================================="
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   201
	@exit 666
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   202
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   203
.PHONY: default