aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/tack/Makefile.in
blob: a4d08ead9264cc8637969c33f9764c8bcfe26076 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# $Id: Makefile.in,v 1.18 2000/05/28 01:28:24 tom Exp $
# Makefile for tack
#
# The variable 'srcdir' refers to the source-distribution, and can be set with
# the configure script by "--srcdir=DIR".
#
# The rules are organized to produce the libraries for the configured models,
# and the programs with the configured default model.

# turn off _all_ suffix rules; we'll generate our own
.SUFFIXES:

SHELL		= /bin/sh
THIS		= Makefile

CF_MFLAGS 	= @cf_cv_makeflags@
@SET_MAKE@
x		= @PROG_EXT@

MODEL		= ../@DFT_OBJ_SUBDIR@
INSTALL_PREFIX	= @INSTALL_PREFIX@
srcdir		= @srcdir@
prefix		= @prefix@
exec_prefix	= @exec_prefix@
bindir		= @bindir@
libdir		= @libdir@
mandir		= @mandir@/man1
includedir	= @includedir@
datadir		= @datadir@

ticdir		= $(datadir)/terminfo

INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@

AWK		= @AWK@
LN_S		= @LN_S@

CC		= @CC@
CPP		= @CPP@
CFLAGS		= @CFLAGS@

INCDIR		= $(srcdir)/../include
CPPFLAGS	= -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@

CCFLAGS		= $(CPPFLAGS) $(CFLAGS)

CFLAGS_NORMAL	= $(CCFLAGS)
CFLAGS_DEBUG	= $(CCFLAGS) @CC_G_OPT@ -DTRACE
CFLAGS_PROFILE	= $(CCFLAGS) -pg
CFLAGS_SHARED	= $(CCFLAGS) # @CC_SHARED_OPTS@

CFLAGS_DEFAULT	= $(CFLAGS_@DFT_UPR_MODEL@)

LD		= @LD@
LINK		= @LINK_PROGS@ $(CC)
LDFLAGS		= @EXTRA_LDFLAGS@ \
		@PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@

LDFLAGS_NORMAL	= $(LDFLAGS)
LDFLAGS_DEBUG	= $(LDFLAGS) @CC_G_OPT@
LDFLAGS_PROFILE	= $(LDFLAGS) -pg
LDFLAGS_SHARED	= $(LDFLAGS) @LD_SHARED_OPTS@

LDFLAGS_DEFAULT	= $(LDFLAGS_@DFT_UPR_MODEL@)

LINT		= @LINT@
LINT_OPTS	= @LINT_OPTS@
LINT_LIBS	= -lncurses@LIB_SUFFIX@ @LIBS@

PROGS = tack$x

# Default library, for linking applications
DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@

################################################################################
all:	$(PROGS)

sources:

install: install.tack
uninstall: uninstall.tack

# this line simplifies the configure-script
libs \
install.libs \
uninstall.libs:

install.tack: $(PROGS) \
	$(INSTALL_PREFIX)$(bindir) \
	$(INSTALL_PREFIX)$(mandir)
	$(INSTALL_PROGRAM) tack$x $(INSTALL_PREFIX)$(bindir)/tack$x
	$(INSTALL_DATA) $(srcdir)/tack.1 $(INSTALL_PREFIX)$(mandir)/tack.1

uninstall.tack:
	-@rm -f $(INSTALL_PREFIX)$(bindir)/tack$x
	-@rm -f $(INSTALL_PREFIX)$(mandir)/tack.1

$(INSTALL_PREFIX)$(bindir) \
$(INSTALL_PREFIX)$(mandir) :
	$(srcdir)/../mkinstalldirs $@

#
# Rules for building tack
#

DEPS_TACK = \
	$(MODEL)/ansi.o \
	$(MODEL)/charset.o \
	$(MODEL)/color.o \
	$(MODEL)/control.o \
	$(MODEL)/crum.o \
	$(MODEL)/edit.o \
	$(MODEL)/fun.o \
	$(MODEL)/init.o \
	$(MODEL)/menu.o \
	$(MODEL)/modes.o \
	$(MODEL)/output.o \
	$(MODEL)/pad.o \
	$(MODEL)/scan.o \
	$(MODEL)/sync.o \
	$(MODEL)/sysdep.o \
	$(MODEL)/tack.o

tack$x: $(DEPS_TACK) $(DEPS_CURSES)
	@ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@

#
# Utility productions start here
#

tags:
	ctags *.[ch]

TAGS:
	etags *.[ch]

clean ::
	-rm -f tags TAGS do.tic *~
	-rm -f $(PROGS)

distclean :: clean
	-rm -f Makefile

mostlyclean :: clean

realclean :: distclean

tack.tar: Makefile.in modules *.[ch] tack.1 HISTORY COPYING
	tar -cvf tack.tar Makefile.in modules *.[ch] tack.1 HISTORY COPYING

# These rules are used to allow "make -n" to work on a clean directory-tree
../include/hashsize.h \
../include/parametrized.h \
../include/term.h :
	cd ../include; $(MAKE) $(CF_MFLAGS)

$(DEPS_CURSES) :
	cd ../ncurses; $(MAKE) $(CF_MFLAGS)

lint:
	$(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/*.c $(LINT_LIBS)

###############################################################################
# The remainder of this file is automatically generated during configuration
###############################################################################