Makefile.am 1.2 KB

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