freebsd-dev/usr.bin/gprof/Makefile
Bjoern A. Zeeb 6d7adebad5 gprof: disable building of a.out components
On arm64, riscv, and s390x disable building of aout components.
This allows gprof to build on these architectures which never supported
the legacy a.out binary format.

Obtained from:		s390x branch
MFC after:		3 months
2019-08-21 10:54:52 +00:00

19 lines
384 B
Makefile

# @(#)Makefile 8.1 (Berkeley) 6/29/93
# $FreeBSD$
PROG= gprof
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
WARNS?= 1
.include <bsd.prog.mk>