micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 1 | # $Id: Makefile.in,v 1.72 2021/07/03 15:45:33 tom Exp $ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 2 | ############################################################################## |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 3 | # Copyright 2020,2021 Thomas E. Dickey # |
| 4 | # Copyright 1998-2015,2018 Free Software Foundation, Inc. # |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 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 1996-on |
| 32 | # |
| 33 | # Makefile for form 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 Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 46 | SHELL = @SHELL@ |
| 47 | VPATH = @srcdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 48 | THIS = Makefile |
| 49 | |
| 50 | x = @EXEEXT@ |
| 51 | o = .@OBJEXT@ |
| 52 | |
| 53 | MODEL = @DFT_LWR_MODEL@ |
| 54 | DESTDIR = @DESTDIR@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 55 | top_srcdir = @top_srcdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 56 | srcdir = @srcdir@ |
| 57 | prefix = @prefix@ |
| 58 | exec_prefix = @exec_prefix@ |
| 59 | bindir = @bindir@ |
| 60 | libdir = @libdir@ |
| 61 | includedir = @includedir@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 62 | includesubdir = @includesubdir@ |
| 63 | |
| 64 | INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir) |
| 65 | |
| 66 | PACKAGE = @PACKAGE@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 67 | |
| 68 | LIBTOOL = @LIBTOOL@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 69 | LIBTOOL_OPTS = @LIBTOOL_OPTS@ @EXPORT_SYMS@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 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@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 75 | LT_UNDEF = @LT_UNDEF@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 76 | |
| 77 | INSTALL = @INSTALL@ |
| 78 | INSTALL_LIB = @INSTALL@ @INSTALL_LIB@ |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 79 | INSTALL_PROG = @INSTALL_PROGRAM@ @INSTALL_OPT_S@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 80 | INSTALL_DATA = @INSTALL_DATA@ |
| 81 | |
| 82 | AR = @AR@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 83 | ARFLAGS = @ARFLAGS@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 84 | AWK = @AWK@ |
| 85 | LD = @LD@ |
| 86 | LN_S = @LN_S@ |
| 87 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 88 | CTAGS = @CTAGS@ |
| 89 | ETAGS = @ETAGS@ |
| 90 | |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 91 | CC = @CC@ |
| 92 | CPP = @CPP@ |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 93 | CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 94 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 95 | INCDIR = $(top_srcdir)/include |
| 96 | BASE_DIR = $(top_srcdir)/ncurses |
| 97 | CPPFLAGS = -I$(BASE_DIR) -DHAVE_CONFIG_H -DBUILDING_FORM @CPPFLAGS@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 98 | |
| 99 | CCFLAGS = $(CPPFLAGS) $(CFLAGS) |
| 100 | |
| 101 | CFLAGS_LIBTOOL = $(CCFLAGS) |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 102 | CFLAGS_NORMAL = $(CCFLAGS) -DNCURSES_STATIC |
| 103 | CFLAGS_DEBUG = $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE |
| 104 | CFLAGS_PROFILE = $(CCFLAGS) -DNCURSES_STATIC -pg |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 105 | CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@ |
| 106 | |
| 107 | CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@) |
| 108 | |
| 109 | LINK = $(LIBTOOL_LINK) |
| 110 | LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@ |
| 111 | |
| 112 | SHLIB_DIRS = -L../lib |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 113 | SHLIB_LIST = $(SHLIB_DIRS) -lncurses@USE_LIB_SUFFIX@ @SHLIB_LIST@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 114 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 115 | RPATH_LIST = @RPATH_LIST@ |
| 116 | RESULTING_SYMS = @RESULTING_SYMS@ |
| 117 | VERSIONED_SYMS = @VERSIONED_SYMS@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 118 | MK_SHARED_LIB = @MK_SHARED_LIB@ |
| 119 | |
| 120 | NCURSES_MAJOR = @NCURSES_MAJOR@ |
| 121 | NCURSES_MINOR = @NCURSES_MINOR@ |
| 122 | REL_VERSION = @cf_cv_rel_version@ |
| 123 | ABI_VERSION = @cf_cv_abi_version@ |
| 124 | |
| 125 | RANLIB = @LIB_PREP@ |
| 126 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 127 | LIBRARIES = @Libs_To_Make@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 128 | |
| 129 | LINT = @LINT@ |
| 130 | LINT_OPTS = @LINT_OPTS@ |
| 131 | LINT_LIBS = -lform -lncurses @LIBS@ |
| 132 | |
| 133 | AUTO_SRC = \ |
| 134 | ../include/form.h |
| 135 | |
| 136 | ################################################################################ |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 137 | |
| 138 | @MAKE_PHONY@.PHONY : all |
| 139 | @MAKE_PHONY@.PHONY : clean |
| 140 | @MAKE_PHONY@.PHONY : distclean |
| 141 | @MAKE_PHONY@.PHONY : install |
| 142 | @MAKE_PHONY@.PHONY : install.libs |
| 143 | @MAKE_PHONY@.PHONY : libs |
| 144 | @MAKE_PHONY@.PHONY : mostlyclean |
| 145 | @MAKE_PHONY@.PHONY : realclean |
| 146 | @MAKE_PHONY@.PHONY : sources |
| 147 | @MAKE_PHONY@.PHONY : uninstall |
| 148 | @MAKE_PHONY@.PHONY : uninstall.libs |
| 149 | |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 150 | all \ |
| 151 | libs \ |
| 152 | install :: $(AUTO_SRC) $(LIBRARIES) |
| 153 | |
| 154 | sources : $(AUTO_SRC) |
| 155 | |
| 156 | $(DESTDIR)$(bindir) \ |
| 157 | $(DESTDIR)$(libdir) : |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 158 | mkdir -p $@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 159 | |
| 160 | # make copies to simplify include-paths while still keeping form's include |
| 161 | # file in this directory. |
| 162 | ../include/form.h : $(srcdir)/form.h |
| 163 | -rm -f $@ |
| 164 | cp $(srcdir)/form.h $@ |
| 165 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 166 | HEADER_DEPS = \ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 167 | ../include/curses.h \ |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 168 | ../include/eti.h \ |
| 169 | ../include/mf_common.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 \ |
| 183 | $(srcdir)/form.h \ |
| 184 | $(srcdir)/form.priv.h |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 185 | |
| 186 | tags: |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 187 | $(CTAGS) *.[ch] |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 188 | |
| 189 | @MAKE_UPPER_TAGS@TAGS: |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 190 | @MAKE_UPPER_TAGS@ $(ETAGS) *.[ch] |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 191 | |
| 192 | mostlyclean :: |
| 193 | -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace |
| 194 | |
| 195 | clean :: mostlyclean |
| 196 | -rm -f $(AUTO_SRC) |
| 197 | |
| 198 | distclean :: clean |
| 199 | -rm -f Makefile |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 200 | -rm -rf .libs *.dSYM |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 201 | |
| 202 | realclean :: distclean |
| 203 | |
| 204 | ../include/mf_common.h \ |
| 205 | ../include/eti.h : |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 206 | ( cd ../menu && $(MAKE) $@ ) |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 207 | |
| 208 | ############################################################################### |
| 209 | # The remainder of this file is automatically generated during configuration |
| 210 | ############################################################################### |