## Process this file with automake to produce Makefile.in
## A Makefile.in is supplied, in case you do not have automake.
#AUTOMAKE_OPTIONS=foreign no-dependencies
AUTOMAKE_OPTIONS=foreign
@SET_MAKE@
bin_PROGRAMS = tac_pwd tac_plus
tac_pwd_SOURCES = tac_pwd.c
tac_plus_SOURCES = tac_plus.c \
acct.c do_author.c md4.c report.c \
authen.c dump.c md5.c sendauth.c \
author.c enable.c packet.c sendpass.c \
choose_authen.c encrypt.c parse.c skey_fn.c \
config.c expire.c programs.c \
default_fn.c pw.c utils.c \
default_v0_fn.c hash.c pwlib.c \
do_acct.c maxsess.c regexp.c
tac_plus_LDADD = $(WRAPLIBS)
# profiling
CFLAGS += @WARN@ @DBG@ @PROFLAGS@
LDADD = @PROFLIBS@
INCLUDES = $(WRAPINCS)
# CPPFLAGS += @PG_CPPFLAGS@
# INCLUDES += -I$(top_srcdir)/include @PG_CPPFLAGS@
noinst_HEADERS= md4.h mschap.h regexp.h tac_plus.h \
expire.h md5.h parse.h pathsl.h regmagic.h
man_gen_MANS = tac_plus.8 tac_plus.conf.5
man_nogen_MANS = regexp.3 tac_pwd.8
man_MANS = $(man_gen_MANS) $(man_nogen_MANS)
# scripts that are built
build_scripts= tac_convert
# scripts that are not-built/static
static_scripts =
pkgdata_SCRIPTS = $(static_scripts) $(build_scripts)
pkgdata_DATA= users_guide
EXTRA_DIST = CHANGES COPYING FAQ INSTALL $(build_scripts:%=%.in) \
$(man_nogen_MANS) users_guide
# '.' is here (and at the front) so that distclean-recursive
# will run make distclean in . after the other dirs
# SUBDIRS = . include lib bin man share
# DIST_COMMON = Makefile.am Makefile.in TODO aclocal.m4
# no idea why automake screws up cleaning these targets
DISTCLEANFILES= config.status $(build_scripts)
# CLEANFILES = Makefile $(man_gen_MANS)
# auto_edit does the autoconf variable substitution. This allows the
# substitution to have the full expansion of the variables, e.g.: $sysconfdir
# will be /prefix/etc instead of ${prefix}/etc.
#
# This is a bit of a PITA, but is the method recommended by the autoconf
# documentation.
auto_edit = sed \
-e 's,@bindir\@,$(bindir),g' \
-e 's,@prefix\@,$(prefix),g' \
-e 's,@libexecdir\@,$(libexecdir),g' \
-e 's,@localstatedir\@,$(localstatedir),g' \
-e 's,@libdir\@,$(libdir),g' \
-e 's,@pkglibdir\@,$(pkglibdir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
-e 's,@PERLV_PATH\@,$(PERLV_PATH),g'
tac_convert: Makefile $(srcdir)/tac_convert.in
rm -f tac_convert tac_convert.tmp; \
$(auto_edit) $(srcdir)/tac_convert.in >tac_convert.tmp; \
mv tac_convert.tmp tac_convert; \
chmod 755 tac_convert
syntax highlighted by Code2HTML, v. 0.9.1