]> ncurses.scripts.mit.edu Git - ncurses.git/blob - tack/Makefile.in
ncurses 5.6
[ncurses.git] / tack / Makefile.in
1 # $Id: Makefile.in,v 1.38 2006/12/17 15:58:32 tom Exp $
2 ##############################################################################
3 # Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.                #
4 #                                                                            #
5 # Permission is hereby granted, free of charge, to any person obtaining a    #
6 # copy of this software and associated documentation files (the "Software"), #
7 # to deal in the Software without restriction, including without limitation  #
8 # the rights to use, copy, modify, merge, publish, distribute, distribute    #
9 # with modifications, sublicense, and/or sell copies of the Software, and to #
10 # permit persons to whom the Software is furnished to do so, subject to the  #
11 # following conditions:                                                      #
12 #                                                                            #
13 # The above copyright notice and this permission notice shall be included in #
14 # all copies or substantial portions of the Software.                        #
15 #                                                                            #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
19 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
22 # DEALINGS IN THE SOFTWARE.                                                  #
23 #                                                                            #
24 # Except as contained in this notice, the name(s) of the above copyright     #
25 # holders shall not be used in advertising or otherwise to promote the sale, #
26 # use or other dealings in this Software without prior written               #
27 # authorization.                                                             #
28 ##############################################################################
29 # Makefile for tack
30 #
31 # The variable 'srcdir' refers to the source-distribution, and can be set with
32 # the configure script by "--srcdir=DIR".
33 #
34 # The rules are organized to produce the libraries for the configured models,
35 # and the programs with the configured default model.
36
37 # turn off _all_ suffix rules; we'll generate our own
38 .SUFFIXES:
39
40 SHELL           = /bin/sh
41 THIS            = Makefile
42
43 CF_MFLAGS       = @cf_cv_makeflags@
44 @SET_MAKE@
45
46 x               = @EXEEXT@
47 o               = .@OBJEXT@
48
49 MODEL           = ../@DFT_OBJ_SUBDIR@
50 DESTDIR         = @DESTDIR@
51 srcdir          = @srcdir@
52 prefix          = @prefix@
53 exec_prefix     = @exec_prefix@
54 bindir          = @bindir@
55 libdir          = @libdir@
56 mandir          = @mandir@
57 includedir      = @includedir@
58 datadir         = @datadir@
59
60 LIBTOOL         = @LIBTOOL@
61 LIBTOOL_CLEAN   = @LIB_CLEAN@
62 LIBTOOL_COMPILE = @LIB_COMPILE@
63 LIBTOOL_LINK    = @LIB_LINK@
64 LIBTOOL_INSTALL = @LIB_INSTALL@
65 LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
66
67 INSTALL         = @INSTALL@
68 INSTALL_PROG    = @INSTALL_PROGRAM@
69 INSTALL_DATA    = @INSTALL_DATA@
70
71 AWK             = @AWK@
72 LN_S            = @LN_S@
73
74 CC              = @CC@
75 CPP             = @CPP@
76 CFLAGS          = @CFLAGS@
77
78 INCDIR          = $(srcdir)/../include
79 CPPFLAGS        = -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@
80
81 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
82
83 CFLAGS_LIBTOOL  = $(CCFLAGS)
84 CFLAGS_NORMAL   = $(CCFLAGS)
85 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
86 CFLAGS_PROFILE  = $(CCFLAGS) -pg
87 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
88
89 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
90
91 REL_VERSION     = @cf_cv_rel_version@
92 ABI_VERSION     = @cf_cv_abi_version@
93 LOCAL_LIBDIR    = @top_builddir@/lib
94
95 LD              = @LD@
96 LINK            = @LINK_PROGS@ $(LIBTOOL_LINK) $(CC)
97 LDFLAGS         = @EXTRA_LDFLAGS@ \
98                 @TINFO_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@
99
100 LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
101 LDFLAGS_NORMAL  = $(LDFLAGS) $(CFLAGS_NORMAL)
102 LDFLAGS_DEBUG   = $(LDFLAGS) $(CFLAGS_DEBUG)
103 LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
104 LDFLAGS_SHARED  = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
105
106 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
107
108 LINT            = @LINT@
109 LINT_OPTS       = @LINT_OPTS@
110 LINT_LIBS       = -lncurses@LIB_SUFFIX@ @LIBS@
111
112 PROGS = tack$x
113
114 # Default library, for linking applications
115 DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
116
117 ################################################################################
118 all:    $(PROGS)
119
120 sources:
121
122 install: install.tack
123 uninstall: uninstall.tack
124
125 # this line simplifies the configure-script
126 libs \
127 install.libs \
128 uninstall.libs:
129
130 EDITARGS = $(DESTDIR)$(mandir) $(srcdir) $(srcdir)/*.[0-9]*
131
132 install.tack: $(PROGS) \
133         $(DESTDIR)$(bindir) \
134         $(DESTDIR)$(mandir)
135         $(LIBTOOL_INSTALL) $(INSTALL_PROG) tack$x $(DESTDIR)$(bindir)/tack$x
136         sh ../edit_man.sh normal installing $(EDITARGS)
137
138 uninstall.tack:
139         -@$(LIBTOOL_UNINSTALL) rm -f $(DESTDIR)$(bindir)/tack$x
140         -sh ../edit_man.sh normal removing $(EDITARGS)
141
142 $(DESTDIR)$(bindir) \
143 $(DESTDIR)$(mandir) :
144         sh $(srcdir)/../mkinstalldirs $@
145
146 #
147 # Rules for building tack
148 #
149
150 DEPS_TACK = \
151         $(MODEL)/ansi$o \
152         $(MODEL)/charset$o \
153         $(MODEL)/color$o \
154         $(MODEL)/control$o \
155         $(MODEL)/crum$o \
156         $(MODEL)/edit$o \
157         $(MODEL)/fun$o \
158         $(MODEL)/init$o \
159         $(MODEL)/menu$o \
160         $(MODEL)/modes$o \
161         $(MODEL)/output$o \
162         $(MODEL)/pad$o \
163         $(MODEL)/scan$o \
164         $(MODEL)/sync$o \
165         $(MODEL)/sysdep$o \
166         $(MODEL)/tack$o
167
168 tack$x: $(DEPS_TACK) $(DEPS_CURSES)
169         @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
170
171 #
172 # Utility productions start here
173 #
174
175 tags:
176         ctags *.[ch]
177
178 @MAKE_UPPER_TAGS@TAGS:
179 @MAKE_UPPER_TAGS@       etags *.[ch]
180
181 mostlyclean ::
182         -rm -f core tags TAGS *~ *.bak *.i *.atac trace
183
184 clean :: mostlyclean
185         -sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
186         -rm -f $(PROGS)
187         -rm -rf .libs
188
189 distclean :: clean
190         -rm -f Makefile
191
192 realclean :: distclean
193
194 tack.tar: Makefile.in modules *.[ch] tack.1 HISTORY COPYING
195         tar -cvf tack.tar Makefile.in modules *.[ch] tack.1 HISTORY COPYING
196
197 # These rules are used to allow "make -n" to work on a clean directory-tree
198 ../include/hashsize.h \
199 ../include/parametrized.h \
200 ../include/term.h :
201         cd ../include; $(MAKE) $(CF_MFLAGS)
202
203 $(DEPS_CURSES) :
204         cd ../ncurses; $(MAKE) $(CF_MFLAGS)
205
206 lint:
207         $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/*.c $(LINT_LIBS)
208
209 ###############################################################################
210 # The remainder of this file is automatically generated during configuration
211 ###############################################################################