1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= top 6SRCS= commands.c display.c machine.c screen.c top.c \ 7 username.c utils.c 8MAN= top.1 9 10.if ${COMPILER_TYPE} == "gcc" 11.if ${COMPILER_VERSION} >= 50000 12CFLAGS.gcc=-Wno-error=cast-qual -Wno-error=discarded-qualifiers -Wno-error=incompatible-pointer-types 13.else #base gcc 14NO_WERROR= 15.endif 16.endif 17CFLAGS.clang=-Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=cast-qual 18 19LIBADD= ncursesw m kvm jail util 20.include <bsd.prog.mk> 21