1PKG_CONFIG = pkg-config 2 3all: 4 @echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2" 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 16clean: 17 rm -f *.o gnome-ssh-askpass1 gnome-ssh-askpass2 gnome-ssh-askpass 18