makefiles/GensrcBuffer.gmk

Print this page




 181         # param 1 is for output file
 182         # param 2 is template dependency
 183         # param 3-9 are named args.
 184         #   type :=
 185         #   BIN  :=
 186         #   RW   := Mutability (R)ead-only (W)ritable
 187         #   BO   := (U)nswapped/(S)wapped/(L)ittle/(B)ig
 188         #
 189         $(if $3,$1_$(strip $3))
 190         $(if $4,$1_$(strip $4))
 191         $(if $5,$1_$(strip $5))
 192         $(if $6,$1_$(strip $6))
 193         $(if $7,$1_$(strip $7))
 194         $(if $8,$1_$(strip $8))
 195         $(if $9,$1_$(strip $9))
 196         $(if $(10),$1_$(strip $(10)))
 197         $(if $(11),$1_$(strip $(11)))
 198         $(if $(12),$1_$(strip $(12)))
 199         $(if $(13),$1_$(strip $(13)))
 200         $(if $(14),$1_$(strip $(14)))

 201 
 202         $(call fixRw,$1,$$($1_RW))
 203         $(call typesAndBits,$1,$$($1_type),$$($1_BO))
 204 
 205         $1_DST     := $(GENSRC_BUFFER_DST)/$1.java
 206         $1_SRC     := $(GENSRC_BUFFER_SRC)/$(strip $2).java.template
 207         $1_SRC_BIN := $(GENSRC_BUFFER_SRC)/$(strip $2)-bin.java.template
 208 
 209         $1_DEP := $$($1_SRC)
 210         ifneq ($$($1_BIN),1)
 211                 $1_DEP := $$($1_SRC)
 212                 $1_OUT := $$($1_DST)
 213         else
 214                 $1_DEP += $$($1_SRC) $$($1_SRC_BIN)
 215                 $1_OUT := $(GENSRC_BUFFER_DST)/$1.binop.0.java
 216         endif
 217 
 218         ifeq ($$($1_BIN),1)
 219                 $(call genBinOps,$1_char,char,$$($1_BO),$$($1_RW),two,one)
 220                 $(call genBinOps,$1_short,short,$$($1_BO),$$($1_RW),two,one)




 181         # param 1 is for output file
 182         # param 2 is template dependency
 183         # param 3-9 are named args.
 184         #   type :=
 185         #   BIN  :=
 186         #   RW   := Mutability (R)ead-only (W)ritable
 187         #   BO   := (U)nswapped/(S)wapped/(L)ittle/(B)ig
 188         #
 189         $(if $3,$1_$(strip $3))
 190         $(if $4,$1_$(strip $4))
 191         $(if $5,$1_$(strip $5))
 192         $(if $6,$1_$(strip $6))
 193         $(if $7,$1_$(strip $7))
 194         $(if $8,$1_$(strip $8))
 195         $(if $9,$1_$(strip $9))
 196         $(if $(10),$1_$(strip $(10)))
 197         $(if $(11),$1_$(strip $(11)))
 198         $(if $(12),$1_$(strip $(12)))
 199         $(if $(13),$1_$(strip $(13)))
 200         $(if $(14),$1_$(strip $(14)))
 201         $(if $(15),$(error Internal makefile error: Too many arguments to SetupGenBuffer, please update GensrcBuffer.gmk))
 202 
 203         $(call fixRw,$1,$$($1_RW))
 204         $(call typesAndBits,$1,$$($1_type),$$($1_BO))
 205 
 206         $1_DST     := $(GENSRC_BUFFER_DST)/$1.java
 207         $1_SRC     := $(GENSRC_BUFFER_SRC)/$(strip $2).java.template
 208         $1_SRC_BIN := $(GENSRC_BUFFER_SRC)/$(strip $2)-bin.java.template
 209 
 210         $1_DEP := $$($1_SRC)
 211         ifneq ($$($1_BIN),1)
 212                 $1_DEP := $$($1_SRC)
 213                 $1_OUT := $$($1_DST)
 214         else
 215                 $1_DEP += $$($1_SRC) $$($1_SRC_BIN)
 216                 $1_OUT := $(GENSRC_BUFFER_DST)/$1.binop.0.java
 217         endif
 218 
 219         ifeq ($$($1_BIN),1)
 220                 $(call genBinOps,$1_char,char,$$($1_BO),$$($1_RW),two,one)
 221                 $(call genBinOps,$1_short,short,$$($1_BO),$$($1_RW),two,one)