etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / bin / ssh-askpass / Makefile
blobf26a054e6c04e968392637516886bdc3efa10976
1 # $NetBSD: Makefile,v 1.3 2011/04/03 13:29:45 mbalmer Exp $
3 .include <bsd.own.mk>
5 PROG= ssh-askpass
6 SRCS= drawing.c dynlist.c resources.c x11-ssh-askpass.c
8 APPDEFS= SshAskpass.ad
9 DATE= February 14, 2001
11 BUILDSYMLINKS= SshAskpass-default.ad SshAskpass.ad
13 FILESDIR= ${X11ROOTDIR}/share/examples/ssh-askpass
14 FILES= SshAskpass-1337.ad SshAskpass-NeXTish.ad \
15 SshAskpass.ad SshAskpass-green.ad SshAskpass-motif.ad
17 # XXX: We use the following two lines instead of just having
18 # XXX: FILES+= SshAskpass-default.ad
19 # XXX: because of an obscure bug with "make -j" where it doesn't find
20 # XXX: SshAskpass-default.ad in the .PATH correctly, probably because
21 # XXX: of the rule created for it from BUILDSYMLINKS by <bsd.files.mk>.
22 # XXX: This is not the correct long-term solution.
24 FILES+= SshAskpass.ad
25 FILESNAME_SshAskpass.ad=SshAskpass-default.ad
28 CPPFLAGS+= -I.
29 DPSRCS+= SshAskpass_ad.h
30 CLEANFILES+= SshAskpass_ad.h
32 SRCPATH= ${X11SRCDIR.local}/programs/x11-ssh-askpass
34 ssh-askpass.1: x11-ssh-askpass.man.in
35 sed -e 's#@NAME@#$(PROG)#g' -e 's#@VERSION@#$(VERSION)#g' \
36 -e 's#@DATE@#$(DATE)#g' < ${SRCPATH}/x11-ssh-askpass.man.in > $@
38 SshAskpass_ad.h: SshAskpass.ad
39 ${_MKTARGET_CREATE}
40 rm -f ${.TARGET}
41 ${TOOL_SED} -n '/^[^!]/s/.*/"&",/p' <${.ALLSRC} > ${.TARGET}
43 LDADD+= -lXt -lSM -lICE -lXinerama -lXext -lX11
44 DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXINERAMA} ${LIBXEXT} ${LIBX11}
46 .PATH: ${X11SRCDIR.local}/programs/x11-ssh-askpass
48 .include <bsd.x11.mk>
49 .include <bsd.prog.mk>