1 # $Id: Makefile.in,v 1.9 1999/09/18 23:33:48 tom Exp $
4 # The variable 'srcdir' refers to the source-distribution, and can be set with
5 # the configure script by "--srcdir=DIR".
7 # The rules are organized to produce the libraries for the configured models,
8 # and the programs with the configured default model.
10 # turn off _all_ suffix rules; we'll generate our own
16 CF_MFLAGS = @cf_cv_makeflags@
20 MODEL = ../@DFT_OBJ_SUBDIR@
21 INSTALL_PREFIX = @INSTALL_PREFIX@
24 exec_prefix = @exec_prefix@
27 includedir = @includedir@
30 ticdir = $(datadir)/terminfo
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 INCDIR = $(srcdir)/../include
42 CPPFLAGS = -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@
44 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
46 CFLAGS_NORMAL = $(CCFLAGS)
47 CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
48 CFLAGS_PROFILE = $(CCFLAGS) -pg
49 CFLAGS_SHARED = $(CCFLAGS) # @CC_SHARED_OPTS@
51 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
55 LDFLAGS = @EXTRA_LDFLAGS@ \
56 @PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@
58 LDFLAGS_NORMAL = $(LDFLAGS)
59 LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
60 LDFLAGS_PROFILE = $(LDFLAGS) -pg
61 LDFLAGS_SHARED = $(LDFLAGS) @CC_SHARED_OPTS@ # @LD_SHARED_OPTS@
63 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
66 LINT_OPTS = @LINT_OPTS@
67 LINT_LIBS = -lncurses @LIBS@
71 # Default library, for linking applications
72 DEPS_CURSES = ../lib/libncurses@DFT_DEP_SUFFIX@
74 ################################################################################
80 uninstall: uninstall.tack
82 # this line simplifies the configure-script
86 install.tack: $(PROGS) $(INSTALL_PREFIX)$(bindir)
87 $(INSTALL_PROGRAM) tack$x $(INSTALL_PREFIX)$(bindir)/tack$x
90 -@rm -f $(INSTALL_PREFIX)$(bindir)/tack$x
92 $(INSTALL_PREFIX)$(bindir) :
93 $(srcdir)/../mkinstalldirs $@
96 # Rules for building tack
117 tack$x: $(DEPS_TACK) $(DEPS_CURSES)
118 @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
121 # Utility productions start here
131 -rm -f tags TAGS do.tic *~
139 realclean :: distclean
141 tack.tar: Makefile.in modules *.[ch] tack.1 HISTORY COPYING
142 tar -cvf tack.tar Makefile.in modules *.[ch] tack.1 HISTORY COPYING
144 # These rules are used to allow "make -n" to work on a clean directory-tree
145 ../include/hashsize.h \
146 ../include/parametrized.h \
148 cd ../include; $(MAKE) $(CF_MFLAGS)
151 cd ../ncurses; $(MAKE) $(CF_MFLAGS)
154 $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/clear.c $(LINT_LIBS)
156 ###############################################################################
157 # The remainder of this file is automatically generated during configuration
158 ###############################################################################