Darren Tucker | 5935389 | 2012-05-19 15:24:37 +1000 | [diff] [blame] | 1 | PKG_CONFIG = pkg-config |
| 2 | |
Damien Miller | 50f6123 | 2002-09-30 10:40:39 +1000 | [diff] [blame] | 3 | all: |
| 4 | @echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2" |
| 5 | |
Damien Miller | 50f6123 | 2002-09-30 10:40:39 +1000 | [diff] [blame] | 6 | gnome-ssh-askpass1: gnome-ssh-askpass1.c |
Damien Miller | 2048f85 | 2014-12-18 10:15:49 +1100 | [diff] [blame] | 7 | $(CC) $(CFLAGS) `gnome-config --cflags gnome gnomeui` \ |
Damien Miller | 50f6123 | 2002-09-30 10:40:39 +1000 | [diff] [blame] | 8 | gnome-ssh-askpass1.c -o gnome-ssh-askpass1 \ |
| 9 | `gnome-config --libs gnome gnomeui` |
| 10 | |
| 11 | gnome-ssh-askpass2: gnome-ssh-askpass2.c |
Damien Miller | 2048f85 | 2014-12-18 10:15:49 +1100 | [diff] [blame] | 12 | $(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-2.0` \ |
Damien Miller | 50f6123 | 2002-09-30 10:40:39 +1000 | [diff] [blame] | 13 | gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \ |
Darren Tucker | 5935389 | 2012-05-19 15:24:37 +1000 | [diff] [blame] | 14 | `$(PKG_CONFIG) --libs gtk+-2.0 x11` |
Damien Miller | 50f6123 | 2002-09-30 10:40:39 +1000 | [diff] [blame] | 15 | |
Damien Miller | c979278 | 2016-11-25 14:04:21 +1100 | [diff] [blame] | 16 | gnome-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 Miller | 50f6123 | 2002-09-30 10:40:39 +1000 | [diff] [blame] | 21 | clean: |
Damien Miller | c979278 | 2016-11-25 14:04:21 +1100 | [diff] [blame] | 22 | rm -f *.o gnome-ssh-askpass gnome-ssh-askpass[123] |