467d94844e
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
19 lines
387 B
Makefile
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>
|