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. #
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: #
13 # The above copyright notice and this permission notice shall be included in #
14 # all copies or substantial portions of the Software. #
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. #
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 #
28 ##############################################################################
31 # The variable 'srcdir' refers to the source-distribution, and can be set with
32 # the configure script by "--srcdir=DIR".
34 # The rules are organized to produce the libraries for the configured models,
35 # and the programs with the configured default model.
37 # turn off _all_ suffix rules; we'll generate our own
43 CF_MFLAGS = @cf_cv_makeflags@
49 MODEL = ../@DFT_OBJ_SUBDIR@
53 exec_prefix = @exec_prefix@
57 includedir = @includedir@
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@
68 INSTALL_PROG = @INSTALL_PROGRAM@
69 INSTALL_DATA = @INSTALL_DATA@
78 INCDIR = $(srcdir)/../include
79 CPPFLAGS = -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@
81 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
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@
89 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
91 REL_VERSION = @cf_cv_rel_version@
92 ABI_VERSION = @cf_cv_abi_version@
93 LOCAL_LIBDIR = @top_builddir@/lib
96 LINK = @LINK_PROGS@ $(LIBTOOL_LINK) $(CC)
97 LDFLAGS = @EXTRA_LDFLAGS@ \
98 @TINFO_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@
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@
106 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
109 LINT_OPTS = @LINT_OPTS@
110 LINT_LIBS = -lncurses@LIB_SUFFIX@ @LIBS@
114 # Default library, for linking applications
115 DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
117 ################################################################################
122 install: install.tack
123 uninstall: uninstall.tack
125 # this line simplifies the configure-script
130 EDITARGS = $(DESTDIR)$(mandir) $(srcdir) $(srcdir)/*.[0-9]*
132 install.tack: $(PROGS) \
133 $(DESTDIR)$(bindir) \
135 $(LIBTOOL_INSTALL) $(INSTALL_PROG) tack$x $(DESTDIR)$(bindir)/tack$x
136 sh ../edit_man.sh normal installing $(EDITARGS)
139 -@$(LIBTOOL_UNINSTALL) rm -f $(DESTDIR)$(bindir)/tack$x
140 -sh ../edit_man.sh normal removing $(EDITARGS)
142 $(DESTDIR)$(bindir) \
143 $(DESTDIR)$(mandir) :
144 sh $(srcdir)/../mkinstalldirs $@
147 # Rules for building tack
168 tack$x: $(DEPS_TACK) $(DEPS_CURSES)
169 @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
172 # Utility productions start here
178 @MAKE_UPPER_TAGS@TAGS:
179 @MAKE_UPPER_TAGS@ etags *.[ch]
182 -rm -f core tags TAGS *~ *.bak *.i *.atac trace
185 -sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
192 realclean :: distclean
194 tack.tar: Makefile.in modules *.[ch] tack.1 HISTORY COPYING
195 tar -cvf tack.tar Makefile.in modules *.[ch] tack.1 HISTORY COPYING
197 # These rules are used to allow "make -n" to work on a clean directory-tree
198 ../include/hashsize.h \
199 ../include/parametrized.h \
201 cd ../include; $(MAKE) $(CF_MFLAGS)
204 cd ../ncurses; $(MAKE) $(CF_MFLAGS)
207 $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/*.c $(LINT_LIBS)
209 ###############################################################################
210 # The remainder of this file is automatically generated during configuration
211 ###############################################################################