]> ncurses.scripts.mit.edu Git - ncurses.git/blob - tack/Makefile.in
ncurses 5.1
[ncurses.git] / tack / Makefile.in
1 # $Id: Makefile.in,v 1.19 2000/07/08 01:56:35 tom Exp $
2 # Makefile for tack
3 #
4 # The variable 'srcdir' refers to the source-distribution, and can be set with
5 # the configure script by "--srcdir=DIR".
6 #
7 # The rules are organized to produce the libraries for the configured models,
8 # and the programs with the configured default model.
9
10 # turn off _all_ suffix rules; we'll generate our own
11 .SUFFIXES:
12
13 SHELL           = /bin/sh
14 THIS            = Makefile
15
16 CF_MFLAGS       = @cf_cv_makeflags@
17 @SET_MAKE@
18 x               = @PROG_EXT@
19
20 MODEL           = ../@DFT_OBJ_SUBDIR@
21 INSTALL_PREFIX  = @INSTALL_PREFIX@
22 srcdir          = @srcdir@
23 prefix          = @prefix@
24 exec_prefix     = @exec_prefix@
25 bindir          = @bindir@
26 libdir          = @libdir@
27 mandir          = @mandir@/man1
28 includedir      = @includedir@
29 datadir         = @datadir@
30
31 ticdir          = $(datadir)/terminfo
32
33 INSTALL         = @INSTALL@
34 INSTALL_PROGRAM = @INSTALL_PROGRAM@
35 INSTALL_DATA    = @INSTALL_DATA@
36
37 AWK             = @AWK@
38 LN_S            = @LN_S@
39
40 CC              = @CC@
41 CPP             = @CPP@
42 CFLAGS          = @CFLAGS@
43
44 INCDIR          = $(srcdir)/../include
45 CPPFLAGS        = -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@
46
47 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
48
49 CFLAGS_NORMAL   = $(CCFLAGS)
50 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
51 CFLAGS_PROFILE  = $(CCFLAGS) -pg
52 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
53
54 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
55
56 LD              = @LD@
57 LINK            = @LINK_PROGS@ $(CC)
58 LDFLAGS         = @EXTRA_LDFLAGS@ \
59                 @PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@
60
61 LDFLAGS_NORMAL  = $(LDFLAGS)
62 LDFLAGS_DEBUG   = $(LDFLAGS) @CC_G_OPT@
63 LDFLAGS_PROFILE = $(LDFLAGS) -pg
64 LDFLAGS_SHARED  = $(LDFLAGS) @LD_SHARED_OPTS@
65
66 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
67
68 LINT            = @LINT@
69 LINT_OPTS       = @LINT_OPTS@
70 LINT_LIBS       = -lncurses@LIB_SUFFIX@ @LIBS@
71
72 PROGS = tack$x
73
74 # Default library, for linking applications
75 DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
76
77 ################################################################################
78 all:    $(PROGS)
79
80 sources:
81
82 install: install.tack
83 uninstall: uninstall.tack
84
85 # this line simplifies the configure-script
86 libs \
87 install.libs \
88 uninstall.libs:
89
90 install.tack: $(PROGS) \
91         $(INSTALL_PREFIX)$(bindir) \
92         $(INSTALL_PREFIX)$(mandir)
93         $(INSTALL_PROGRAM) tack$x $(INSTALL_PREFIX)$(bindir)/tack$x
94         $(INSTALL_DATA) $(srcdir)/tack.1 $(INSTALL_PREFIX)$(mandir)/tack.1
95
96 uninstall.tack:
97         -@rm -f $(INSTALL_PREFIX)$(bindir)/tack$x
98         -@rm -f $(INSTALL_PREFIX)$(mandir)/tack.1
99
100 $(INSTALL_PREFIX)$(bindir) \
101 $(INSTALL_PREFIX)$(mandir) :
102         $(srcdir)/../mkinstalldirs $@
103
104 #
105 # Rules for building tack
106 #
107
108 DEPS_TACK = \
109         $(MODEL)/ansi.o \
110         $(MODEL)/charset.o \
111         $(MODEL)/color.o \
112         $(MODEL)/control.o \
113         $(MODEL)/crum.o \
114         $(MODEL)/edit.o \
115         $(MODEL)/fun.o \
116         $(MODEL)/init.o \
117         $(MODEL)/menu.o \
118         $(MODEL)/modes.o \
119         $(MODEL)/output.o \
120         $(MODEL)/pad.o \
121         $(MODEL)/scan.o \
122         $(MODEL)/sync.o \
123         $(MODEL)/sysdep.o \
124         $(MODEL)/tack.o
125
126 tack$x: $(DEPS_TACK) $(DEPS_CURSES)
127         @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
128
129 #
130 # Utility productions start here
131 #
132
133 tags:
134         ctags *.[ch]
135
136 TAGS:
137         etags *.[ch]
138
139 clean ::
140         -rm -f tags TAGS do.tic *~
141         -rm -f $(PROGS)
142
143 distclean :: clean
144         -rm -f Makefile
145
146 mostlyclean :: clean
147
148 realclean :: distclean
149
150 tack.tar: Makefile.in modules *.[ch] tack.1 HISTORY COPYING
151         tar -cvf tack.tar Makefile.in modules *.[ch] tack.1 HISTORY COPYING
152
153 # These rules are used to allow "make -n" to work on a clean directory-tree
154 ../include/hashsize.h \
155 ../include/parametrized.h \
156 ../include/term.h :
157         cd ../include; $(MAKE) $(CF_MFLAGS)
158
159 $(DEPS_CURSES) :
160         cd ../ncurses; $(MAKE) $(CF_MFLAGS)
161
162 lint:
163         $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/*.c $(LINT_LIBS)
164
165 ###############################################################################
166 # The remainder of this file is automatically generated during configuration
167 ###############################################################################