]> ncurses.scripts.mit.edu Git - ncurses.git/blob - test/Makefile.in
f3ae7eee358d6ee52e734fa785dcfb792a497b7a
[ncurses.git] / test / Makefile.in
1 # $Id: Makefile.in,v 1.106 2010/11/06 19:33:08 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
34 # turn off _all_ suffix rules; we'll generate our own
35 .SUFFIXES:
36
37 SHELL           = /bin/sh
38
39 @SET_MAKE@
40
41 destdir         =
42 x               = @EXEEXT@
43 o               = .@OBJEXT@
44
45 MODEL           = ../@DFT_OBJ_SUBDIR@
46 srcdir          = @srcdir@
47 prefix          = @prefix@
48 exec_prefix     = @exec_prefix@
49 bindir          = @bindir@
50 libdir          = @libdir@
51 includedir      = @includedir@
52
53 BINDIR          = $(DESTDIR)$(bindir)
54 LIBDIR          = $(DESTDIR)$(libdir)
55 INCLUDEDIR      = $(DESTDIR)$(includedir)
56
57 LIBTOOL         = @LIBTOOL@
58 LIBTOOL_CLEAN   = @LIB_CLEAN@
59 LIBTOOL_COMPILE = @LIB_COMPILE@
60 LIBTOOL_LINK    = @LIB_LINK@
61
62 INSTALL         = @INSTALL@
63 INSTALL_PROG    = @INSTALL_PROGRAM@
64 transform       = @program_transform_name@
65 TRANSFORM       = sed 's/$x$$//'|sed '$(transform)'|sed 's/$$/$x/'
66
67 CTAGS           = @CTAGS@
68 ETAGS           = @ETAGS@
69
70 CC              = @CC@
71 CPP             = @CPP@
72
73 CFLAGS          = @CFLAGS@ @EXTRA_CFLAGS@
74 CPPFLAGS        =  -I../test -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
75
76 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
77
78 CFLAGS_LIBTOOL  = $(CCFLAGS)
79 CFLAGS_NORMAL   = $(CCFLAGS)
80 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
81 CFLAGS_PROFILE  = $(CCFLAGS) -pg
82 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
83
84 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
85
86 REL_VERSION     = @cf_cv_rel_version@
87 ABI_VERSION     = @cf_cv_abi_version@
88 LOCAL_LIBDIR    = @top_builddir@/lib
89 LOCAL_LIBS      = @TEST_DEPS@
90 MATH_LIB        = @MATH_LIB@
91 TEST_LIBS       = @TEST_LIBS@
92
93 LD              = @LD@
94 LINK            = @LINK_TESTS@ $(LIBTOOL_LINK) $(CFLAGS)
95
96 LDFLAGS         = @LD_MODEL@ @LOCAL_LDFLAGS@ @LDFLAGS@
97
98 LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
99 LDFLAGS_NORMAL  = $(LDFLAGS) $(CFLAGS_NORMAL)
100 LDFLAGS_DEBUG   = $(LDFLAGS) $(CFLAGS_DEBUG)
101 LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
102 LDFLAGS_SHARED  = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
103
104 TEST_ARGS       = @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@ 
105
106 # use these for linking with all of the libraries
107 LIBS_DEFAULT    = $(TEST_ARGS) @LIBS@ $(TEST_LIBS) $(MATH_LIB)
108 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_DEFAULT)
109
110 # use these for linking with the (n)curses library and possibly pthreads
111 LIBS_THREADS    = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB) @PTHREAD@
112 LDFLAGS_THREADS = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_THREADS)
113
114 # use these for linking with the (n)curses library
115 LIBS_CURSES     = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB)
116 LDFLAGS_CURSES  = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_CURSES)
117
118 # use these for linking with the tinfo library if we have it, or curses library if not
119 LIBS_TINFO      = @LDFLAGS_STATIC@ @TINFO_ARGS@ @LDFLAGS_SHARED@ @LIBS@ $(TEST_LIBS) $(MATH_LIB)
120 LDFLAGS_TINFO   = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
121
122 LINT            = @LINT@
123 LINT_OPTS       = @LINT_OPTS@
124 LINT_LIBS       = -lform -lmenu -lpanel -lncurses @LIBS@
125
126 HEADER_DEPS     = \
127         ../include/curses.h \
128         ../include/term.h
129
130 # The rest is generated from the "programs" and "modules" files...