]> ncurses.scripts.mit.edu Git - ncurses.git/blob - tack/Makefile.in
ncurses 5.0
[ncurses.git] / tack / Makefile.in
1 # $Id: Makefile.in,v 1.9 1999/09/18 23:33:48 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 includedir      = @includedir@
28 datadir         = @datadir@
29
30 ticdir          = $(datadir)/terminfo
31
32 INSTALL         = @INSTALL@
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@
34
35 AWK             = @AWK@
36 LN_S            = @LN_S@
37
38 CC              = @CC@
39 CFLAGS          = @CFLAGS@
40
41 INCDIR          = $(srcdir)/../include
42 CPPFLAGS        = -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@
43
44 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
45
46 CFLAGS_NORMAL   = $(CCFLAGS)
47 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
48 CFLAGS_PROFILE  = $(CCFLAGS) -pg
49 CFLAGS_SHARED   = $(CCFLAGS) # @CC_SHARED_OPTS@
50
51 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
52
53 LD              = @LD@
54 LINK            = $(CC)
55 LDFLAGS         = @EXTRA_LDFLAGS@ \
56                 @PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@
57
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@
62
63 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
64
65 LINT            = @LINT@
66 LINT_OPTS       = @LINT_OPTS@
67 LINT_LIBS       = -lncurses @LIBS@
68
69 PROGS = tack$x
70
71 # Default library, for linking applications
72 DEPS_CURSES = ../lib/libncurses@DFT_DEP_SUFFIX@
73
74 ################################################################################
75 all:    $(PROGS)
76
77 sources:
78
79 install: install.tack
80 uninstall: uninstall.tack
81
82 # this line simplifies the configure-script
83 install.libs:
84 uninstall.libs:
85
86 install.tack: $(PROGS) $(INSTALL_PREFIX)$(bindir)
87         $(INSTALL_PROGRAM) tack$x    $(INSTALL_PREFIX)$(bindir)/tack$x
88
89 uninstall.tack:
90         -@rm -f $(INSTALL_PREFIX)$(bindir)/tack$x
91
92 $(INSTALL_PREFIX)$(bindir) :
93         $(srcdir)/../mkinstalldirs $@
94
95 #
96 # Rules for building tack
97 #
98
99 DEPS_TACK = \
100         $(MODEL)/ansi.o \
101         $(MODEL)/charset.o \
102         $(MODEL)/color.o \
103         $(MODEL)/control.o \
104         $(MODEL)/crum.o \
105         $(MODEL)/edit.o \
106         $(MODEL)/fun.o \
107         $(MODEL)/init.o \
108         $(MODEL)/menu.o \
109         $(MODEL)/modes.o \
110         $(MODEL)/output.o \
111         $(MODEL)/pad.o \
112         $(MODEL)/scan.o \
113         $(MODEL)/sync.o \
114         $(MODEL)/sysdep.o \
115         $(MODEL)/tack.o
116
117 tack$x: $(DEPS_TACK) $(DEPS_CURSES)
118         @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
119
120 #
121 # Utility productions start here
122 #
123
124 tags:
125         ctags *.[ch]
126
127 TAGS:
128         etags *.[ch]
129
130 clean ::
131         -rm -f tags TAGS do.tic *~
132         -rm -f $(PROGS)
133
134 distclean :: clean
135         -rm -f Makefile
136
137 mostlyclean :: clean
138
139 realclean :: distclean
140
141 tack.tar: Makefile.in modules *.[ch] tack.1 HISTORY COPYING
142         tar -cvf tack.tar Makefile.in modules *.[ch] tack.1 HISTORY COPYING
143
144 # These rules are used to allow "make -n" to work on a clean directory-tree
145 ../include/hashsize.h \
146 ../include/parametrized.h \
147 ../include/term.h :
148         cd ../include; $(MAKE) $(CF_MFLAGS)
149
150 $(DEPS_CURSES) :
151         cd ../ncurses; $(MAKE) $(CF_MFLAGS)
152
153 lint:
154         $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/clear.c                          $(LINT_LIBS)
155
156 ###############################################################################
157 # The remainder of this file is automatically generated during configuration
158 ###############################################################################