summaryrefslogtreecommitdiff
path: root/usr.bin/gprof/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gprof/Makefile')
-rw-r--r--usr.bin/gprof/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile
index 506232597a42..28d0ffeef25c 100644
--- a/usr.bin/gprof/Makefile
+++ b/usr.bin/gprof/Makefile
@@ -2,8 +2,14 @@
# $FreeBSD$
PROG= gprof
-SRCS= gprof.c aout.c arcs.c dfn.c elf.c lookup.c hertz.c \
+SRCS= gprof.c arcs.c dfn.c elf.c lookup.c hertz.c \
printgprof.c printlist.c kernel.c
+
+.if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_ARCH} != "riscv" && \
+ ${MACHINE_ARCH} != "s390x"
+SRCS+= aout.c
+CFLAGS+= -DWITH_AOUT
+.endif
FILES= gprof.flat gprof.callg
FILESDIR= ${SHAREDIR}/misc