summaryrefslogtreecommitdiff
path: root/app/ssh-askpass/Makefile
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-26 10:57:01 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-26 10:57:01 +0000
commitf35ebe9caf290b8266faae05f7ab8491ad301d7a (patch)
tree39d39e6eac3dd73663d172228b40ec9bc2709301 /app/ssh-askpass/Makefile
parent1cb4778bcef21ea9015cfccdb99abb7a0e035d74 (diff)
Importing from XF4, plus BSD make infrastructure
Diffstat (limited to 'app/ssh-askpass/Makefile')
-rw-r--r--app/ssh-askpass/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/ssh-askpass/Makefile b/app/ssh-askpass/Makefile
new file mode 100644
index 000000000..e577f6e64
--- /dev/null
+++ b/app/ssh-askpass/Makefile
@@ -0,0 +1,34 @@
+# $Xenocara: Makefile,v 1.4 2006/04/17 13:26:32 matthieu Exp $
+.include <bsd.own.mk>
+X11BASE?= /usr/X11R6
+PROG= ssh-askpass
+SRCS= drawing.c dynlist.c resources.c x11-ssh-askpass.c
+MANDIR= ${X11BASE}/man/cat
+
+CLASS= SshAskpass
+VERSION= 1.2.0
+DATE= February 14, 2001
+APP_DEFAULTS= $(CLASS)-default.ad
+
+CPPFLAGS+= -I${X11BASE}/include -I.
+LDADD+= -L${X11BASE}/lib -lXt -lSM -lICE -lX11 -lXau -lXdmcp
+
+CLEANFILES+= ${CLASS}.ad ${CLASS}_ad.h ssh-askpass.1
+
+ssh-askpass.1: x11-ssh-askpass.man.in
+ sed -e 's#@NAME@#$(PROG)#g' -e 's#@VERSION@#$(VERSION)#g' \
+ -e 's#@DATE@#$(DATE)#g' < $(.CURDIR)/x11-ssh-askpass.man.in > $@
+
+$(CLASS)_ad.h: $(CLASS).ad
+ cat $(CLASS).ad | grep -v '^[ ]*$$' |\
+ awk '/^[ ]*!/ { sub("^[ ]*![ ]?","", $$0); printf("/* %s */\n", $$0); next } ! /^[ ]*!/ { printf("\"%s\",\n", $$0) }' \
+ >$@
+
+$(CLASS).ad: $(APP_DEFAULTS)
+ rm -f $(CLASS).ad
+ ln -s $(.CURDIR)/$(APP_DEFAULTS) $(CLASS).ad
+
+beforedepend: $(CLASS)_ad.h
+
+.include <bsd.prog.mk>
+.include <bsd.xorg.mk>