summaryrefslogtreecommitdiff
path: root/examples/api/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/api/Makefile')
-rw-r--r--examples/api/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile
index 52f4368..ee3c487 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -4,6 +4,10 @@
# SPDX-License-Identifier: GPL-2.0+
#
+ifdef FTRACE
+CFLAGS += -finstrument-functions -DFTRACE
+endif
+
ifeq ($(ARCH),powerpc)
LOAD_ADDR = 0x40000
endif