Makefile 696 B

1234567891011121314151617181920212223
  1. PKG_CONFIG = pkg-config
  2. all:
  3. @echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2"
  4. gnome-ssh-askpass1: gnome-ssh-askpass1.c
  5. $(CC) $(CFLAGS) `gnome-config --cflags gnome gnomeui` \
  6. gnome-ssh-askpass1.c -o gnome-ssh-askpass1 \
  7. `gnome-config --libs gnome gnomeui`
  8. gnome-ssh-askpass2: gnome-ssh-askpass2.c
  9. $(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-2.0` \
  10. gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
  11. `$(PKG_CONFIG) --libs gtk+-2.0 x11`
  12. gnome-ssh-askpass3: gnome-ssh-askpass2.c
  13. $(CC) $(CFLAGS) `$(PKG_CONFIG) --cflags gtk+-3.0` \
  14. gnome-ssh-askpass2.c -o gnome-ssh-askpass3 \
  15. `$(PKG_CONFIG) --libs gtk+-3.0 x11`
  16. clean:
  17. rm -f *.o gnome-ssh-askpass gnome-ssh-askpass[123]