ncurses 6.2 - patch 20200718
[ncurses.git] / test / Makefile.in
1 # $Id: Makefile.in,v 1.125 2020/07/18 18:47:54 tom Exp $
2 ##############################################################################
3 # Copyright 2020 Thomas E. Dickey                                            #
4 # Copyright 1998-2017,2018 Free Software Foundation, Inc.                    #
5 #                                                                            #
6 # Permission is hereby granted, free of charge, to any person obtaining a    #
7 # copy of this software and associated documentation files (the "Software"), #
8 # to deal in the Software without restriction, including without limitation  #
9 # the rights to use, copy, modify, merge, publish, distribute, distribute    #
10 # with modifications, sublicense, and/or sell copies of the Software, and to #
11 # permit persons to whom the Software is furnished to do so, subject to the  #
12 # following conditions:                                                      #
13 #                                                                            #
14 # The above copyright notice and this permission notice shall be included in #
15 # all copies or substantial portions of the Software.                        #
16 #                                                                            #
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
20 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
22 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
23 # DEALINGS IN THE SOFTWARE.                                                  #
24 #                                                                            #
25 # Except as contained in this notice, the name(s) of the above copyright     #
26 # holders shall not be used in advertising or otherwise to promote the sale, #
27 # use or other dealings in this Software without prior written               #
28 # authorization.                                                             #
29 ##############################################################################
30 #
31 # Author: Thomas E. Dickey 1996-on
32 #
33 # Makefile for ncurses tests.
34
35 # turn off _all_ suffix rules; we'll generate our own
36 .SUFFIXES:
37
38 SHELL           = @SHELL@
39 VPATH           = @srcdir@
40
41 @SET_MAKE@
42
43 destdir         =
44 x               = @EXEEXT@
45 o               = .@OBJEXT@
46
47 MODEL           = ../@DFT_OBJ_SUBDIR@
48 top_srcdir      = @top_srcdir@
49 srcdir          = @srcdir@
50 prefix          = @prefix@
51 exec_prefix     = @exec_prefix@
52 datarootdir     = @datarootdir@
53
54 bindir          = @bindir@
55 libdir          = @libdir@
56 includedir      = @includedir@
57 includesubdir   = @includesubdir@
58 datarootdir     = @datarootdir@
59 datadir         = @datadir@
60
61 BINDIR          = $(DESTDIR)$(bindir)
62 LIBDIR          = $(DESTDIR)$(libdir)
63 INCLUDEDIR      = $(DESTDIR)$(includedir)$(includesubdir)
64 DATADIR         = $(DESTDIR)$(datadir)
65
66 PACKAGE         = @PACKAGE@
67
68 LIBTOOL         = @LIBTOOL@
69 LIBTOOL_OPTS    = @LIBTOOL_OPTS@
70 LIBTOOL_CLEAN   = @LIB_CLEAN@
71 LIBTOOL_COMPILE = @LIB_COMPILE@
72 LIBTOOL_LINK    = @LIB_LINK@
73
74 INSTALL         = @INSTALL@ @INSTALL_OPT_O@
75 INSTALL_PROG    = @INSTALL_PROGRAM@ @INSTALL_OPT_S@
76 INSTALL_SCRIPT  = @INSTALL_SCRIPT@
77 INSTALL_DATA    = @INSTALL_DATA@
78 transform       = @program_transform_name@
79 TRANSFORM       = sed 's/$x$$//'|sed '$(transform)'|sed 's/$$/$x/'
80
81 CTAGS           = @CTAGS@
82 ETAGS           = @ETAGS@
83
84 CC              = @CC@
85 CPP             = @CPP@
86
87 CFLAGS          = @CFLAGS@ @EXTRA_CFLAGS@
88 CPPFLAGS        = -I. -I$(srcdir) -I../test -DHAVE_CONFIG_H -DDATA_DIR=\"$(datadir)\" @CPPFLAGS@
89
90 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
91
92 CFLAGS_LIBTOOL  = $(CCFLAGS)
93 CFLAGS_NORMAL   = $(CCFLAGS) -DNCURSES_STATIC
94 CFLAGS_DEBUG    = $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE
95 CFLAGS_PROFILE  = $(CCFLAGS) -DNCURSES_STATIC -pg
96 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
97
98 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
99
100 REL_VERSION     = @cf_cv_rel_version@
101 ABI_VERSION     = @cf_cv_abi_version@
102 LOCAL_LIBDIR    = @top_builddir@/lib
103 LOCAL_LIBS      = @TEST_DEPS@
104 MATH_LIB        = @MATH_LIB@
105 TEST_LIBS       = @TEST_LIBS@
106
107 LD              = @LD@
108 LINK            = @LINK_TESTS@ $(LIBTOOL_LINK) $(CFLAGS)
109
110 LDFLAGS         = @LD_MODEL@ @LOCAL_LDFLAGS@ @LDFLAGS@
111
112 LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
113 LDFLAGS_NORMAL  = $(LDFLAGS) $(CFLAGS_NORMAL)
114 LDFLAGS_DEBUG   = $(LDFLAGS) $(CFLAGS_DEBUG)
115 LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
116 LDFLAGS_SHARED  = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
117
118 TEST_ARGS       = @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@
119
120 # use these for linking with all of the libraries
121 LIBS_DEFAULT    = $(TEST_ARGS) @LIBS@ $(TEST_LIBS) $(MATH_LIB)
122 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_DEFAULT)
123
124 # use these for linking with the (n)curses library and possibly pthreads
125 LIBS_THREADS    = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-l@FORM_NAME@.*-l@PANEL_NAME@[^ ]*//'` $(TEST_LIBS) $(MATH_LIB) @PTHREAD@
126 LDFLAGS_THREADS = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_THREADS)
127
128 # use these for linking with the (n)curses library
129 LIBS_CURSES     = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-l@FORM_NAME@.*-l@PANEL_NAME@[^ ]*//'` $(TEST_LIBS) $(MATH_LIB)
130 LDFLAGS_CURSES  = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_CURSES)
131
132 # use these for linking with the tinfo library if we have it, or curses library if not
133 LIBS_TINFO      = @LDFLAGS_STATIC@ @TINFO_LIBS@ @LDFLAGS_SHARED@ @LIBS@ $(TEST_LIBS) $(MATH_LIB)
134 LDFLAGS_TINFO   = @TINFO_LDFLAGS@ $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
135
136 LINT            = @LINT@
137 LINT_OPTS       = @LINT_OPTS@
138 LINT_LIBS       = -lform -lmenu -lpanel -lncurses @LIBS@
139
140 INCDIR          = $(top_srcdir)/include
141 incdir          = ../include
142
143 HEADER_DEPS     = \
144         $(incdir)/curses.h \
145         $(incdir)/term.h \
146         $(incdir)/ncurses_cfg.h \
147         $(incdir)/ncurses_def.h \
148         $(incdir)/ncurses_dll.h \
149         $(incdir)/term.h \
150         $(incdir)/unctrl.h \
151         $(INCDIR)/nc_alloc.h
152
153 # The rest is generated from the "programs" and "modules" files...