2020-07-01 09:31:18 +03:00
|
|
|
# $NetBSD: Makefile,v 1.22 2020/07/01 06:31:18 martin Exp $
|
1994-05-09 07:35:55 +04:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2002-09-18 18:00:33 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= w
|
2011-10-21 06:26:09 +04:00
|
|
|
SRCS= fmt.c pr_time.c w.c
|
1994-12-22 15:30:38 +03:00
|
|
|
MAN= w.1 uptime.1
|
2011-10-21 06:26:09 +04:00
|
|
|
DPADD= ${LIBKVM} ${LIBUTIL}
|
|
|
|
LDADD= -lkvm -lutil
|
1993-03-21 12:45:37 +03:00
|
|
|
LINKS= ${BINDIR}/w ${BINDIR}/uptime
|
2003-02-26 18:01:09 +03:00
|
|
|
CPPFLAGS+= -DSUPPORT_UTMP -DSUPPORT_UTMPX
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2002-09-18 18:00:33 +04:00
|
|
|
.PATH: ${NETBSDSRCDIR}/bin/ps
|
1994-05-09 07:35:55 +04:00
|
|
|
|
2011-08-17 17:48:11 +04:00
|
|
|
COPTS.pr_time.c += -Wno-format-y2k
|
2020-07-01 09:31:18 +03:00
|
|
|
COPTS.w.c += ${GCC_NO_FORMAT_TRUNCATION}
|
2011-08-17 17:48:11 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|