Makefile.am 1.5 KB

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