2012-05-19 07:24:37 +02:00
|
|
|
PKG_CONFIG = pkg-config
|
|
|
|
|
2002-09-30 02:40:39 +02:00
|
|
|
all:
|
|
|
|
@echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2"
|
|
|
|
|
|
|
|
gnome-ssh-askpass1: gnome-ssh-askpass1.c
|
2014-12-18 00:15:49 +01:00
|
|
|
$(CC) $(CFLAGS) `gnome-config --cflags gnome gnomeui` \
|
2002-09-30 02:40:39 +02:00
|
|
|
gnome-ssh-askpass1.c -o gnome-ssh-askpass1 \
|
|
|
|
`gnome-config --libs gnome gnomeui`
|
|
|
|
|
|
|
|
gnome-ssh-askpass2: gnome-ssh-askpass2.c
|
2014-12-18 00:15:49 +01:00
|
|
|
$(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-2.0` \
|
2002-09-30 02:40:39 +02:00
|
|
|
gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
|
2012-05-19 07:24:37 +02:00
|
|
|
`$(PKG_CONFIG) --libs gtk+-2.0 x11`
|
2002-09-30 02:40:39 +02:00
|
|
|
|
2016-11-25 04:04:21 +01:00
|
|
|
gnome-ssh-askpass3: gnome-ssh-askpass2.c
|
|
|
|
$(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-3.0` \
|
|
|
|
gnome-ssh-askpass2.c -o gnome-ssh-askpass3 \
|
|
|
|
`$(PKG_CONFIG) --libs gtk+-3.0 x11`
|
|
|
|
|
2002-09-30 02:40:39 +02:00
|
|
|
clean:
|
2016-11-25 04:04:21 +01:00
|
|
|
rm -f *.o gnome-ssh-askpass gnome-ssh-askpass[123]
|