Makefile.am 1.5 KB

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