Merge remote-tracking branch 'remotes/elmarco/tags/slirp-pull-request' into staging
[qemu.git] / trace / Makefile.objs
1 # -*- mode: makefile -*-
2
3 $(BUILD_DIR)/trace-events-all: $(trace-events-files)
4         $(call quiet-command,cat $^ > $@)
5
6
7 ##################################################
8 # Translation level
9
10 $(obj)/generated-helpers-wrappers.h: $(obj)/generated-helpers-wrappers.h-timestamp
11         @cmp $< $@ >/dev/null 2>&1 || cp $< $@
12 $(obj)/generated-helpers-wrappers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
13         $(call quiet-command,$(TRACETOOL) \
14                 --group=root \
15                 --format=tcg-helper-wrapper-h \
16                 --backend=$(TRACE_BACKENDS) \
17                 $< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
18
19 $(obj)/generated-helpers.h: $(obj)/generated-helpers.h-timestamp
20         @cmp $< $@ >/dev/null 2>&1 || cp $< $@
21 $(obj)/generated-helpers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
22         $(call quiet-command,$(TRACETOOL) \
23                 --group=root \
24                 --format=tcg-helper-h \
25                 --backend=$(TRACE_BACKENDS) \
26                 $< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
27
28 $(obj)/generated-helpers.c: $(obj)/generated-helpers.c-timestamp
29         @cmp $< $@ >/dev/null 2>&1 || cp $< $@
30 $(obj)/generated-helpers.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
31         $(call quiet-command,$(TRACETOOL) \
32                 --group=root \
33                 --format=tcg-helper-c \
34                 --backend=$(TRACE_BACKENDS) \
35                 $< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
36
37 $(obj)/generated-helpers.o: $(obj)/generated-helpers.c
38
39 obj-y += generated-helpers.o
40
41
42 $(obj)/generated-tcg-tracers.h: $(obj)/generated-tcg-tracers.h-timestamp
43         @cmp $< $@ >/dev/null 2>&1 || cp $< $@
44 $(obj)/generated-tcg-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
45         $(call quiet-command,$(TRACETOOL) \
46                 --group=root \
47                 --format=tcg-h \
48                 --backend=$(TRACE_BACKENDS) \
49                 $< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
50
51
52 ######################################################################
53 # Backend code
54
55 util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o
56 util-obj-$(CONFIG_TRACE_FTRACE) += ftrace.o
57 util-obj-y += control.o
58 obj-y += control-target.o
59 util-obj-y += qmp.o