]> ncurses.scripts.mit.edu Git - ncurses.git/blob - test/Makefile.in
9066f7d31f533aa8acb43538a0933aeb16ca511c
[ncurses.git] / test / Makefile.in
1 # $Id: Makefile.in,v 1.100 2008/08/16 21:51:16 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 libdir          = @libdir@
50 includedir      = @includedir@
51
52 LIBTOOL         = @LIBTOOL@
53 LIBTOOL_CLEAN   = @LIB_CLEAN@
54 LIBTOOL_COMPILE = @LIB_COMPILE@
55 LIBTOOL_LINK    = @LIB_LINK@
56
57 CC              = @CC@
58 CPP             = @CPP@
59
60 CFLAGS          = @CFLAGS@ @EXTRA_CFLAGS@
61 CPPFLAGS        =  -I../test -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
62
63 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
64
65 CFLAGS_LIBTOOL  = $(CCFLAGS)
66 CFLAGS_NORMAL   = $(CCFLAGS)
67 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
68 CFLAGS_PROFILE  = $(CCFLAGS) -pg
69 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
70
71 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
72
73 REL_VERSION     = @cf_cv_rel_version@
74 ABI_VERSION     = @cf_cv_abi_version@
75 LOCAL_LIBDIR    = @top_builddir@/lib
76 LOCAL_LIBS      = @TEST_DEPS@
77 MATH_LIB        = @MATH_LIB@
78 TEST_LIBS       = @TEST_LIBS@
79
80 LD              = @LD@
81 LINK            = @LINK_TESTS@ $(LIBTOOL_LINK) $(CFLAGS)
82
83 LDFLAGS         = @LD_MODEL@ @LOCAL_LDFLAGS@ @LDFLAGS@
84
85 LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
86 LDFLAGS_NORMAL  = $(LDFLAGS) $(CFLAGS_NORMAL)
87 LDFLAGS_DEBUG   = $(LDFLAGS) $(CFLAGS_DEBUG)
88 LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
89 LDFLAGS_SHARED  = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
90
91 TEST_ARGS       = @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@ 
92
93 # use these for linking with all of the libraries
94 LIBS_DEFAULT    = $(TEST_ARGS) @LIBS@ $(TEST_LIBS) $(MATH_LIB)
95 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_DEFAULT)
96
97 # use these for linking with the (n)curses library and possibly pthreads
98 LIBS_THREADS    = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB) @PTHREAD@
99 LDFLAGS_THREADS = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_THREADS)
100
101 # use these for linking with the (n)curses library
102 LIBS_CURSES     = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB)
103 LDFLAGS_CURSES  = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_CURSES)
104
105 # use these for linking with the tinfo library if we have it, or curses library if not
106 LIBS_TINFO      = @LDFLAGS_STATIC@ @TINFO_ARGS@ @LDFLAGS_SHARED@ @LIBS@ $(TEST_LIBS) $(MATH_LIB)
107 LDFLAGS_TINFO   = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
108
109 LINT            = @LINT@
110 LINT_OPTS       = @LINT_OPTS@
111 LINT_LIBS       = -lform -lmenu -lpanel -lncurses @LIBS@
112
113 HEADER_DEPS     = \
114         ../include/curses.h \
115         ../include/term.h
116
117 # The rest is generated from the "programs" and "modules" files...