Makefile.am 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. bin_PROGRAMS = dselect
  16. dselect_SOURCES = \
  17. dselect.h \
  18. dselect-curses.h \
  19. basecmds.cc \
  20. baselist.cc \
  21. basetop.cc \
  22. bindings.cc bindings.h \
  23. curkeys.cc \
  24. helpmsgs.cc helpmsgs.h \
  25. main.cc \
  26. methkeys.cc \
  27. methlist.cc \
  28. method.cc method.h \
  29. methparse.cc \
  30. pkgcmds.cc \
  31. pkgdepcon.cc \
  32. pkgdisplay.cc \
  33. pkginfo.cc \
  34. pkgkeys.cc \
  35. pkglist.cc pkglist.h \
  36. pkgsublist.cc \
  37. pkgtop.cc
  38. dselect_LDADD = \
  39. $(CURSES_LIBS) \
  40. ../lib/dpkg/libdpkg.la \
  41. $(LIBINTL)
  42. EXTRA_DIST = keyoverride mkcurkeys.pl
  43. CLEANFILES = curkeys.h
  44. curkeys.$(OBJEXT): curkeys.h
  45. curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
  46. $(AM_V_GEN) cursesfile=`echo '#include "dselect-curses.h"' | \
  47. $(CPP) $(CPPFLAGS) -I$(top_builddir) -I $(srcdir) - | \
  48. grep 'curses.h' | head -n 1 | \
  49. sed -e 's/^[^"]*"//; s/".*$$//'`; \
  50. if [ "$$cursesfile" = "" ]; then \
  51. echo "can't find curses file"; exit 1; \
  52. fi; \
  53. $(PERL) $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@
  54. install-data-local:
  55. $(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d