make/linux/makefiles/adlc.make

Print this page


   1 #
   2 # Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  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 #  


 116 
 117 # The source files refer to ostream.h, which sparcworks calls iostream.h
 118 $(OBJECTS): ostream.h
 119 
 120 ostream.h :
 121         @echo >$@ '#include <iostream.h>'
 122 
 123 dump:
 124         : OUTDIR=$(OUTDIR)
 125         : OBJECTS=$(OBJECTS)
 126         : products = $(GENERATEDFILES)
 127 
 128 all: $(GENERATEDFILES)
 129 
 130 $(GENERATEDFILES): refresh_adfiles
 131 
 132 # Get a unique temporary directory name, so multiple makes can run in parallel.
 133 # Note that product files are updated via "mv", which is atomic.
 134 TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$)
 135 
 136 # Debuggable by default
 137 CFLAGS += -g


 138 
 139 # Pass -D flags into ADLC.
 140 ADLCFLAGS += $(SYSDEFS)
 141 
 142 # Note "+="; it is a hook so flags.make can add more flags, like -g or -DFOO.
 143 ADLCFLAGS += -q -T
 144 
 145 # Normally, debugging is done directly on the ad_<arch>*.cpp files.
 146 # But -g will put #line directives in those files pointing back to <arch>.ad.
 147 # Some builds of gcc 3.2 have a bug that gets tickled by the extra #line directives
 148 # so skip it for 3.2 and ealier.
 149 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
 150 ADLCFLAGS += -g
 151 endif
 152 
 153 ifdef LP64
 154 ADLCFLAGS += -D_LP64
 155 else
 156 ADLCFLAGS += -U_LP64
 157 endif


   1 #
   2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  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 #  


 116 
 117 # The source files refer to ostream.h, which sparcworks calls iostream.h
 118 $(OBJECTS): ostream.h
 119 
 120 ostream.h :
 121         @echo >$@ '#include <iostream.h>'
 122 
 123 dump:
 124         : OUTDIR=$(OUTDIR)
 125         : OBJECTS=$(OBJECTS)
 126         : products = $(GENERATEDFILES)
 127 
 128 all: $(GENERATEDFILES)
 129 
 130 $(GENERATEDFILES): refresh_adfiles
 131 
 132 # Get a unique temporary directory name, so multiple makes can run in parallel.
 133 # Note that product files are updated via "mv", which is atomic.
 134 TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$)
 135 
 136 ifneq ($(DEBUG_BINARIES), true)
 137   # Debuggable by default (unless already done by DEBUG_BINARIES)
 138   CFLAGS += -g
 139 endif
 140 
 141 # Pass -D flags into ADLC.
 142 ADLCFLAGS += $(SYSDEFS)
 143 
 144 # Note "+="; it is a hook so flags.make can add more flags, like -g or -DFOO.
 145 ADLCFLAGS += -q -T
 146 
 147 # Normally, debugging is done directly on the ad_<arch>*.cpp files.
 148 # But -g will put #line directives in those files pointing back to <arch>.ad.
 149 # Some builds of gcc 3.2 have a bug that gets tickled by the extra #line directives
 150 # so skip it for 3.2 and ealier.
 151 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
 152 ADLCFLAGS += -g
 153 endif
 154 
 155 ifdef LP64
 156 ADLCFLAGS += -D_LP64
 157 else
 158 ADLCFLAGS += -U_LP64
 159 endif