Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. uname_M := $(shell uname -m 2>/dev/null || echo not)
  2. ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
  3. -e s/arm.*/arm/ -e s/sa110/arm/ \
  4. -e s/s390x/s390/ -e s/parisc64/parisc/ \
  5. -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
  6. -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ )
  7. NO_PERF_REGS := 1
  8. CFLAGS := $(EXTRA_CFLAGS) $(EXTRA_WARNINGS)
  9. # Additional ARCH settings for x86
  10. ifeq ($(ARCH),i386)
  11. override ARCH := x86
  12. NO_PERF_REGS := 0
  13. LIBUNWIND_LIBS = -lunwind -lunwind-x86
  14. endif
  15. ifeq ($(ARCH),x86_64)
  16. override ARCH := x86
  17. IS_X86_64 := 0
  18. ifeq (, $(findstring m32,$(CFLAGS)))
  19. IS_X86_64 := $(shell echo __x86_64__ | ${CC} -E -x c - | tail -n 1)
  20. endif
  21. ifeq (${IS_X86_64}, 1)
  22. RAW_ARCH := x86_64
  23. CFLAGS += -DHAVE_ARCH_X86_64_SUPPORT
  24. ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
  25. endif
  26. NO_PERF_REGS := 0
  27. LIBUNWIND_LIBS = -lunwind -lunwind-x86_64
  28. endif
  29. ifeq ($(NO_PERF_REGS),0)
  30. CFLAGS += -DHAVE_PERF_REGS_SUPPORT
  31. endif
  32. ifeq ($(src-perf),)
  33. src-perf := $(srctree)/tools/perf
  34. endif
  35. ifeq ($(obj-perf),)
  36. obj-perf := $(OUTPUT)
  37. endif
  38. ifneq ($(obj-perf),)
  39. obj-perf := $(abspath $(obj-perf))/
  40. endif
  41. LIB_INCLUDE := $(srctree)/tools/lib/
  42. # include ARCH specific config
  43. -include $(src-perf)/arch/$(ARCH)/Makefile
  44. include $(src-perf)/config/utilities.mak
  45. ifeq ($(call get-executable,$(FLEX)),)
  46. dummy := $(error Error: $(FLEX) is missing on this system, please install it)
  47. endif
  48. ifeq ($(call get-executable,$(BISON)),)
  49. dummy := $(error Error: $(BISON) is missing on this system, please install it)
  50. endif
  51. # Treat warnings as errors unless directed not to
  52. ifneq ($(WERROR),0)
  53. CFLAGS += -Werror
  54. endif
  55. ifeq ($(DEBUG),0)
  56. CFLAGS += -O6
  57. endif
  58. ifdef PARSER_DEBUG
  59. PARSER_DEBUG_BISON := -t
  60. PARSER_DEBUG_FLEX := -d
  61. CFLAGS += -DPARSER_DEBUG
  62. endif
  63. CFLAGS += -fno-omit-frame-pointer
  64. CFLAGS += -ggdb3
  65. CFLAGS += -funwind-tables
  66. CFLAGS += -Wall
  67. CFLAGS += -Wextra
  68. CFLAGS += -std=gnu99
  69. EXTLIBS = -lelf -lpthread -lrt -lm -ldl
  70. ifneq ($(OUTPUT),)
  71. OUTPUT_FEATURES = $(OUTPUT)config/feature-checks/
  72. $(shell mkdir -p $(OUTPUT_FEATURES))
  73. endif
  74. feature_check = $(eval $(feature_check_code))
  75. define feature_check_code
  76. feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) LDFLAGS=$(LDFLAGS) -C config/feature-checks test-$1 >/dev/null 2>/dev/null && echo 1 || echo 0)
  77. endef
  78. feature_set = $(eval $(feature_set_code))
  79. define feature_set_code
  80. feature-$(1) := 1
  81. endef
  82. #
  83. # Build the feature check binaries in parallel, ignore errors, ignore return value and suppress output:
  84. #
  85. #
  86. # Note that this is not a complete list of all feature tests, just
  87. # those that are typically built on a fully configured system.
  88. #
  89. # [ Feature tests not mentioned here have to be built explicitly in
  90. # the rule that uses them - an example for that is the 'bionic'
  91. # feature check. ]
  92. #
  93. CORE_FEATURE_TESTS = \
  94. backtrace \
  95. dwarf \
  96. fortify-source \
  97. glibc \
  98. gtk2 \
  99. gtk2-infobar \
  100. libaudit \
  101. libbfd \
  102. libelf \
  103. libelf-getphdrnum \
  104. libelf-mmap \
  105. libnuma \
  106. libperl \
  107. libpython \
  108. libpython-version \
  109. libslang \
  110. libunwind \
  111. on-exit \
  112. stackprotector \
  113. stackprotector-all
  114. #
  115. # So here we detect whether test-all was rebuilt, to be able
  116. # to skip the print-out of the long features list if the file
  117. # existed before and after it was built:
  118. #
  119. ifeq ($(wildcard $(OUTPUT)config/feature-checks/test-all),)
  120. test-all-failed := 1
  121. else
  122. test-all-failed := 0
  123. endif
  124. #
  125. # Special fast-path for the 'all features are available' case:
  126. #
  127. $(call feature_check,all,$(MSG))
  128. #
  129. # Just in case the build freshly failed, make sure we print the
  130. # feature matrix:
  131. #
  132. ifeq ($(feature-all), 0)
  133. test-all-failed := 1
  134. endif
  135. ifeq ($(test-all-failed),1)
  136. $(info )
  137. $(info Auto-detecting system features:)
  138. endif
  139. ifeq ($(feature-all), 1)
  140. #
  141. # test-all.c passed - just set all the core feature flags to 1:
  142. #
  143. $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_set,$(feat)))
  144. else
  145. $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) LDFLAGS=$(LDFLAGS) -i -j -C config/feature-checks $(CORE_FEATURE_TESTS) >/dev/null 2>&1)
  146. $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_check,$(feat)))
  147. endif
  148. #
  149. # Print the result of the feature test:
  150. #
  151. feature_print = $(eval $(feature_print_code)) $(info $(MSG))
  152. define feature_print_code
  153. ifeq ($(feature-$(1)), 1)
  154. MSG = $(shell printf '...%30s: [ \033[32mon\033[m ]' $(1))
  155. else
  156. MSG = $(shell printf '...%30s: [ \033[31mOFF\033[m ]' $(1))
  157. endif
  158. endef
  159. #
  160. # Only print out our features if we rebuilt the testcases or if a test failed:
  161. #
  162. ifeq ($(test-all-failed), 1)
  163. $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_print,$(feat)))
  164. $(info )
  165. endif
  166. ifeq ($(feature-stackprotector-all), 1)
  167. CFLAGS += -fstack-protector-all
  168. endif
  169. ifeq ($(feature-stackprotector), 1)
  170. CFLAGS += -Wstack-protector
  171. endif
  172. ifeq ($(DEBUG),0)
  173. ifeq ($(feature-fortify-source), 1)
  174. CFLAGS += -D_FORTIFY_SOURCE=2
  175. endif
  176. endif
  177. CFLAGS += -I$(src-perf)/util/include
  178. CFLAGS += -I$(src-perf)/arch/$(ARCH)/include
  179. CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi
  180. CFLAGS += -I$(srctree)/arch/$(ARCH)/include
  181. CFLAGS += -I$(srctree)/include/uapi
  182. CFLAGS += -I$(srctree)/include
  183. # $(obj-perf) for generated common-cmds.h
  184. # $(obj-perf)/util for generated bison/flex headers
  185. ifneq ($(OUTPUT),)
  186. CFLAGS += -I$(obj-perf)/util
  187. CFLAGS += -I$(obj-perf)
  188. endif
  189. CFLAGS += -I$(src-perf)/util
  190. CFLAGS += -I$(src-perf)
  191. CFLAGS += -I$(LIB_INCLUDE)
  192. CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
  193. ifndef NO_BIONIC
  194. $(feature_check,bionic)
  195. ifeq ($(feature-bionic), 1)
  196. BIONIC := 1
  197. EXTLIBS := $(filter-out -lrt,$(EXTLIBS))
  198. EXTLIBS := $(filter-out -lpthread,$(EXTLIBS))
  199. endif
  200. endif
  201. ifdef NO_LIBELF
  202. NO_DWARF := 1
  203. NO_DEMANGLE := 1
  204. NO_LIBUNWIND := 1
  205. else
  206. ifeq ($(feature-libelf), 0)
  207. ifeq ($(feature-glibc), 1)
  208. LIBC_SUPPORT := 1
  209. endif
  210. ifeq ($(BIONIC),1)
  211. LIBC_SUPPORT := 1
  212. endif
  213. ifeq ($(LIBC_SUPPORT),1)
  214. msg := $(warning No libelf found, disables 'probe' tool, please install elfutils-libelf-devel/libelf-dev);
  215. NO_LIBELF := 1
  216. NO_DWARF := 1
  217. NO_DEMANGLE := 1
  218. else
  219. msg := $(error No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static);
  220. endif
  221. else
  222. # for linking with debug library, run like:
  223. # make DEBUG=1 LIBDW_DIR=/opt/libdw/
  224. ifdef LIBDW_DIR
  225. LIBDW_CFLAGS := -I$(LIBDW_DIR)/include
  226. LIBDW_LDFLAGS := -L$(LIBDW_DIR)/lib
  227. endif
  228. ifneq ($(feature-dwarf), 1)
  229. 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);
  230. NO_DWARF := 1
  231. endif # Dwarf support
  232. endif # libelf support
  233. endif # NO_LIBELF
  234. ifndef NO_LIBELF
  235. CFLAGS += -DHAVE_LIBELF_SUPPORT
  236. ifeq ($(feature-libelf-mmap), 1)
  237. CFLAGS += -DHAVE_LIBELF_MMAP_SUPPORT
  238. endif
  239. ifeq ($(feature-libelf-getphdrnum), 1)
  240. CFLAGS += -DHAVE_ELF_GETPHDRNUM_SUPPORT
  241. endif
  242. # include ARCH specific config
  243. -include $(src-perf)/arch/$(ARCH)/Makefile
  244. ifndef NO_DWARF
  245. ifeq ($(origin PERF_HAVE_DWARF_REGS), undefined)
  246. msg := $(warning DWARF register mappings have not been defined for architecture $(ARCH), DWARF support disabled);
  247. NO_DWARF := 1
  248. else
  249. CFLAGS += -DHAVE_DWARF_SUPPORT $(LIBDW_CFLAGS)
  250. LDFLAGS += $(LIBDW_LDFLAGS)
  251. EXTLIBS += -lelf -ldw
  252. endif # PERF_HAVE_DWARF_REGS
  253. endif # NO_DWARF
  254. endif # NO_LIBELF
  255. # There's only x86 (both 32 and 64) support for CFI unwind so far
  256. ifneq ($(ARCH),x86)
  257. NO_LIBUNWIND := 1
  258. endif
  259. ifndef NO_LIBUNWIND
  260. #
  261. # For linking with debug library, run like:
  262. #
  263. # make DEBUG=1 LIBUNWIND_DIR=/opt/libunwind/
  264. #
  265. ifdef LIBUNWIND_DIR
  266. LIBUNWIND_CFLAGS := -I$(LIBUNWIND_DIR)/include
  267. LIBUNWIND_LDFLAGS := -L$(LIBUNWIND_DIR)/lib
  268. endif
  269. ifneq ($(feature-libunwind), 1)
  270. msg := $(warning No libunwind found, disabling post unwind support. Please install libunwind-dev[el] >= 0.99);
  271. NO_LIBUNWIND := 1
  272. endif
  273. endif
  274. ifndef NO_LIBUNWIND
  275. CFLAGS += -DHAVE_LIBUNWIND_SUPPORT
  276. EXTLIBS += $(LIBUNWIND_LIBS)
  277. CFLAGS += $(LIBUNWIND_CFLAGS)
  278. LDFLAGS += $(LIBUNWIND_LDFLAGS)
  279. endif
  280. ifndef NO_LIBAUDIT
  281. ifneq ($(feature-libaudit), 1)
  282. msg := $(warning No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev);
  283. NO_LIBAUDIT := 1
  284. else
  285. CFLAGS += -DHAVE_LIBAUDIT_SUPPORT
  286. EXTLIBS += -laudit
  287. endif
  288. endif
  289. ifdef NO_NEWT
  290. NO_SLANG=1
  291. endif
  292. ifndef NO_SLANG
  293. ifneq ($(feature-libslang), 1)
  294. msg := $(warning slang not found, disables TUI support. Please install slang-devel or libslang-dev);
  295. NO_SLANG := 1
  296. else
  297. # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h
  298. CFLAGS += -I/usr/include/slang
  299. CFLAGS += -DHAVE_SLANG_SUPPORT
  300. EXTLIBS += -lslang
  301. endif
  302. endif
  303. ifndef NO_GTK2
  304. FLAGS_GTK2=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
  305. ifneq ($(feature-gtk2), 1)
  306. msg := $(warning GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev);
  307. NO_GTK2 := 1
  308. else
  309. ifeq ($(feature-gtk2-infobar), 1)
  310. GTK_CFLAGS := -DHAVE_GTK_INFO_BAR_SUPPORT
  311. endif
  312. CFLAGS += -DHAVE_GTK2_SUPPORT
  313. GTK_CFLAGS += $(shell pkg-config --cflags gtk+-2.0 2>/dev/null)
  314. GTK_LIBS := $(shell pkg-config --libs gtk+-2.0 2>/dev/null)
  315. EXTLIBS += -ldl
  316. endif
  317. endif
  318. grep-libs = $(filter -l%,$(1))
  319. strip-libs = $(filter-out -l%,$(1))
  320. ifdef NO_LIBPERL
  321. CFLAGS += -DNO_LIBPERL
  322. else
  323. PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
  324. PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS))
  325. PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
  326. PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`
  327. FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
  328. ifneq ($(feature-libperl), 1)
  329. CFLAGS += -DNO_LIBPERL
  330. NO_LIBPERL := 1
  331. else
  332. LDFLAGS += $(PERL_EMBED_LDFLAGS)
  333. EXTLIBS += $(PERL_EMBED_LIBADD)
  334. endif
  335. endif
  336. disable-python = $(eval $(disable-python_code))
  337. define disable-python_code
  338. CFLAGS += -DNO_LIBPYTHON
  339. $(if $(1),$(warning No $(1) was found))
  340. $(warning Python support will not be built)
  341. NO_LIBPYTHON := 1
  342. endef
  343. override PYTHON := \
  344. $(call get-executable-or-default,PYTHON,python)
  345. ifndef PYTHON
  346. $(call disable-python,python interpreter)
  347. else
  348. PYTHON_WORD := $(call shell-wordify,$(PYTHON))
  349. ifdef NO_LIBPYTHON
  350. $(call disable-python)
  351. else
  352. override PYTHON_CONFIG := \
  353. $(call get-executable-or-default,PYTHON_CONFIG,$(PYTHON)-config)
  354. ifndef PYTHON_CONFIG
  355. $(call disable-python,python-config tool)
  356. else
  357. PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
  358. PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) --ldflags 2>/dev/null)
  359. PYTHON_EMBED_LDFLAGS := $(call strip-libs,$(PYTHON_EMBED_LDOPTS))
  360. PYTHON_EMBED_LIBADD := $(call grep-libs,$(PYTHON_EMBED_LDOPTS))
  361. PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null)
  362. FLAGS_PYTHON_EMBED := $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS)
  363. ifneq ($(feature-libpython), 1)
  364. $(call disable-python,Python.h (for Python 2.x))
  365. else
  366. ifneq ($(feature-libpython-version), 1)
  367. $(warning Python 3 is not yet supported; please set)
  368. $(warning PYTHON and/or PYTHON_CONFIG appropriately.)
  369. $(warning If you also have Python 2 installed, then)
  370. $(warning try something like:)
  371. $(warning $(and ,))
  372. $(warning $(and ,) make PYTHON=python2)
  373. $(warning $(and ,))
  374. $(warning Otherwise, disable Python support entirely:)
  375. $(warning $(and ,))
  376. $(warning $(and ,) make NO_LIBPYTHON=1)
  377. $(warning $(and ,))
  378. $(error $(and ,))
  379. else
  380. LDFLAGS += $(PYTHON_EMBED_LDFLAGS)
  381. EXTLIBS += $(PYTHON_EMBED_LIBADD)
  382. LANG_BINDINGS += $(obj-perf)python/perf.so
  383. endif
  384. endif
  385. endif
  386. endif
  387. endif
  388. ifeq ($(feature-libbfd), 1)
  389. EXTLIBS += -lbfd
  390. endif
  391. ifdef NO_DEMANGLE
  392. CFLAGS += -DNO_DEMANGLE
  393. else
  394. ifdef HAVE_CPLUS_DEMANGLE_SUPPORT
  395. EXTLIBS += -liberty
  396. CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT
  397. else
  398. ifneq ($(feature-libbfd), 1)
  399. $(feature_check,liberty)
  400. ifeq ($(feature-liberty), 1)
  401. EXTLIBS += -lbfd -liberty
  402. else
  403. $(feature_check,liberty-z)
  404. ifeq ($(feature-liberty-z), 1)
  405. EXTLIBS += -lbfd -liberty -lz
  406. else
  407. $(feature_check,cplus-demangle)
  408. ifeq ($(feature-cplus-demangle), 1)
  409. EXTLIBS += -liberty
  410. CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT
  411. else
  412. msg := $(warning No bfd.h/libbfd found, install binutils-dev[el]/zlib-static to gain symbol demangling)
  413. CFLAGS += -DNO_DEMANGLE
  414. endif
  415. endif
  416. endif
  417. endif
  418. endif
  419. endif
  420. ifneq ($(filter -lbfd,$(EXTLIBS)),)
  421. CFLAGS += -DHAVE_LIBBFD_SUPPORT
  422. endif
  423. ifndef NO_ON_EXIT
  424. ifeq ($(feature-on-exit), 1)
  425. CFLAGS += -DHAVE_ON_EXIT_SUPPORT
  426. endif
  427. endif
  428. ifndef NO_BACKTRACE
  429. ifeq ($(feature-backtrace), 1)
  430. CFLAGS += -DHAVE_BACKTRACE_SUPPORT
  431. endif
  432. endif
  433. ifndef NO_LIBNUMA
  434. ifeq ($(feature-libnuma), 0)
  435. msg := $(warning No numa.h found, disables 'perf bench numa mem' benchmark, please install numa-libs-devel or libnuma-dev);
  436. NO_LIBNUMA := 1
  437. else
  438. CFLAGS += -DHAVE_LIBNUMA_SUPPORT
  439. EXTLIBS += -lnuma
  440. endif
  441. endif
  442. # Among the variables below, these:
  443. # perfexecdir
  444. # template_dir
  445. # mandir
  446. # infodir
  447. # htmldir
  448. # ETC_PERFCONFIG (but not sysconfdir)
  449. # can be specified as a relative path some/where/else;
  450. # this is interpreted as relative to $(prefix) and "perf" at
  451. # runtime figures out where they are based on the path to the executable.
  452. # This can help installing the suite in a relocatable way.
  453. # Make the path relative to DESTDIR, not to prefix
  454. ifndef DESTDIR
  455. prefix = $(HOME)
  456. endif
  457. bindir_relative = bin
  458. bindir = $(prefix)/$(bindir_relative)
  459. mandir = share/man
  460. infodir = share/info
  461. perfexecdir = libexec/perf-core
  462. sharedir = $(prefix)/share
  463. template_dir = share/perf-core/templates
  464. htmldir = share/doc/perf-doc
  465. ifeq ($(prefix),/usr)
  466. sysconfdir = /etc
  467. ETC_PERFCONFIG = $(sysconfdir)/perfconfig
  468. else
  469. sysconfdir = $(prefix)/etc
  470. ETC_PERFCONFIG = etc/perfconfig
  471. endif
  472. ifeq ($(IS_X86_64),1)
  473. lib = lib64
  474. else
  475. lib = lib
  476. endif
  477. libdir = $(prefix)/$(lib)
  478. # Shell quote (do not use $(call) to accommodate ancient setups);
  479. ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG))
  480. DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
  481. bindir_SQ = $(subst ','\'',$(bindir))
  482. mandir_SQ = $(subst ','\'',$(mandir))
  483. infodir_SQ = $(subst ','\'',$(infodir))
  484. perfexecdir_SQ = $(subst ','\'',$(perfexecdir))
  485. template_dir_SQ = $(subst ','\'',$(template_dir))
  486. htmldir_SQ = $(subst ','\'',$(htmldir))
  487. prefix_SQ = $(subst ','\'',$(prefix))
  488. sysconfdir_SQ = $(subst ','\'',$(sysconfdir))
  489. libdir_SQ = $(subst ','\'',$(libdir))
  490. ifneq ($(filter /%,$(firstword $(perfexecdir))),)
  491. perfexec_instdir = $(perfexecdir)
  492. else
  493. perfexec_instdir = $(prefix)/$(perfexecdir)
  494. endif
  495. perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir))