blob: 3a36387b3222abf93a2ab58614431fb35256a6ad [file] [log] [blame]
Darren Tucker59353892012-05-19 15:24:37 +10001PKG_CONFIG = pkg-config
2
Damien Miller50f61232002-09-30 10:40:39 +10003all:
4 @echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2"
5
Damien Miller50f61232002-09-30 10:40:39 +10006gnome-ssh-askpass1: gnome-ssh-askpass1.c
Damien Miller2048f852014-12-18 10:15:49 +11007 $(CC) $(CFLAGS) `gnome-config --cflags gnome gnomeui` \
Damien Miller50f61232002-09-30 10:40:39 +10008 gnome-ssh-askpass1.c -o gnome-ssh-askpass1 \
9 `gnome-config --libs gnome gnomeui`
10
11gnome-ssh-askpass2: gnome-ssh-askpass2.c
Damien Miller2048f852014-12-18 10:15:49 +110012 $(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-2.0` \
Damien Miller50f61232002-09-30 10:40:39 +100013 gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
Darren Tucker59353892012-05-19 15:24:37 +100014 `$(PKG_CONFIG) --libs gtk+-2.0 x11`
Damien Miller50f61232002-09-30 10:40:39 +100015
Damien Millerc9792782016-11-25 14:04:21 +110016gnome-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
Damien Miller50f61232002-09-30 10:40:39 +100021clean:
Damien Millerc9792782016-11-25 14:04:21 +110022 rm -f *.o gnome-ssh-askpass gnome-ssh-askpass[123]