Lines Matching refs:OUTPUT

159 ifneq ($(OUTPUT),)
160 #$(info Determined 'OUTPUT' to be $(OUTPUT))
161 # Adding $(OUTPUT) as a directory to look for source files,
164 VPATH += $(OUTPUT)
167 SOURCE := $(shell ln -sf $(srctree)/tools/perf $(OUTPUT)/source)
280 export srctree OUTPUT RM CC CXX LD AR CFLAGS CXXFLAGS V BISON FLEX AWK
325 FEATURE_DUMP_EXPORT := $(realpath $(OUTPUT)FEATURE-DUMP)
346 ifneq ($(OUTPUT),)
347 LIBAPI_OUTPUT = $(abspath $(OUTPUT))/libapi
357 ifneq ($(OUTPUT),)
358 LIBBPF_OUTPUT = $(abspath $(OUTPUT))/libbpf
369 ifneq ($(OUTPUT),)
370 LIBSUBCMD_OUTPUT = $(abspath $(OUTPUT))/libsubcmd
379 ifneq ($(OUTPUT),)
380 LIBSYMBOL_OUTPUT = $(abspath $(OUTPUT))/libsymbol
389 ifneq ($(OUTPUT),)
390 LIBPERF_OUTPUT = $(abspath $(OUTPUT))/libperf
401 PYTHON_EXTBUILD := $(OUTPUT)python_ext_build/
406 python-clean := $(call QUIET_CLEAN, python) $(RM) -r $(PYTHON_EXTBUILD) $(OUTPUT)python/perf*.so
409 -include $(OUTPUT).config-detected
413 PROGRAMS += $(OUTPUT)perf
416 PROGRAMS += $(OUTPUT)perf-read-vdso32
420 PROGRAMS += $(OUTPUT)perf-read-vdsox32
426 PROGRAMS += $(OUTPUT)$(LIBJVMTI)
430 DLFILTERS := $(patsubst %,$(OUTPUT)dlfilters/%,$(DLFILTERS))
436 OTHER_PROGRAMS = $(OUTPUT)perf
448 LIBPERF_BENCH_IN := $(OUTPUT)perf-bench-in.o
449 LIBPERF_BENCH := $(OUTPUT)libperf-bench.a
451 LIBPERF_TEST_IN := $(OUTPUT)perf-test-in.o
452 LIBPERF_TEST := $(OUTPUT)libperf-test.a
454 LIBPERF_UI_IN := $(OUTPUT)perf-ui-in.o
455 LIBPERF_UI := $(OUTPUT)libperf-ui.a
457 LIBPERF_UTIL_IN := $(OUTPUT)perf-util-in.o
458 LIBPERF_UTIL := $(OUTPUT)libperf-util.a
460 LIBPMU_EVENTS_IN := $(OUTPUT)pmu-events/pmu-events-in.o
461 LIBPMU_EVENTS := $(OUTPUT)libpmu-events.a
474 ifneq ($(OUTPUT),)
475 CFLAGS += -I$(OUTPUT)
479 ALL_PROGRAMS += $(OUTPUT)libperf-gtk.so
480 GTK_IN := $(OUTPUT)gtk-in.o
497 ifneq ($(OUTPUT),)
498 arm64_gen_sysreg_outdir := $(abspath $(OUTPUT))
523 beauty_outdir := $(OUTPUT)trace/beauty/generated
731 $(Q)$(MAKE) -C $(TESTS_CORESIGHT_DIR) O=$(OUTPUT) clean >/dev/null
736 $(shell [ -d '$(OUTPUT)python' ] || mkdir -p '$(OUTPUT)python')
738 $(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX): util/python.c util/setup.py $(PERFLIBS)
743 cp $(PYTHON_EXTBUILD_LIB)perf*.so $(OUTPUT)python/
746 @echo "Target is: $(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX)"
753 strip: $(PROGRAMS) $(OUTPUT)perf
754 $(STRIP) $(STRIP_OPTS) $(PROGRAMS) $(OUTPUT)perf
756 PERF_IN := $(OUTPUT)perf-in.o
794 $(OUTPUT)perf: $(PERFLIBS) $(PERF_IN)
801 $(OUTPUT)libperf-gtk.so: $(GTK_IN) $(PERFLIBS)
804 $(OUTPUT)common-cmds.h: util/generate-cmdlist.sh command-list.txt
806 $(OUTPUT)common-cmds.h: $(wildcard Documentation/perf-*.txt)
810 $(QUIET_GEN)$(INSTALL) '$@.sh' '$(OUTPUT)$@'
812 $(OUTPUT)PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE
813 $(Q)$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT)
817 : $(OUTPUT)PERF-VERSION-FILE
822 # If a target does not match any of the later rules then prefix it by $(OUTPUT)
825 ifneq ($(OUTPUT),)
826 %.o: $(OUTPUT)%.o
827 @echo " # Redirected target $@ => $(OUTPUT)$@"
828 pmu-events/%.o: $(OUTPUT)pmu-events/%.o
829 @echo " # Redirected target $@ => $(OUTPUT)$@"
830 util/%.o: $(OUTPUT)util/%.o
831 @echo " # Redirected target $@ => $(OUTPUT)$@"
832 bench/%.o: $(OUTPUT)bench/%.o
833 @echo " # Redirected target $@ => $(OUTPUT)$@"
834 tests/%.o: $(OUTPUT)tests/%.o
835 @echo " # Redirected target $@ => $(OUTPUT)$@"
841 # get relative building directory (to $(OUTPUT))
842 # and '.' if it's $(OUTPUT) itself
843 __build-dir = $(subst $(OUTPUT),,$(dir $@))
846 prepare: $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h archheaders \
889 $(OUTPUT)%.o: %.c prepare FORCE
892 $(OUTPUT)%.i: %.c prepare FORCE
895 $(OUTPUT)%.s: %.c prepare FORCE
898 $(OUTPUT)%-bison.o: %.c prepare FORCE
901 $(OUTPUT)%-flex.o: %.c prepare FORCE
904 $(OUTPUT)%.o: %.S prepare FORCE
907 $(OUTPUT)%.i: %.S prepare FORCE
910 $(OUTPUT)perf-%: %.o $(PERFLIBS)
914 $(OUTPUT)perf-read-vdso32: perf-read-vdso.c util/find-map.c
919 $(OUTPUT)perf-read-vdsox32: perf-read-vdso.c util/find-map.c
923 $(OUTPUT)dlfilters/%.o: dlfilters/%.c include/perf/perf_dlfilter.h
924 $(Q)$(MKDIR) -p $(OUTPUT)dlfilters
929 $(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o
933 LIBJVMTI_IN := $(OUTPUT)jvmti/jvmti-in.o
938 $(OUTPUT)$(LIBJVMTI): $(LIBJVMTI_IN)
955 O= OUTPUT=$(LIBBPF_OUTPUT)/ DESTDIR=$(LIBBPF_DESTDIR) prefix= subdir= \
1026 $(Q)$(MAKE) -C $(DOC_DIR) O=$(OUTPUT) $(@:doc=all) ASCIIDOC_EXTRA=$(ASCIIDOC_EXTRA)
1049 check: $(OUTPUT)common-cmds.h
1063 install-gtk: $(OUTPUT)libperf-gtk.so
1066 $(INSTALL) $(OUTPUT)libperf-gtk.so '$(DESTDIR_SQ)$(libdir_SQ)'
1074 $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)'; \
1080 $(INSTALL) $(OUTPUT)perf-read-vdso32 '$(DESTDIR_SQ)$(bindir_SQ)';
1084 $(INSTALL) $(OUTPUT)perf-read-vdsox32 '$(DESTDIR_SQ)$(bindir_SQ)';
1089 $(INSTALL) $(OUTPUT)$(LIBJVMTI) '$(DESTDIR_SQ)$(libdir_SQ)';
1094 $(INSTALL) $(OUTPUT)perf-archive -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
1096 $(INSTALL) $(OUTPUT)perf-iostat -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
1159 $(Q)$(MAKE) -C $(DOC_DIR) O=$(OUTPUT) $(@:-doc=) ASCIIDOC_EXTRA=$(ASCIIDOC_EXTRA) subdir=
1166 SKEL_OUT := $(abspath $(OUTPUT)util/bpf_skel)
1209 OUTPUT=$(SKEL_TMP_OUT)/ bootstrap
1270 $(call QUIET_CLEAN, core-objs) $(RM) $(LIBPERF_A) $(OUTPUT)perf-archive \
1271 $(OUTPUT)perf-iostat $(LANG_BINDINGS)
1272 $(Q)find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '*.a' -delete -o \
1274 $(Q)$(RM) $(OUTPUT).config-detected
1276 perf-read-vdsox32 $(OUTPUT)$(LIBJVMTI).so
1278 $(OUTPUT)common-cmds.h TAGS tags cscope* $(OUTPUT)PERF-VERSION-FILE \
1279 $(OUTPUT)FEATURE-DUMP $(OUTPUT)util/*-bison* $(OUTPUT)util/*-flex* \
1280 $(OUTPUT)util/intel-pt-decoder/inat-tables.c \
1281 $(OUTPUT)tests/llvm-src-{base,kbuild,prologue,relocation}.c \
1282 $(OUTPUT)pmu-events/pmu-events.c \
1283 $(OUTPUT)pmu-events/test-empty-pmu-events.c \
1284 $(OUTPUT)pmu-events/empty-pmu-events.log \
1285 $(OUTPUT)pmu-events/metric_test.log \
1286 $(OUTPUT)$(fadvise_advice_array) \
1287 $(OUTPUT)$(fsconfig_arrays) \
1288 $(OUTPUT)$(fsmount_arrays) \
1289 $(OUTPUT)$(fspick_arrays) \
1290 $(OUTPUT)$(madvise_behavior_array) \
1291 $(OUTPUT)$(mmap_flags_array) \
1292 $(OUTPUT)$(mmap_prot_array) \
1293 $(OUTPUT)$(mremap_flags_array) \
1294 $(OUTPUT)$(mount_flags_array) \
1295 $(OUTPUT)$(move_mount_flags_array) \
1296 $(OUTPUT)$(drm_ioctl_array) \
1297 $(OUTPUT)$(pkey_alloc_access_rights_array) \
1298 $(OUTPUT)$(sndrv_ctl_ioctl_array) \
1299 $(OUTPUT)$(sndrv_pcm_ioctl_array) \
1300 $(OUTPUT)$(kvm_ioctl_array) \
1301 $(OUTPUT)$(kcmp_type_array) \
1302 $(OUTPUT)$(socket_arrays) \
1303 $(OUTPUT)$(sockaddr_arrays) \
1304 $(OUTPUT)$(vhost_virtio_ioctl_array) \
1305 $(OUTPUT)$(perf_ioctl_array) \
1306 $(OUTPUT)$(prctl_option_array) \
1307 $(OUTPUT)$(usbdevfs_ioctl_array) \
1308 $(OUTPUT)$(x86_arch_irq_vectors_array) \
1309 $(OUTPUT)$(x86_arch_MSRs_array) \
1310 $(OUTPUT)$(x86_arch_prctl_code_array) \
1311 $(OUTPUT)$(rename_flags_array) \
1312 $(OUTPUT)$(arch_errno_name_array) \
1313 $(OUTPUT)$(sync_file_range_arrays)
1315 $(MAKE) -C $(DOC_DIR) O=$(OUTPUT) clean >/dev/null
1322 @cp $(OUTPUT)FEATURE-DUMP $(FEATURE_DUMP_COPY)
1325 @echo "FEATURE-DUMP file available in $(OUTPUT)FEATURE-DUMP"