minix/external/mit/xorg/bin/ssh-askpass/Makefile
Lionel Sambuc 971bb1a587 Importing external/mit/xorg support rules
Change-Id: Ib11d8659485a444797bf3a2118182a1d4e316b50
2014-11-10 14:43:29 +01:00

50 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2011/04/03 13:29:45 mbalmer Exp $
.include <bsd.own.mk>
PROG= ssh-askpass
SRCS= drawing.c dynlist.c resources.c x11-ssh-askpass.c
APPDEFS= SshAskpass.ad
DATE= February 14, 2001
BUILDSYMLINKS= SshAskpass-default.ad SshAskpass.ad
FILESDIR= ${X11ROOTDIR}/share/examples/ssh-askpass
FILES= SshAskpass-1337.ad SshAskpass-NeXTish.ad \
SshAskpass.ad SshAskpass-green.ad SshAskpass-motif.ad
# XXX: We use the following two lines instead of just having
# XXX: FILES+= SshAskpass-default.ad
# XXX: because of an obscure bug with "make -j" where it doesn't find
# XXX: SshAskpass-default.ad in the .PATH correctly, probably because
# XXX: of the rule created for it from BUILDSYMLINKS by <bsd.files.mk>.
# XXX: This is not the correct long-term solution.
#
FILES+= SshAskpass.ad
FILESNAME_SshAskpass.ad=SshAskpass-default.ad
CPPFLAGS+= -I.
DPSRCS+= SshAskpass_ad.h
CLEANFILES+= SshAskpass_ad.h
SRCPATH= ${X11SRCDIR.local}/programs/x11-ssh-askpass
ssh-askpass.1: x11-ssh-askpass.man.in
sed -e 's#@NAME@#$(PROG)#g' -e 's#@VERSION@#$(VERSION)#g' \
-e 's#@DATE@#$(DATE)#g' < ${SRCPATH}/x11-ssh-askpass.man.in > $@
SshAskpass_ad.h: SshAskpass.ad
${_MKTARGET_CREATE}
rm -f ${.TARGET}
${TOOL_SED} -n '/^[^!]/s/.*/"&",/p' <${.ALLSRC} > ${.TARGET}
LDADD+= -lXt -lSM -lICE -lXinerama -lXext -lX11
DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXINERAMA} ${LIBXEXT} ${LIBX11}
.PATH: ${X11SRCDIR.local}/programs/x11-ssh-askpass
.include <bsd.x11.mk>
.include <bsd.prog.mk>