blob: eaf7fe2fdfc951c8d4330b750b8fa269c1c6b93e [file] [log] [blame]
Adam Langleyd0592972015-03-30 14:49:51 -07001PKG_CONFIG = pkg-config
2
Greg Hartmanbd77cf72015-02-25 13:21:06 -08003all:
4 @echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2"
5
6gnome-ssh-askpass1: gnome-ssh-askpass1.c
Adam Langleyd0592972015-03-30 14:49:51 -07007 $(CC) $(CFLAGS) `gnome-config --cflags gnome gnomeui` \
Greg Hartmanbd77cf72015-02-25 13:21:06 -08008 gnome-ssh-askpass1.c -o gnome-ssh-askpass1 \
9 `gnome-config --libs gnome gnomeui`
10
11gnome-ssh-askpass2: gnome-ssh-askpass2.c
Adam Langleyd0592972015-03-30 14:49:51 -070012 $(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-2.0` \
Greg Hartmanbd77cf72015-02-25 13:21:06 -080013 gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
Adam Langleyd0592972015-03-30 14:49:51 -070014 `$(PKG_CONFIG) --libs gtk+-2.0 x11`
Greg Hartmanbd77cf72015-02-25 13:21:06 -080015
16clean:
17 rm -f *.o gnome-ssh-askpass1 gnome-ssh-askpass2 gnome-ssh-askpass