Makefile.in 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # $Id: Makefile.in,v 1.102 2008/09/07 13:58:29 tom Exp $
  2. ##############################################################################
  3. # Copyright (c) 1998-2007,2008 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-on
  31. #
  32. # Makefile for ncurses tests.
  33. # turn off _all_ suffix rules; we'll generate our own
  34. .SUFFIXES:
  35. SHELL = /bin/sh
  36. @SET_MAKE@
  37. destdir =
  38. x = @EXEEXT@
  39. o = .@OBJEXT@
  40. MODEL = ../@DFT_OBJ_SUBDIR@
  41. srcdir = @srcdir@
  42. prefix = @prefix@
  43. exec_prefix = @exec_prefix@
  44. libdir = @libdir@
  45. includedir = @includedir@
  46. LIBTOOL = @LIBTOOL@
  47. LIBTOOL_CLEAN = @LIB_CLEAN@
  48. LIBTOOL_COMPILE = @LIB_COMPILE@
  49. LIBTOOL_LINK = @LIB_LINK@
  50. CC = @CC@
  51. CPP = @CPP@
  52. CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
  53. CPPFLAGS = -I../test -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
  54. CCFLAGS = $(CPPFLAGS) $(CFLAGS)
  55. CFLAGS_LIBTOOL = $(CCFLAGS)
  56. CFLAGS_NORMAL = $(CCFLAGS)
  57. CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
  58. CFLAGS_PROFILE = $(CCFLAGS) -pg
  59. CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
  60. CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
  61. REL_VERSION = @cf_cv_rel_version@
  62. ABI_VERSION = @cf_cv_abi_version@
  63. LOCAL_LIBDIR = @top_builddir@/lib
  64. LOCAL_LIBS = @TEST_DEPS@
  65. MATH_LIB = @MATH_LIB@
  66. TEST_LIBS = @TEST_LIBS@
  67. LD = @LD@
  68. LINK = @LINK_TESTS@ $(LIBTOOL_LINK) $(CFLAGS)
  69. LDFLAGS = @LD_MODEL@ @LOCAL_LDFLAGS@ @LDFLAGS@
  70. LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
  71. LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
  72. LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG)
  73. LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
  74. LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
  75. TEST_ARGS = @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@
  76. # use these for linking with all of the libraries
  77. LIBS_DEFAULT = $(TEST_ARGS) @LIBS@ $(TEST_LIBS) $(MATH_LIB)
  78. LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_DEFAULT)
  79. # use these for linking with the (n)curses library and possibly pthreads
  80. LIBS_THREADS = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB) @PTHREAD@
  81. LDFLAGS_THREADS = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_THREADS)
  82. # use these for linking with the (n)curses library
  83. LIBS_CURSES = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB)
  84. LDFLAGS_CURSES = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_CURSES)
  85. # use these for linking with the tinfo library if we have it, or curses library if not
  86. LIBS_TINFO = @LDFLAGS_STATIC@ @TINFO_ARGS@ @LDFLAGS_SHARED@ @LIBS@ $(TEST_LIBS) $(MATH_LIB)
  87. LDFLAGS_TINFO = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
  88. LINT = @LINT@
  89. LINT_OPTS = @LINT_OPTS@
  90. LINT_LIBS = -lform -lmenu -lpanel -lncurses @LIBS@
  91. HEADER_DEPS = \
  92. ../include/curses.h \
  93. ../include/term.h
  94. # The rest is generated from the "programs" and "modules" files...