[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / usr.bin / chpass

File: [local] / src / usr.bin / chpass / Makefile (download)

Revision 1.13, Mon Sep 14 07:19:41 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.12: +3 -2 lines

Supply DEF_WEAK() macro to suppress warnings during compilation via
reach-around into libc

noted by daniel@

#	$OpenBSD: Makefile,v 1.13 2015/09/14 07:19:41 guenther Exp $

.include <bsd.own.mk>

PROG=	chpass
SRCS=	chpass.c edit.c field.c pw_yp.c table.c util.c getpwent.c
BINOWN=	root
BINMODE=4555
.PATH:	${.CURDIR}/../../lib/libc/gen
LINKS=	${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
MLINKS=	chpass.1 chfn.1 chpass.1 chsh.1
CFLAGS+=-I${.CURDIR}/../../lib/libc/include
.if (${YP:L} == "yes")
CFLAGS+=-DYP -I${.CURDIR}/../../lib/libc/yp
.endif
DPADD+= ${LIBRPCSVC} ${LIBUTIL}
LDADD+= -lrpcsvc -lutil

.include <bsd.prog.mk>

getpwent.o: getpwent.c
	${COMPILE.c} -UYP -D'DEF_WEAK(x)=asm("")' \
	    ${.CURDIR}/../../lib/libc/gen/getpwent.c