Makefile.am 1.3 KB

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