freebsd-dev/usr.bin/gprof/Makefile
Kristof Provost 467d94844e gprof: Enable riscv
Add a missing riscv.h header file, and fix the check for riscv (must test
MACHINE_CPUARCH, not MACHINE_ARCH, if we want to use 'riscv').

Sponsored by:	Axiado
2020-01-13 16:52:26 +00:00

19 lines
387 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_CPUARCH} != "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>