1 # Please NOTE: None of the TACACS code available here comes with any
3 # Copyright (c) 1995-1998 by Cisco systems, Inc.
5 # Permission to use, copy, modify, and distribute this software for any
6 # purpose and without fee is hereby granted, provided that this
7 # copyright and permission notice appear on all copies of the software and
8 # supporting documentation, the name of Cisco Systems, Inc. not be used
9 # in advertising or publicity pertaining to distribution of the
10 # program without specific prior permission, and notice be given
11 # in supporting documentation that modification, copying and distribution is by
12 # permission of Cisco Systems, Inc.
14 # Cisco Systems, Inc. makes no representations about the suitability of this
15 # software for any purpose. THIS SOFTWARE IS PROVIDED ``AS IS''
16 # AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
17 # LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18 # FOR A PARTICULAR PURPOSE.
21 AUTOMAKE_OPTIONS = foreign
23 sbin_PROGRAMS = tac_plus
24 bin_PROGRAMS = generate_passwd
26 noinst_MANS = tac_regexp.3
27 tacacssysconfdir = $(sysconfdir)/tacacs
28 tacacssysconf_DATA = tac_plus.cfg
41 $(tacacssysconf_DATA) \
45 generate_passwd_SOURCES = generate_passwd.c
53 choose_authen.c choose_authen.h \
54 default_fn.c default_fn.h \
55 default_v0_fn.c default_v0_fn.h \
57 do_author.c do_author.h \
67 programs.c programs.h \
71 sendauth.c sendauth.h \
72 sendpass.c sendpass.h \
73 time_limit.c time_limit.h \
79 EXTRA_tac_plus_SOURCES = $(cond)
80 tac_plus_LDFLAGS = $(conf_LDFLAGS)
81 # $(use_o) has to be BEFORE $(conf_LDADD)! (for library dependencies)
82 tac_plus_LDADD = $(use_o) $(conf_LDADD)
83 tac_plus_DEPENDENCIES = $(use_o)
85 use_o = $(filter %.o,$(use:.c=.o))
88 cond_DB_MYSQL = db_mysql.c db_mysql.h
89 cond_DB_NULL = db_null.c db_null.h
90 cond_DB_PGSQL = db_pgsql.c db_pgsql.h
91 cond_USE_LDAP = ldap_author.c ldap_author.h
92 cond_MAXSESS = maxsess.c maxsess.h
93 cond_MSCHAP = md4.c md4.h
94 cond_SKEY = skey_fn.c skey_fn.h
95 cond_USE_PAM = tac_pam.c tac_pam.h
96 cond_TCPWRAPPER = tcpwrap.c tcpwrap.h
97 cond_WITH_INCLUDED_REGEX = \
98 tac_regexp.c tac_regexp.h
111 $(cond_WITH_INCLUDED_REGEX)
114 # These rules were not migrated from Makefile.in as I don't have
115 # (and I don't know) 'purify' tool:
117 # purecov: $(OBJS) $(LIBS)
118 # purecov -follow-child-processes -handle-signals=SIGTERM \
119 # -append-logfile -log-file=purecov.log \
121 # $(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)
123 # purify: $(OBJS) $(LIBS)
124 # purify -follow-child-processes=yes -log-file=./tac_plus_purify.log \
125 # -handle-signals=SIGTERM -cache-dir=. \
126 # $(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)