Makefile.am 1.5 KB

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