< prev index next >

make/common/NativeCompilation.gmk

Print this page




 161 #   PROGRAM the resulting exec file
 162 #   INCLUDES only pick source from these directories
 163 #   EXCLUDES do not pick source from these directories
 164 #   INCLUDE_FILES only compile exactly these files!
 165 #   EXCLUDE_FILES with these names
 166 #   EXTRA_FILES List of extra files not in any of the SRC dirs
 167 #   VERSIONINFO_RESOURCE Input file for RC. Setting this implies that RC will be run
 168 #   RC_FLAGS flags for RC.
 169 #   MAPFILE mapfile
 170 #   REORDER reorder file
 171 #   DEBUG_SYMBOLS add debug symbols (if configured on)
 172 #   CC the compiler to use, default is $(CC)
 173 #   LDEXE the linker to use for linking executables, default is $(LDEXE)
 174 #   OPTIMIZATION sets optimization level to NONE, LOW, HIGH, HIGHEST
 175 define SetupNativeCompilation
 176   $(if $(27),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
 177   $(call EvalDebugWrapper,$(strip $1),$(call SetupNativeCompilationInner,$(strip $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)))
 178 endef
 179 
 180 define SetupNativeCompilationInner
 181   $(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))
 182   $(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))
 183   $(if $(27),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
 184 
 185   ifneq (,$$($1_BIN))
 186     $$(error BIN has been replaced with OBJECT_DIR)
 187   endif
 188 
 189   ifneq (,$$($1_LIB))
 190     $$(error LIB has been replaced with LIBRARY)
 191   endif
 192 
 193   ifneq (,$$($1_EXE))
 194     $$(error EXE has been replaced with PROGRAM)
 195   endif
 196 
 197   ifneq (,$$($1_LIBRARY))
 198     ifeq (,$$($1_OUTPUT_DIR))
 199       $$(error LIBRARY requires OUTPUT_DIR)
 200     endif
 201 




 161 #   PROGRAM the resulting exec file
 162 #   INCLUDES only pick source from these directories
 163 #   EXCLUDES do not pick source from these directories
 164 #   INCLUDE_FILES only compile exactly these files!
 165 #   EXCLUDE_FILES with these names
 166 #   EXTRA_FILES List of extra files not in any of the SRC dirs
 167 #   VERSIONINFO_RESOURCE Input file for RC. Setting this implies that RC will be run
 168 #   RC_FLAGS flags for RC.
 169 #   MAPFILE mapfile
 170 #   REORDER reorder file
 171 #   DEBUG_SYMBOLS add debug symbols (if configured on)
 172 #   CC the compiler to use, default is $(CC)
 173 #   LDEXE the linker to use for linking executables, default is $(LDEXE)
 174 #   OPTIMIZATION sets optimization level to NONE, LOW, HIGH, HIGHEST
 175 define SetupNativeCompilation
 176   $(if $(27),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
 177   $(call EvalDebugWrapper,$(strip $1),$(call SetupNativeCompilationInner,$(strip $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)))
 178 endef
 179 
 180 define SetupNativeCompilationInner
 181   $(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 $(strip $($i)),$1_$(strip $($i)))$(NEWLINE))
 182   $(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))
 183   $(if $(27),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
 184 
 185   ifneq (,$$($1_BIN))
 186     $$(error BIN has been replaced with OBJECT_DIR)
 187   endif
 188 
 189   ifneq (,$$($1_LIB))
 190     $$(error LIB has been replaced with LIBRARY)
 191   endif
 192 
 193   ifneq (,$$($1_EXE))
 194     $$(error EXE has been replaced with PROGRAM)
 195   endif
 196 
 197   ifneq (,$$($1_LIBRARY))
 198     ifeq (,$$($1_OUTPUT_DIR))
 199       $$(error LIBRARY requires OUTPUT_DIR)
 200     endif
 201 


< prev index next >