1 # $Id: Makefile.in,v 1.71 2021/07/03 15:45:33 tom Exp $
2 ##############################################################################
3 # Copyright 2020,2021 Thomas E. Dickey #
4 # Copyright 1998-2015,2018 Free Software Foundation, Inc. #
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: #
14 # The above copyright notice and this permission notice shall be included in #
15 # all copies or substantial portions of the Software. #
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. #
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 #
29 ##############################################################################
31 # Author: Thomas E. Dickey 1996-on
33 # Makefile for menu source code.
35 # This makes the following:
36 # libraries (normal/debug/profile/shared)
38 # The variable 'srcdir' refers to the source-distribution, and can be set with
39 # the configure script by "--srcdir=DIR".
41 # The rules are organized to produce the libraries for the configured models,
43 # turn off _all_ suffix rules; we'll generate our own
53 MODEL = @DFT_LWR_MODEL@
55 top_srcdir = @top_srcdir@
58 exec_prefix = @exec_prefix@
61 includedir = @includedir@
62 includesubdir = @includesubdir@
64 INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir)
69 LIBTOOL_OPTS = @LIBTOOL_OPTS@ @EXPORT_SYMS@
70 LIBTOOL_CLEAN = @LIB_CLEAN@
71 LIBTOOL_COMPILE = @LIB_COMPILE@
72 LIBTOOL_LINK = @LIB_LINK@
73 LIBTOOL_INSTALL = @LIB_INSTALL@
74 LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
78 INSTALL_LIB = @INSTALL@ @INSTALL_LIB@
79 INSTALL_PROG = @INSTALL_PROGRAM@ @INSTALL_OPT_S@
80 INSTALL_DATA = @INSTALL_DATA@
93 CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
95 INCDIR = $(top_srcdir)/include
96 BASE_DIR = $(top_srcdir)/ncurses
97 CPPFLAGS = -I$(BASE_DIR) -DHAVE_CONFIG_H -DBUILDING_MENU @CPPFLAGS@
99 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
101 CFLAGS_LIBTOOL = $(CCFLAGS)
102 CFLAGS_NORMAL = $(CCFLAGS) -DNCURSES_STATIC
103 CFLAGS_DEBUG = $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE
104 CFLAGS_PROFILE = $(CCFLAGS) -DNCURSES_STATIC -pg
105 CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
107 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
109 LINK = $(LIBTOOL_LINK)
110 LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
112 SHLIB_DIRS = -L../lib
113 SHLIB_LIST = $(SHLIB_DIRS) -lncurses@USE_LIB_SUFFIX@ @SHLIB_LIST@
115 RPATH_LIST = @RPATH_LIST@
116 RESULTING_SYMS = @RESULTING_SYMS@
117 VERSIONED_SYMS = @VERSIONED_SYMS@
118 MK_SHARED_LIB = @MK_SHARED_LIB@
120 NCURSES_MAJOR = @NCURSES_MAJOR@
121 NCURSES_MINOR = @NCURSES_MINOR@
122 REL_VERSION = @cf_cv_rel_version@
123 ABI_VERSION = @cf_cv_abi_version@
127 LIBRARIES = @Libs_To_Make@
130 LINT_OPTS = @LINT_OPTS@
131 LINT_LIBS = -lmenu -lncurses @LIBS@
136 ../include/mf_common.h
138 ################################################################################
140 @MAKE_PHONY@.PHONY : all
141 @MAKE_PHONY@.PHONY : clean
142 @MAKE_PHONY@.PHONY : distclean
143 @MAKE_PHONY@.PHONY : install
144 @MAKE_PHONY@.PHONY : install.libs
145 @MAKE_PHONY@.PHONY : libs
146 @MAKE_PHONY@.PHONY : mostlyclean
147 @MAKE_PHONY@.PHONY : realclean
148 @MAKE_PHONY@.PHONY : sources
149 @MAKE_PHONY@.PHONY : uninstall
150 @MAKE_PHONY@.PHONY : uninstall.libs
154 install :: $(AUTO_SRC) $(LIBRARIES)
156 sources : $(AUTO_SRC)
158 $(DESTDIR)$(bindir) \
159 $(DESTDIR)$(libdir) :
162 # make copies to simplify include-paths while still keeping menu's include
163 # file in this directory.
164 ../include/menu.h : $(srcdir)/menu.h
166 cp $(srcdir)/menu.h $@
167 ../include/eti.h : $(srcdir)/eti.h
169 cp $(srcdir)/eti.h $@
170 ../include/mf_common.h : $(srcdir)/mf_common.h
172 cp $(srcdir)/mf_common.h $@
175 ../include/curses.h \
176 ../include/ncurses_cfg.h \
177 ../include/ncurses_def.h \
178 ../include/ncurses_dll.h \
180 ../include/unctrl.h \
181 $(BASE_DIR)/curses.priv.h \
182 $(BASE_DIR)/new_pair.h \
183 $(INCDIR)/nc_alloc.h \
184 $(INCDIR)/nc_panel.h \
185 $(INCDIR)/nc_string.h \
186 $(INCDIR)/nc_termios.h \
187 $(INCDIR)/nc_tparm.h \
188 $(INCDIR)/term_entry.h \
189 $(srcdir)/menu.priv.h \
195 @MAKE_UPPER_TAGS@TAGS:
196 @MAKE_UPPER_TAGS@ $(ETAGS) *.[ch]
199 -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
208 realclean :: distclean
210 ###############################################################################
211 # The remainder of this file is automatically generated during configuration
212 ###############################################################################