Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # $NetBSD: Makefile,v 1.56 2016/03/02 19:24:20 christos Exp $
  2. PACKAGE=clibs
  3. EDITDIR= ${SRCTOP}/contrib/libedit
  4. .PATH: ${EDITDIR}
  5. SHLIB_MAJOR= 8
  6. SHLIBDIR?= /lib
  7. WARNS?= 3
  8. LIB= edit
  9. LIBADD= tinfow
  10. SRCS= chared.c chartype.c common.c el.c eln.c emacs.c filecomplete.c \
  11. hist.c history.c historyn.c keymacro.c literal.c map.c \
  12. parse.c prompt.c read.c readline.c refresh.c search.c sig.c \
  13. terminal.c tokenizer.c tokenizern.c tty.c vi.c
  14. MAN= editline.3 editrc.5 editline.7
  15. MLINKS= \
  16. editline.3 el_deletestr.3 \
  17. editline.3 el_end.3 \
  18. editline.3 el_get.3 \
  19. editline.3 el_getc.3 \
  20. editline.3 el_gets.3 \
  21. editline.3 el_init.3 \
  22. editline.3 el_init_fd.3 \
  23. editline.3 el_insertstr.3 \
  24. editline.3 el_line.3 \
  25. editline.3 el_parse.3 \
  26. editline.3 el_push.3 \
  27. editline.3 el_reset.3 \
  28. editline.3 el_resize.3 \
  29. editline.3 el_set.3 \
  30. editline.3 el_source.3 \
  31. editline.3 history.3 \
  32. editline.3 history_end.3 \
  33. editline.3 history_init.3 \
  34. editline.3 tok_end.3 \
  35. editline.3 tok_init.3 \
  36. editline.3 tok_line.3 \
  37. editline.3 tok_reset.3 \
  38. editline.3 tok_str.3 \
  39. editline.3 el_wdeletestr.3 \
  40. editline.3 el_wget.3 \
  41. editline.3 el_wgetc.3 \
  42. editline.3 el_wgets.3 \
  43. editline.3 el_winsertstr.3 \
  44. editline.3 el_wline.3 \
  45. editline.3 el_wparse.3 \
  46. editline.3 el_wpush.3 \
  47. editline.3 el_wset.3 \
  48. editline.3 history_w.3 \
  49. editline.3 history_wend.3 \
  50. editline.3 history_winit.3 \
  51. editline.3 tok_wend.3 \
  52. editline.3 tok_winit.3 \
  53. editline.3 tok_wline.3 \
  54. editline.3 tok_wreset.3 \
  55. editline.3 tok_wstr.3
  56. INCS= histedit.h filecomplete.h
  57. SRCS+= common.h emacs.h fcns.h func.h help.h vi.h
  58. CLEANFILES+= common.h emacs.h fcns.h func.h help.h vi.h
  59. CFLAGS+= -I. -I${EDITDIR} -I${EDITDIR}/readline
  60. AHDR= vi.h emacs.h common.h
  61. ASRC= ${EDITDIR}/vi.c ${EDITDIR}/emacs.c ${EDITDIR}/common.c
  62. SUBDIR= readline
  63. .for hdr in vi emacs common
  64. ${hdr}.h: ${hdr}.c makelist
  65. sh ${EDITDIR}/makelist -h ${EDITDIR}/${hdr}.c > ${.TARGET}
  66. .endfor
  67. fcns.h: ${AHDR} makelist
  68. sh ${EDITDIR}/makelist -fh ${AHDR} > ${.TARGET}
  69. func.h: ${AHDR} makelist
  70. sh ${EDITDIR}/makelist -fc ${AHDR} > ${.TARGET}
  71. help.h: ${ASRC} makelist
  72. sh ${EDITDIR}/makelist -bh ${ASRC} > ${.TARGET}
  73. tc1.o: ${EDITDIR}/TEST/tc1.c
  74. test: tc1.o libedit.a ${DPADD} ${LIBTERMCAP}
  75. ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD}
  76. .include <bsd.lib.mk>
  77. CWARNFLAGS.chartype.c= ${NO_WUSE_AFTER_FREE}