common/makefiles/NativeCompilation.gmk

changeset 725
03e60e87d92a
parent 715
cb51fb4789ac
child 738
0c540b1505e3
equal deleted inserted replaced
724:33b6df33a2b7 725:03e60e87d92a
145 # REORDER reorder file 145 # REORDER reorder file
146 # DEBUG_SYMBOLS add debug symbols (if configured on) 146 # DEBUG_SYMBOLS add debug symbols (if configured on)
147 # CC the compiler to use, default is $(CC) 147 # CC the compiler to use, default is $(CC)
148 # LDEXE the linker to use for linking executables, default is $(LDEXE) 148 # LDEXE the linker to use for linking executables, default is $(LDEXE)
149 # OPTIMIZATION sets optimization level to NONE, LOW, HIGH, HIGHEST 149 # OPTIMIZATION sets optimization level to NONE, LOW, HIGH, HIGHEST
150 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25, $(if $($i),$1_$(strip $($i)))$(NEWLINE)) 150 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
151 $(call LogSetupMacroEntry,SetupNativeCompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15),$(16),$(17),$(18),$(19),$(20),$(21),$(22),$(23),$(24),$(25)) 151 $(call LogSetupMacroEntry,SetupNativeCompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15),$(16),$(17),$(18),$(19),$(20),$(21),$(22),$(23),$(24),$(25),$(26))
152 $(if $(26),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk)) 152 $(if $(27),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
153 153
154 ifneq (,$$($1_BIN)) 154 ifneq (,$$($1_BIN))
155 $$(error BIN has been replaced with OBJECT_DIR) 155 $$(error BIN has been replaced with OBJECT_DIR)
156 endif 156 endif
157 157
565 $$($1_EXPECTED_OBJS) $$($1_RES) $$($1_LDFLAGS_SUFFIX) \ 565 $$($1_EXPECTED_OBJS) $$($1_RES) $$($1_LDFLAGS_SUFFIX) \
566 $$($1_EXTRA_LDFLAGS_SUFFIX) 566 $$($1_EXTRA_LDFLAGS_SUFFIX)
567 ifneq (,$$($1_GEN_MANIFEST)) 567 ifneq (,$$($1_GEN_MANIFEST))
568 $(MT) -nologo -manifest $$($1_GEN_MANIFEST) -outputresource:$$@;#1 568 $(MT) -nologo -manifest $$($1_GEN_MANIFEST) -outputresource:$$@;#1
569 endif 569 endif
570 570 # This only works if the openjdk_codesign identity is present on the system. Let
571 # silently fail otherwise.
572 ifneq (,$(CODESIGN))
573 ifneq (,$$($1_CODESIGN))
574 $(CODESIGN) -s openjdk_codesign $$@
575 endif
576 endif
571 endif 577 endif
572 endef 578 endef

mercurial