# $FreeBSD$
PROG= pw
+MAN= pw.conf.5 pw.8
SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \
- grupd.c pwupd.c fileupd.c edgroup.c psdate.c \
- bitmap.c cpdir.c rm_r.c
+ grupd.c pwupd.c psdate.c bitmap.c cpdir.c rm_r.c strtounum.c \
+ pw_utils.c
-MAN= pw.conf.5 pw.8
+WARNS?= 3
+
+LIBADD= crypt util sbuf
-#RND= -DUSE_MD5RAND
-CFLAGS+= -W -Wall $(CDB) $(RND)
-LDADD= -lcrypt -lutil
-DPADD= ${LIBCRYPT} ${LIBUTIL}
+.include <src.opts.mk>
-BINMODE=0555
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
.include <bsd.prog.mk>