Makefile.am 1.3 KB

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