Makefile.perf 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  1. include ../scripts/Makefile.include
  2. # The default target of this Makefile is...
  3. all:
  4. include ../scripts/utilities.mak
  5. # Define V to have a more verbose compile.
  6. #
  7. # Define VF to have a more verbose feature check output.
  8. #
  9. # Define O to save output files in a separate directory.
  10. #
  11. # Define ARCH as name of target architecture if you want cross-builds.
  12. #
  13. # Define CROSS_COMPILE as prefix name of compiler if you want cross-builds.
  14. #
  15. # Define NO_LIBPERL to disable perl script extension.
  16. #
  17. # Define NO_LIBPYTHON to disable python script extension.
  18. #
  19. # Define PYTHON to point to the python binary if the default
  20. # `python' is not correct; for example: PYTHON=python2
  21. #
  22. # Define PYTHON_CONFIG to point to the python-config binary if
  23. # the default `$(PYTHON)-config' is not correct.
  24. #
  25. # Define ASCIIDOC8 if you want to format documentation with AsciiDoc 8
  26. #
  27. # Define DOCBOOK_XSL_172 if you want to format man pages with DocBook XSL v1.72.
  28. #
  29. # Define LDFLAGS=-static to build a static binary.
  30. #
  31. # Define EXTRA_CFLAGS=-m64 or EXTRA_CFLAGS=-m32 as appropriate for cross-builds.
  32. #
  33. # Define NO_DWARF if you do not want debug-info analysis feature at all.
  34. #
  35. # Define WERROR=0 to disable treating any warnings as errors.
  36. #
  37. # Define NO_NEWT if you do not want TUI support. (deprecated)
  38. #
  39. # Define NO_SLANG if you do not want TUI support.
  40. #
  41. # Define NO_GTK2 if you do not want GTK+ GUI support.
  42. #
  43. # Define NO_DEMANGLE if you do not want C++ symbol demangling.
  44. #
  45. # Define NO_LIBELF if you do not want libelf dependency (e.g. cross-builds)
  46. #
  47. # Define NO_LIBUNWIND if you do not want libunwind dependency for dwarf
  48. # backtrace post unwind.
  49. #
  50. # Define NO_BACKTRACE if you do not want stack backtrace debug feature
  51. #
  52. # Define NO_LIBNUMA if you do not want numa perf benchmark
  53. #
  54. # Define NO_LIBAUDIT if you do not want libaudit support
  55. #
  56. # Define NO_LIBBIONIC if you do not want bionic support
  57. #
  58. # Define NO_LIBCRYPTO if you do not want libcrypto (openssl) support
  59. # used for generating build-ids for ELFs generated by jitdump.
  60. #
  61. # Define NO_LIBDW_DWARF_UNWIND if you do not want libdw support
  62. # for dwarf backtrace post unwind.
  63. #
  64. # Define NO_PERF_READ_VDSO32 if you do not want to build perf-read-vdso32
  65. # for reading the 32-bit compatibility VDSO in 64-bit mode
  66. #
  67. # Define NO_PERF_READ_VDSOX32 if you do not want to build perf-read-vdsox32
  68. # for reading the x32 mode 32-bit compatibility VDSO in 64-bit mode
  69. #
  70. # Define NO_ZLIB if you do not want to support compressed kernel modules
  71. #
  72. # Define LIBBABELTRACE if you DO want libbabeltrace support
  73. # for CTF data format.
  74. #
  75. # Define NO_LZMA if you do not want to support compressed (xz) kernel modules
  76. #
  77. # Define NO_AUXTRACE if you do not want AUX area tracing support
  78. #
  79. # Define NO_LIBBPF if you do not want BPF support
  80. #
  81. # Define NO_SDT if you do not want to define SDT event in perf tools,
  82. # note that it doesn't disable SDT scanning support.
  83. #
  84. # Define FEATURES_DUMP to provide features detection dump file
  85. # and bypass the feature detection
  86. # As per kernel Makefile, avoid funny character set dependencies
  87. unexport LC_ALL
  88. LC_COLLATE=C
  89. LC_NUMERIC=C
  90. export LC_COLLATE LC_NUMERIC
  91. ifeq ($(srctree),)
  92. srctree := $(patsubst %/,%,$(dir $(shell pwd)))
  93. srctree := $(patsubst %/,%,$(dir $(srctree)))
  94. #$(info Determined 'srctree' to be $(srctree))
  95. endif
  96. ifneq ($(objtree),)
  97. #$(info Determined 'objtree' to be $(objtree))
  98. endif
  99. ifneq ($(OUTPUT),)
  100. #$(info Determined 'OUTPUT' to be $(OUTPUT))
  101. # Adding $(OUTPUT) as a directory to look for source files,
  102. # because use generated output files as sources dependency
  103. # for flex/bison parsers.
  104. VPATH += $(OUTPUT)
  105. export VPATH
  106. endif
  107. ifeq ($(V),1)
  108. Q =
  109. else
  110. Q = @
  111. endif
  112. # Do not use make's built-in rules
  113. # (this improves performance and avoids hard-to-debug behaviour);
  114. MAKEFLAGS += -r
  115. $(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD
  116. $(Q)$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT)
  117. $(Q)touch $(OUTPUT)PERF-VERSION-FILE
  118. # Makefiles suck: This macro sets a default value of $(2) for the
  119. # variable named by $(1), unless the variable has been set by
  120. # environment or command line. This is necessary for CC and AR
  121. # because make sets default values, so the simpler ?= approach
  122. # won't work as expected.
  123. define allow-override
  124. $(if $(or $(findstring environment,$(origin $(1))),\
  125. $(findstring command line,$(origin $(1)))),,\
  126. $(eval $(1) = $(2)))
  127. endef
  128. # Allow setting CC and AR and LD, or setting CROSS_COMPILE as a prefix.
  129. $(call allow-override,CC,$(CROSS_COMPILE)gcc)
  130. $(call allow-override,AR,$(CROSS_COMPILE)ar)
  131. $(call allow-override,LD,$(CROSS_COMPILE)ld)
  132. LD += $(EXTRA_LDFLAGS)
  133. HOSTCC ?= gcc
  134. HOSTLD ?= ld
  135. HOSTAR ?= ar
  136. PKG_CONFIG = $(CROSS_COMPILE)pkg-config
  137. RM = rm -f
  138. LN = ln -f
  139. MKDIR = mkdir
  140. FIND = find
  141. INSTALL = install
  142. FLEX = flex
  143. BISON = bison
  144. STRIP = strip
  145. AWK = awk
  146. LIB_DIR = $(srctree)/tools/lib/api/
  147. TRACE_EVENT_DIR = $(srctree)/tools/lib/traceevent/
  148. BPF_DIR = $(srctree)/tools/lib/bpf/
  149. SUBCMD_DIR = $(srctree)/tools/lib/subcmd/
  150. # include Makefile.config by default and rule out
  151. # non-config cases
  152. config := 1
  153. NON_CONFIG_TARGETS := clean TAGS tags cscope help install-doc
  154. ifdef MAKECMDGOALS
  155. ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
  156. config := 0
  157. endif
  158. endif
  159. # The fixdep build - we force fixdep tool to be built as
  160. # the first target in the separate make session not to be
  161. # disturbed by any parallel make jobs. Once fixdep is done
  162. # we issue the requested build with FIXDEP=1 variable.
  163. #
  164. # The fixdep build is disabled for $(NON_CONFIG_TARGETS)
  165. # targets, because it's not necessary.
  166. ifdef FIXDEP
  167. force_fixdep := 0
  168. else
  169. force_fixdep := $(config)
  170. endif
  171. export srctree OUTPUT RM CC CXX LD AR CFLAGS CXXFLAGS V BISON FLEX AWK
  172. export HOSTCC HOSTLD HOSTAR
  173. include $(srctree)/tools/build/Makefile.include
  174. ifeq ($(force_fixdep),1)
  175. goals := $(filter-out all sub-make, $(MAKECMDGOALS))
  176. $(goals) all: sub-make
  177. sub-make: fixdep
  178. $(Q)$(MAKE) FIXDEP=1 -f Makefile.perf $(goals)
  179. else # force_fixdep
  180. # Set FEATURE_TESTS to 'all' so all possible feature checkers are executed.
  181. # Without this setting the output feature dump file misses some features, for
  182. # example, liberty. Select all checkers so we won't get an incomplete feature
  183. # dump file.
  184. ifeq ($(config),1)
  185. ifdef MAKECMDGOALS
  186. ifeq ($(filter feature-dump,$(MAKECMDGOALS)),feature-dump)
  187. FEATURE_TESTS := all
  188. endif
  189. endif
  190. include Makefile.config
  191. endif
  192. ifeq ($(config),0)
  193. include $(srctree)/tools/scripts/Makefile.arch
  194. -include arch/$(ARCH)/Makefile
  195. endif
  196. # The FEATURE_DUMP_EXPORT holds location of the actual
  197. # FEATURE_DUMP file to be used to bypass feature detection
  198. # (for bpf or any other subproject)
  199. ifeq ($(FEATURES_DUMP),)
  200. FEATURE_DUMP_EXPORT := $(realpath $(OUTPUT)FEATURE-DUMP)
  201. else
  202. FEATURE_DUMP_EXPORT := $(FEATURES_DUMP)
  203. endif
  204. export prefix bindir sharedir sysconfdir DESTDIR
  205. # sparse is architecture-neutral, which means that we need to tell it
  206. # explicitly what architecture to check for. Fix this up for yours..
  207. SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
  208. # Guard against environment variables
  209. PYRF_OBJS =
  210. SCRIPT_SH =
  211. SCRIPT_SH += perf-archive.sh
  212. SCRIPT_SH += perf-with-kcore.sh
  213. grep-libs = $(filter -l%,$(1))
  214. strip-libs = $(filter-out -l%,$(1))
  215. ifneq ($(OUTPUT),)
  216. TE_PATH=$(OUTPUT)
  217. BPF_PATH=$(OUTPUT)
  218. SUBCMD_PATH=$(OUTPUT)
  219. ifneq ($(subdir),)
  220. API_PATH=$(OUTPUT)/../lib/api/
  221. else
  222. API_PATH=$(OUTPUT)
  223. endif
  224. else
  225. TE_PATH=$(TRACE_EVENT_DIR)
  226. API_PATH=$(LIB_DIR)
  227. BPF_PATH=$(BPF_DIR)
  228. SUBCMD_PATH=$(SUBCMD_DIR)
  229. endif
  230. LIBTRACEEVENT = $(TE_PATH)libtraceevent.a
  231. export LIBTRACEEVENT
  232. LIBTRACEEVENT_DYNAMIC_LIST = $(TE_PATH)libtraceevent-dynamic-list
  233. LIBTRACEEVENT_DYNAMIC_LIST_LDFLAGS = -Xlinker --dynamic-list=$(LIBTRACEEVENT_DYNAMIC_LIST)
  234. LIBAPI = $(API_PATH)libapi.a
  235. export LIBAPI
  236. LIBBPF = $(BPF_PATH)libbpf.a
  237. LIBSUBCMD = $(SUBCMD_PATH)libsubcmd.a
  238. # python extension build directories
  239. PYTHON_EXTBUILD := $(OUTPUT)python_ext_build/
  240. PYTHON_EXTBUILD_LIB := $(PYTHON_EXTBUILD)lib/
  241. PYTHON_EXTBUILD_TMP := $(PYTHON_EXTBUILD)tmp/
  242. export PYTHON_EXTBUILD_LIB PYTHON_EXTBUILD_TMP
  243. python-clean := $(call QUIET_CLEAN, python) $(RM) -r $(PYTHON_EXTBUILD) $(OUTPUT)python/perf.so
  244. PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources)
  245. PYTHON_EXT_DEPS := util/python-ext-sources util/setup.py $(LIBTRACEEVENT) $(LIBAPI)
  246. $(OUTPUT)python/perf.so: $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) $(LIBTRACEEVENT_DYNAMIC_LIST)
  247. $(QUIET_GEN)LDSHARED="$(CC) -pthread -shared" \
  248. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS) $(LIBTRACEEVENT_DYNAMIC_LIST_LDFLAGS)' \
  249. $(PYTHON_WORD) util/setup.py \
  250. --quiet build_ext; \
  251. mkdir -p $(OUTPUT)python && \
  252. cp $(PYTHON_EXTBUILD_LIB)perf.so $(OUTPUT)python/
  253. #
  254. # No Perl scripts right now:
  255. #
  256. SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH))
  257. PROGRAMS += $(OUTPUT)perf
  258. ifndef NO_PERF_READ_VDSO32
  259. PROGRAMS += $(OUTPUT)perf-read-vdso32
  260. endif
  261. ifndef NO_PERF_READ_VDSOX32
  262. PROGRAMS += $(OUTPUT)perf-read-vdsox32
  263. endif
  264. # what 'all' will build and 'install' will install, in perfexecdir
  265. ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS)
  266. # what 'all' will build but not install in perfexecdir
  267. OTHER_PROGRAMS = $(OUTPUT)perf
  268. # Set paths to tools early so that they can be used for version tests.
  269. ifndef SHELL_PATH
  270. SHELL_PATH = /bin/sh
  271. endif
  272. ifndef PERL_PATH
  273. PERL_PATH = /usr/bin/perl
  274. endif
  275. export PERL_PATH
  276. LIB_FILE=$(OUTPUT)libperf.a
  277. PERFLIBS = $(LIB_FILE) $(LIBAPI) $(LIBTRACEEVENT) $(LIBSUBCMD)
  278. ifndef NO_LIBBPF
  279. PERFLIBS += $(LIBBPF)
  280. endif
  281. # We choose to avoid "if .. else if .. else .. endif endif"
  282. # because maintaining the nesting to match is a pain. If
  283. # we had "elif" things would have been much nicer...
  284. ifneq ($(OUTPUT),)
  285. CFLAGS += -I$(OUTPUT)
  286. endif
  287. ifndef NO_GTK2
  288. ALL_PROGRAMS += $(OUTPUT)libperf-gtk.so
  289. GTK_IN := $(OUTPUT)gtk-in.o
  290. install-gtk: $(OUTPUT)libperf-gtk.so
  291. $(call QUIET_INSTALL, 'GTK UI') \
  292. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(libdir_SQ)'; \
  293. $(INSTALL) $(OUTPUT)libperf-gtk.so '$(DESTDIR_SQ)$(libdir_SQ)'
  294. endif
  295. ifdef ASCIIDOC8
  296. export ASCIIDOC8
  297. endif
  298. LIBS = -Wl,--whole-archive $(PERFLIBS) -Wl,--no-whole-archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group
  299. export INSTALL SHELL_PATH
  300. ### Build rules
  301. SHELL = $(SHELL_PATH)
  302. all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BINDINGS) $(OTHER_PROGRAMS)
  303. please_set_SHELL_PATH_to_a_more_modern_shell:
  304. $(Q)$$(:)
  305. shell_compatibility_test: please_set_SHELL_PATH_to_a_more_modern_shell
  306. strip: $(PROGRAMS) $(OUTPUT)perf
  307. $(STRIP) $(STRIP_OPTS) $(PROGRAMS) $(OUTPUT)perf
  308. PERF_IN := $(OUTPUT)perf-in.o
  309. JEVENTS := $(OUTPUT)pmu-events/jevents
  310. JEVENTS_IN := $(OUTPUT)pmu-events/jevents-in.o
  311. PMU_EVENTS_IN := $(OUTPUT)pmu-events/pmu-events-in.o
  312. export JEVENTS
  313. build := -f $(srctree)/tools/build/Makefile.build dir=. obj
  314. $(PERF_IN): prepare FORCE
  315. @(test -f ../../include/uapi/linux/perf_event.h && ( \
  316. (diff -B ../include/uapi/linux/perf_event.h ../../include/uapi/linux/perf_event.h >/dev/null) \
  317. || echo "Warning: tools/include/uapi/linux/perf_event.h differs from kernel" >&2 )) || true
  318. @(test -f ../../include/linux/hash.h && ( \
  319. (diff -B ../include/linux/hash.h ../../include/linux/hash.h >/dev/null) \
  320. || echo "Warning: tools/include/linux/hash.h differs from kernel" >&2 )) || true
  321. @(test -f ../../include/uapi/linux/hw_breakpoint.h && ( \
  322. (diff -B ../include/uapi/linux/hw_breakpoint.h ../../include/uapi/linux/hw_breakpoint.h >/dev/null) \
  323. || echo "Warning: tools/include/uapi/linux/hw_breakpoint.h differs from kernel" >&2 )) || true
  324. @(test -f ../../arch/x86/include/asm/disabled-features.h && ( \
  325. (diff -B ../arch/x86/include/asm/disabled-features.h ../../arch/x86/include/asm/disabled-features.h >/dev/null) \
  326. || echo "Warning: tools/arch/x86/include/asm/disabled-features.h differs from kernel" >&2 )) || true
  327. @(test -f ../../arch/x86/include/asm/required-features.h && ( \
  328. (diff -B ../arch/x86/include/asm/required-features.h ../../arch/x86/include/asm/required-features.h >/dev/null) \
  329. || echo "Warning: tools/arch/x86/include/asm/required-features.h differs from kernel" >&2 )) || true
  330. @(test -f ../../arch/x86/include/asm/cpufeatures.h && ( \
  331. (diff -B ../arch/x86/include/asm/cpufeatures.h ../../arch/x86/include/asm/cpufeatures.h >/dev/null) \
  332. || echo "Warning: tools/arch/x86/include/asm/cpufeatures.h differs from kernel" >&2 )) || true
  333. @(test -f ../../arch/x86/lib/memcpy_64.S && ( \
  334. (diff -B ../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memcpy_64.S >/dev/null) \
  335. || echo "Warning: tools/arch/x86/lib/memcpy_64.S differs from kernel" >&2 )) || true
  336. @(test -f ../../arch/x86/lib/memset_64.S && ( \
  337. (diff -B ../arch/x86/lib/memset_64.S ../../arch/x86/lib/memset_64.S >/dev/null) \
  338. || echo "Warning: tools/arch/x86/lib/memset_64.S differs from kernel" >&2 )) || true
  339. @(test -f ../../arch/arm/include/uapi/asm/perf_regs.h && ( \
  340. (diff -B ../arch/arm/include/uapi/asm/perf_regs.h ../../arch/arm/include/uapi/asm/perf_regs.h >/dev/null) \
  341. || echo "Warning: tools/arch/arm/include/uapi/asm/perf_regs.h differs from kernel" >&2 )) || true
  342. @(test -f ../../arch/arm64/include/uapi/asm/perf_regs.h && ( \
  343. (diff -B ../arch/arm64/include/uapi/asm/perf_regs.h ../../arch/arm64/include/uapi/asm/perf_regs.h >/dev/null) \
  344. || echo "Warning: tools/arch/arm64/include/uapi/asm/perf_regs.h differs from kernel" >&2 )) || true
  345. @(test -f ../../arch/powerpc/include/uapi/asm/perf_regs.h && ( \
  346. (diff -B ../arch/powerpc/include/uapi/asm/perf_regs.h ../../arch/powerpc/include/uapi/asm/perf_regs.h >/dev/null) \
  347. || echo "Warning: tools/arch/powerpc/include/uapi/asm/perf_regs.h differs from kernel" >&2 )) || true
  348. @(test -f ../../arch/x86/include/uapi/asm/perf_regs.h && ( \
  349. (diff -B ../arch/x86/include/uapi/asm/perf_regs.h ../../arch/x86/include/uapi/asm/perf_regs.h >/dev/null) \
  350. || echo "Warning: tools/arch/x86/include/uapi/asm/perf_regs.h differs from kernel" >&2 )) || true
  351. @(test -f ../../arch/x86/include/uapi/asm/kvm.h && ( \
  352. (diff -B ../arch/x86/include/uapi/asm/kvm.h ../../arch/x86/include/uapi/asm/kvm.h >/dev/null) \
  353. || echo "Warning: tools/arch/x86/include/uapi/asm/kvm.h differs from kernel" >&2 )) || true
  354. @(test -f ../../arch/x86/include/uapi/asm/kvm_perf.h && ( \
  355. (diff -B ../arch/x86/include/uapi/asm/kvm_perf.h ../../arch/x86/include/uapi/asm/kvm_perf.h >/dev/null) \
  356. || echo "Warning: tools/arch/x86/include/uapi/asm/kvm_perf.h differs from kernel" >&2 )) || true
  357. @(test -f ../../arch/x86/include/uapi/asm/svm.h && ( \
  358. (diff -B ../arch/x86/include/uapi/asm/svm.h ../../arch/x86/include/uapi/asm/svm.h >/dev/null) \
  359. || echo "Warning: tools/arch/x86/include/uapi/asm/svm.h differs from kernel" >&2 )) || true
  360. @(test -f ../../arch/x86/include/uapi/asm/vmx.h && ( \
  361. (diff -B ../arch/x86/include/uapi/asm/vmx.h ../../arch/x86/include/uapi/asm/vmx.h >/dev/null) \
  362. || echo "Warning: tools/arch/x86/include/uapi/asm/vmx.h differs from kernel" >&2 )) || true
  363. @(test -f ../../arch/powerpc/include/uapi/asm/kvm.h && ( \
  364. (diff -B ../arch/powerpc/include/uapi/asm/kvm.h ../../arch/powerpc/include/uapi/asm/kvm.h >/dev/null) \
  365. || echo "Warning: tools/arch/powerpc/include/uapi/asm/kvm.h differs from kernel" >&2 )) || true
  366. @(test -f ../../arch/s390/include/uapi/asm/kvm.h && ( \
  367. (diff -B ../arch/s390/include/uapi/asm/kvm.h ../../arch/s390/include/uapi/asm/kvm.h >/dev/null) \
  368. || echo "Warning: tools/arch/s390/include/uapi/asm/kvm.h differs from kernel" >&2 )) || true
  369. @(test -f ../../arch/s390/include/uapi/asm/kvm_perf.h && ( \
  370. (diff -B ../arch/s390/include/uapi/asm/kvm_perf.h ../../arch/s390/include/uapi/asm/kvm_perf.h >/dev/null) \
  371. || echo "Warning: tools/arch/s390/include/uapi/asm/kvm_perf.h differs from kernel" >&2 )) || true
  372. @(test -f ../../arch/s390/include/uapi/asm/sie.h && ( \
  373. (diff -B ../arch/s390/include/uapi/asm/sie.h ../../arch/s390/include/uapi/asm/sie.h >/dev/null) \
  374. || echo "Warning: tools/arch/s390/include/uapi/asm/sie.h differs from kernel" >&2 )) || true
  375. @(test -f ../../arch/arm/include/uapi/asm/kvm.h && ( \
  376. (diff -B ../arch/arm/include/uapi/asm/kvm.h ../../arch/arm/include/uapi/asm/kvm.h >/dev/null) \
  377. || echo "Warning: tools/arch/arm/include/uapi/asm/kvm.h differs from kernel" >&2 )) || true
  378. @(test -f ../../arch/arm64/include/uapi/asm/kvm.h && ( \
  379. (diff -B ../arch/arm64/include/uapi/asm/kvm.h ../../arch/arm64/include/uapi/asm/kvm.h >/dev/null) \
  380. || echo "Warning: tools/arch/arm64/include/uapi/asm/kvm.h differs from kernel" >&2 )) || true
  381. @(test -f ../../include/asm-generic/bitops/arch_hweight.h && ( \
  382. (diff -B ../include/asm-generic/bitops/arch_hweight.h ../../include/asm-generic/bitops/arch_hweight.h >/dev/null) \
  383. || echo "Warning: tools/include/asm-generic/bitops/arch_hweight.h differs from kernel" >&2 )) || true
  384. @(test -f ../../include/asm-generic/bitops/const_hweight.h && ( \
  385. (diff -B ../include/asm-generic/bitops/const_hweight.h ../../include/asm-generic/bitops/const_hweight.h >/dev/null) \
  386. || echo "Warning: tools/include/asm-generic/bitops/const_hweight.h differs from kernel" >&2 )) || true
  387. @(test -f ../../include/asm-generic/bitops/__fls.h && ( \
  388. (diff -B ../include/asm-generic/bitops/__fls.h ../../include/asm-generic/bitops/__fls.h >/dev/null) \
  389. || echo "Warning: tools/include/asm-generic/bitops/__fls.h differs from kernel" >&2 )) || true
  390. @(test -f ../../include/asm-generic/bitops/fls.h && ( \
  391. (diff -B ../include/asm-generic/bitops/fls.h ../../include/asm-generic/bitops/fls.h >/dev/null) \
  392. || echo "Warning: tools/include/asm-generic/bitops/fls.h differs from kernel" >&2 )) || true
  393. @(test -f ../../include/asm-generic/bitops/fls64.h && ( \
  394. (diff -B ../include/asm-generic/bitops/fls64.h ../../include/asm-generic/bitops/fls64.h >/dev/null) \
  395. || echo "Warning: tools/include/asm-generic/bitops/fls64.h differs from kernel" >&2 )) || true
  396. @(test -f ../../include/linux/coresight-pmu.h && ( \
  397. (diff -B ../include/linux/coresight-pmu.h ../../include/linux/coresight-pmu.h >/dev/null) \
  398. || echo "Warning: tools/include/linux/coresight-pmu.h differs from kernel" >&2 )) || true
  399. @(test -f ../../include/uapi/asm-generic/mman-common.h && ( \
  400. (diff -B ../include/uapi/asm-generic/mman-common.h ../../include/uapi/asm-generic/mman-common.h >/dev/null) \
  401. || echo "Warning: tools/include/uapi/asm-generic/mman-common.h differs from kernel" >&2 )) || true
  402. @(test -f ../../include/uapi/asm-generic/mman.h && ( \
  403. (diff -B -I "^#include <\(uapi/\)*asm-generic/mman-common.h>$$" ../include/uapi/asm-generic/mman.h ../../include/uapi/asm-generic/mman.h >/dev/null) \
  404. || echo "Warning: tools/include/uapi/asm-generic/mman.h differs from kernel" >&2 )) || true
  405. @(test -f ../../include/uapi/linux/mman.h && ( \
  406. (diff -B -I "^#include <\(uapi/\)*asm/mman.h>$$" ../include/uapi/linux/mman.h ../../include/uapi/linux/mman.h >/dev/null) \
  407. || echo "Warning: tools/include/uapi/linux/mman.h differs from kernel" >&2 )) || true
  408. $(Q)$(MAKE) $(build)=perf
  409. $(JEVENTS_IN): FORCE
  410. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=jevents
  411. $(JEVENTS): $(JEVENTS_IN)
  412. $(QUIET_LINK)$(HOSTCC) $(JEVENTS_IN) -o $@
  413. $(PMU_EVENTS_IN): $(JEVENTS) FORCE
  414. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=pmu-events
  415. $(OUTPUT)perf: $(PERFLIBS) $(PERF_IN) $(PMU_EVENTS_IN) $(LIBTRACEEVENT_DYNAMIC_LIST)
  416. $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBTRACEEVENT_DYNAMIC_LIST_LDFLAGS) \
  417. $(PERF_IN) $(PMU_EVENTS_IN) $(LIBS) -o $@
  418. $(GTK_IN): FORCE
  419. $(Q)$(MAKE) $(build)=gtk
  420. $(OUTPUT)libperf-gtk.so: $(GTK_IN) $(PERFLIBS)
  421. $(QUIET_LINK)$(CC) -o $@ -shared $(LDFLAGS) $(filter %.o,$^) $(GTK_LIBS)
  422. $(OUTPUT)common-cmds.h: util/generate-cmdlist.sh command-list.txt
  423. $(OUTPUT)common-cmds.h: $(wildcard Documentation/perf-*.txt)
  424. $(QUIET_GEN). util/generate-cmdlist.sh > $@+ && mv $@+ $@
  425. $(SCRIPTS) : % : %.sh
  426. $(QUIET_GEN)$(INSTALL) '$@.sh' '$(OUTPUT)$@'
  427. # These can record PERF_VERSION
  428. perf.spec $(SCRIPTS) \
  429. : $(OUTPUT)PERF-VERSION-FILE
  430. .SUFFIXES:
  431. #
  432. # If a target does not match any of the later rules then prefix it by $(OUTPUT)
  433. # This makes targets like 'make O=/tmp/perf perf.o' work in a natural way.
  434. #
  435. ifneq ($(OUTPUT),)
  436. %.o: $(OUTPUT)%.o
  437. @echo " # Redirected target $@ => $(OUTPUT)$@"
  438. pmu-events/%.o: $(OUTPUT)pmu-events/%.o
  439. @echo " # Redirected target $@ => $(OUTPUT)$@"
  440. util/%.o: $(OUTPUT)util/%.o
  441. @echo " # Redirected target $@ => $(OUTPUT)$@"
  442. bench/%.o: $(OUTPUT)bench/%.o
  443. @echo " # Redirected target $@ => $(OUTPUT)$@"
  444. tests/%.o: $(OUTPUT)tests/%.o
  445. @echo " # Redirected target $@ => $(OUTPUT)$@"
  446. endif
  447. # These two need to be here so that when O= is not used they take precedence
  448. # over the general rule for .o
  449. # get relative building directory (to $(OUTPUT))
  450. # and '.' if it's $(OUTPUT) itself
  451. __build-dir = $(subst $(OUTPUT),,$(dir $@))
  452. build-dir = $(if $(__build-dir),$(__build-dir),.)
  453. prepare: $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h archheaders
  454. $(OUTPUT)%.o: %.c prepare FORCE
  455. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
  456. $(OUTPUT)%.i: %.c prepare FORCE
  457. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
  458. $(OUTPUT)%.s: %.c prepare FORCE
  459. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
  460. $(OUTPUT)%-bison.o: %.c prepare FORCE
  461. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
  462. $(OUTPUT)%-flex.o: %.c prepare FORCE
  463. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
  464. $(OUTPUT)%.o: %.S prepare FORCE
  465. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
  466. $(OUTPUT)%.i: %.S prepare FORCE
  467. $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
  468. $(OUTPUT)perf-%: %.o $(PERFLIBS)
  469. $(QUIET_LINK)$(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(filter %.o,$^) $(LIBS)
  470. ifndef NO_PERF_READ_VDSO32
  471. $(OUTPUT)perf-read-vdso32: perf-read-vdso.c util/find-vdso-map.c
  472. $(QUIET_CC)$(CC) -m32 $(filter -static,$(LDFLAGS)) -Wall -Werror -o $@ perf-read-vdso.c
  473. endif
  474. ifndef NO_PERF_READ_VDSOX32
  475. $(OUTPUT)perf-read-vdsox32: perf-read-vdso.c util/find-vdso-map.c
  476. $(QUIET_CC)$(CC) -mx32 $(filter -static,$(LDFLAGS)) -Wall -Werror -o $@ perf-read-vdso.c
  477. endif
  478. $(patsubst perf-%,%.o,$(PROGRAMS)): $(wildcard */*.h)
  479. LIBPERF_IN := $(OUTPUT)libperf-in.o
  480. $(LIBPERF_IN): prepare FORCE
  481. $(Q)$(MAKE) $(build)=libperf
  482. $(LIB_FILE): $(LIBPERF_IN)
  483. $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIBPERF_IN) $(LIB_OBJS)
  484. LIBTRACEEVENT_FLAGS += plugin_dir=$(plugindir_SQ)
  485. $(LIBTRACEEVENT): FORCE
  486. $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) $(OUTPUT)libtraceevent.a
  487. libtraceevent_plugins: FORCE
  488. $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) plugins
  489. $(LIBTRACEEVENT_DYNAMIC_LIST): libtraceevent_plugins
  490. $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) $(OUTPUT)libtraceevent-dynamic-list
  491. $(LIBTRACEEVENT)-clean:
  492. $(call QUIET_CLEAN, libtraceevent)
  493. $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) O=$(OUTPUT) clean >/dev/null
  494. install-traceevent-plugins: libtraceevent_plugins
  495. $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) install_plugins
  496. $(LIBAPI): FORCE
  497. $(Q)$(MAKE) -C $(LIB_DIR) O=$(OUTPUT) $(OUTPUT)libapi.a
  498. $(LIBAPI)-clean:
  499. $(call QUIET_CLEAN, libapi)
  500. $(Q)$(MAKE) -C $(LIB_DIR) O=$(OUTPUT) clean >/dev/null
  501. $(LIBBPF): FORCE
  502. $(Q)$(MAKE) -C $(BPF_DIR) O=$(OUTPUT) $(OUTPUT)libbpf.a FEATURES_DUMP=$(FEATURE_DUMP_EXPORT)
  503. $(LIBBPF)-clean:
  504. $(call QUIET_CLEAN, libbpf)
  505. $(Q)$(MAKE) -C $(BPF_DIR) O=$(OUTPUT) clean >/dev/null
  506. $(LIBSUBCMD): FORCE
  507. $(Q)$(MAKE) -C $(SUBCMD_DIR) O=$(OUTPUT) $(OUTPUT)libsubcmd.a
  508. $(LIBSUBCMD)-clean:
  509. $(call QUIET_CLEAN, libsubcmd)
  510. $(Q)$(MAKE) -C $(SUBCMD_DIR) O=$(OUTPUT) clean
  511. help:
  512. @echo 'Perf make targets:'
  513. @echo ' doc - make *all* documentation (see below)'
  514. @echo ' man - make manpage documentation (access with man <foo>)'
  515. @echo ' html - make html documentation'
  516. @echo ' info - make GNU info documentation (access with info <foo>)'
  517. @echo ' pdf - make pdf documentation'
  518. @echo ' TAGS - use etags to make tag information for source browsing'
  519. @echo ' tags - use ctags to make tag information for source browsing'
  520. @echo ' cscope - use cscope to make interactive browsing database'
  521. @echo ''
  522. @echo 'Perf install targets:'
  523. @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed'
  524. @echo ' HINT: use "prefix" or "DESTDIR" to install to a particular'
  525. @echo ' path like "make prefix=/usr/local install install-doc"'
  526. @echo ' install - install compiled binaries'
  527. @echo ' install-doc - install *all* documentation'
  528. @echo ' install-man - install manpage documentation'
  529. @echo ' install-html - install html documentation'
  530. @echo ' install-info - install GNU info documentation'
  531. @echo ' install-pdf - install pdf documentation'
  532. @echo ''
  533. @echo ' quick-install-doc - alias for quick-install-man'
  534. @echo ' quick-install-man - install the documentation quickly'
  535. @echo ' quick-install-html - install the html documentation quickly'
  536. @echo ''
  537. @echo 'Perf maintainer targets:'
  538. @echo ' clean - clean all binary objects and build output'
  539. DOC_TARGETS := doc man html info pdf
  540. INSTALL_DOC_TARGETS := $(patsubst %,install-%,$(DOC_TARGETS)) try-install-man
  541. INSTALL_DOC_TARGETS += quick-install-doc quick-install-man quick-install-html
  542. # 'make doc' should call 'make -C Documentation all'
  543. $(DOC_TARGETS):
  544. $(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) $(@:doc=all)
  545. TAG_FOLDERS= . ../lib ../include
  546. TAG_FILES= ../../include/uapi/linux/perf_event.h
  547. TAGS:
  548. $(QUIET_GEN)$(RM) TAGS; \
  549. $(FIND) $(TAG_FOLDERS) -name '*.[hcS]' -print | xargs etags -a $(TAG_FILES)
  550. tags:
  551. $(QUIET_GEN)$(RM) tags; \
  552. $(FIND) $(TAG_FOLDERS) -name '*.[hcS]' -print | xargs ctags -a $(TAG_FILES)
  553. cscope:
  554. $(QUIET_GEN)$(RM) cscope*; \
  555. $(FIND) $(TAG_FOLDERS) -name '*.[hcS]' -print | xargs cscope -b $(TAG_FILES)
  556. ### Testing rules
  557. # GNU make supports exporting all variables by "export" without parameters.
  558. # However, the environment gets quite big, and some programs have problems
  559. # with that.
  560. check: $(OUTPUT)common-cmds.h
  561. if sparse; \
  562. then \
  563. for i in *.c */*.c; \
  564. do \
  565. sparse $(CFLAGS) $(SPARSE_FLAGS) $$i || exit; \
  566. done; \
  567. else \
  568. exit 1; \
  569. fi
  570. ### Installation rules
  571. install-gtk:
  572. install-tools: all install-gtk
  573. $(call QUIET_INSTALL, binaries) \
  574. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'; \
  575. $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)'; \
  576. $(LN) '$(DESTDIR_SQ)$(bindir_SQ)/perf' '$(DESTDIR_SQ)$(bindir_SQ)/trace'
  577. ifndef NO_PERF_READ_VDSO32
  578. $(call QUIET_INSTALL, perf-read-vdso32) \
  579. $(INSTALL) $(OUTPUT)perf-read-vdso32 '$(DESTDIR_SQ)$(bindir_SQ)';
  580. endif
  581. ifndef NO_PERF_READ_VDSOX32
  582. $(call QUIET_INSTALL, perf-read-vdsox32) \
  583. $(INSTALL) $(OUTPUT)perf-read-vdsox32 '$(DESTDIR_SQ)$(bindir_SQ)';
  584. endif
  585. $(call QUIET_INSTALL, libexec) \
  586. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
  587. $(call QUIET_INSTALL, perf-archive) \
  588. $(INSTALL) $(OUTPUT)perf-archive -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
  589. $(call QUIET_INSTALL, perf-with-kcore) \
  590. $(INSTALL) $(OUTPUT)perf-with-kcore -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
  591. ifndef NO_LIBAUDIT
  592. $(call QUIET_INSTALL, strace/groups) \
  593. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(STRACE_GROUPS_INSTDIR_SQ)'; \
  594. $(INSTALL) trace/strace/groups/* -t '$(DESTDIR_SQ)$(STRACE_GROUPS_INSTDIR_SQ)'
  595. endif
  596. ifndef NO_LIBPERL
  597. $(call QUIET_INSTALL, perl-scripts) \
  598. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace'; \
  599. $(INSTALL) scripts/perl/Perf-Trace-Util/lib/Perf/Trace/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace'; \
  600. $(INSTALL) scripts/perl/*.pl -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl'; \
  601. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/bin'; \
  602. $(INSTALL) scripts/perl/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/bin'
  603. endif
  604. ifndef NO_LIBPYTHON
  605. $(call QUIET_INSTALL, python-scripts) \
  606. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'; \
  607. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin'; \
  608. $(INSTALL) scripts/python/Perf-Trace-Util/lib/Perf/Trace/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'; \
  609. $(INSTALL) scripts/python/*.py -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python'; \
  610. $(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin'
  611. endif
  612. $(call QUIET_INSTALL, perf_completion-script) \
  613. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d'; \
  614. $(INSTALL) perf-completion.sh '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d/perf'
  615. $(call QUIET_INSTALL, perf-tip) \
  616. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(tip_instdir_SQ)'; \
  617. $(INSTALL) Documentation/tips.txt -t '$(DESTDIR_SQ)$(tip_instdir_SQ)'
  618. install-tests: all install-gtk
  619. $(call QUIET_INSTALL, tests) \
  620. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \
  621. $(INSTALL) tests/attr.py '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \
  622. $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'; \
  623. $(INSTALL) tests/attr/* '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'
  624. install-bin: install-tools install-tests install-traceevent-plugins
  625. install: install-bin try-install-man
  626. install-python_ext:
  627. $(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)'
  628. # 'make install-doc' should call 'make -C Documentation install'
  629. $(INSTALL_DOC_TARGETS):
  630. $(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) $(@:-doc=)
  631. ### Cleaning rules
  632. #
  633. # This is here, not in Makefile.config, because Makefile.config does
  634. # not get included for the clean target:
  635. #
  636. config-clean:
  637. $(call QUIET_CLEAN, config)
  638. $(Q)$(MAKE) -C $(srctree)/tools/build/feature/ $(if $(OUTPUT),OUTPUT=$(OUTPUT)feature/,) clean >/dev/null
  639. clean:: $(LIBTRACEEVENT)-clean $(LIBAPI)-clean $(LIBBPF)-clean $(LIBSUBCMD)-clean config-clean
  640. $(call QUIET_CLEAN, core-objs) $(RM) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf-with-kcore $(LANG_BINDINGS)
  641. $(Q)find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
  642. $(Q)$(RM) $(OUTPUT).config-detected
  643. $(call QUIET_CLEAN, core-progs) $(RM) $(ALL_PROGRAMS) perf perf-read-vdso32 perf-read-vdsox32 $(OUTPUT)pmu-events/jevents
  644. $(call QUIET_CLEAN, core-gen) $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope* $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)FEATURE-DUMP $(OUTPUT)util/*-bison* $(OUTPUT)util/*-flex* \
  645. $(OUTPUT)util/intel-pt-decoder/inat-tables.c $(OUTPUT)fixdep \
  646. $(OUTPUT)tests/llvm-src-{base,kbuild,prologue,relocation}.c \
  647. $(OUTPUT)pmu-events/pmu-events.c
  648. $(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean
  649. $(python-clean)
  650. #
  651. # To provide FEATURE-DUMP into $(FEATURE_DUMP_COPY)
  652. # file if defined, with no further action.
  653. feature-dump:
  654. ifdef FEATURE_DUMP_COPY
  655. @cp $(OUTPUT)FEATURE-DUMP $(FEATURE_DUMP_COPY)
  656. @echo "FEATURE-DUMP file copied into $(FEATURE_DUMP_COPY)"
  657. else
  658. @echo "FEATURE-DUMP file available in $(OUTPUT)FEATURE-DUMP"
  659. endif
  660. #
  661. # Trick: if ../../.git does not exist - we are building out of tree for example,
  662. # then force version regeneration:
  663. #
  664. ifeq ($(wildcard ../../.git/HEAD),)
  665. GIT-HEAD-PHONY = ../../.git/HEAD
  666. else
  667. GIT-HEAD-PHONY =
  668. endif
  669. FORCE:
  670. .PHONY: all install clean config-clean strip install-gtk
  671. .PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell
  672. .PHONY: $(GIT-HEAD-PHONY) TAGS tags cscope FORCE prepare
  673. .PHONY: libtraceevent_plugins archheaders
  674. endif # force_fixdep