ncurses 6.2 - patch 20200222
[ncurses.git] / c++ / Makefile.in
1 # $Id: Makefile.in,v 1.121 2020/02/22 17:29:13 tom Exp $
2 ##############################################################################
3 # Copyright 2018,2020 Thomas E. Dickey                                       #
4 # Copyright 1998-2015,2016 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
32 #
33 #  Simple makefile for c++ window class demo
34
35 # turn off _all_ suffix rules; we'll generate our own
36 .SUFFIXES:
37
38 SHELL           = @SHELL@
39 VPATH           = @srcdir@
40
41 CF_MFLAGS       = @cf_cv_makeflags@
42 @SET_MAKE@
43 x               = @EXEEXT@
44 o               = .@OBJEXT@
45
46 MODEL           = ../@DFT_OBJ_SUBDIR@
47 DESTDIR         = @DESTDIR@
48 top_srcdir      = @top_srcdir@
49 srcdir          = @srcdir@
50 prefix          = @prefix@
51 exec_prefix     = @exec_prefix@
52 bindir          = @bindir@
53 libdir          = @libdir@
54 includedir      = @includedir@
55 includesubdir   = @includesubdir@
56
57 INCLUDEDIR      = $(DESTDIR)$(includedir)$(includesubdir)
58
59 PACKAGE         = @PACKAGE@
60
61 LIBTOOL         = @LIBTOOL_CXX@
62 LIBTOOL_OPTS    = @LIBTOOL_OPTS@ @LIBTOOL_OPTS_CXX@
63 LIBTOOL_CLEAN   = @LIB_CLEAN@
64 LIBTOOL_COMPILE = @LIB_COMPILE@
65 LIBTOOL_LINK    = @LIB_LINK@
66 LIBTOOL_INSTALL = @LIB_INSTALL@
67 LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
68 LIBTOOL_VERSION = @LIBTOOL_VERSION@
69 LT_UNDEF        = @LT_UNDEF@
70
71 INSTALL         = @INSTALL@ 
72 INSTALL_LIB     = $(INSTALL) @INSTALL_LIB@
73 INSTALL_DATA    = @INSTALL_DATA@
74 INSTALL_OPT_P   = @INSTALL_OPT_P@
75
76 AR              = @AR@
77 ARFLAGS         = @ARFLAGS@
78 AWK             = @AWK@
79 LD              = @LD@
80 LN_S            = @LN_S@
81
82 CXX_AR          = @CXX_AR@
83 CXX_ARFLAGS     = @CXX_ARFLAGS@
84 RANLIB          = @LIB_PREP@
85
86 CXX             = @CXX@
87 CPP             = @CXXCPP@
88 CXXFLAGS        = @CXXFLAGS@ @EXTRA_CXXFLAGS@
89 CXXLIBS         = @CXXLIBS@
90
91 INCDIR          = ../include
92 CPPFLAGS        = -DHAVE_CONFIG_H -I../c++ @CPPFLAGS@
93
94 CTAGS           = @CTAGS@
95 ETAGS           = @ETAGS@
96
97 CC              = ${CXX}
98 CCFLAGS         = $(CPPFLAGS) $(CXXFLAGS)
99
100 CFLAGS_LIBTOOL  = $(CCFLAGS)
101 CFLAGS_NORMAL   = $(CCFLAGS)
102 CFLAGS_DEBUG    = $(CCFLAGS) @CXX_G_OPT@ -DTRACE
103 CFLAGS_PROFILE  = $(CCFLAGS) -pg
104 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
105
106 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
107
108 NCURSES_MAJOR   = @NCURSES_MAJOR@
109 NCURSES_MINOR   = @NCURSES_MINOR@
110 REL_VERSION     = @cf_cv_rel_version@
111 ABI_VERSION     = @cf_cv_abi_version@
112
113 LOCAL_LIBDIR    = @top_builddir@/lib
114
115 LINK            = @LINK_PROGS@ $(LIBTOOL_LINK) @CXXLDFLAGS@
116 SHLIB_DIRS      = -L../lib
117 SHLIB_LIST      = $(SHLIB_DIRS) -lform@USE_LIB_SUFFIX@ -lmenu@USE_LIB_SUFFIX@ -lpanel@USE_LIB_SUFFIX@ -lncurses@USE_LIB_SUFFIX@ @SHLIB_LIST@
118
119 LIBROOT         = ncurses++
120
121 LIBNAME_LIBTOOL = @LIB_PREFIX@$(LIBROOT)@USE_LIB_SUFFIX@.la
122 LIBNAME_NORMAL  = @LIB_PREFIX@$(LIBROOT)@USE_LIB_SUFFIX@.a
123 LIBNAME         = @LIB_PREFIX@$(LIBROOT)@CXX_LIB_SUFFIX@
124
125 LIBRARIES       = @Libs_To_Make@
126
127 LINK_FLAGS      = @EXTRA_LDFLAGS@ -L../lib -l$(LIBROOT)@USE_LIB_SUFFIX@
128 RPATH_LIST      = @RPATH_LIST@
129 MK_SHARED_LIB   = @MK_SHARED_LIB@
130
131 LINK_LIBTOOL    = @EXTRA_LDFLAGS@ -L../lib $(LIBRARIES)
132 LINK_NORMAL     = $(LINK_FLAGS)
133 LINK_DEBUG      = $(LINK_FLAGS)
134 LINK_PROFILE    = $(LINK_FLAGS)
135 LINK_SHARED     = $(LINK_FLAGS)
136
137 # flags for test-programs
138 TEST_LIBS       = @TEST_LIBS@
139 TEST_ARGS       = @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@ 
140 TEST_LDFLAGS    = $(TEST_ARGS) @LDFLAGS@ \
141         @LD_MODEL@ $(TEST_LIBS) @LIBS@ @LOCAL_LDFLAGS@ $(CXXLIBS)
142
143 LDFLAGS_LIBTOOL = $(TEST_LDFLAGS) $(CFLAGS_LIBTOOL)
144 LDFLAGS_NORMAL  = $(TEST_LDFLAGS) $(CFLAGS_NORMAL)
145 LDFLAGS_DEBUG   = $(TEST_LDFLAGS) $(CFLAGS_DEBUG)
146 LDFLAGS_PROFILE = $(TEST_LDFLAGS) $(CFLAGS_PROFILE)
147 LDFLAGS_SHARED  = $(TEST_LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
148
149 LDFLAGS_DEFAULT = $(LINK_@DFT_UPR_MODEL@) $(LDFLAGS_@DFT_UPR_MODEL@)
150
151 # flags for library built by this makefile
152 LDFLAGS         = $(TEST_ARGS) @LDFLAGS@ \
153         @LD_MODEL@ $(TEST_LIBS) @LIBS@ $(CXXLIBS)
154
155 AUTO_SRC        = \
156                 etip.h
157
158 all \
159 libs ::         $(AUTO_SRC) $(LIBRARIES)
160
161 @MAKE_TESTS@all ::              demo$x
162
163 sources :       $(AUTO_SRC)
164
165 depend :
166
167 tags:
168         $(CTAGS) *.[h] *.cc
169
170 $(DESTDIR)$(libdir) :
171         mkdir -p $@
172
173 mostlyclean ::
174         -rm -f core tags TAGS *~ *.bak *.i *.ii *.ln *.atac trace
175
176 clean :: mostlyclean
177         -$(SHELL) -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
178         -rm -rf $(MODEL)/SunWS_cache
179         -$(LIBTOOL_CLEAN) rm -f demo$x $(AUTO_SRC) $(LIBRARIES) $(OBJS_DEMO)
180         -rm -rf .libs *.dSYM
181
182 distclean :: clean
183         -rm -f Makefile
184
185 realclean :: distclean
186
187 ###############################################################################
188
189 HEADER_DEPS     = \
190         etip.h \
191         ../include/curses.h \
192         ../include/eti.h \
193         ../include/form.h \
194         ../include/menu.h \
195         ../include/ncurses_cfg.h \
196         ../include/ncurses_def.h \
197         ../include/ncurses_dll.h \
198         ../include/panel.h \
199         ../include/unctrl.h \
200         $(INCDIR)/nc_mingw.h \
201         $(INCDIR)/nc_string.h \
202         $(srcdir)/cursesp.h \
203         $(srcdir)/cursesw.h \
204         $(srcdir)/cursslk.h \
205         $(srcdir)/internal.h
206
207 cursesw_h       = $(srcdir)/cursesw.h \
208                   $(HEADER_DEPS)
209
210 cursesp_h       = $(srcdir)/cursesp.h \
211                   $(cursesw_h)
212
213 cursesf_h       = $(srcdir)/cursesf.h \
214                   $(cursesp_h)
215
216 cursesm_h       = $(srcdir)/cursesm.h \
217                   $(cursesp_h)
218
219 cursslk_h       = $(srcdir)/cursslk.h \
220                   $(cursesw_h)
221
222 cursesapp_h     = $(srcdir)/cursesapp.h \
223                   $(cursslk_h)
224
225 $(INCDIR)/form.h :
226         cd ../form && $(MAKE) $@
227
228 $(INCDIR)/menu.h :
229         cd ../menu && $(MAKE) $@
230
231 $(INCDIR)/panel.h :
232         cd ../panel && $(MAKE) $@
233
234 ###############################################################################
235
236 OBJS_DEMO = $(MODEL)/demo$o
237
238 $(MODEL)/demo$o : $(srcdir)/demo.cc \
239                 $(HEADER_DEPS) \
240                 $(cursesf_h) \
241                 $(cursesm_h) \
242                 $(cursesapp_h)
243         @echo 'compiling demo (obj_s)'
244         @$(LIBTOOL_COMPILE) $(CXX) $(CFLAGS_DEFAULT) -c $(srcdir)/demo.cc -o $@
245
246 demo$x: $(OBJS_DEMO) \
247         $(LIBRARIES)  \
248         @TEST_DEPS@
249         @ECHO_LD@ $(LINK) -o $@ $(OBJS_DEMO) $(LDFLAGS_DEFAULT)
250
251 etip.h: $(srcdir)/etip.h.in $(srcdir)/edit_cfg.sh
252         cp $(srcdir)/etip.h.in $@
253         $(SHELL) $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
254
255 ###############################################################################
256 # The remainder of this file is automatically generated during configuration
257 ###############################################################################