xref: /freebsd/crypto/openssh/contrib/Makefile (revision 644b4646c7acab87dc20d4e5dd53d2d9da152989)
1PKG_CONFIG = pkg-config
2
3all:
4	@echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2 gnome-ssk-askpass3 gnome-ssh-askpass4"
5
6gnome-ssh-askpass1: gnome-ssh-askpass1.c
7	$(CC) $(CFLAGS) `gnome-config --cflags gnome gnomeui` \
8		gnome-ssh-askpass1.c -o gnome-ssh-askpass1 \
9		`gnome-config --libs gnome gnomeui`
10
11gnome-ssh-askpass2: gnome-ssh-askpass2.c
12	$(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-2.0` \
13		gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
14		`$(PKG_CONFIG) --libs gtk+-2.0 x11`
15
16gnome-ssh-askpass3: gnome-ssh-askpass3.c
17	$(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-3.0` \
18		gnome-ssh-askpass3.c -o gnome-ssh-askpass3 \
19		`$(PKG_CONFIG) --libs gtk+-3.0 x11`
20
21gnome-ssh-askpass4: gnome-ssh-askpass4.c
22	$(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gcr-4 gio-2.0` \
23		gnome-ssh-askpass4.c -o gnome-ssh-askpass4 \
24		`$(PKG_CONFIG) --libs gcr-4 gio-2.0`
25
26clean:
27	rm -f *.o gnome-ssh-askpass gnome-ssh-askpass[123]
28