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 16gnome-ssh-askpass3: gnome-ssh-askpass2.c 17 $(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-3.0` \ 18 gnome-ssh-askpass2.c -o gnome-ssh-askpass3 \ 19 `$(PKG_CONFIG) --libs gtk+-3.0 x11` 20 21clean: 22 rm -f *.o gnome-ssh-askpass gnome-ssh-askpass[123] 23