blob: cd121dfc4de922af336234bb230d3d2c04a6dd64 [file] [log] [blame]
Jiri Olsa8bd407b2013-03-15 16:28:49 +01001
Jiri Olsaa6cf5f32014-01-03 15:32:32 +01002ifeq ($(src-perf),)
3src-perf := $(srctree)/tools/perf
Jiri Olsa8bd407b2013-03-15 16:28:49 +01004endif
5
Jiri Olsaa6cf5f32014-01-03 15:32:32 +01006ifeq ($(obj-perf),)
7obj-perf := $(OUTPUT)
8endif
9
10ifneq ($(obj-perf),)
11obj-perf := $(abspath $(obj-perf))/
12endif
13
Jiri Olsafcfd6612014-12-31 17:37:00 +010014$(shell echo -n > .config-detected)
15detected = $(shell echo "$(1)=y" >> .config-detected)
16detected_var = $(shell echo "$(1)=$($(1))" >> .config-detected)
17
Jiri Olsaa6cf5f32014-01-03 15:32:32 +010018CFLAGS := $(EXTRA_CFLAGS) $(EXTRA_WARNINGS)
19
20include $(src-perf)/config/Makefile.arch
21
Jiri Olsaf39e0422014-12-29 15:03:09 +010022$(call detected_var,ARCH)
23
Jiri Olsaa6cf5f32014-01-03 15:32:32 +010024NO_PERF_REGS := 1
25
26# Additional ARCH settings for x86
27ifeq ($(ARCH),x86)
Jiri Olsaf39e0422014-12-29 15:03:09 +010028 $(call detected,CONFIG_X86)
Namhyung Kimc6e5e9f2015-01-12 10:20:55 +080029 ifeq (${IS_64_BIT}, 1)
Ingo Molnar89fe8082013-09-30 12:07:11 +020030 CFLAGS += -DHAVE_ARCH_X86_64_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +020031 ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
Adrian Hunter8a0c4c22013-11-01 15:51:32 +020032 LIBUNWIND_LIBS = -lunwind -lunwind-x86_64
Jiri Olsa72965b82014-12-29 13:52:36 +010033 $(call detected,CONFIG_X86_64)
Adrian Hunter8a0c4c22013-11-01 15:51:32 +020034 else
35 LIBUNWIND_LIBS = -lunwind -lunwind-x86
Jiri Olsa8e1b3f62013-04-15 04:06:58 +020036 endif
37 NO_PERF_REGS := 0
Jiri Olsa8bd407b2013-03-15 16:28:49 +010038endif
Jean Pihet8ab596a2014-04-28 14:32:33 +020039
Will Deacon7495f372013-09-26 12:36:36 +010040ifeq ($(ARCH),arm)
41 NO_PERF_REGS := 0
42 LIBUNWIND_LIBS = -lunwind -lunwind-arm
43endif
Jiri Olsa8bd407b2013-03-15 16:28:49 +010044
Jean Pihet8ab596a2014-04-28 14:32:33 +020045ifeq ($(ARCH),arm64)
46 NO_PERF_REGS := 0
47 LIBUNWIND_LIBS = -lunwind -lunwind-aarch64
48endif
49
Jiri Olsa3bc33742014-12-30 13:30:04 +010050ifeq ($(NO_PERF_REGS),0)
51 $(call detected,CONFIG_PERF_REGS)
52endif
53
Jean Pihet90fa9de2014-05-16 10:41:11 +020054# So far there's only x86 and arm libdw unwind support merged in perf.
Jiri Olsa4dc549e2014-04-20 10:50:00 +020055# Disable it on all other architectures in case libdw unwind
56# support is detected in system. Add supported architectures
57# to the check.
Jean Pihet90fa9de2014-05-16 10:41:11 +020058ifneq ($(ARCH),$(filter $(ARCH),x86 arm))
Jiri Olsa4dc549e2014-04-20 10:50:00 +020059 NO_LIBDW_DWARF_UNWIND := 1
60endif
61
Jean Pihet1448fef2013-12-10 13:24:04 +010062ifeq ($(LIBUNWIND_LIBS),)
63 NO_LIBUNWIND := 1
64else
65 #
66 # For linking with debug library, run like:
67 #
68 # make DEBUG=1 LIBUNWIND_DIR=/opt/libunwind/
69 #
70 ifdef LIBUNWIND_DIR
71 LIBUNWIND_CFLAGS = -I$(LIBUNWIND_DIR)/include
72 LIBUNWIND_LDFLAGS = -L$(LIBUNWIND_DIR)/lib
73 endif
74 LIBUNWIND_LDFLAGS += $(LIBUNWIND_LIBS)
75
76 # Set per-feature check compilation flags
77 FEATURE_CHECK_CFLAGS-libunwind = $(LIBUNWIND_CFLAGS)
78 FEATURE_CHECK_LDFLAGS-libunwind = $(LIBUNWIND_LDFLAGS)
79 FEATURE_CHECK_CFLAGS-libunwind-debug-frame = $(LIBUNWIND_CFLAGS)
80 FEATURE_CHECK_LDFLAGS-libunwind-debug-frame = $(LIBUNWIND_LDFLAGS)
Jean Pihet1448fef2013-12-10 13:24:04 +010081endif
82
Jiri Olsa8bd407b2013-03-15 16:28:49 +010083ifeq ($(NO_PERF_REGS),0)
Ingo Molnar89fe8082013-09-30 12:07:11 +020084 CFLAGS += -DHAVE_PERF_REGS_SUPPORT
Jiri Olsa8bd407b2013-03-15 16:28:49 +010085endif
Jiri Olsaa32f4932013-03-25 00:32:01 +010086
Jiri Olsa45757892014-02-19 16:52:56 +010087ifndef NO_LIBELF
88 # for linking with debug library, run like:
89 # make DEBUG=1 LIBDW_DIR=/opt/libdw/
90 ifdef LIBDW_DIR
91 LIBDW_CFLAGS := -I$(LIBDW_DIR)/include
92 LIBDW_LDFLAGS := -L$(LIBDW_DIR)/lib
Jiri Olsa45757892014-02-19 16:52:56 +010093 endif
Ramkumar Ramachandra2c529e42014-03-26 18:44:05 -040094 FEATURE_CHECK_CFLAGS-libdw-dwarf-unwind := $(LIBDW_CFLAGS)
95 FEATURE_CHECK_LDFLAGS-libdw-dwarf-unwind := $(LIBDW_LDFLAGS) -ldw
Jiri Olsa45757892014-02-19 16:52:56 +010096endif
97
Jiri Olsa53d0a572015-02-20 23:16:58 +010098ifndef NO_LIBBABELTRACE
99 # for linking with debug library, run like:
100 # make DEBUG=1 LIBBABELTRACE_DIR=/opt/libbabeltrace/
101 ifdef LIBBABELTRACE_DIR
102 LIBBABELTRACE_CFLAGS := -I$(LIBBABELTRACE_DIR)/include
103 LIBBABELTRACE_LDFLAGS := -L$(LIBBABELTRACE_DIR)/lib
104 endif
105 FEATURE_CHECK_CFLAGS-libbabeltrace := $(LIBBABELTRACE_CFLAGS)
106 FEATURE_CHECK_LDFLAGS-libbabeltrace := $(LIBBABELTRACE_LDFLAGS) -lbabeltrace-ctf
107endif
108
Jiri Olsa7c537462013-05-24 14:35:23 +0200109# include ARCH specific config
110-include $(src-perf)/arch/$(ARCH)/Makefile
111
Jiri Olsa7c537462013-05-24 14:35:23 +0200112include $(src-perf)/config/utilities.mak
Jiri Olsaa32f4932013-03-25 00:32:01 +0100113
114ifeq ($(call get-executable,$(FLEX)),)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200115 dummy := $(error Error: $(FLEX) is missing on this system, please install it)
Jiri Olsaa32f4932013-03-25 00:32:01 +0100116endif
117
118ifeq ($(call get-executable,$(BISON)),)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200119 dummy := $(error Error: $(BISON) is missing on this system, please install it)
Jiri Olsaa32f4932013-03-25 00:32:01 +0100120endif
Jiri Olsa362493f2013-03-25 00:40:48 +0100121
122# Treat warnings as errors unless directed not to
123ifneq ($(WERROR),0)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200124 CFLAGS += -Werror
Jiri Olsa362493f2013-03-25 00:40:48 +0100125endif
126
Adrian Hunter74af3772013-10-22 10:34:05 +0300127ifndef DEBUG
128 DEBUG := 0
129endif
130
Ingo Molnarfcf92582013-10-10 08:05:25 +0200131ifeq ($(DEBUG),0)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200132 CFLAGS += -O6
Jiri Olsa362493f2013-03-25 00:40:48 +0100133endif
134
135ifdef PARSER_DEBUG
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200136 PARSER_DEBUG_BISON := -t
137 PARSER_DEBUG_FLEX := -d
138 CFLAGS += -DPARSER_DEBUG
Jiri Olsa9352aab2014-12-29 17:42:46 +0100139 $(call detected_var,PARSER_DEBUG_BISON)
140 $(call detected_var,PARSER_DEBUG_FLEX)
Jiri Olsa362493f2013-03-25 00:40:48 +0100141endif
142
Namhyung Kim56c7d792014-07-29 15:57:19 +0900143ifndef NO_LIBPYTHON
Thomas Ilsched6a947f2014-08-04 15:03:15 +0200144 # Try different combinations to accommodate systems that only have
145 # python[2][-config] in weird combinations but always preferring
146 # python2 and python2-config as per pep-0394. If we catch a
147 # python[-config] in version 3, the version check will kill it.
148 PYTHON2 := $(if $(call get-executable,python2),python2,python)
149 override PYTHON := $(call get-executable-or-default,PYTHON,$(PYTHON2))
150 PYTHON2_CONFIG := \
151 $(if $(call get-executable,$(PYTHON)-config),$(PYTHON)-config,python-config)
Namhyung Kim56c7d792014-07-29 15:57:19 +0900152 override PYTHON_CONFIG := \
Thomas Ilsched6a947f2014-08-04 15:03:15 +0200153 $(call get-executable-or-default,PYTHON_CONFIG,$(PYTHON2_CONFIG))
Namhyung Kim56c7d792014-07-29 15:57:19 +0900154
155 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
156
157 PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) --ldflags 2>/dev/null)
158 PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null)
159
160 FEATURE_CHECK_CFLAGS-libpython := $(PYTHON_EMBED_CCOPTS)
161 FEATURE_CHECK_LDFLAGS-libpython := $(PYTHON_EMBED_LDOPTS)
162 FEATURE_CHECK_CFLAGS-libpython-version := $(PYTHON_EMBED_CCOPTS)
163 FEATURE_CHECK_LDFLAGS-libpython-version := $(PYTHON_EMBED_LDOPTS)
164endif
165
Jiri Olsa2fe73742013-04-15 04:32:28 +0200166CFLAGS += -fno-omit-frame-pointer
167CFLAGS += -ggdb3
168CFLAGS += -funwind-tables
169CFLAGS += -Wall
170CFLAGS += -Wextra
171CFLAGS += -std=gnu99
Jiri Olsa9c12cf92013-03-21 11:30:54 +0100172
Mathias Krause6392b4e2014-04-27 18:51:05 +0200173# Enforce a non-executable stack, as we may regress (again) in the future by
174# adding assembler files missing the .GNU-stack linker note.
175LDFLAGS += -Wl,-z,noexecstack
176
Namhyung Kim5e2d4d02014-11-07 14:20:06 +0900177EXTLIBS = -lpthread -lrt -lm -ldl
Jiri Olsa362493f2013-03-25 00:40:48 +0100178
Jiri Olsae6c76d62015-03-01 21:19:44 +0100179include $(srctree)/tools/build/Makefile.feature
Ingo Molnarbaa9c302013-10-01 14:14:31 +0200180
Ingo Molnar90ac5422013-09-30 13:48:44 +0200181ifeq ($(feature-stackprotector-all), 1)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200182 CFLAGS += -fstack-protector-all
Jiri Olsa362493f2013-03-25 00:40:48 +0100183endif
184
Ingo Molnarfcf92582013-10-10 08:05:25 +0200185ifeq ($(DEBUG),0)
Ingo Molnar1ea6f992013-10-07 09:38:28 +0200186 ifeq ($(feature-fortify-source), 1)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200187 CFLAGS += -D_FORTIFY_SOURCE=2
188 endif
Jiri Olsa362493f2013-03-25 00:40:48 +0100189endif
190
Jiri Olsa2fe73742013-04-15 04:32:28 +0200191CFLAGS += -I$(src-perf)/util/include
192CFLAGS += -I$(src-perf)/arch/$(ARCH)/include
Namhyung Kim8a625c12014-01-09 23:00:52 +0900193CFLAGS += -I$(srctree)/tools/include/
Jiri Olsa2fe73742013-04-15 04:32:28 +0200194CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi
195CFLAGS += -I$(srctree)/arch/$(ARCH)/include
196CFLAGS += -I$(srctree)/include/uapi
197CFLAGS += -I$(srctree)/include
Jiri Olsa7c537462013-05-24 14:35:23 +0200198
199# $(obj-perf) for generated common-cmds.h
200# $(obj-perf)/util for generated bison/flex headers
201ifneq ($(OUTPUT),)
Jiri Olsa2fe73742013-04-15 04:32:28 +0200202CFLAGS += -I$(obj-perf)/util
203CFLAGS += -I$(obj-perf)
Jiri Olsa7c537462013-05-24 14:35:23 +0200204endif
205
Jiri Olsa2fe73742013-04-15 04:32:28 +0200206CFLAGS += -I$(src-perf)/util
207CFLAGS += -I$(src-perf)
Jiri Olsa9444e872015-03-01 20:11:24 +0100208CFLAGS += -I$(srctree)/tools/lib/
Jiri Olsa7c537462013-05-24 14:35:23 +0200209
Jiri Olsa2fe73742013-04-15 04:32:28 +0200210CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
Jiri Olsa362493f2013-03-25 00:40:48 +0100211
Adrian Hunterf6d31362014-07-14 13:02:53 +0300212ifeq ($(feature-sync-compare-and-swap), 1)
213 CFLAGS += -DHAVE_SYNC_COMPARE_AND_SWAP_SUPPORT
214endif
215
Vineet Gupta459a3df2015-01-13 19:13:24 +0530216ifeq ($(feature-pthread-attr-setaffinity-np), 1)
217 CFLAGS += -DHAVE_PTHREAD_ATTR_SETAFFINITY_NP
218endif
219
Jiri Olsa4e22db42013-05-24 14:35:24 +0200220ifndef NO_BIONIC
David Ahern5febff02013-10-29 10:43:15 -0600221 $(call feature_check,bionic)
Ingo Molnar78e9d652013-09-30 14:11:46 +0200222 ifeq ($(feature-bionic), 1)
223 BIONIC := 1
224 EXTLIBS := $(filter-out -lrt,$(EXTLIBS))
225 EXTLIBS := $(filter-out -lpthread,$(EXTLIBS))
226 endif
Jiri Olsa362493f2013-03-25 00:40:48 +0100227endif
Jiri Olsacf4cca12013-03-25 00:45:08 +0100228
229ifdef NO_LIBELF
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200230 NO_DWARF := 1
231 NO_DEMANGLE := 1
232 NO_LIBUNWIND := 1
Jiri Olsa5ea84152014-02-19 16:52:57 +0100233 NO_LIBDW_DWARF_UNWIND := 1
Jiri Olsacf4cca12013-03-25 00:45:08 +0100234else
Ingo Molnar8f7f8002013-09-30 14:20:25 +0200235 ifeq ($(feature-libelf), 0)
Ingo Molnare12762c2013-10-07 10:34:20 +0200236 ifeq ($(feature-glibc), 1)
Ingo Molnar50eed7a2013-09-30 14:11:16 +0200237 LIBC_SUPPORT := 1
238 endif
239 ifeq ($(BIONIC),1)
240 LIBC_SUPPORT := 1
241 endif
242 ifeq ($(LIBC_SUPPORT),1)
243 msg := $(warning No libelf found, disables 'probe' tool, please install elfutils-libelf-devel/libelf-dev);
Jiri Olsacf4cca12013-03-25 00:45:08 +0100244
Ingo Molnar50eed7a2013-09-30 14:11:16 +0200245 NO_LIBELF := 1
246 NO_DWARF := 1
247 NO_DEMANGLE := 1
Arnaldo Carvalho de Melo94589552014-03-25 09:35:11 -0300248 NO_LIBUNWIND := 1
249 NO_LIBDW_DWARF_UNWIND := 1
Ingo Molnar50eed7a2013-09-30 14:11:16 +0200250 else
Arnaldo Carvalho de Melof9ca2d82014-06-05 12:46:04 -0300251 ifneq ($(filter s% -static%,$(LDFLAGS),),)
252 msg := $(error No static glibc found, please install glibc-static);
253 else
254 msg := $(error No gnu/libc-version.h found, please install glibc-dev[el]);
255 endif
Ingo Molnar50eed7a2013-09-30 14:11:16 +0200256 endif
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200257 else
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100258 ifndef NO_LIBDW_DWARF_UNWIND
259 ifneq ($(feature-libdw-dwarf-unwind),1)
260 NO_LIBDW_DWARF_UNWIND := 1
261 msg := $(warning No libdw DWARF unwind found, Please install elfutils-devel/libdw-dev >= 0.158 and/or set LIBDW_DIR);
262 endif
263 endif
Ingo Molnar8295d4e2013-10-07 10:35:39 +0200264 ifneq ($(feature-dwarf), 1)
Ingo Molnar50eed7a2013-09-30 14:11:16 +0200265 msg := $(warning No libdw.h found or old libdw.h found or elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev);
266 NO_DWARF := 1
267 endif # Dwarf support
Ingo Molnar0648f832013-10-02 15:30:35 +0200268 endif # libelf support
Jiri Olsacf4cca12013-03-25 00:45:08 +0100269endif # NO_LIBELF
270
271ifndef NO_LIBELF
Ingo Molnarfb3d3332013-10-07 10:05:51 +0200272 CFLAGS += -DHAVE_LIBELF_SUPPORT
Namhyung Kim5e2d4d02014-11-07 14:20:06 +0900273 EXTLIBS += -lelf
Jiri Olsa709e6792014-12-29 23:52:25 +0100274 $(call detected,CONFIG_LIBELF)
Jiri Olsa779724f2013-03-25 00:48:14 +0100275
Ingo Molnar8869b172013-09-30 15:02:28 +0200276 ifeq ($(feature-libelf-mmap), 1)
Ingo Molnarfb3d3332013-10-07 10:05:51 +0200277 CFLAGS += -DHAVE_LIBELF_MMAP_SUPPORT
278 endif
Jiri Olsa779724f2013-03-25 00:48:14 +0100279
Ingo Molnarb7bcef62013-09-30 14:35:27 +0200280 ifeq ($(feature-libelf-getphdrnum), 1)
Ingo Molnarfb3d3332013-10-07 10:05:51 +0200281 CFLAGS += -DHAVE_ELF_GETPHDRNUM_SUPPORT
282 endif
Jiri Olsa779724f2013-03-25 00:48:14 +0100283
Ingo Molnarfb3d3332013-10-07 10:05:51 +0200284 # include ARCH specific config
285 -include $(src-perf)/arch/$(ARCH)/Makefile
286
287 ifndef NO_DWARF
288 ifeq ($(origin PERF_HAVE_DWARF_REGS), undefined)
289 msg := $(warning DWARF register mappings have not been defined for architecture $(ARCH), DWARF support disabled);
290 NO_DWARF := 1
291 else
292 CFLAGS += -DHAVE_DWARF_SUPPORT $(LIBDW_CFLAGS)
293 LDFLAGS += $(LIBDW_LDFLAGS)
Namhyung Kim5e2d4d02014-11-07 14:20:06 +0900294 EXTLIBS += -ldw
Jiri Olsa8379fce2014-12-30 00:06:25 +0100295 $(call detected,CONFIG_DWARF)
Ingo Molnarfb3d3332013-10-07 10:05:51 +0200296 endif # PERF_HAVE_DWARF_REGS
297 endif # NO_DWARF
Jiri Olsacf4cca12013-03-25 00:45:08 +0100298endif # NO_LIBELF
Jiri Olsa0e433fe2013-03-25 00:53:03 +0100299
Anton Blanchard65ccb4f2014-08-25 18:25:06 +1000300ifeq ($(ARCH),powerpc)
301 ifndef NO_DWARF
302 CFLAGS += -DHAVE_SKIP_CALLCHAIN_IDX
303 endif
304endif
305
Jiri Olsa0e433fe2013-03-25 00:53:03 +0100306ifndef NO_LIBUNWIND
Ingo Molnar058f9522013-09-30 14:45:44 +0200307 ifneq ($(feature-libunwind), 1)
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100308 msg := $(warning No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR);
Ingo Molnar308e1e72013-10-07 10:30:47 +0200309 NO_LIBUNWIND := 1
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100310 endif
311endif
312
313dwarf-post-unwind := 1
314dwarf-post-unwind-text := BUG
315
316# setup DWARF post unwinder
317ifdef NO_LIBUNWIND
318 ifdef NO_LIBDW_DWARF_UNWIND
319 msg := $(warning Disabling post unwind, no support found.);
320 dwarf-post-unwind := 0
Linus Torvaldsf47671e2013-11-14 08:51:29 +0900321 else
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100322 dwarf-post-unwind-text := libdw
Jiri Olsab2e45c32014-12-30 00:11:11 +0100323 $(call detected,CONFIG_LIBDW_DWARF_UNWIND)
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100324 endif
325else
326 dwarf-post-unwind-text := libunwind
Jiri Olsab2e45c32014-12-30 00:11:11 +0100327 $(call detected,CONFIG_LIBUNWIND)
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100328 # Enable libunwind support by default.
329 ifndef NO_LIBDW_DWARF_UNWIND
330 NO_LIBDW_DWARF_UNWIND := 1
331 endif
332endif
333
334ifeq ($(dwarf-post-unwind),1)
335 CFLAGS += -DHAVE_DWARF_UNWIND_SUPPORT
Jiri Olsaf39e0422014-12-29 15:03:09 +0100336 $(call detected,CONFIG_DWARF_UNWIND)
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100337else
338 NO_DWARF_UNWIND := 1
339endif
340
341ifndef NO_LIBUNWIND
Jean Pihet8ab596a2014-04-28 14:32:33 +0200342 ifeq ($(ARCH),$(filter $(ARCH),arm arm64))
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100343 $(call feature_check,libunwind-debug-frame)
344 ifneq ($(feature-libunwind-debug-frame), 1)
345 msg := $(warning No debug_frame support found in libunwind);
Linus Torvaldsf47671e2013-11-14 08:51:29 +0900346 CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME
347 endif
Jiri Olsa0a4f2b62014-02-19 16:52:58 +0100348 else
349 # non-ARM has no dwarf_find_debug_frame() function:
350 CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME
351 endif
352 CFLAGS += -DHAVE_LIBUNWIND_SUPPORT
353 EXTLIBS += $(LIBUNWIND_LIBS)
354 CFLAGS += $(LIBUNWIND_CFLAGS)
355 LDFLAGS += $(LIBUNWIND_LDFLAGS)
Ingo Molnar058f9522013-09-30 14:45:44 +0200356endif
Jiri Olsaa8279522013-03-25 00:54:36 +0100357
358ifndef NO_LIBAUDIT
Ingo Molnard795a652013-09-30 14:55:31 +0200359 ifneq ($(feature-libaudit), 1)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200360 msg := $(warning No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev);
361 NO_LIBAUDIT := 1
362 else
Ingo Molnar89fe8082013-09-30 12:07:11 +0200363 CFLAGS += -DHAVE_LIBAUDIT_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200364 EXTLIBS += -laudit
Jiri Olsa285ab8b2014-12-29 15:13:44 +0100365 $(call detected,CONFIG_AUDIT)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200366 endif
Jiri Olsaa8279522013-03-25 00:54:36 +0100367endif
Jiri Olsa4a8f8882013-03-25 00:56:08 +0100368
369ifdef NO_NEWT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200370 NO_SLANG=1
Jiri Olsa4a8f8882013-03-25 00:56:08 +0100371endif
372
373ifndef NO_SLANG
Ingo Molnarb9498b52013-09-30 14:57:54 +0200374 ifneq ($(feature-libslang), 1)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200375 msg := $(warning slang not found, disables TUI support. Please install slang-devel or libslang-dev);
376 NO_SLANG := 1
377 else
378 # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h
379 CFLAGS += -I/usr/include/slang
Ingo Molnar89fe8082013-09-30 12:07:11 +0200380 CFLAGS += -DHAVE_SLANG_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200381 EXTLIBS += -lslang
Jiri Olsacf15c742014-12-30 00:27:52 +0100382 $(call detected,CONFIG_SLANG)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200383 endif
Jiri Olsa4a8f8882013-03-25 00:56:08 +0100384endif
Jiri Olsa58cabf62013-03-18 00:09:24 +0100385
386ifndef NO_GTK2
Mark Rutlanda8a5cd82014-01-15 10:44:08 +0000387 FLAGS_GTK2=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
Ingo Molnar7ef9e052013-09-30 15:01:56 +0200388 ifneq ($(feature-gtk2), 1)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200389 msg := $(warning GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev);
390 NO_GTK2 := 1
391 else
Ingo Molnarc7a79e92013-09-30 15:08:30 +0200392 ifeq ($(feature-gtk2-infobar), 1)
Namhyung Kimfc672972013-09-13 15:27:43 +0900393 GTK_CFLAGS := -DHAVE_GTK_INFO_BAR_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200394 endif
Ingo Molnar89fe8082013-09-30 12:07:11 +0200395 CFLAGS += -DHAVE_GTK2_SUPPORT
Mark Rutlanda8a5cd82014-01-15 10:44:08 +0000396 GTK_CFLAGS += $(shell $(PKG_CONFIG) --cflags gtk+-2.0 2>/dev/null)
397 GTK_LIBS := $(shell $(PKG_CONFIG) --libs gtk+-2.0 2>/dev/null)
Jiri Olsae2137082013-09-26 20:55:54 +0200398 EXTLIBS += -ldl
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200399 endif
Jiri Olsa58cabf62013-03-18 00:09:24 +0100400endif
Jiri Olsa3082cb32013-03-18 00:19:44 +0100401
402grep-libs = $(filter -l%,$(1))
403strip-libs = $(filter-out -l%,$(1))
404
405ifdef NO_LIBPERL
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200406 CFLAGS += -DNO_LIBPERL
Jiri Olsa3082cb32013-03-18 00:19:44 +0100407else
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200408 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
409 PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS))
410 PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
411 PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`
412 FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
Jiri Olsa3082cb32013-03-18 00:19:44 +0100413
Ingo Molnar7181a672013-09-30 15:15:36 +0200414 ifneq ($(feature-libperl), 1)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200415 CFLAGS += -DNO_LIBPERL
416 NO_LIBPERL := 1
Ingo Molnara954e682015-02-28 09:39:09 +0100417 msg := $(warning Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev);
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200418 else
419 LDFLAGS += $(PERL_EMBED_LDFLAGS)
420 EXTLIBS += $(PERL_EMBED_LIBADD)
Jiri Olsac7355f82014-12-30 13:11:32 +0100421 $(call detected,CONFIG_LIBPERL)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200422 endif
Jiri Olsa3082cb32013-03-18 00:19:44 +0100423endif
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100424
David Ahern87419c92013-10-29 10:43:16 -0600425ifeq ($(feature-timerfd), 1)
426 CFLAGS += -DHAVE_TIMERFD_SUPPORT
427else
428 msg := $(warning No timerfd support. Disables 'perf kvm stat live');
429endif
430
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100431disable-python = $(eval $(disable-python_code))
432define disable-python_code
Jiri Olsa9c12cf92013-03-21 11:30:54 +0100433 CFLAGS += -DNO_LIBPYTHON
Ingo Molnar6c5aa232015-02-28 09:33:45 +0100434 $(warning $1)
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100435 NO_LIBPYTHON := 1
436endef
437
Namhyung Kim56c7d792014-07-29 15:57:19 +0900438ifdef NO_LIBPYTHON
Ingo Molnar6c5aa232015-02-28 09:33:45 +0100439 $(call disable-python,Python support disabled by user)
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100440else
441
Namhyung Kim56c7d792014-07-29 15:57:19 +0900442 ifndef PYTHON
Ingo Molnar6c5aa232015-02-28 09:33:45 +0100443 $(call disable-python,No python interpreter was found: disables Python support - please install python-devel/python-dev)
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100444 else
Namhyung Kim56c7d792014-07-29 15:57:19 +0900445 PYTHON_WORD := $(call shell-wordify,$(PYTHON))
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100446
447 ifndef PYTHON_CONFIG
Ingo Molnar6c5aa232015-02-28 09:33:45 +0100448 $(call disable-python,No 'python-config' tool was found: disables Python support - please install python-devel/python-dev)
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100449 else
450
451 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
452
453 PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) --ldflags 2>/dev/null)
454 PYTHON_EMBED_LDFLAGS := $(call strip-libs,$(PYTHON_EMBED_LDOPTS))
455 PYTHON_EMBED_LIBADD := $(call grep-libs,$(PYTHON_EMBED_LDOPTS))
456 PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null)
457 FLAGS_PYTHON_EMBED := $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS)
458
Ingo Molnar97341632013-09-30 15:18:37 +0200459 ifneq ($(feature-libpython), 1)
Ingo Molnar6c5aa232015-02-28 09:33:45 +0100460 $(call disable-python,No 'Python.h' (for Python 2.x support) was found: disables Python support - please install python-devel/python-dev)
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100461 else
462
Ingo Molnar95d061c2013-09-30 15:40:04 +0200463 ifneq ($(feature-libpython-version), 1)
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100464 $(warning Python 3 is not yet supported; please set)
465 $(warning PYTHON and/or PYTHON_CONFIG appropriately.)
466 $(warning If you also have Python 2 installed, then)
467 $(warning try something like:)
468 $(warning $(and ,))
469 $(warning $(and ,) make PYTHON=python2)
470 $(warning $(and ,))
471 $(warning Otherwise, disable Python support entirely:)
472 $(warning $(and ,))
473 $(warning $(and ,) make NO_LIBPYTHON=1)
474 $(warning $(and ,))
475 $(error $(and ,))
476 else
Jiri Olsa1e9f7aa2013-03-21 11:41:05 +0100477 LDFLAGS += $(PYTHON_EMBED_LDFLAGS)
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100478 EXTLIBS += $(PYTHON_EMBED_LIBADD)
Jiri Olsa7c537462013-05-24 14:35:23 +0200479 LANG_BINDINGS += $(obj-perf)python/perf.so
Jiri Olsac7355f82014-12-30 13:11:32 +0100480 $(call detected,CONFIG_LIBPYTHON)
Jiri Olsa6e533cf2013-03-18 00:35:32 +0100481 endif
482 endif
483 endif
484 endif
485endif
Jiri Olsac3cf8362013-03-18 00:38:16 +0100486
Jiri Olsa3e6a1472013-10-10 22:24:00 +0200487ifeq ($(feature-libbfd), 1)
Jiri Olsa2cf90402014-04-23 16:53:25 +0200488 EXTLIBS += -lbfd
489
490 # call all detections now so we get correct
491 # status in VF output
492 $(call feature_check,liberty)
493 $(call feature_check,liberty-z)
494 $(call feature_check,cplus-demangle)
495
496 ifeq ($(feature-liberty), 1)
497 EXTLIBS += -liberty
498 else
499 ifeq ($(feature-liberty-z), 1)
500 EXTLIBS += -liberty -lz
501 endif
502 endif
Jiri Olsa3e6a1472013-10-10 22:24:00 +0200503endif
504
Jiri Olsac3cf8362013-03-18 00:38:16 +0100505ifdef NO_DEMANGLE
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200506 CFLAGS += -DNO_DEMANGLE
Jiri Olsac3cf8362013-03-18 00:38:16 +0100507else
Ingo Molnar89fe8082013-09-30 12:07:11 +0200508 ifdef HAVE_CPLUS_DEMANGLE_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200509 EXTLIBS += -liberty
Ingo Molnar89fe8082013-09-30 12:07:11 +0200510 CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200511 else
Jiri Olsa3e6a1472013-10-10 22:24:00 +0200512 ifneq ($(feature-libbfd), 1)
Jiri Olsa2cf90402014-04-23 16:53:25 +0200513 ifneq ($(feature-liberty), 1)
514 ifneq ($(feature-liberty-z), 1)
515 # we dont have neither HAVE_CPLUS_DEMANGLE_SUPPORT
516 # or any of 'bfd iberty z' trinity
Ingo Molnar1c476612013-10-02 15:15:09 +0200517 ifeq ($(feature-cplus-demangle), 1)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200518 EXTLIBS += -liberty
Ingo Molnar89fe8082013-09-30 12:07:11 +0200519 CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200520 else
Ingo Molnar0189d7c2015-02-28 09:46:42 +0100521 msg := $(warning No bfd.h/libbfd found, please install binutils-dev[el]/zlib-static/libiberty-dev to gain symbol demangling)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200522 CFLAGS += -DNO_DEMANGLE
523 endif
524 endif
525 endif
526 endif
527 endif
Jiri Olsac3cf8362013-03-18 00:38:16 +0100528endif
Jiri Olsaa1c7c9e2013-03-18 00:41:04 +0100529
Jiri Olsa3e6a1472013-10-10 22:24:00 +0200530ifneq ($(filter -lbfd,$(EXTLIBS)),)
531 CFLAGS += -DHAVE_LIBBFD_SUPPORT
532endif
533
Namhyung Kime92ce122014-10-31 16:51:38 +0900534ifndef NO_ZLIB
535 ifeq ($(feature-zlib), 1)
536 CFLAGS += -DHAVE_ZLIB_SUPPORT
537 EXTLIBS += -lz
Jiri Olsa1571b692014-12-30 13:31:12 +0100538 $(call detected,CONFIG_ZLIB)
Namhyung Kime92ce122014-10-31 16:51:38 +0900539 else
540 NO_ZLIB := 1
541 endif
542endif
543
Jiri Olsa80a32e5b2015-01-29 13:29:39 +0100544ifndef NO_LZMA
545 ifeq ($(feature-lzma), 1)
546 CFLAGS += -DHAVE_LZMA_SUPPORT
547 EXTLIBS += -llzma
548 $(call detected,CONFIG_LZMA)
549 else
550 msg := $(warning No liblzma found, disables xz kernel module decompression, please install xz-devel/liblzma-dev);
551 NO_LZMA := 1
552 endif
553endif
554
Jiri Olsaa1c7c9e2013-03-18 00:41:04 +0100555ifndef NO_BACKTRACE
Ingo Molnar4cc91172013-09-30 16:49:38 +0200556 ifeq ($(feature-backtrace), 1)
Ingo Molnar89fe8082013-09-30 12:07:11 +0200557 CFLAGS += -DHAVE_BACKTRACE_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200558 endif
Jiri Olsaa1c7c9e2013-03-18 00:41:04 +0100559endif
Jiri Olsa58a0abd2013-03-18 00:45:27 +0100560
561ifndef NO_LIBNUMA
Ingo Molnar3ae069c2013-09-30 13:37:10 +0200562 ifeq ($(feature-libnuma), 0)
Dongsheng Yang6305edf2013-12-02 10:26:48 -0500563 msg := $(warning No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev);
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200564 NO_LIBNUMA := 1
565 else
Ingo Molnar89fe8082013-09-30 12:07:11 +0200566 CFLAGS += -DHAVE_LIBNUMA_SUPPORT
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200567 EXTLIBS += -lnuma
Jiri Olsa72965b82014-12-29 13:52:36 +0100568 $(call detected,CONFIG_NUMA)
Jiri Olsa8e1b3f62013-04-15 04:06:58 +0200569 endif
Jiri Olsa58a0abd2013-03-18 00:45:27 +0100570endif
Jiri Olsacd1c39f2013-03-18 00:56:01 +0100571
Alexander Yaryginda50ad62014-07-03 17:59:49 +0400572ifdef HAVE_KVM_STAT_SUPPORT
573 CFLAGS += -DHAVE_KVM_STAT_SUPPORT
574endif
575
Adrian Huntere477f3f2014-10-23 18:16:03 -0300576ifeq (${IS_64_BIT}, 1)
577 ifndef NO_PERF_READ_VDSO32
578 $(call feature_check,compile-32)
Adrian Hunter46b1fa82014-10-23 13:45:24 +0300579 ifeq ($(feature-compile-32), 1)
580 CFLAGS += -DHAVE_PERF_READ_VDSO32
581 else
Adrian Huntere477f3f2014-10-23 18:16:03 -0300582 NO_PERF_READ_VDSO32 := 1
583 endif
584 endif
H.J. Lu76aea772015-03-17 15:27:48 -0700585 ifneq ($(ARCH), x86)
Adrian Huntere477f3f2014-10-23 18:16:03 -0300586 NO_PERF_READ_VDSOX32 := 1
587 endif
588 ifndef NO_PERF_READ_VDSOX32
589 $(call feature_check,compile-x32)
Adrian Hunter46b1fa82014-10-23 13:45:24 +0300590 ifeq ($(feature-compile-x32), 1)
591 CFLAGS += -DHAVE_PERF_READ_VDSOX32
592 else
Adrian Huntere477f3f2014-10-23 18:16:03 -0300593 NO_PERF_READ_VDSOX32 := 1
594 endif
595 endif
596else
597 NO_PERF_READ_VDSO32 := 1
598 NO_PERF_READ_VDSOX32 := 1
599endif
600
Jiri Olsa53d0a572015-02-20 23:16:58 +0100601ifndef NO_LIBBABELTRACE
Jiri Olsa97e7a512015-03-11 09:00:41 +0100602 $(call feature_check,libbabeltrace)
603 ifeq ($(feature-libbabeltrace), 1)
Jiri Olsa53d0a572015-02-20 23:16:58 +0100604 CFLAGS += -DHAVE_LIBBABELTRACE_SUPPORT $(LIBBABELTRACE_CFLAGS)
605 LDFLAGS += $(LIBBABELTRACE_LDFLAGS)
606 EXTLIBS += -lbabeltrace-ctf
Jiri Olsaedbe9812015-02-20 23:17:00 +0100607 $(call detected,CONFIG_LIBBABELTRACE)
Jiri Olsa97e7a512015-03-11 09:00:41 +0100608 else
609 msg := $(warning No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev);
610 NO_LIBBABELTRACE := 1
Jiri Olsa53d0a572015-02-20 23:16:58 +0100611 endif
612endif
613
Jiri Olsacd1c39f2013-03-18 00:56:01 +0100614# Among the variables below, these:
615# perfexecdir
616# template_dir
617# mandir
618# infodir
619# htmldir
620# ETC_PERFCONFIG (but not sysconfdir)
621# can be specified as a relative path some/where/else;
622# this is interpreted as relative to $(prefix) and "perf" at
623# runtime figures out where they are based on the path to the executable.
624# This can help installing the suite in a relocatable way.
625
626# Make the path relative to DESTDIR, not to prefix
627ifndef DESTDIR
Jianyu Zhanfc9cabe2014-06-03 00:44:34 +0800628prefix ?= $(HOME)
Jiri Olsacd1c39f2013-03-18 00:56:01 +0100629endif
630bindir_relative = bin
631bindir = $(prefix)/$(bindir_relative)
632mandir = share/man
633infodir = share/info
634perfexecdir = libexec/perf-core
635sharedir = $(prefix)/share
636template_dir = share/perf-core/templates
637htmldir = share/doc/perf-doc
638ifeq ($(prefix),/usr)
639sysconfdir = /etc
640ETC_PERFCONFIG = $(sysconfdir)/perfconfig
641else
642sysconfdir = $(prefix)/etc
643ETC_PERFCONFIG = etc/perfconfig
644endif
Jiri Olsa6997af722014-08-25 16:55:52 +0200645ifndef lib
H.J. Lu76aea772015-03-17 15:27:48 -0700646ifeq ($(ARCH)$(IS_64_BIT), x861)
Namhyung Kimfc672972013-09-13 15:27:43 +0900647lib = lib64
648else
Jiri Olsacd1c39f2013-03-18 00:56:01 +0100649lib = lib
Namhyung Kimfc672972013-09-13 15:27:43 +0900650endif
Jiri Olsa6997af722014-08-25 16:55:52 +0200651endif # lib
Namhyung Kimfc672972013-09-13 15:27:43 +0900652libdir = $(prefix)/$(lib)
Jiri Olsacd1c39f2013-03-18 00:56:01 +0100653
654# Shell quote (do not use $(call) to accommodate ancient setups);
655ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG))
656DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
657bindir_SQ = $(subst ','\'',$(bindir))
658mandir_SQ = $(subst ','\'',$(mandir))
659infodir_SQ = $(subst ','\'',$(infodir))
660perfexecdir_SQ = $(subst ','\'',$(perfexecdir))
661template_dir_SQ = $(subst ','\'',$(template_dir))
662htmldir_SQ = $(subst ','\'',$(htmldir))
663prefix_SQ = $(subst ','\'',$(prefix))
664sysconfdir_SQ = $(subst ','\'',$(sysconfdir))
Namhyung Kimfc672972013-09-13 15:27:43 +0900665libdir_SQ = $(subst ','\'',$(libdir))
Jiri Olsacd1c39f2013-03-18 00:56:01 +0100666
667ifneq ($(filter /%,$(firstword $(perfexecdir))),)
668perfexec_instdir = $(perfexecdir)
669else
670perfexec_instdir = $(prefix)/$(perfexecdir)
671endif
672perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir))
Jiri Olsa3d7c0142013-12-03 14:09:21 +0100673
674# If we install to $(HOME) we keep the traceevent default:
675# $(HOME)/.traceevent/plugins
676# Otherwise we install plugins into the global $(libdir).
677ifdef DESTDIR
678plugindir=$(libdir)/traceevent/plugins
Josh Boyerb935a582014-01-22 10:01:48 -0500679plugindir_SQ= $(subst ','\'',$(plugindir))
Jiri Olsa3d7c0142013-12-03 14:09:21 +0100680endif
Jiri Olsa0695e572014-02-19 16:52:54 +0100681
Jiri Olsa4b20d682015-03-02 13:30:30 +0100682print_var = $(eval $(print_var_code)) $(info $(MSG))
683define print_var_code
Jiri Olsa8d790762014-02-19 16:52:55 +0100684 MSG = $(shell printf '...%30s: %s' $(1) $($(1)))
685endef
686
Jiri Olsa0695e572014-02-19 16:52:54 +0100687ifeq ($(VF),1)
Jiri Olsa4b20d682015-03-02 13:30:30 +0100688 $(call print_var,prefix)
689 $(call print_var,bindir)
690 $(call print_var,libdir)
691 $(call print_var,sysconfdir)
692 $(call print_var,LIBUNWIND_DIR)
693 $(call print_var,LIBDW_DIR)
Jiri Olsa0695e572014-02-19 16:52:54 +0100694 $(info )
695endif
Jiri Olsaf39e0422014-12-29 15:03:09 +0100696
697$(call detected_var,bindir_SQ)
698$(call detected_var,PYTHON_WORD)
699ifneq ($(OUTPUT),)
700$(call detected_var,OUTPUT)
701endif
Jiri Olsa285ab8b2014-12-29 15:13:44 +0100702$(call detected_var,htmldir_SQ)
703$(call detected_var,infodir_SQ)
704$(call detected_var,mandir_SQ)
Jiri Olsa9352aab2014-12-29 17:42:46 +0100705$(call detected_var,ETC_PERFCONFIG_SQ)
706$(call detected_var,prefix_SQ)
707$(call detected_var,perfexecdir_SQ)
Jiri Olsa3b939a62014-12-30 00:16:01 +0100708$(call detected_var,LIBDIR)
Jiri Olsa88aeea02014-12-30 00:34:23 +0100709$(call detected_var,GTK_CFLAGS)
Jiri Olsac7355f82014-12-30 13:11:32 +0100710$(call detected_var,PERL_EMBED_CCOPTS)
711$(call detected_var,PYTHON_EMBED_CCOPTS)