-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
247 lines (210 loc) · 6.87 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
#
# Tiny TACACS+ Client Library
# Copyright (C) 2022 David M. Syzdek <[email protected]>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * 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.
# * Neither the name of David M. Syzdek 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 DAVID M SYZDEK 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 =
DIST_SUBDIRS =
# 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 \
-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
DEFS =
# custom directories
rfcdocdir = $(docdir)/rfc
# automake targets
check_PROGRAMS =
doc_DATA = AUTHORS.md \
ChangeLog.md \
COPYING.md \
README.md \
TODO.md
include_HEADERS =
lib_LTLIBRARIES =
lib_LIBRARIES =
man_MANS =
info_TEXINFOS =
noinst_LTLIBRARIES =
noinst_LIBRARIES = lib/libbindle.a
noinst_HEADERS = include/bindle_prefix.h \
include/tinytac_compat.h
noinst_PROGRAMS =
bin_PROGRAMS =
bin_SCRIPTS =
pkgdata_DATA =
rfcdoc_DATA =
sbin_SCRIPTS =
sbin_PROGRAMS =
EXTRA_PROGRAMS = examples/md5-example \
examples/tacacs-example \
src/tinytac
EXTRA = lib/libtinytac.a \
lib/libtinytac.la \
include/tinytac.h
# lists
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT =
BUILT_SOURCES = include/bindle_prefix.h
TESTS = $(LIBBINDLE_TESTS)
XFAIL_TESTS =
EXTRA_MANS =
EXTRA_DIST = $(doc_DATA) \
doc/rfc/rfc1492.txt \
doc/rfc/rfc8907.txt \
include/tinytac.h \
include/tinytac_compat.h \
lib/libtinytac/libtinytac.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) \
$(EXTRA_PROGRAMS) \
include/bindle_prefix.h \
@PACKAGE_TARNAME@-*.tar.* \
@PACKAGE_TARNAME@-*.txz \
@PACKAGE_TARNAME@-*.zip
DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings \
--enable-documentation \
--enable-examples \
LDFLAGS="$(LDFLAGS)" \
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)"
# conditional build
if ENABLE_DOCUMENATION
rfcdoc_DATA += doc/rfc/rfc1492.txt
rfcdoc_DATA += doc/rfc/rfc8907.txt
endif
if ENABLE_EXAMPLES
noinst_PROGRAMS += examples/md5-example
noinst_PROGRAMS += examples/tacacs-example
endif
if ENABLE_LIBTINYTAC
include_HEADERS += include/tinytac.h
include_HEADERS += include/tinytac_plus.h
lib_LTLIBRARIES += lib/libtinytac.la
else
noinst_HEADERS += include/tinytac.h
noinst_LIBRARIES += lib/libtinytac.a
endif
if ENABLE_TINYTAC
bin_PROGRAMS += src/tinytac
endif
# macros for examples/md5-example
examples_md5_example_SOURCES = examples/md5-example.c
# macros for examples/tacacs-example
examples_tacacs_example_SOURCES = examples/tacacs-example.c
# macros for lib/libtinytac.a
lib_libtinytac_a_DEPENDENCIES = Makefile \
config.h
lib_libtinytac_a_CPPFLAGS = $(AM_CPPFLAGS) \
-I$(srcdir)/lib/libtinytac
lib_libtinytac_a_CFLAGS = $(AM_CFLAGS)
lib_libtinytac_a_SOURCES = $(lib_libbindle_a_SOURCES) \
include/bindle_prefix.h \
include/tinytac.h \
include/tinytac_plus.h \
include/tinytac_compat.h \
lib/libtinytac/libtinytac.h \
lib/libtinytac/lconf.c \
lib/libtinytac/lconf.h \
lib/libtinytac/ldebug.c \
lib/libtinytac/ldebug.h \
lib/libtinytac/lerror.c \
lib/libtinytac/lerror.h \
lib/libtinytac/lmemory.c \
lib/libtinytac/lmemory.h \
lib/libtinytac/lnetwork.c \
lib/libtinytac/lnetwork.h \
lib/libtinytac/lproto.c \
lib/libtinytac/lproto.h
# macros for lib/libtinytac.la
lib_libtinytac_la_DEPENDENCIES = Makefile \
config.h \
lib/libtinytac/libtinytac.sym
lib_libtinytac_la_CPPFLAGS = $(AM_CPPFLAGS) \
-I$(srcdir)/lib/libtinytac
lib_libtinytac_la_CFLAGS = $(AM_CFLAGS)
lib_libtinytac_la_LDFLAGS = -rpath'$(libdir)' \
-version-info $(LIB_VERSION_INFO) \
$(AM_LDFLAGS) \
-export-symbols $(srcdir)/lib/libtinytac/libtinytac.sym
lib_libtinytac_la_SOURCES = $(lib_libtinytac_a_SOURCES)
# macros for src/tinytac
src_tinytac_DEPENDENCIES = $(lib_LTLIBRARIES) \
$(lib_LIBRARIES) \
$(noinst_LIBRARIES)
src_tinytac_LDADD = $(lib_LTLIBRARIES) \
$(lib_LIBRARIES) \
$(noinst_LIBRARIES)
src_tinytac_SOURCES = $(noinst_HEADERS) $(include_HEADERS) \
src/ttu/tinytacutil.c \
src/ttu/tinytacutil.h \
src/ttu/widget-acct.c \
src/ttu/widget-authen.c \
src/ttu/widget-author.c \
src/ttu/widget-config.c
# Makefile includes
GIT_PACKAGE_VERSION_DIR=include
SUBST_EXPRESSIONS =
include contrib/bindletools/build-aux/makefile-subst.am
include contrib/bindletools/build-aux/makefile-version.am
include contrib/bindletools/build-aux/makefile-libbindle.am
# custom targets
.PHONY: examples
dep: include/bindle_prefix.h
git-clean:
git fsck --full --unreachable
git gc --auto --aggressive
# local targets
install-exec-local:
install-data-local:
install-data-hook:
uninstall-local:
uninstall-hook:
clean-local:
distclean-local:
rm -fR $(srcdir)/autom4te.cache
# end of automake file