Makefile.am 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ## Process this file with automake to produce Makefile.in
  2. SUBDIRS = methods po
  3. localedir = $(datadir)/locale
  4. INCLUDES = \
  5. -DLOCALEDIR=\"$(localedir)\" \
  6. -DADMINDIR=\"$(admindir)\" -DLIBDIR=\"$(pkglibdir)\" \
  7. -DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
  8. -idirafter $(top_srcdir)/libcompat \
  9. -I$(top_srcdir)/lib
  10. bin_PROGRAMS = dselect
  11. dselect_SOURCES = \
  12. dselect.h \
  13. dselect-curses.h \
  14. basecmds.cc \
  15. baselist.cc \
  16. basetop.cc \
  17. bindings.cc bindings.h \
  18. curkeys.cc \
  19. helpmsgs.cc helpmsgs.h \
  20. main.cc \
  21. methkeys.cc \
  22. methlist.cc \
  23. method.cc method.h \
  24. methparse.cc \
  25. pkgcmds.cc \
  26. pkgdepcon.cc \
  27. pkgdisplay.cc \
  28. pkginfo.cc \
  29. pkgkeys.cc \
  30. pkglist.cc pkglist.h \
  31. pkgsublist.cc \
  32. pkgtop.cc
  33. dselect_LDADD = \
  34. $(CURSES_LIBS) \
  35. ../lib/libdpkg.a \
  36. ../libcompat/libcompat.a \
  37. $(LIBINTL)
  38. EXTRA_DIST = keyoverride mkcurkeys.pl
  39. CLEANFILES = curkeys.h
  40. curkeys.$(OBJEXT): curkeys.h
  41. curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
  42. cursesfile=`echo '#include <dselect-curses.h>' | \
  43. $(CPP) -I$(top_srcdir) -I$(srcdir) - | \
  44. grep 'curses.h' | head -n 1 | \
  45. sed -e 's/^[^"]*"//; s/".*$$//'`; \
  46. if [ "$$cursesfile" = "" ]; then \
  47. echo "can't find curses file"; exit 1; \
  48. fi; \
  49. perl $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@