]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/Makefile
Sync to HEAD@r274766
[pw-darwin.git] / pw / Makefile
index 749d2565c0901548d43f1b139056821d63345fa5..8c5acf901d1c595a44ae235da9924332076b6ea9 100644 (file)
@@ -1,18 +1,20 @@
-# $Id$
+# $FreeBSD$
 
 PROG=  pw
-SRCS=  pw.c pw_conf.c pw_user.c pw_group.c pw_log.c \
-       grupd.c pwupd.c fileupd.c edgroup.c psdate.c \
+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 psdate.c \
        bitmap.c cpdir.c rm_r.c
 
-MAN5=  pw.conf.5
-MAN8=  pw.8
-       
-CFLAGS+= -Wall
-LDADD= -lcrypt
-DPADD= ${LIBCRYPT}
+WARNS?=        2
 
-BINOWN=        root
-BINMODE=0555
+DPADD= ${LIBCRYPT} ${LIBUTIL}
+LDADD= -lcrypt -lutil
+
+.include <src.opts.mk>
+
+.if ${MK_TESTS} != "no"
+SUBDIR+=       tests
+.endif
 
 .include <bsd.prog.mk>