xref: /freebsd/contrib/ncurses/panel/Makefile.in (revision 21817992b3314c908ab50f0bb88d2ee750b9c4ac)
1*21817992SBaptiste Daroussin# $Id: Makefile.in,v 1.76 2021/07/03 15:45:33 tom Exp $
20e3d5408SPeter Wemm##############################################################################
3*21817992SBaptiste Daroussin# Copyright 2020,2021 Thomas E. Dickey                                       #
4e1865124SBaptiste Daroussin# Copyright 1998-2015,2018 Free Software Foundation, Inc.                    #
50e3d5408SPeter Wemm#                                                                            #
60e3d5408SPeter Wemm# Permission is hereby granted, free of charge, to any person obtaining a    #
70e3d5408SPeter Wemm# copy of this software and associated documentation files (the "Software"), #
80e3d5408SPeter Wemm# to deal in the Software without restriction, including without limitation  #
90e3d5408SPeter Wemm# the rights to use, copy, modify, merge, publish, distribute, distribute    #
100e3d5408SPeter Wemm# with modifications, sublicense, and/or sell copies of the Software, and to #
110e3d5408SPeter Wemm# permit persons to whom the Software is furnished to do so, subject to the  #
120e3d5408SPeter Wemm# following conditions:                                                      #
130e3d5408SPeter Wemm#                                                                            #
140e3d5408SPeter Wemm# The above copyright notice and this permission notice shall be included in #
150e3d5408SPeter Wemm# all copies or substantial portions of the Software.                        #
160e3d5408SPeter Wemm#                                                                            #
170e3d5408SPeter Wemm# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
180e3d5408SPeter Wemm# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
190e3d5408SPeter Wemm# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
200e3d5408SPeter Wemm# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
210e3d5408SPeter Wemm# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
220e3d5408SPeter Wemm# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
230e3d5408SPeter Wemm# DEALINGS IN THE SOFTWARE.                                                  #
240e3d5408SPeter Wemm#                                                                            #
250e3d5408SPeter Wemm# Except as contained in this notice, the name(s) of the above copyright     #
260e3d5408SPeter Wemm# holders shall not be used in advertising or otherwise to promote the sale, #
270e3d5408SPeter Wemm# use or other dealings in this Software without prior written               #
280e3d5408SPeter Wemm# authorization.                                                             #
290e3d5408SPeter Wemm##############################################################################
300e3d5408SPeter Wemm#
315ca44d1cSRong-En Fan# Author: Thomas E. Dickey 1996-on
320e3d5408SPeter Wemm#
330e3d5408SPeter Wemm# Makefile for panels source code.
340e3d5408SPeter Wemm#
350e3d5408SPeter Wemm# This makes the following:
360e3d5408SPeter Wemm#	libraries (normal/debug/profile/shared)
370e3d5408SPeter Wemm#
380e3d5408SPeter Wemm# The variable 'srcdir' refers to the source-distribution, and can be set with
390e3d5408SPeter Wemm# the configure script by "--srcdir=DIR".
400e3d5408SPeter Wemm#
410e3d5408SPeter Wemm# The rules are organized to produce the libraries for the configured models,
420e3d5408SPeter Wemm
430e3d5408SPeter Wemm# turn off _all_ suffix rules; we'll generate our own
440e3d5408SPeter Wemm.SUFFIXES:
450e3d5408SPeter Wemm
46aae38d10SBaptiste DaroussinSHELL		= @SHELL@
4706bfebdeSXin LIVPATH		= @srcdir@
480e3d5408SPeter WemmTHIS		= Makefile
490e3d5408SPeter Wemm
504a1a9510SRong-En Fanx		= @EXEEXT@
514a1a9510SRong-En Fano		= .@OBJEXT@
524a1a9510SRong-En Fan
530e3d5408SPeter WemmMODEL		= @DFT_LWR_MODEL@
5418259542SPeter WemmDESTDIR		= @DESTDIR@
55aae38d10SBaptiste Daroussintop_srcdir	= @top_srcdir@
560e3d5408SPeter Wemmsrcdir		= @srcdir@
570e3d5408SPeter Wemmprefix		= @prefix@
580e3d5408SPeter Wemmexec_prefix	= @exec_prefix@
5939f2269fSPeter Wemmbindir		= @bindir@
600e3d5408SPeter Wemmlibdir		= @libdir@
610e3d5408SPeter Wemmincludedir	= @includedir@
6273f0a83dSXin LIdatarootdir	= @datarootdir@
630e3d5408SPeter Wemmdatadir		= @datadir@
6473f0a83dSXin LIincludesubdir	= @includesubdir@
6573f0a83dSXin LI
6673f0a83dSXin LIINCLUDEDIR	= $(DESTDIR)$(includedir)$(includesubdir)
670e3d5408SPeter Wemm
68aae38d10SBaptiste DaroussinPACKAGE		= @PACKAGE@
69aae38d10SBaptiste Daroussin
707a69bbfbSPeter WemmLIBTOOL		= @LIBTOOL@
71aae38d10SBaptiste DaroussinLIBTOOL_OPTS	= @LIBTOOL_OPTS@ @EXPORT_SYMS@
724a1a9510SRong-En FanLIBTOOL_CLEAN	= @LIB_CLEAN@
734a1a9510SRong-En FanLIBTOOL_COMPILE	= @LIB_COMPILE@
744a1a9510SRong-En FanLIBTOOL_LINK	= @LIB_LINK@
754a1a9510SRong-En FanLIBTOOL_INSTALL	= @LIB_INSTALL@
764a1a9510SRong-En FanLIBTOOL_UNINSTALL = @LIB_UNINSTALL@
7706bfebdeSXin LILT_UNDEF	= @LT_UNDEF@
787a69bbfbSPeter Wemm
790e3d5408SPeter WemmINSTALL		= @INSTALL@
800e3d5408SPeter WemmINSTALL_LIB	= @INSTALL@ @INSTALL_LIB@
81aae38d10SBaptiste DaroussinINSTALL_PROG	= @INSTALL_PROGRAM@ @INSTALL_OPT_S@
820e3d5408SPeter WemmINSTALL_DATA	= @INSTALL_DATA@
830e3d5408SPeter Wemm
840e3d5408SPeter WemmAR		= @AR@
8506bfebdeSXin LIARFLAGS		= @ARFLAGS@
860e3d5408SPeter WemmAWK		= @AWK@
870e3d5408SPeter WemmLD		= @LD@
880e3d5408SPeter WemmLN_S		= @LN_S@
890e3d5408SPeter Wemm
9006bfebdeSXin LICTAGS		= @CTAGS@
9106bfebdeSXin LIETAGS		= @ETAGS@
9206bfebdeSXin LI
930e3d5408SPeter WemmCC		= @CC@
9415589c42SPeter WemmCPP		= @CPP@
957a656419SBaptiste DaroussinCFLAGS		= @CFLAGS@ @EXTRA_CFLAGS@
960e3d5408SPeter Wemm
977a656419SBaptiste DaroussinINCDIR		= $(top_srcdir)/include
987a656419SBaptiste DaroussinBASE_DIR 	= $(top_srcdir)/ncurses
997a656419SBaptiste DaroussinCPPFLAGS	= -I$(BASE_DIR) -DHAVE_CONFIG_H -DBUILDING_PANEL @CPPFLAGS@
1000e3d5408SPeter Wemm
1010e3d5408SPeter WemmCCFLAGS		= $(CPPFLAGS) $(CFLAGS)
1020e3d5408SPeter Wemm
1037a69bbfbSPeter WemmCFLAGS_LIBTOOL	= $(CCFLAGS)
1047a656419SBaptiste DaroussinCFLAGS_NORMAL	= $(CCFLAGS) -DNCURSES_STATIC
1057a656419SBaptiste DaroussinCFLAGS_DEBUG	= $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE
1067a656419SBaptiste DaroussinCFLAGS_PROFILE	= $(CCFLAGS) -DNCURSES_STATIC -pg
1070e3d5408SPeter WemmCFLAGS_SHARED	= $(CCFLAGS) @CC_SHARED_OPTS@
1080e3d5408SPeter Wemm
1090e3d5408SPeter WemmCFLAGS_DEFAULT	= $(CFLAGS_@DFT_UPR_MODEL@)
1100e3d5408SPeter Wemm
1115ca44d1cSRong-En FanLINK		= $(LIBTOOL_LINK)
1120e3d5408SPeter WemmLDFLAGS		= @LDFLAGS@ @LD_MODEL@ @LIBS@
1130e3d5408SPeter Wemm
11439f2269fSPeter WemmSHLIB_DIRS	= -L../lib
115aae38d10SBaptiste DaroussinSHLIB_LIST	= $(SHLIB_DIRS) -lncurses@USE_LIB_SUFFIX@ @SHLIB_LIST@
1160e3d5408SPeter Wemm
11773f0a83dSXin LIRPATH_LIST	= @RPATH_LIST@
118aae38d10SBaptiste DaroussinRESULTING_SYMS	= @RESULTING_SYMS@
119aae38d10SBaptiste DaroussinVERSIONED_SYMS	= @VERSIONED_SYMS@
1200e3d5408SPeter WemmMK_SHARED_LIB	= @MK_SHARED_LIB@
1210e3d5408SPeter Wemm
1227a69bbfbSPeter WemmNCURSES_MAJOR	= @NCURSES_MAJOR@
1237a69bbfbSPeter WemmNCURSES_MINOR	= @NCURSES_MINOR@
1240e3d5408SPeter WemmREL_VERSION	= @cf_cv_rel_version@
1250e3d5408SPeter WemmABI_VERSION	= @cf_cv_abi_version@
1260e3d5408SPeter Wemm
1274a1a9510SRong-En FanRANLIB		= @LIB_PREP@
1280e3d5408SPeter Wemm
12973f0a83dSXin LILIBRARIES	= @Libs_To_Make@
1300e3d5408SPeter Wemm
1310e3d5408SPeter WemmLINT		= @LINT@
1320e3d5408SPeter WemmLINT_OPTS	= @LINT_OPTS@
1330e3d5408SPeter WemmLINT_LIBS	= -lpanel -lncurses @LIBS@
1340e3d5408SPeter Wemm
1350e3d5408SPeter WemmAUTO_SRC	= \
1360e3d5408SPeter Wemm		../include/panel.h
1370e3d5408SPeter Wemm
1380e3d5408SPeter Wemm################################################################################
139*21817992SBaptiste Daroussin
140*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	all
141*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	clean
142*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	distclean
143*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	install
144*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	install.libs
145*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	libs
146*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	mostlyclean
147*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	realclean
148*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	sources
149*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	uninstall
150*21817992SBaptiste Daroussin@MAKE_PHONY@.PHONY :	uninstall.libs
151*21817992SBaptiste Daroussin
15215589c42SPeter Wemmall \
15315589c42SPeter Wemmlibs \
15415589c42SPeter Wemminstall ::	$(AUTO_SRC) $(LIBRARIES)
1550e3d5408SPeter Wemm
1560e3d5408SPeter Wemmsources:	$(AUTO_SRC)
1570e3d5408SPeter Wemm
15839f2269fSPeter Wemm$(DESTDIR)$(bindir) \
15918259542SPeter Wemm$(DESTDIR)$(libdir) :
16006bfebdeSXin LI	mkdir -p $@
1610e3d5408SPeter Wemm
1620e3d5408SPeter Wemm# make a copy to simplify include-paths while still keeping panel's include
1630e3d5408SPeter Wemm# file in this directory.
1640e3d5408SPeter Wemm../include/panel.h : $(srcdir)/panel.h
1650e3d5408SPeter Wemm	-rm -f $@
1660e3d5408SPeter Wemm	cp $(srcdir)/panel.h $@
1670e3d5408SPeter Wemm
16806bfebdeSXin LIHEADER_DEPS = \
1697a656419SBaptiste Daroussin	../include/curses.h \
1707a656419SBaptiste Daroussin	../include/ncurses_cfg.h \
1717a656419SBaptiste Daroussin	../include/ncurses_def.h \
1727a656419SBaptiste Daroussin	../include/ncurses_dll.h \
1737a656419SBaptiste Daroussin	../include/term.h \
1747a656419SBaptiste Daroussin	../include/unctrl.h \
1757a656419SBaptiste Daroussin	$(BASE_DIR)/curses.priv.h \
1767a656419SBaptiste Daroussin	$(BASE_DIR)/new_pair.h \
1777a656419SBaptiste Daroussin	$(INCDIR)/nc_alloc.h \
1787a656419SBaptiste Daroussin	$(INCDIR)/nc_panel.h \
1797a656419SBaptiste Daroussin	$(INCDIR)/nc_string.h \
1807a656419SBaptiste Daroussin	$(INCDIR)/nc_termios.h \
1817a656419SBaptiste Daroussin	$(INCDIR)/nc_tparm.h \
1827a656419SBaptiste Daroussin	$(INCDIR)/term_entry.h \
1830e3d5408SPeter Wemm	$(srcdir)/panel.priv.h \
1840e3d5408SPeter Wemm	$(srcdir)/panel.h
1850e3d5408SPeter Wemm
1860e3d5408SPeter Wemmtags:
18706bfebdeSXin LI	$(CTAGS) *.[ch]
1880e3d5408SPeter Wemm
18918259542SPeter Wemm@MAKE_UPPER_TAGS@TAGS:
19006bfebdeSXin LI@MAKE_UPPER_TAGS@	$(ETAGS) *.[ch]
1910e3d5408SPeter Wemm
1920e3d5408SPeter Wemmmostlyclean ::
19339f2269fSPeter Wemm	-rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
1940e3d5408SPeter Wemm
1950e3d5408SPeter Wemmclean :: mostlyclean
1960e3d5408SPeter Wemm	-rm -f $(AUTO_SRC)
197aae38d10SBaptiste Daroussin	-rm -rf .libs *.dSYM
1980e3d5408SPeter Wemm
1990e3d5408SPeter Wemmdistclean :: clean
2000e3d5408SPeter Wemm	-rm -f Makefile
2010e3d5408SPeter Wemm
2020e3d5408SPeter Wemmrealclean :: distclean
2030e3d5408SPeter Wemm
2040e3d5408SPeter Wemm###############################################################################
2050e3d5408SPeter Wemm# The remainder of this file is automatically generated during configuration
2060e3d5408SPeter Wemm###############################################################################
207