bfb79c2ccc
- Replace caddr_t with "void *". This reduces the number of warnings at WARNS=6 - use "static" where possible - sprinkle const where possible This leaves at WARNS=6: 35 warnings in top.c 72 warnings in machine.c 5 warnings in commands.c all of which are either "incompatible-pointer-types-discards-qualifiers" or "cast-qual"
20 lines
388 B
Makefile
20 lines
388 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= top
|
|
SRCS= commands.c display.c machine.c screen.c top.c \
|
|
username.c utils.c
|
|
SRCS+= sigdesc.h top.local.h
|
|
CFLAGS+= -I ${.OBJDIR}
|
|
MAN= top.1
|
|
|
|
WARNS?= 6
|
|
|
|
LIBADD= ncursesw m kvm jail
|
|
|
|
CLEANFILES= sigdesc.h
|
|
SIGNAL_H= ${SRCTOP}/sys/sys/signal.h
|
|
sigdesc.h: sigconv.awk ${SIGNAL_H}
|
|
awk -f ${SRCTOP}/usr.bin/top/sigconv.awk < ${SIGNAL_H} > ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|