]> git.proxmox.com Git - mirror_frr.git/blobdiff - Makefile.am
Merge pull request #2267 from donaldsharp/flim_flam
[mirror_frr.git] / Makefile.am
index f204f8a724b7b0f4e248a7a27dbcf7e096339aed..431696430393199eacb7b6eff64ad40bdf9e5a29 100644 (file)
@@ -3,9 +3,11 @@
 AUTOMAKE_OPTIONS = subdir-objects 1.12
 include common.am
 
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir) -I$(top_builddir)/lib
+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 = $(WERROR)
-DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE)
+VERSION_TYPE := $(shell if echo $(VERSION) | grep -q '^[0-9\.]*$$'; then echo RELEASE ; else echo DEV ; fi)
+DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE) -DVERSION_TYPE_$(VERSION_TYPE)
 LIBCAP = @LIBCAP@
 
 EXTRA_DIST =
@@ -16,6 +18,7 @@ examplesdir = $(exampledir)
 
 bin_PROGRAMS =
 sbin_PROGRAMS =
+sbin_SCRIPTS =
 noinst_PROGRAMS =
 noinst_HEADERS =
 noinst_LIBRARIES =
@@ -33,10 +36,13 @@ $(AUTOMAKE_DUMMY)install-moduleLTLIBRARIES: install-libLTLIBRARIES
 $(AUTOMAKE_DUMMY)install-binPROGRAMS: install-libLTLIBRARIES
 $(AUTOMAKE_DUMMY)install-sbinPROGRAMS: install-libLTLIBRARIES
 
+include include/subdir.am
 include lib/subdir.am
 include zebra/subdir.am
+include watchfrr/subdir.am
 include qpb/subdir.am
 include fpm/subdir.am
+include tools/subdir.am
 
 include ripd/subdir.am
 include ripngd/subdir.am
@@ -48,17 +54,20 @@ include nhrpd/subdir.am
 include ldpd/subdir.am
 include babeld/subdir.am
 include eigrpd/subdir.am
+include sharpd/subdir.am
+include pimd/subdir.am
+include pbrd/subdir.am
 
 SUBDIRS = . @LIBRFP@ @RFPTEST@ \
         @BGPD@ \
-         @PIMD@ \
-        @WATCHFRR@ @VTYSH@ @DOC@ \
-         @SOLARIS@ tests tools
+        @VTYSH@ @DOC@ \
+         @SOLARIS@ tests
 
 DIST_SUBDIRS = . bgpd \
-         watchfrr vtysh doc tests \
-         solaris pimd bgpd/rfp-example/librfp \
-         bgpd/rfp-example/rfptest tools \
+         vtysh doc tests \
+         solaris bgpd/rfp-example/librfp \
+         bgpd/rfp-example/rfptest \
+         debianpkg \
          # end
 
 if PKGSRC
@@ -74,8 +83,6 @@ rc_SCRIPTS = \
 endif
 
 EXTRA_DIST += \
-       REPORTING-BUGS \
-       SERVICES \
        aclocal.m4 \
        update-autotools \
        m4/README.txt \
@@ -100,12 +107,6 @@ EXTRA_DIST += \
        snapcraft/helpers \
        snapcraft/snap \
        \
-       tools/multiple-bgpd.sh \
-       tools/rrcheck.pl \
-       tools/rrlookup.pl \
-       tools/zc.pl \
-       tools/zebra.el \
-       \
        vtysh/Makefile.am \
        vtysh/Makefile.in \
        # end
@@ -113,3 +114,6 @@ EXTRA_DIST += \
 ACLOCAL_AMFLAGS = -I m4
 
 noinst_HEADERS += defaults.h
+
+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`