2001-05-17 08:21:06 +00:00
|
|
|
# $Id: Makefile.in,v 1.25 2001/03/24 19:49:06 tom Exp $
|
1999-08-24 01:06:48 +00:00
|
|
|
# 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@
|
2000-01-26 16:43:25 +00:00
|
|
|
x = @PROG_EXT@
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
MODEL = ../@DFT_OBJ_SUBDIR@
|
2000-10-11 07:31:01 +00:00
|
|
|
DESTDIR = @DESTDIR@
|
1999-08-24 01:06:48 +00:00
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
2000-07-03 09:24:12 +00:00
|
|
|
mandir = @mandir@/man1
|
1999-08-24 01:06:48 +00:00
|
|
|
includedir = @includedir@
|
|
|
|
datadir = @datadir@
|
|
|
|
|
2001-05-17 08:21:06 +00:00
|
|
|
LIBTOOL = @LIBTOOL@
|
|
|
|
|
1999-08-24 01:06:48 +00:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
2000-07-03 09:24:12 +00:00
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
AWK = @AWK@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
|
|
|
|
CC = @CC@
|
2000-07-03 09:24:12 +00:00
|
|
|
CPP = @CPP@
|
1999-08-24 01:06:48 +00:00
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
|
|
|
|
INCDIR = $(srcdir)/../include
|
|
|
|
CPPFLAGS = -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@
|
|
|
|
|
|
|
|
CCFLAGS = $(CPPFLAGS) $(CFLAGS)
|
|
|
|
|
2001-05-17 08:21:06 +00:00
|
|
|
CFLAGS_LIBTOOL = $(CCFLAGS)
|
1999-08-24 01:06:48 +00:00
|
|
|
CFLAGS_NORMAL = $(CCFLAGS)
|
|
|
|
CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
|
|
|
|
CFLAGS_PROFILE = $(CCFLAGS) -pg
|
2000-10-11 07:31:01 +00:00
|
|
|
CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
|
|
|
LD = @LD@
|
2001-05-17 08:21:06 +00:00
|
|
|
LINK = @LINK_PROGS@ $(LIBTOOL) $(CC)
|
1999-08-24 01:06:48 +00:00
|
|
|
LDFLAGS = @EXTRA_LDFLAGS@ \
|
|
|
|
@PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@
|
|
|
|
|
2001-05-17 08:21:06 +00:00
|
|
|
LDFLAGS_LIBTOOL = $(LDFLAGS)
|
1999-08-24 01:06:48 +00:00
|
|
|
LDFLAGS_NORMAL = $(LDFLAGS)
|
|
|
|
LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
|
|
|
|
LDFLAGS_PROFILE = $(LDFLAGS) -pg
|
2000-07-03 09:24:12 +00:00
|
|
|
LDFLAGS_SHARED = $(LDFLAGS) @LD_SHARED_OPTS@
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
|
|
|
LINT = @LINT@
|
|
|
|
LINT_OPTS = @LINT_OPTS@
|
2000-07-03 09:24:12 +00:00
|
|
|
LINT_LIBS = -lncurses@LIB_SUFFIX@ @LIBS@
|
1999-08-24 01:06:48 +00:00
|
|
|
|
2000-01-26 16:43:25 +00:00
|
|
|
PROGS = tack$x
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
# Default library, for linking applications
|
2000-07-03 09:24:12 +00:00
|
|
|
DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
################################################################################
|
2000-01-26 16:43:25 +00:00
|
|
|
all: $(PROGS)
|
1999-08-24 01:06:48 +00:00
|
|
|
|
2000-01-26 16:43:25 +00:00
|
|
|
sources:
|
|
|
|
|
|
|
|
install: install.tack
|
|
|
|
uninstall: uninstall.tack
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
# this line simplifies the configure-script
|
2000-07-03 09:24:12 +00:00
|
|
|
libs \
|
|
|
|
install.libs \
|
1999-08-24 01:06:48 +00:00
|
|
|
uninstall.libs:
|
|
|
|
|
2000-07-03 09:24:12 +00:00
|
|
|
install.tack: $(PROGS) \
|
2000-10-11 07:31:01 +00:00
|
|
|
$(DESTDIR)$(bindir) \
|
|
|
|
$(DESTDIR)$(mandir)
|
2001-05-17 08:21:06 +00:00
|
|
|
$(LIBTOOL) $(INSTALL_PROGRAM) tack$x $(DESTDIR)$(bindir)/tack$x
|
2000-10-11 07:31:01 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/tack.1 $(DESTDIR)$(mandir)/tack.1
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
uninstall.tack:
|
2001-05-17 08:21:06 +00:00
|
|
|
-@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/tack$x
|
2000-10-11 07:31:01 +00:00
|
|
|
-@rm -f $(DESTDIR)$(mandir)/tack.1
|
1999-08-24 01:06:48 +00:00
|
|
|
|
2000-10-11 07:31:01 +00:00
|
|
|
$(DESTDIR)$(bindir) \
|
|
|
|
$(DESTDIR)$(mandir) :
|
1999-08-24 01:06:48 +00:00
|
|
|
$(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
|
|
|
|
|
2000-01-26 16:43:25 +00:00
|
|
|
tack$x: $(DEPS_TACK) $(DEPS_CURSES)
|
1999-08-24 01:06:48 +00:00
|
|
|
@ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
|
|
|
|
|
|
|
|
#
|
|
|
|
# Utility productions start here
|
|
|
|
#
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags *.[ch]
|
|
|
|
|
2000-10-11 07:31:01 +00:00
|
|
|
@MAKE_UPPER_TAGS@TAGS:
|
|
|
|
@MAKE_UPPER_TAGS@ etags *.[ch]
|
1999-08-24 01:06:48 +00:00
|
|
|
|
2001-05-17 08:21:06 +00:00
|
|
|
mostlyclean ::
|
|
|
|
-rm -f tags TAGS *.i do.tic *~
|
|
|
|
|
|
|
|
clean :: mostlyclean
|
1999-08-24 01:06:48 +00:00
|
|
|
-rm -f $(PROGS)
|
2001-05-17 08:21:06 +00:00
|
|
|
-rm -rf .libs
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
distclean :: clean
|
|
|
|
-rm -f Makefile
|
|
|
|
|
|
|
|
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:
|
2000-07-03 09:24:12 +00:00
|
|
|
$(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/*.c $(LINT_LIBS)
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# The remainder of this file is automatically generated during configuration
|
|
|
|
###############################################################################
|