X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile.am;h=c56a551aa50d7afb24307d9e25eb95f1989271ef;hb=2569910bb6e5c00ececc60ed15b182e14a88cb9d;hp=fb052a8dea721ae605f48d4b847e63b08c9857e3;hpb=e991eff5b5773e8a85c3f4c4f92c09fe30cf680b;p=mirror_frr.git diff --git a/Makefile.am b/Makefile.am index fb052a8de..c56a551aa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,7 @@ AUTOMAKE_OPTIONS = subdir-objects 1.12 ACLOCAL_AMFLAGS = -I m4 AM_CFLAGS = \ + $(UNWIND_CFLAGS) \ $(SAN_FLAGS) \ $(WERROR) \ # end @@ -12,11 +13,16 @@ AM_CPPFLAGS = \ -I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib AM_LDFLAGS = \ -export-dynamic \ + $(AC_LDFLAGS) \ $(SAN_FLAGS) \ # end DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE) LIBCAP = @LIBCAP@ +AR_FLAGS = @AR_FLAGS@ +ARFLAGS = @ARFLAGS@ +RANLIB = @RANLIB@ + # these two targets are provided to easily grab autoconf/Makefile variables # you can use either: # eval `make VARFD=3 shvar-CFLAGS 3>&1 1>&2` @@ -76,6 +82,7 @@ var-%: EXTRA_DIST = BUILT_SOURCES = CLEANFILES = +DISTCLEANFILES = examplesdir = $(exampledir) @@ -88,9 +95,11 @@ noinst_LIBRARIES = nodist_noinst_DATA = lib_LTLIBRARIES = module_LTLIBRARIES = +libyang_plugins_LTLIBRARIES = pkginclude_HEADERS = nodist_pkginclude_HEADERS = dist_examples_DATA = +dist_yangmodels_DATA = man_MANS = vtysh_scan = @@ -101,6 +110,7 @@ vtysh_scan = $(AUTOMAKE_DUMMY)install-moduleLTLIBRARIES: install-libLTLIBRARIES $(AUTOMAKE_DUMMY)install-binPROGRAMS: install-libLTLIBRARIES $(AUTOMAKE_DUMMY)install-sbinPROGRAMS: install-libLTLIBRARIES +$(AUTOMAKE_DUMMY)install-libyang_pluginsLTLIBRARIES: install-libLTLIBRARIES include doc/subdir.am include doc/user/subdir.am @@ -134,9 +144,12 @@ include pimd/subdir.am include pbrd/subdir.am include staticd/subdir.am include bfdd/subdir.am +include yang/subdir.am +include yang/libyang_plugins/subdir.am include vtysh/subdir.am include tests/subdir.am +include tests/topotests/subdir.am if PKGSRC rcdir=@pkgsrcrcdir@ @@ -154,6 +167,8 @@ EXTRA_DIST += \ aclocal.m4 \ README.md \ m4/README.txt \ + m4/libtool-whole-archive.patch \ + config.version \ \ python/clidef.py \ python/clippy/__init__.py \ @@ -208,6 +223,15 @@ EXTRA_DIST += \ noinst_HEADERS += defaults.h +clean-local: clean-python +.PHONY: clean-python +clean-python: + find -name __pycache__ -o -name .pytest_cache | xargs rm -rf + find -name "*.pyc" -o -name "*_clippy.c" | xargs rm -f + +redistclean: + $(MAKE) distclean CONFIG_CLEAN_FILES="$(filter-out $(EXTRA_DIST), $(CONFIG_CLEAN_FILES))" + indent: tools/indent.py `find sharpd bgpd eigrpd include isisd lib nhrpd ospf6d ospfd pimd qpb ripd vtysh zebra -name '*.[ch]' | grep -v include/linux`