Makefile.am 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. -idirafter $(top_srcdir)/libcompat \
  8. -I$(top_srcdir)/lib
  9. bin_PROGRAMS = dselect
  10. dselect_SOURCES = \
  11. dselect.h \
  12. basecmds.cc \
  13. baselist.cc \
  14. basetop.cc \
  15. bindings.cc bindings.h \
  16. curkeys.cc \
  17. helpmsgs.cc helpmsgs.h \
  18. main.cc \
  19. methkeys.cc \
  20. methlist.cc \
  21. method.cc method.h \
  22. methparse.cc \
  23. pkgcmds.cc \
  24. pkgdepcon.cc \
  25. pkgdisplay.cc \
  26. pkginfo.cc \
  27. pkgkeys.cc \
  28. pkglist.cc pkglist.h \
  29. pkgsublist.cc \
  30. pkgtop.cc
  31. dselect_LDADD = \
  32. ../libcompat/libcompat.a \
  33. $(LIBINTL) \
  34. $(CURSES_LIBS) \
  35. ../lib/libdpkg.a
  36. EXTRA_DIST = keyoverride mkcurkeys.pl
  37. CLEANFILES = curkeys.h
  38. curkeys.$(OBJEXT): curkeys.h
  39. curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
  40. cursesfile=`echo '#include <ncursesw/curses.h>' | \
  41. $(CC) -E - | grep 'curses.h' | head -n 1 | \
  42. sed -e 's/^[^"]*"//; s/".*$$//'`; \
  43. if [ "$$cursesfile" = "" ]; then \
  44. echo "can't find curses file"; exit 1; \
  45. fi; \
  46. perl $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@