Codebase list tack / df6c9385-c5eb-49ab-8151-026223581da5/main Makefile.in
df6c9385-c5eb-49ab-8151-026223581da5/main

Tree @df6c9385-c5eb-49ab-8151-026223581da5/main (Download .tar.gz)

Makefile.in @df6c9385-c5eb-49ab-8151-026223581da5/mainraw · history · blame

# $Id: Makefile.in,v 1.59 2017/07/26 08:50:34 tom Exp $
##############################################################################
# Copyright (c) 1998-2015,2017 Free Software Foundation, Inc.                #
#                                                                            #
# Permission is hereby granted, free of charge, to any person obtaining a    #
# copy of this software and associated documentation files (the "Software"), #
# to deal in the Software without restriction, including without limitation  #
# the rights to use, copy, modify, merge, publish, distribute, distribute    #
# with modifications, sublicense, and/or sell copies of the Software, and to #
# permit persons to whom the Software is furnished to do so, subject to the  #
# following conditions:                                                      #
#                                                                            #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software.                        #
#                                                                            #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
# DEALINGS IN THE SOFTWARE.                                                  #
#                                                                            #
# Except as contained in this notice, the name(s) of the above copyright     #
# holders shall not be used in advertising or otherwise to promote the sale, #
# use or other dealings in this Software without prior written               #
# authorization.                                                             #
##############################################################################
# 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		= @EXEEXT@
o		= .@OBJEXT@

DESTDIR		= @DESTDIR@

top_srcdir	= @top_srcdir@
srcdir		= @srcdir@

prefix		= @prefix@
exec_prefix	= @exec_prefix@
datarootdir	= @datarootdir@

bindir		= @bindir@
mandir		= @mandir@

MODEL		= ../@DFT_OBJ_SUBDIR@
INCDIR		= $(top_srcdir)/include

LIBTOOL		= @LIBTOOL@
LIBTOOL_CLEAN	= @LIB_CLEAN@
LIBTOOL_COMPILE	= @LIB_COMPILE@
LIBTOOL_LINK	= @LIB_LINK@
LIBTOOL_INSTALL	= @LIB_INSTALL@
LIBTOOL_UNINSTALL = @LIB_UNINSTALL@

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

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

CPPFLAGS	= -DHAVE_CONFIG_H -I. -I$(srcdir) @CPPFLAGS@

CCFLAGS		= $(CPPFLAGS) $(CFLAGS)

CFLAGS_LIBTOOL	= $(CCFLAGS)
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@)

REL_VERSION	= @cf_cv_rel_version@
ABI_VERSION	= @cf_cv_abi_version@
LOCAL_LIBDIR	= @top_builddir@/lib

LD		= @LD@
LINK		= @LINK_PROGS@ $(LIBTOOL_LINK)
LDFLAGS		= @EXTRA_LDFLAGS@ @TINFO_LDFLAGS@ \
		  @LDFLAGS@ @LD_MODEL@ @TINFO_LIBS@ @LIBS@

LDFLAGS_LIBTOOL	= $(LDFLAGS) $(CFLAGS_LIBTOOL)
LDFLAGS_NORMAL	= $(LDFLAGS) $(CFLAGS_NORMAL)
LDFLAGS_DEBUG	= $(LDFLAGS) $(CFLAGS_DEBUG)
LDFLAGS_PROFILE	= $(LDFLAGS) $(CFLAGS_PROFILE)
LDFLAGS_SHARED	= $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@

LDFLAGS_DEFAULT	= $(LDFLAGS_@DFT_UPR_MODEL@)

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

PROGS		= tack$x
mymandir	= $(mandir)/man1

@NCURSES_TREE@# Default library, for linking applications
@NCURSES_TREE@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) \
	$(DESTDIR)$(bindir) \
	$(DESTDIR)$(mymandir)
	$(LIBTOOL_INSTALL) $(INSTALL_PROG) tack$x $(DESTDIR)$(bindir)/tack$x
	$(INSTALL_DATA) tack.1 $(DESTDIR)$(mymandir)/tack.1

uninstall.tack:
	-@$(LIBTOOL_UNINSTALL) rm -f $(DESTDIR)$(bindir)/tack$x
	rm -f $(DESTDIR)$(mymandir)/tack.1

$(DESTDIR)$(bindir) \
$(DESTDIR)$(mymandir) :
	mkdir -p $@

#
# 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) @NCURSES_TREE@$(DEPS_CURSES)
	@ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@

tackgen$x: $(MODEL)/tackgen$o @NCURSES_TREE@$(DEPS_CURSES)
	@ECHO_LINK@ $(LINK) $(MODEL)/tackgen$o $(LDFLAGS_DEFAULT) -o $@

tackgen.h: tackgen$x
	$(SHELL) -c "if test -f $(srcdir)/../misc/shlib; then\
		$(srcdir)/../misc/shlib ./tackgen$x >$@; \
		else \
		./tackgen$x >$@; \
		fi"

#
# Utility productions start here
#

tags:
	ctags *.[ch]

@MAKE_UPPER_TAGS@TAGS:
@MAKE_UPPER_TAGS@	etags *.[ch]

mostlyclean ::
	-rm -f core tags TAGS *~ *.bak *.i *.atac trace

clean :: mostlyclean
	-sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
	-rm -f $(MODEL)/*$o
	-rm -f $(PROGS) tackgen$x tackgen.h
	-rm -rf .libs

distclean :: clean
	-rm -f ncurses_cfg.h
	-rm -f config.cache config.status config.log *.out man2html.tmp
	-rm -f Makefile

check:
	@echo "** no self-test available"

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
@NCURSES_TREE@../include/hashsize.h \
@NCURSES_TREE@../include/parametrized.h \
@NCURSES_TREE@../include/term.h :
@NCURSES_TREE@	cd ../include; $(MAKE) $(CF_MFLAGS)

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

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

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