15 # accompanied this code). 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 GENSRC_BUFFER := 27 28 GENSRC_BUFFER_DST := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/nio 29 30 GENSRC_BUFFER_SRC := $(JDK_TOPDIR)/src/java.base/share/classes/java/nio 31 32 ### 33 34 $(GENSRC_BUFFER_DST)/_the.buffer.dir: 35 $(ECHO) "Generating buffer classes" 36 $(MKDIR) -p $(@D) 37 $(TOUCH) $@ 38 39 define fixRw 40 $1_RW := $2 41 $1_rwkey := rw 42 ifeq (R, $2) 43 $1_rwkey := ro 44 endif 45 endef 46 47 define typesAndBits 48 # param 1 target 49 # param 2 type 50 # param 3 BO 51 $1_a := a 52 $1_A := A 53 54 $1_type := $2 55 56 ifeq ($2, byte) | 15 # accompanied this code). 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 GENSRC_BUFFER := 27 28 GENSRC_BUFFER_DST := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/nio 29 30 GENSRC_BUFFER_SRC := $(JDK_TOPDIR)/src/java.base/share/classes/java/nio 31 32 ### 33 34 $(GENSRC_BUFFER_DST)/_the.buffer.dir: 35 $(call LogInfo, Generating buffer classes) 36 $(call MakeDir, $(@D)) 37 $(TOUCH) $@ 38 39 define fixRw 40 $1_RW := $2 41 $1_rwkey := rw 42 ifeq (R, $2) 43 $1_rwkey := ro 44 endif 45 endef 46 47 define typesAndBits 48 # param 1 target 49 # param 2 type 50 # param 3 BO 51 $1_a := a 52 $1_A := A 53 54 $1_type := $2 55 56 ifeq ($2, byte) |