1 # $Id: Makefile.in,v 1.27 2001/12/08 18:48:01 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@
24 exec_prefix = @exec_prefix@
27 mandir = @mandir@/man1
28 includedir = @includedir@
34 INSTALL_PROGRAM = @INSTALL_PROGRAM@
35 INSTALL_DATA = @INSTALL_DATA@
44 INCDIR = $(srcdir)/../include
45 CPPFLAGS = -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@
47 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
49 CFLAGS_LIBTOOL = $(CCFLAGS)
50 CFLAGS_NORMAL = $(CCFLAGS)
51 CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
52 CFLAGS_PROFILE = $(CCFLAGS) -pg
53 CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
55 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
58 LINK = @LINK_PROGS@ $(LIBTOOL) $(CC)
59 LDFLAGS = @EXTRA_LDFLAGS@ \
60 @PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@
62 LDFLAGS_LIBTOOL = $(LDFLAGS)
63 LDFLAGS_NORMAL = $(LDFLAGS)
64 LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
65 LDFLAGS_PROFILE = $(LDFLAGS) -pg
66 LDFLAGS_SHARED = $(LDFLAGS) @LD_SHARED_OPTS@
68 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
71 LINT_OPTS = @LINT_OPTS@
72 LINT_LIBS = -lncurses@LIB_SUFFIX@ @LIBS@
76 # Default library, for linking applications
77 DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
79 ################################################################################
85 uninstall: uninstall.tack
87 # this line simplifies the configure-script
92 install.tack: $(PROGS) \
95 $(LIBTOOL) $(INSTALL_PROGRAM) tack$x $(DESTDIR)$(bindir)/tack$x
96 $(INSTALL_DATA) $(srcdir)/tack.1 $(DESTDIR)$(mandir)/tack.1
99 -@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/tack$x
100 -@rm -f $(DESTDIR)$(mandir)/tack.1
102 $(DESTDIR)$(bindir) \
103 $(DESTDIR)$(mandir) :
104 sh $(srcdir)/../mkinstalldirs $@
107 # Rules for building tack
128 tack$x: $(DEPS_TACK) $(DEPS_CURSES)
129 @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
132 # Utility productions start here
138 @MAKE_UPPER_TAGS@TAGS:
139 @MAKE_UPPER_TAGS@ etags *.[ch]
142 -rm -f core tags TAGS *~ *.bak *.i *.atac trace
151 realclean :: distclean
153 tack.tar: Makefile.in modules *.[ch] tack.1 HISTORY COPYING
154 tar -cvf tack.tar Makefile.in modules *.[ch] tack.1 HISTORY COPYING
156 # These rules are used to allow "make -n" to work on a clean directory-tree
157 ../include/hashsize.h \
158 ../include/parametrized.h \
160 cd ../include; $(MAKE) $(CF_MFLAGS)
163 cd ../ncurses; $(MAKE) $(CF_MFLAGS)
166 $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/*.c $(LINT_LIBS)
168 ###############################################################################
169 # The remainder of this file is automatically generated during configuration
170 ###############################################################################