blob: 380f80cf2d59afa61f00586b680e58bb8a5265cd [file] [log] [blame]
micky3879b9f5e72025-07-08 18:04:53 -04001# $Id: Makefile.in,v 1.76 2021/07/03 15:45:33 tom Exp $
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05302##############################################################################
micky3879b9f5e72025-07-08 18:04:53 -04003# Copyright 2020,2021 Thomas E. Dickey #
4# Copyright 1998-2015,2018 Free Software Foundation, Inc. #
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05305# #
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 panels source code.
34#
35# This makes the following:
36# libraries (normal/debug/profile/shared)
37#
38# The variable 'srcdir' refers to the source-distribution, and can be set with
39# the configure script by "--srcdir=DIR".
40#
41# The rules are organized to produce the libraries for the configured models,
42
43# turn off _all_ suffix rules; we'll generate our own
44.SUFFIXES:
45
Steve Kondikae271bc2015-11-15 02:50:53 +010046SHELL = @SHELL@
47VPATH = @srcdir@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053048THIS = Makefile
49
50x = @EXEEXT@
51o = .@OBJEXT@
52
53MODEL = @DFT_LWR_MODEL@
54DESTDIR = @DESTDIR@
Steve Kondikae271bc2015-11-15 02:50:53 +010055top_srcdir = @top_srcdir@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053056srcdir = @srcdir@
57prefix = @prefix@
58exec_prefix = @exec_prefix@
59bindir = @bindir@
60libdir = @libdir@
61includedir = @includedir@
Steve Kondikae271bc2015-11-15 02:50:53 +010062datarootdir = @datarootdir@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053063datadir = @datadir@
Steve Kondikae271bc2015-11-15 02:50:53 +010064includesubdir = @includesubdir@
65
66INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir)
67
68PACKAGE = @PACKAGE@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053069
70LIBTOOL = @LIBTOOL@
Steve Kondikae271bc2015-11-15 02:50:53 +010071LIBTOOL_OPTS = @LIBTOOL_OPTS@ @EXPORT_SYMS@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053072LIBTOOL_CLEAN = @LIB_CLEAN@
73LIBTOOL_COMPILE = @LIB_COMPILE@
74LIBTOOL_LINK = @LIB_LINK@
75LIBTOOL_INSTALL = @LIB_INSTALL@
76LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
Steve Kondikae271bc2015-11-15 02:50:53 +010077LT_UNDEF = @LT_UNDEF@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053078
79INSTALL = @INSTALL@
80INSTALL_LIB = @INSTALL@ @INSTALL_LIB@
micky3879b9f5e72025-07-08 18:04:53 -040081INSTALL_PROG = @INSTALL_PROGRAM@ @INSTALL_OPT_S@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053082INSTALL_DATA = @INSTALL_DATA@
83
84AR = @AR@
Steve Kondikae271bc2015-11-15 02:50:53 +010085ARFLAGS = @ARFLAGS@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053086AWK = @AWK@
87LD = @LD@
88LN_S = @LN_S@
89
Steve Kondikae271bc2015-11-15 02:50:53 +010090CTAGS = @CTAGS@
91ETAGS = @ETAGS@
92
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053093CC = @CC@
94CPP = @CPP@
micky3879b9f5e72025-07-08 18:04:53 -040095CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053096
micky3879b9f5e72025-07-08 18:04:53 -040097INCDIR = $(top_srcdir)/include
98BASE_DIR = $(top_srcdir)/ncurses
99CPPFLAGS = -I$(BASE_DIR) -DHAVE_CONFIG_H -DBUILDING_PANEL @CPPFLAGS@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530100
101CCFLAGS = $(CPPFLAGS) $(CFLAGS)
102
103CFLAGS_LIBTOOL = $(CCFLAGS)
micky3879b9f5e72025-07-08 18:04:53 -0400104CFLAGS_NORMAL = $(CCFLAGS) -DNCURSES_STATIC
105CFLAGS_DEBUG = $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE
106CFLAGS_PROFILE = $(CCFLAGS) -DNCURSES_STATIC -pg
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530107CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
108
109CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
110
111LINK = $(LIBTOOL_LINK)
112LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
113
114SHLIB_DIRS = -L../lib
Steve Kondikae271bc2015-11-15 02:50:53 +0100115SHLIB_LIST = $(SHLIB_DIRS) -lncurses@USE_LIB_SUFFIX@ @SHLIB_LIST@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530116
Steve Kondikae271bc2015-11-15 02:50:53 +0100117RPATH_LIST = @RPATH_LIST@
118RESULTING_SYMS = @RESULTING_SYMS@
119VERSIONED_SYMS = @VERSIONED_SYMS@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530120MK_SHARED_LIB = @MK_SHARED_LIB@
121
122NCURSES_MAJOR = @NCURSES_MAJOR@
123NCURSES_MINOR = @NCURSES_MINOR@
124REL_VERSION = @cf_cv_rel_version@
125ABI_VERSION = @cf_cv_abi_version@
126
127RANLIB = @LIB_PREP@
128
Steve Kondikae271bc2015-11-15 02:50:53 +0100129LIBRARIES = @Libs_To_Make@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530130
131LINT = @LINT@
132LINT_OPTS = @LINT_OPTS@
133LINT_LIBS = -lpanel -lncurses @LIBS@
134
135AUTO_SRC = \
136 ../include/panel.h
137
138################################################################################
micky3879b9f5e72025-07-08 18:04:53 -0400139
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
151
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530152all \
153libs \
154install :: $(AUTO_SRC) $(LIBRARIES)
155
156sources: $(AUTO_SRC)
157
158$(DESTDIR)$(bindir) \
159$(DESTDIR)$(libdir) :
Steve Kondikae271bc2015-11-15 02:50:53 +0100160 mkdir -p $@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530161
162# make a copy to simplify include-paths while still keeping panel's include
163# file in this directory.
164../include/panel.h : $(srcdir)/panel.h
165 -rm -f $@
166 cp $(srcdir)/panel.h $@
167
Steve Kondikae271bc2015-11-15 02:50:53 +0100168HEADER_DEPS = \
micky3879b9f5e72025-07-08 18:04:53 -0400169 ../include/curses.h \
170 ../include/ncurses_cfg.h \
171 ../include/ncurses_def.h \
172 ../include/ncurses_dll.h \
173 ../include/term.h \
174 ../include/unctrl.h \
175 $(BASE_DIR)/curses.priv.h \
176 $(BASE_DIR)/new_pair.h \
177 $(INCDIR)/nc_alloc.h \
178 $(INCDIR)/nc_panel.h \
179 $(INCDIR)/nc_string.h \
180 $(INCDIR)/nc_termios.h \
181 $(INCDIR)/nc_tparm.h \
182 $(INCDIR)/term_entry.h \
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530183 $(srcdir)/panel.priv.h \
184 $(srcdir)/panel.h
185
186tags:
Steve Kondikae271bc2015-11-15 02:50:53 +0100187 $(CTAGS) *.[ch]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530188
189@MAKE_UPPER_TAGS@TAGS:
Steve Kondikae271bc2015-11-15 02:50:53 +0100190@MAKE_UPPER_TAGS@ $(ETAGS) *.[ch]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530191
192mostlyclean ::
193 -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
194
195clean :: mostlyclean
196 -rm -f $(AUTO_SRC)
Steve Kondikae271bc2015-11-15 02:50:53 +0100197 -rm -rf .libs *.dSYM
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530198
199distclean :: clean
200 -rm -f Makefile
201
202realclean :: distclean
203
204###############################################################################
205# The remainder of this file is automatically generated during configuration
206###############################################################################