00abcb6acd
top(1) now builds without cast-qual warnings, so remove the exemption for that. Tested with clang, gcc7, gcc9
21 lines
451 B
Makefile
21 lines
451 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= top
|
|
SRCS= commands.c display.c machine.c screen.c top.c \
|
|
username.c utils.c
|
|
MAN= top.1
|
|
|
|
.if ${COMPILER_TYPE} == "gcc"
|
|
.if ${COMPILER_VERSION} >= 50000
|
|
CFLAGS.gcc=-Wno-error=discarded-qualifiers -Wno-error=incompatible-pointer-types
|
|
.else #base gcc
|
|
NO_WERROR=
|
|
.endif
|
|
.endif
|
|
CFLAGS.clang=-Wno-error=incompatible-pointer-types-discards-qualifiers
|
|
|
|
LIBADD= ncursesw m kvm jail util sbuf
|
|
.include <bsd.prog.mk>
|