diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-04-18 12:56:11 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-04-18 13:02:13 -0800 |
| commit | 376d18bcb7ee9de199bbb05a11f681c538292454 (patch) | |
| tree | 28897702468756227fc5106f9b134e4d46ca32e3 | |
| parent | bd508620a055cb8e994eadb9cc0d9a8c6fddf2b8 (diff) | |
| download | tinyrad-376d18bcb7ee9de199bbb05a11f681c538292454.tar.gz tinyrad-376d18bcb7ee9de199bbb05a11f681c538292454.tar.bz2 tinyrad-376d18bcb7ee9de199bbb05a11f681c538292454.tar.xz tinyrad-376d18bcb7ee9de199bbb05a11f681c538292454.zip | |
autotools: adding rules to build lib/libbindle.a
| -rw-r--r-- | Makefile.am | 26 | ||||
| -rw-r--r-- | configure.ac | 1 | ||||
| -rw-r--r-- | m4/.gitignore | 1 |
3 files changed, 21 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am index a1520f8..c2c2e17 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -75,8 +75,10 @@ lib_LIBRARIES = | |||
| 75 | man_MANS = | 75 | man_MANS = |
| 76 | info_TEXINFOS = | 76 | info_TEXINFOS = |
| 77 | noinst_LTLIBRARIES = | 77 | noinst_LTLIBRARIES = |
| 78 | noinst_LIBRARIES = lib/libutils.a | 78 | noinst_LIBRARIES = lib/libbindle.a \ |
| 79 | noinst_HEADERS = include/tinyrad_compat.h \ | 79 | lib/libutils.a |
| 80 | noinst_HEADERS = include/bindle_prefix.h \ | ||
| 81 | include/tinyrad_compat.h \ | ||
| 80 | include/tinyrad_internal.h \ | 82 | include/tinyrad_internal.h \ |
| 81 | include/tinyrad_utils.h | 83 | include/tinyrad_utils.h |
| 82 | noinst_PROGRAMS = | 84 | noinst_PROGRAMS = |
| @@ -113,7 +115,7 @@ EXTRA = lib/libtinyrad.a \ | |||
| 113 | 115 | ||
| 114 | # lists | 116 | # lists |
| 115 | AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = | 117 | AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = |
| 116 | BUILT_SOURCES = | 118 | BUILT_SOURCES = include/bindle_prefix.h |
| 117 | TESTS = tests/test-array-sorted \ | 119 | TESTS = tests/test-array-sorted \ |
| 118 | tests/test-array-stack \ | 120 | tests/test-array-stack \ |
| 119 | tests/test-array-queue \ | 121 | tests/test-array-queue \ |
| @@ -168,6 +170,7 @@ CLEANFILES = $(builddir)/a.out $(srcdir)/a.out \ | |||
| 168 | $(sbin_SCRIPTS) \ | 170 | $(sbin_SCRIPTS) \ |
| 169 | $(EXTRA_PROGRAMS) \ | 171 | $(EXTRA_PROGRAMS) \ |
| 170 | doc/tinyrad.conf-example \ | 172 | doc/tinyrad.conf-example \ |
| 173 | include/bindle_prefix.h \ | ||
| 171 | @PACKAGE_TARNAME@-*.tar.* \ | 174 | @PACKAGE_TARNAME@-*.tar.* \ |
| 172 | @PACKAGE_TARNAME@-*.txz \ | 175 | @PACKAGE_TARNAME@-*.txz \ |
| 173 | @PACKAGE_TARNAME@-*.zip | 176 | @PACKAGE_TARNAME@-*.zip |
| @@ -235,7 +238,9 @@ lib_libtinyrad_a_DEPENDENCIES = Makefile \ | |||
| 235 | lib_libtinyrad_a_CPPFLAGS = $(AM_CPPFLAGS) \ | 238 | lib_libtinyrad_a_CPPFLAGS = $(AM_CPPFLAGS) \ |
| 236 | -I$(srcdir)/lib/libtinyrad | 239 | -I$(srcdir)/lib/libtinyrad |
| 237 | lib_libtinyrad_a_CFLAGS = $(AM_CFLAGS) | 240 | lib_libtinyrad_a_CFLAGS = $(AM_CFLAGS) |
| 238 | lib_libtinyrad_a_SOURCES = include/tinyrad.h \ | 241 | lib_libtinyrad_a_SOURCES = $(lib_libtinytac_a_SOURCES) \ |
| 242 | include/bindle_prefix.h \ | ||
| 243 | include/tinyrad.h \ | ||
| 239 | include/tinyrad_internal.h \ | 244 | include/tinyrad_internal.h \ |
| 240 | include/tinyrad_compat.h \ | 245 | include/tinyrad_compat.h \ |
| 241 | lib/libtinyrad/libtinyrad.h \ | 246 | lib/libtinyrad/libtinyrad.h \ |
| @@ -290,6 +295,7 @@ lib_libutils_a_CPPFLAGS = $(AM_CPPFLAGS) \ | |||
| 290 | -I$(srcdir)/lib/libtinyrad | 295 | -I$(srcdir)/lib/libtinyrad |
| 291 | lib_libutils_a_CFLAGS = $(AM_CFLAGS) | 296 | lib_libutils_a_CFLAGS = $(AM_CFLAGS) |
| 292 | lib_libutils_a_SOURCES = $(noinst_HEADERS) $(include_HEADERS) \ | 297 | lib_libutils_a_SOURCES = $(noinst_HEADERS) $(include_HEADERS) \ |
| 298 | include/bindle_prefix.h \ | ||
| 293 | lib/libutils/libutils.h \ | 299 | lib/libutils/libutils.h \ |
| 294 | lib/libutils/lfile.c \ | 300 | lib/libutils/lfile.c \ |
| 295 | lib/libutils/lfile.h \ | 301 | lib/libutils/lfile.h \ |
| @@ -305,6 +311,7 @@ src_tinyrad_LDADD = $(lib_LTLIBRARIES) $(noinst_LIBRARIES) | |||
| 305 | src_tinyrad_SOURCES = $(noinst_HEADERS) $(include_HEADERS) \ | 311 | src_tinyrad_SOURCES = $(noinst_HEADERS) $(include_HEADERS) \ |
| 306 | src/tru/tinyradutil.h \ | 312 | src/tru/tinyradutil.h \ |
| 307 | src/tru/tinyradutil.c \ | 313 | src/tru/tinyradutil.c \ |
| 314 | src/tru/widget-client.c \ | ||
| 308 | src/tru/widget-config.c \ | 315 | src/tru/widget-config.c \ |
| 309 | src/tru/widget-dict.c \ | 316 | src/tru/widget-dict.c \ |
| 310 | src/tru/widget-url.c | 317 | src/tru/widget-url.c |
| @@ -431,14 +438,17 @@ tests_test_url_resolve_SOURCES = $(noinst_HEADERS) $(include_HEADERS) \ | |||
| 431 | # Makefile includes | 438 | # Makefile includes |
| 432 | GIT_PACKAGE_VERSION_DIR=include | 439 | GIT_PACKAGE_VERSION_DIR=include |
| 433 | SUBST_EXPRESSIONS = | 440 | SUBST_EXPRESSIONS = |
| 434 | include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-autotools.am | 441 | include contrib/bindletools/build-aux/makefile-autotools.am |
| 435 | include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-subst.am | 442 | include contrib/bindletools/build-aux/makefile-subst.am |
| 436 | include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-version.am | 443 | include contrib/bindletools/build-aux/makefile-version.am |
| 444 | include contrib/bindletools/build-aux/makefile-libbindle.am | ||
| 437 | 445 | ||
| 438 | 446 | ||
| 439 | # custom targets | 447 | # custom targets |
| 440 | .PHONY: examples | 448 | .PHONY: examples |
| 441 | 449 | ||
| 450 | dep: include/bindle_prefix.h | ||
| 451 | |||
| 442 | doc/mans/tinyrad.3: Makefile $(srcdir)/doc/mans/tinyrad.3.in | 452 | doc/mans/tinyrad.3: Makefile $(srcdir)/doc/mans/tinyrad.3.in |
| 443 | @$(do_subst_dt) | 453 | @$(do_subst_dt) |
| 444 | 454 | ||
| @@ -478,6 +488,7 @@ install-data-local: | |||
| 478 | install-data-hook: | 488 | install-data-hook: |
| 479 | if test -f $(DESTDIR)/$(bindir)/tinyrad;then\ | 489 | if test -f $(DESTDIR)/$(bindir)/tinyrad;then\ |
| 480 | cd $(DESTDIR)/$(bindir) && \ | 490 | cd $(DESTDIR)/$(bindir) && \ |
| 491 | ln -fs tinyrad tinyradclient && \ | ||
| 481 | ln -fs tinyrad tinyrad-conf && \ | 492 | ln -fs tinyrad tinyrad-conf && \ |
| 482 | ln -fs tinyrad tinyrad-dict && \ | 493 | ln -fs tinyrad tinyrad-dict && \ |
| 483 | ln -fs tinyrad tinyrad-url; \ | 494 | ln -fs tinyrad tinyrad-url; \ |
| @@ -517,6 +528,7 @@ uninstall-local: | |||
| 517 | 528 | ||
| 518 | 529 | ||
| 519 | uninstall-hook: | 530 | uninstall-hook: |
| 531 | rm -f $(DESTDIR)/$(bindir)/tinyradclient | ||
| 520 | rm -f $(DESTDIR)/$(bindir)/tinyrad-conf | 532 | rm -f $(DESTDIR)/$(bindir)/tinyrad-conf |
| 521 | rm -f $(DESTDIR)/$(bindir)/tinyrad-dict | 533 | rm -f $(DESTDIR)/$(bindir)/tinyrad-dict |
| 522 | rm -f $(DESTDIR)/$(mandir)/man3/tinyrad_array_add.3 | 534 | rm -f $(DESTDIR)/$(mandir)/man3/tinyrad_array_add.3 |
diff --git a/configure.ac b/configure.ac index ef2eac8..ea07ee1 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -190,6 +190,7 @@ AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version | |||
| 190 | 190 | ||
| 191 | # custom configure options | 191 | # custom configure options |
| 192 | AC_BINDLE_ENABLE_WARNINGS([-Wno-unknown-pragmas -Wno-missing-format-attribute -Wno-poison-system-directories], [], [c11]) | 192 | AC_BINDLE_ENABLE_WARNINGS([-Wno-unknown-pragmas -Wno-missing-format-attribute -Wno-poison-system-directories], [], [c11]) |
| 193 | AC_BINDLE_LIBBINDLE([tinyradb_]) | ||
| 193 | AC_TINYRAD_IPV4 | 194 | AC_TINYRAD_IPV4 |
| 194 | AC_TINYRAD_IPV6 | 195 | AC_TINYRAD_IPV6 |
| 195 | AC_TINYRAD_LIBTINYRAD | 196 | AC_TINYRAD_LIBTINYRAD |
diff --git a/m4/.gitignore b/m4/.gitignore index 2cbb5d6..28dd74a 100644 --- a/m4/.gitignore +++ b/m4/.gitignore | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | /bindle-doxygen.m4 | 2 | /bindle-doxygen.m4 |
| 3 | /bindle-gcc.m4 | 3 | /bindle-gcc.m4 |
| 4 | /bindle-git.m4 | 4 | /bindle-git.m4 |
| 5 | /bindle-libbindle.m4 | ||
| 5 | /bindle-libtool.m4 | 6 | /bindle-libtool.m4 |
| 6 | /bindle-perl.m4 | 7 | /bindle-perl.m4 |
| 7 | /bindle-postgresql.m4 | 8 | /bindle-postgresql.m4 |
