make/aix/makefiles/adlc.make

Print this page
rev 8019 : 8075858: AIX: clean-up HotSpot make files
   1 #
   2 # Copyright (c) 1999, 2013, 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 #  


 123         : OBJECTS=$(OBJECTS)
 124         : products = $(GENERATEDFILES)
 125 
 126 all: $(GENERATEDFILES)
 127 
 128 $(GENERATEDFILES): refresh_adfiles
 129 
 130 # Get a unique temporary directory name, so multiple makes can run in parallel.
 131 # Note that product files are updated via "mv", which is atomic.
 132 TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$)
 133 
 134 # Debuggable by default
 135 CFLAGS += -g
 136 
 137 # Pass -D flags into ADLC.
 138 ADLCFLAGS += $(SYSDEFS)
 139 
 140 # Note "+="; it is a hook so flags.make can add more flags, like -g or -DFOO.
 141 ADLCFLAGS += -q -T
 142 
 143 # Normally, debugging is done directly on the ad_<arch>*.cpp files.
 144 # But -g will put #line directives in those files pointing back to <arch>.ad.
 145 # Some builds of gcc 3.2 have a bug that gets tickled by the extra #line directives
 146 # so skip it for 3.2 and ealier.
 147 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
 148 ADLCFLAGS += -g
 149 endif
 150 
 151 ifdef LP64
 152 ADLCFLAGS += -D_LP64
 153 else
 154 ADLCFLAGS += -U_LP64
 155 endif
 156 
 157 #
 158 # adlc_updater is a simple sh script, under sccs control. It is
 159 # used to selectively update generated adlc files. This should
 160 # provide a nice compilation speed improvement.
 161 #
 162 ADLC_UPDATER_DIRECTORY = $(GAMMADIR)/make/$(OS)
 163 ADLC_UPDATER = adlc_updater
 164 $(ADLC_UPDATER): $(ADLC_UPDATER_DIRECTORY)/$(ADLC_UPDATER)
 165         $(QUIETLY) cp $< $@; chmod +x $@
 166 
 167 # This action refreshes all generated adlc files simultaneously.
 168 # The way it works is this:
 169 # 1) create a scratch directory to work in.


   1 #
   2 # Copyright (c) 1999, 2015, 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 #  


 123         : OBJECTS=$(OBJECTS)
 124         : products = $(GENERATEDFILES)
 125 
 126 all: $(GENERATEDFILES)
 127 
 128 $(GENERATEDFILES): refresh_adfiles
 129 
 130 # Get a unique temporary directory name, so multiple makes can run in parallel.
 131 # Note that product files are updated via "mv", which is atomic.
 132 TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$)
 133 
 134 # Debuggable by default
 135 CFLAGS += -g
 136 
 137 # Pass -D flags into ADLC.
 138 ADLCFLAGS += $(SYSDEFS)
 139 
 140 # Note "+="; it is a hook so flags.make can add more flags, like -g or -DFOO.
 141 ADLCFLAGS += -q -T
 142 





 143 ADLCFLAGS += -g

 144 
 145 ifdef LP64
 146 ADLCFLAGS += -D_LP64
 147 else
 148 ADLCFLAGS += -U_LP64
 149 endif
 150 
 151 #
 152 # adlc_updater is a simple sh script, under sccs control. It is
 153 # used to selectively update generated adlc files. This should
 154 # provide a nice compilation speed improvement.
 155 #
 156 ADLC_UPDATER_DIRECTORY = $(GAMMADIR)/make/$(OS)
 157 ADLC_UPDATER = adlc_updater
 158 $(ADLC_UPDATER): $(ADLC_UPDATER_DIRECTORY)/$(ADLC_UPDATER)
 159         $(QUIETLY) cp $< $@; chmod +x $@
 160 
 161 # This action refreshes all generated adlc files simultaneously.
 162 # The way it works is this:
 163 # 1) create a scratch directory to work in.