Makefile.in 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # $Id: Makefile.in,v 1.35 2001/12/08 18:50:06 tom Exp $
  2. ##############################################################################
  3. # Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. #
  4. # #
  5. # Permission is hereby granted, free of charge, to any person obtaining a #
  6. # copy of this software and associated documentation files (the "Software"), #
  7. # to deal in the Software without restriction, including without limitation #
  8. # the rights to use, copy, modify, merge, publish, distribute, distribute #
  9. # with modifications, sublicense, and/or sell copies of the Software, and to #
  10. # permit persons to whom the Software is furnished to do so, subject to the #
  11. # following conditions: #
  12. # #
  13. # The above copyright notice and this permission notice shall be included in #
  14. # all copies or substantial portions of the Software. #
  15. # #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
  17. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
  18. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
  19. # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
  20. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
  21. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
  22. # DEALINGS IN THE SOFTWARE. #
  23. # #
  24. # Except as contained in this notice, the name(s) of the above copyright #
  25. # holders shall not be used in advertising or otherwise to promote the sale, #
  26. # use or other dealings in this Software without prior written #
  27. # authorization. #
  28. ##############################################################################
  29. #
  30. # Author: Thomas E. Dickey 1996-2001
  31. #
  32. # Makefile for ncurses source code.
  33. #
  34. # This makes/installs ncurses include-files
  35. #
  36. # The variable 'srcdir' refers to the source-distribution, and can be set with
  37. # the configure script by "--srcdir=DIR".
  38. # turn off _all_ suffix rules; we'll generate our own
  39. .SUFFIXES:
  40. SHELL = /bin/sh
  41. THIS = Makefile
  42. DESTDIR = @DESTDIR@
  43. srcdir = @srcdir@
  44. prefix = @prefix@
  45. exec_prefix = @exec_prefix@
  46. includedir = @includedir@
  47. INSTALL = @INSTALL@
  48. INSTALL_DATA = @INSTALL_DATA@
  49. AWK = @AWK@
  50. LN_S = @LN_S@
  51. VERSION = @cf_cv_rel_version@
  52. # The "Caps" file specifies the terminfo database format, as well as the list
  53. # of function keys.
  54. TERMINFO_CAPS = $(srcdir)/@TERMINFO_CAPS@
  55. # These files are generated by the configure script
  56. CONFIG_SRC = \
  57. MKterm.h.awk \
  58. curses.head \
  59. termcap.h \
  60. unctrl.h
  61. # These files are generated by this makefile
  62. AUTO_SRC = \
  63. curses.h \
  64. hashsize.h \
  65. ncurses_def.h \
  66. parametrized.h \
  67. term.h
  68. ################################################################################
  69. all \
  70. libs \
  71. depend \
  72. sources \
  73. install :: $(AUTO_SRC)
  74. curses.h : $(TERMINFO_CAPS) \
  75. curses.head \
  76. $(srcdir)/curses.tail \
  77. $(srcdir)/MKkey_defs.sh
  78. cat curses.head >$@
  79. AWK=$(AWK) sh $(srcdir)/MKkey_defs.sh $(TERMINFO_CAPS) >>$@
  80. sh -c 'if test "@NCURSES_CH_T@" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
  81. cat $(srcdir)/curses.tail >>$@
  82. term.h: $(TERMINFO_CAPS) MKterm.h.awk
  83. $(AWK) -f MKterm.h.awk $(TERMINFO_CAPS) > $@
  84. sh $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
  85. hashsize.h: $(TERMINFO_CAPS) $(srcdir)/MKhashsize.sh
  86. sh $(srcdir)/MKhashsize.sh $(TERMINFO_CAPS) >$@
  87. ncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh
  88. AWK=$(AWK) sh $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@
  89. parametrized.h: $(TERMINFO_CAPS) $(srcdir)/MKparametrized.sh
  90. AWK=$(AWK) sh $(srcdir)/MKparametrized.sh $(TERMINFO_CAPS) >$@
  91. tags:
  92. ctags *.[ch]
  93. @MAKE_UPPER_TAGS@TAGS:
  94. @MAKE_UPPER_TAGS@ etags *.[ch]
  95. mostlyclean ::
  96. -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
  97. clean :: mostlyclean
  98. -rm -f $(AUTO_SRC)
  99. distclean :: clean
  100. -rm -f Makefile $(CONFIG_SRC)
  101. realclean :: distclean
  102. ###############################################################################
  103. # The remainder of this file is automatically generated during configuration
  104. ###############################################################################