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.
23 top_srcdir = @top_srcdir@
26 exec_prefix = @exec_prefix@
27 bindir = $(exec_prefix)/bin
28 sbindir = $(exec_prefix)/sbin
29 infodir = $(prefix)/info
30 libdir = $(prefix)/lib/gnudl
31 mandir = $(prefix)/man/man1
35 FLAGS = $(CPPFLAGS) @CFLAGS@
44 # See /usr/lpp/bos/bsdport on your system for details of how to define bsdcc
48 # For HP/UX uncomment the following line
51 # For MIPS, uncomment the following line
54 # For Solaris (SUNOS 5.3, 5.4, 5.5, 5.6) uncomment the following two lines
56 #OSLIBS=-lsocket -lnsl
60 # You may also need to add:
62 # NOTE: If you want your password encryption to be compatible with
63 # e.g. SunOS, you may need to instead use:
69 # On REDHAT 5.0 systems, or systems that use the new glibc,
70 # you might instead need the following:
74 # Athough invoked as root, most of the time you don't want tac_plus to
75 # be running as root. If USERID and GROUPID are set, tac_plus will
76 # attempt change to run as that user & group after reading the
77 # configuration file and obtaining a privileged socket. If you always
78 # want tac_plus to run as root, then just comment out the FLAGS line.
82 # FLAGS = -DTAC_PLUS_USERID=$(USERID) -DTAC_PLUS_GROUPID=$(GROUPID)
84 # Definitions for SKEY functionality
86 # LIBS = ../crimelab/skey/src/libskey.a
87 # INCLUDES = -I../crimelab/skey/src
95 # Enforce a limit on maximum sessions per user. See the user's guide
96 # for more information.
99 # Microsoft CHAP extension support. See the user's guide for more
102 # MSCHAP_DES = -DMSCHAP_DES
103 # MSCHAP_MD4_SRC = md4.c
105 # On startup, tac_plus creates the file /etc/tac_plus.pid (if
106 # possible), containing its process id. Uncomment and modify the
107 # following line to change this filename
109 #PIDFILE = -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\"
112 # End of customisable section of Makefile
115 CFLAGS = $(DEBUG) $(OPT_FLAGS) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE) $(LDFLAGS) $(DB)
117 HFILES = expire.h parse.h regmagic.h md5.h regexp.h tac_plus.h
119 SRCS = acct.c authen.c author.c choose_authen.c config.c do_acct.c \
120 do_author.c dump.c encrypt.c expire.c $(MSCHAP_MD4_SRC) md5.c \
121 packet.c report.c sendauth.c tac_plus.c utils.c pw.c hash.c \
122 parse.c regexp.c programs.c enable.c pwlib.c default_fn.c \
123 skey_fn.c default_v0_fn.c sendpass.c maxsess.c tac_pam.c \
124 db.c db_null.c db_mysql.c db_pgsql.c tcpwrap.c ldap.c time_limit.c
129 @echo "Please edit the Makefile and then make tac_plus"
131 tac_plus: $(OBJS) $(LIBS) generate_passwd
132 $(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)
135 purecov: $(OBJS) $(LIBS)
136 purecov -follow-child-processes -handle-signals=SIGTERM \
137 -append-logfile -log-file=purecov.log \
139 $(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)
141 purify: $(OBJS) $(LIBS)
142 purify -follow-child-processes=yes -log-file=./tac_plus_purify.log \
143 -handle-signals=SIGTERM -cache-dir=. \
144 $(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)
147 $(CC) $(CFLAGS) -o generate_passwd generate_passwd.c $(OSLIBS)
150 -rm -f *.o *~ *.BAK core tac_plus generate_passwd
153 -rm -f Makefile config.h config.status config.cache config.log
164 cp tac_plus $(sbindir)/
165 cp generate_passwd $(bindir)/
166 cp tac_plus.1 $(mandir)/
168 rpm_install: make_dir
169 install -c -m 0755 tac_plus $(sbindir)/
170 install -c -m 0755 generate_passwd $(sbindir)/
171 install -c -m 0644 tac_plus.1 $(mandir)/
174 makedepend $(CFLAGS) $(SRCS)
176 # DO NOT DELETE THIS LINE -- make depend depends on it.