Makefile.perf (a02633e9b13dcb9b1a656b08f81bc8ba2d4d2294) | Makefile.perf (7ed1c1901fe52e6c5828deb155920b44b0adabb1) |
---|---|
1include ../scripts/Makefile.include 2 3# The default target of this Makefile is... 4all: 5 6include ../scripts/utilities.mak 7 8# Define V to have a more verbose compile. --- 132 unchanged lines hidden (view full) --- 141# because make sets default values, so the simpler ?= approach 142# won't work as expected. 143define allow-override 144 $(if $(or $(findstring environment,$(origin $(1))),\ 145 $(findstring command line,$(origin $(1)))),,\ 146 $(eval $(1) = $(2))) 147endef 148 | 1include ../scripts/Makefile.include 2 3# The default target of this Makefile is... 4all: 5 6include ../scripts/utilities.mak 7 8# Define V to have a more verbose compile. --- 132 unchanged lines hidden (view full) --- 141# because make sets default values, so the simpler ?= approach 142# won't work as expected. 143define allow-override 144 $(if $(or $(findstring environment,$(origin $(1))),\ 145 $(findstring command line,$(origin $(1)))),,\ 146 $(eval $(1) = $(2))) 147endef 148 |
149# Allow setting CC and AR and LD, or setting CROSS_COMPILE as a prefix. 150$(call allow-override,CC,$(CROSS_COMPILE)gcc) 151$(call allow-override,AR,$(CROSS_COMPILE)ar) 152$(call allow-override,LD,$(CROSS_COMPILE)ld) 153$(call allow-override,CXX,$(CROSS_COMPILE)g++) 154 | |
155LD += $(EXTRA_LDFLAGS) 156 157HOSTCC ?= gcc 158HOSTLD ?= ld 159HOSTAR ?= ar 160 161PKG_CONFIG = $(CROSS_COMPILE)pkg-config 162LLVM_CONFIG ?= llvm-config --- 730 unchanged lines hidden --- | 149LD += $(EXTRA_LDFLAGS) 150 151HOSTCC ?= gcc 152HOSTLD ?= ld 153HOSTAR ?= ar 154 155PKG_CONFIG = $(CROSS_COMPILE)pkg-config 156LLVM_CONFIG ?= llvm-config --- 730 unchanged lines hidden --- |