make/solaris/makefiles/rules.make

Print this page




  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  
  23 #
  24 
  25 # Common rules/macros for the vm, adlc.
  26 
  27 # Tell make that .cpp is important
  28 .SUFFIXES: .cpp $(SUFFIXES)
  29 
  30 # For now.  Other makefiles use CPP as the c++ compiler, but that should really
  31 # name the preprocessor.
  32 ifeq    ($(CCC),)
  33 CCC             = $(CPP)
  34 endif
  35 
  36 DEMANGLER       = c++filt
  37 DEMANGLE        = $(DEMANGLER) < $@ > .$@ && mv -f .$@ $@
  38 
  39 # $(CC) is the c compiler (cc/gcc), $(CCC) is the c++ compiler (CC/g++).
  40 C_COMPILE       = $(CC) $(CPPFLAGS) $(CFLAGS)
  41 CC_COMPILE      = $(CCC) $(CPPFLAGS) $(CFLAGS)
  42 
  43 AS.S            = $(AS) $(ASFLAGS)
  44 
  45 COMPILE.c       = $(C_COMPILE) -c
  46 GENASM.c        = $(C_COMPILE) -S
  47 LINK.c          = $(CC) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS)
  48 LINK_LIB.c      = $(CC) $(LFLAGS) $(SHARED_FLAG)
  49 PREPROCESS.c    = $(C_COMPILE) -E
  50 
  51 COMPILE.CC      = $(CC_COMPILE) -c
  52 GENASM.CC       = $(CC_COMPILE) -S
  53 LINK.CC         = $(CCC) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS)
  54 LINK_NOPROF.CC  = $(CCC) $(LFLAGS) $(AOUT_FLAGS)
  55 LINK_LIB.CC     = $(CCC) $(LFLAGS) $(SHARED_FLAG)
  56 PREPROCESS.CC   = $(CC_COMPILE) -E
  57 
  58 # Effect of REMOVE_TARGET is to delete out-of-date files during "gnumake -k".
  59 REMOVE_TARGET   = rm -f $@
  60 
  61 # Synonyms.
  62 COMPILE.cpp     = $(COMPILE.CC)
  63 GENASM.cpp      = $(GENASM.CC)
  64 LINK.cpp        = $(LINK.CC)
  65 LINK_LIB.cpp    = $(LINK_LIB.CC)
  66 PREPROCESS.cpp  = $(PREPROCESS.CC)
  67 
  68 # Note use of ALT_BOOTDIR to explicitly specify location of java and
  69 # javac; this is the same environment variable used in the J2SE build
  70 # process for overriding the default spec, which is BOOTDIR.
  71 # Note also that we fall back to using JAVA_HOME if neither of these is
  72 # specified.
  73 
  74 ifdef ALT_BOOTDIR
  75 




  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  
  23 #
  24 
  25 # Common rules/macros for the vm, adlc.
  26 
  27 # Tell make that .cpp is important
  28 .SUFFIXES: .cpp $(SUFFIXES)
  29 






  30 DEMANGLER       = c++filt
  31 DEMANGLE        = $(DEMANGLER) < $@ > .$@ && mv -f .$@ $@
  32 
  33 # $(CC) is the c compiler (cc/gcc), $(CXX) is the c++ compiler (CC/g++).
  34 C_COMPILE       = $(CC) $(CXXFLAGS) $(CFLAGS)
  35 CC_COMPILE      = $(CXX) $(CXXFLAGS) $(CFLAGS)
  36 
  37 AS.S            = $(AS) $(ASFLAGS)
  38 
  39 COMPILE.c       = $(C_COMPILE) -c
  40 GENASM.c        = $(C_COMPILE) -S
  41 LINK.c          = $(CC) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS)
  42 LINK_LIB.c      = $(CC) $(LFLAGS) $(SHARED_FLAG)
  43 PREPROCESS.c    = $(C_COMPILE) -E
  44 
  45 COMPILE.CC      = $(CC_COMPILE) -c
  46 GENASM.CC       = $(CC_COMPILE) -S
  47 LINK.CC         = $(CXX) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS)
  48 LINK_NOPROF.CC  = $(CXX) $(LFLAGS) $(AOUT_FLAGS)
  49 LINK_LIB.CC     = $(CXX) $(LFLAGS) $(SHARED_FLAG)
  50 PREPROCESS.CC   = $(CC_COMPILE) -E
  51 
  52 # Effect of REMOVE_TARGET is to delete out-of-date files during "gnumake -k".
  53 REMOVE_TARGET   = rm -f $@
  54 
  55 # Synonyms.
  56 COMPILE.cpp     = $(COMPILE.CC)
  57 GENASM.cpp      = $(GENASM.CC)
  58 LINK.cpp        = $(LINK.CC)
  59 LINK_LIB.cpp    = $(LINK_LIB.CC)
  60 PREPROCESS.cpp  = $(PREPROCESS.CC)
  61 
  62 # Note use of ALT_BOOTDIR to explicitly specify location of java and
  63 # javac; this is the same environment variable used in the J2SE build
  64 # process for overriding the default spec, which is BOOTDIR.
  65 # Note also that we fall back to using JAVA_HOME if neither of these is
  66 # specified.
  67 
  68 ifdef ALT_BOOTDIR
  69