"referenced entity .* not found" message fixed to be fatal
[tac_plus.git] / Makefile.am
1 # Please NOTE:  None of the TACACS code available here comes with any
2 # warranty or support.
3 # Copyright (c) 1995-1998 by Cisco systems, Inc.
4 #
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.
13 #
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.
19
20
21 AUTOMAKE_OPTIONS        = foreign
22
23 sbin_PROGRAMS           = tac_plus
24 bin_PROGRAMS            = generate_passwd
25 man_MANS                = tac_plus.1
26 noinst_MANS             = tac_regexp.3
27 tacacssysconfdir        = $(sysconfdir)/tacacs
28 tacacssysconf_DATA      = tac_plus.cfg
29 EXTRA_DIST              = \
30         CHANGES                 \
31         README.LDAP             \
32         README.PAM              \
33         users_guide             \
34         tac_plus.spec.in        \
35         convert.pl              \
36         tac_plus.cfg            \
37         tac_plus.init           \
38         tac_plus.rotate         \
39         tac_plus.sql            \
40         tac_plus.pam            \
41         $(tacacssysconf_DATA)   \
42         $(man_MANS)             \
43         $(noinst_MANS)
44
45 generate_passwd_SOURCES = generate_passwd.c
46
47 tac_plus_SOURCES        = \
48         acct.c          acct.h          \
49         authen.c        authen.h        \
50         author.c        author.h        \
51         cfgfile.c       cfgfile.h       \
52         cfgeval.c       cfgeval.h       \
53         choose_authen.c choose_authen.h \
54         default_fn.c    default_fn.h    \
55         default_v0_fn.c default_v0_fn.h \
56         do_acct.c       do_acct.h       \
57         do_author.c     do_author.h     \
58         dump.c          dump.h          \
59         enable.c        enable.h        \
60         encrypt.c       encrypt.h       \
61         expire.c        expire.h        \
62         hash.c          hash.h          \
63         main.c          main.h          \
64         md5.c           md5.h           \
65         packet.c        packet.h        \
66         parse.c         parse.h         \
67         programs.c      programs.h      \
68         pw.c            pw.h            \
69         pwlib.c         pwlib.h         \
70         report.c        report.h        \
71         sendauth.c      sendauth.h      \
72         sendpass.c      sendpass.h      \
73         time_limit.c    time_limit.h    \
74         utils.c         utils.h         \
75         mschap.h        \
76         tac_regmagic.h  \
77         tac_plus.h
78
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)
84 use                     = @COND_USE@
85 use_o                   = $(filter %.o,$(use:.c=.o))
86
87 cond_DB         = db.c          db.h
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
99
100 cond    = \
101         $(cond_DB)              \
102         $(cond_DB_MYSQL)        \
103         $(cond_DB_NULL)         \
104         $(cond_DB_PGSQL)        \
105         $(cond_USE_LDAP)        \
106         $(cond_MAXSESS)         \
107         $(cond_MSCHAP)          \
108         $(cond_SKEY)            \
109         $(cond_USE_PAM)         \
110         $(cond_TCPWRAPPER)      \
111         $(cond_WITH_INCLUDED_REGEX)
112
113
114 # These rules were not migrated from Makefile.in as I don't have
115 # (and I don't know) 'purify' tool:
116 #
117 # purecov: $(OBJS) $(LIBS)
118 #       purecov -follow-child-processes -handle-signals=SIGTERM \
119 #           -append-logfile -log-file=purecov.log \
120 #           -cache-dir=`pwd` \
121 #           $(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)
122
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)