-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
302 lines (260 loc) · 8.8 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
#
# TACACS+ Proxy Server and Utilities
# Copyright (c) 2020 David M. Syzdek <david@syzdek.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# @configure_input@
#
# Makefile.am - automate compiling on a unix platform
#
# Sub directories
SUBDIRS = $(subdirs)
DIST_SUBDIRS = $(subdirs)
# directory locations
moddir = $(pkglibexecdir)/modules
# GNU make options
V = 0
# Global flags
AM_LIBS =
AM_LDFLAGS =
AM_CFLAGS = -O2 $(CFLAGS_WARNINGS)
AM_CXXFLAGS = -O2 @AM_CXXFLAGS@
AM_OBJCFLAGS = -O2 @AM_OBJCFLAGS@
AM_CPPFLAGS = -O2 \
-UPMARK \
-DHAVE_CONFIG_H=1 \
-I$(top_builddir)/include \
-I$(top_srcdir)/include \
-DSYSCONFDIR=\"$(sysconfdir)\"
ACLOCAL_AMFLAGS = -I m4 -W all -W error
AM_MAKEINFOFLAGS = --no-split
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings \
--enable-client \
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
LDFLAGS="$(LDFLAGS)"
AM_YFLAGS = -d
DEFS =
LDADD =
# automake targets
bin_PROGRAMS =
sbin_PROGRAMS =
libexec_PROGRAMS =
pkglibexec_PROGRAMS =
check_PROGRAMS =
doc_DATA =
noinst_DATA = doc/rfc8907.txt \
doc/draft-grant-tacacs-02.txt \
doc/draft-ietf-opsawg-tacacs-18.txt
EXTRA_PROGRAMS =
include_HEADERS =
info_TEXINFOS =
lib_LIBRARIES =
lib_LTLIBRARIES =
mod_LTLIBRARIES =
pkglib_LTLIBRARIES =
noinst_LTLIBRARIES =
EXTRA_LIBRARIES =
EXTRA_LTLIBRARIES =
man_MANS =
noinst_HEADERS = include/tacplusproxy.h \
include/tacplusproxy/cdefs.h \
include/tacplusproxy/tac_plus.h \
include/tacplusproxy/tacacs.h
pkginclude_HEADERS =
noinst_PROGRAMS =
noinst_LIBRARIES =
if TACPLUS_DOCS
doc_DATA += doc/rfc8907.txt
endif
if TACPLUS_LIBTACACS
pkglib_LTLIBRARIES += lib/libtacacs.la
include_HEADERS += include/tacplusproxy.h
man_MANS += doc/tacacs.conf.5
man_MANS += doc/tacacs_get_option.3
pkginclude_HEADERS += include/tacplusproxy/cdefs.h
pkginclude_HEADERS += include/tacplusproxy/tac_plus.h
pkginclude_HEADERS += include/tacplusproxy/tacacs.h
endif
if TACPLUS_MOD_FILES
mod_LTLIBRARIES += lib/mod_files.la
endif
if TACPLUS_MOD_LDAP
mod_LTLIBRARIES += lib/mod_ldap.la
endif
if TACPLUS_MOD_RADIUS
mod_LTLIBRARIES += lib/mod_radius.la
endif
if TACPLUS_MOD_SYSLOG
mod_LTLIBRARIES += lib/mod_syslog.la
endif
if TACPLUS_CLIENT
bin_PROGRAMS += src/tacplus
# man_MANS += doc/tacplus.1
endif
if TACPLUS_DAEMON
pkglibexec_PROGRAMS += src/tacplusd
# man_MANS += doc/tacplusd.1
endif
# lists
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT =
BUILT_SOURCES =
TESTS =
XFAIL_TESTS =
EXTRA_MANS =
EXTRA_DIST = $(noinst_HEADERS) \
$(noinst_DATA) \
ChangeLog.md \
COPYING.md \
NEWS.md \
README.md \
TODO.md \
doc/tacacs.conf.5.in \
doc/tacacs_get_option.3.in \
lib/libtacacs/libtacacs.sym
CLEANFILES = \
$(builddir)/a.out $(srcdir)/a.out \
$(builddir)/*/a.out $(srcdir)/*/a.out \
config.h.in~ $(srcdir)/config.h.in~ \
$(man_MANS) \
$(pkgdata_DATA) \
$(bin_SCRIPTS) \
$(sbin_SCRIPTS) \
@PACKAGE_TARNAME@-*.tar.* \
@PACKAGE_TARNAME@-*.txz \
@PACKAGE_TARNAME@-*.zip
### macros for lib/libtacacs.la
lib_libtacacs_la_DEPENDENCIES = Makefile lib/libtacacs/libtacacs.sym
lib_libtacacs_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/lib/libtacacs
lib_libtacacs_la_CFLAGS = $(AM_CFLAGS)
lib_libtacacs_la_LDFLAGS = -rpath '$(pkglibdir)' \
-version-info $(LIB_VERSION_INFO) \
$(AM_LDFLAGS) \
-export-symbols $(srcdir)/lib/libtacacs/libtacacs.sym
lib_libtacacs_la_LIBADD = $(AM_LIBS)
lib_libtacacs_la_SOURCES = $(noinst_HEADERS) \
lib/libtacacs/lconf.c \
lib/libtacacs/lconf.h \
lib/libtacacs/lerror.c \
lib/libtacacs/lerror.h \
lib/libtacacs/libtacacs.h \
lib/libtacacs/lmemory.c \
lib/libtacacs/lmemory.h \
lib/libtacacs/lurl.c \
lib/libtacacs/lurl.h \
lib/libtacacs/lversion.c \
lib/libtacacs/lversion.h
### macros for lib/mod_files.la
lib_mod_files_la_DEPENDENCIES = Makefile lib/libtacacs.la
lib_mod_files_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/lib/mod_files
lib_mod_files_la_CFLAGS = $(AM_CFLAGS)
lib_mod_files_la_LDFLAGS = -module \
-avoid-version \
-export-dynamic \
-shared \
$(AM_LDFLAGS)
lib_mod_files_la_LIBADD = $(AM_LIBS)
lib_mod_files_la_SOURCES = $(noinst_HEADERS)
### macros for lib/mod_ldap.la
lib_mod_ldap_la_DEPENDENCIES = Makefile lib/libtacacs.la
lib_mod_ldap_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/lib/mod_ldap
lib_mod_ldap_la_CFLAGS = $(AM_CFLAGS)
lib_mod_ldap_la_LDFLAGS = -module \
-avoid-version \
-export-dynamic \
-shared \
$(AM_LDFLAGS)
lib_mod_ldap_la_LIBADD = $(AM_LIBS)
lib_mod_ldap_la_SOURCES = $(noinst_HEADERS)
### macros for lib/mod_radius.la
lib_mod_radius_la_DEPENDENCIES = Makefile lib/libtacacs.la
lib_mod_radius_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/lib/mod_radius
lib_mod_radius_la_CFLAGS = $(AM_CFLAGS)
lib_mod_radius_la_LDFLAGS = -module \
-avoid-version \
-export-dynamic \
-shared \
$(AM_LDFLAGS)
lib_mod_radius_la_LIBADD = $(AM_LIBS)
lib_mod_radius_la_SOURCES = $(noinst_HEADERS)
### macros for lib/mod_syslog.la
lib_mod_syslog_la_DEPENDENCIES = Makefile lib/libtacacs.la
lib_mod_syslog_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/lib/mod_syslog
lib_mod_syslog_la_CFLAGS = $(AM_CFLAGS)
lib_mod_syslog_la_LDFLAGS = -module \
-avoid-version \
-export-dynamic \
-shared \
$(AM_LDFLAGS)
lib_mod_syslog_la_LIBADD = $(AM_LIBS)
lib_mod_syslog_la_SOURCES = $(noinst_HEADERS)
### macros for src/tacplus
src_tacplus_DEPENDENCIES = Makefile lib/libtacacs.la
src_tacplus_CPPFLAGS = -DPROGRAM_NAME="\"tacplus\"" $(AM_CPPFLAGS)
src_tacplus_CFLAGS = $(AM_CFLAGS)
src_tacplus_LDFLAGS = $(AM_LDFLAGS)
src_tacplus_LDADD = $(AM_LDADD) lib/libtacacs.la
src_tacplus_SOURCES = src/client/main.c
### macros for src/tacplusd
src_tacplusd_DEPENDENCIES = Makefile lib/libtacacs.la
src_tacplusd_CPPFLAGS = -DPROGRAM_NAME="\"tacplusd\"" $(AM_CPPFLAGS)
src_tacplusd_CFLAGS = $(AM_CFLAGS)
src_tacplusd_LDFLAGS = $(AM_LDFLAGS)
src_tacplusd_LDADD = $(AM_LDADD) lib/libtacacs.la
src_tacplusd_SOURCES = src/daemon/main.c
# Makefile includes
GIT_PACKAGE_VERSION_DIR=include
SUBST_EXPRESSIONS =
include $(srcdir)/contrib/bindletools/build-aux/makefile-bindle.am
include $(srcdir)/contrib/bindletools/build-aux/makefile-autotools.am
include $(srcdir)/contrib/bindletools/build-aux/makefile-subst.am
include $(srcdir)/contrib/bindletools/build-aux/makefile-version.am
# custom targets
.PHONY:
doc/tacacs.conf.5: Makefile $(srcdir)/doc/tacacs.conf.5.in
@$(do_subst_dt)
doc/tacacs_get_option.3: Makefile $(srcdir)/doc/tacacs_get_option.3.in
@$(do_subst_dt)
# local targets
install-exec-local:
install-data-local:
install-exec-hook:
install-data-hook:
test -f $(DESTDIR)/$(mandir)/man3/tacacs_get_option.3 && \
cd $(DESTDIR)/$(mandir)/man3 && \
ln -fs tacacs_get_option.3 tacacs_set_option.3
uninstall-local:
uninstall-hook:
rm -f $(DESTDIR)/$(mandir)/man3/tacacs_set_option.3
clean-local:
distclean-local:
rm -fR $(srcdir)/autom4te.cache
maintainer-clean-local:
# end of automake file