]> git.proxmox.com Git - mirror_frr.git/blobdiff - Makefile.am
Merge pull request #3502 from donaldsharp/socket_to_me_baby
[mirror_frr.git] / Makefile.am
index b9003b8358474f23b14a9f01336fe5cf2c9227ed..c56a551aa50d7afb24307d9e25eb95f1989271ef 100644 (file)
@@ -1,13 +1,28 @@
 ## Process this file with automake to produce Makefile.in.
 
 AUTOMAKE_OPTIONS = subdir-objects 1.12
-include common.am
+ACLOCAL_AMFLAGS = -I m4
 
-AM_CPPFLAGS += -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \
-             -I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib
+AM_CFLAGS = \
+       $(UNWIND_CFLAGS) \
+       $(SAN_FLAGS) \
+       $(WERROR) \
+       # end
+AM_CPPFLAGS = \
+       -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \
+       -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`
@@ -67,6 +82,7 @@ var-%:
 EXTRA_DIST =
 BUILT_SOURCES =
 CLEANFILES =
+DISTCLEANFILES =
 
 examplesdir = $(exampledir)
 
@@ -79,10 +95,13 @@ 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 =
 
 ## libtool, the self-made GNU scourge
 ## ... this should fix relinking
@@ -91,6 +110,7 @@ man_MANS =
 $(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
@@ -106,6 +126,9 @@ include tools/subdir.am
 include debianpkg/subdir.am
 include solaris/subdir.am
 
+include bgpd/subdir.am
+include bgpd/rfp-example/librfp/subdir.am
+include bgpd/rfp-example/rfptest/subdir.am
 include ripd/subdir.am
 include ripngd/subdir.am
 include ospfd/subdir.am
@@ -121,17 +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
 
-SUBDIRS = . @LIBRFP@ @RFPTEST@ \
-        @BGPD@ \
-        @VTYSH@ \
-         tests
-
-DIST_SUBDIRS = . bgpd \
-         vtysh tests \
-         bgpd/rfp-example/librfp \
-         bgpd/rfp-example/rfptest \
-         # end
+include vtysh/subdir.am
+include tests/subdir.am
+include tests/topotests/subdir.am
 
 if PKGSRC
 rcdir=@pkgsrcrcdir@
@@ -147,7 +165,10 @@ endif
 
 EXTRA_DIST += \
        aclocal.m4 \
+       README.md \
        m4/README.txt \
+       m4/libtool-whole-archive.patch \
+       config.version \
        \
        python/clidef.py \
        python/clippy/__init__.py \
@@ -169,19 +190,48 @@ EXTRA_DIST += \
        snapcraft/helpers \
        snapcraft/snap \
        \
-       vtysh/Makefile.am \
-       vtysh/Makefile.in \
-       \
+       babeld/Makefile \
+       bgpd/Makefile \
+       bgpd/rfp-example/librfp/Makefile \
+       bgpd/rfp-example/rfptest/Makefile \
        doc/Makefile \
        doc/developer/Makefile \
        doc/manpages/Makefile \
        doc/user/Makefile \
+       eigrpd/Makefile \
+       fpm/Makefile \
+       isisd/Makefile \
+       ldpd/Makefile \
+       lib/Makefile \
+       nhrpd/Makefile \
+       ospf6d/Makefile \
+       ospfclient/Makefile \
+       ospfd/Makefile \
+       pbrd/Makefile \
+       pimd/Makefile \
+       ports/Makefile \
+       qpb/Makefile \
+       ripd/Makefile \
+       ripngd/Makefile \
+       staticd/Makefile \
+       tests/Makefile \
+       tools/Makefile \
+       vtysh/Makefile \
+       watchfrr/Makefile \
+       zebra/Makefile \
        # end
 
-ACLOCAL_AMFLAGS = -I m4
-
 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`