]> git.proxmox.com Git - mirror_frr.git/blobdiff - Makefile.am
lib: Add LIB_ERR_SNMP
[mirror_frr.git] / Makefile.am
index 431696430393199eacb7b6eff64ad40bdf9e5a29..3e268f703da3beb8bac5fae4171962db2e04c075 100644 (file)
@@ -3,11 +3,9 @@
 AUTOMAKE_OPTIONS = subdir-objects 1.12
 include common.am
 
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/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)
-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)
+DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE)
 LIBCAP = @LIBCAP@
 
 EXTRA_DIST =
@@ -57,6 +55,8 @@ include eigrpd/subdir.am
 include sharpd/subdir.am
 include pimd/subdir.am
 include pbrd/subdir.am
+include staticd/subdir.am
+include bfdd/subdir.am
 
 SUBDIRS = . @LIBRFP@ @RFPTEST@ \
         @BGPD@ \
@@ -84,7 +84,6 @@ endif
 
 EXTRA_DIST += \
        aclocal.m4 \
-       update-autotools \
        m4/README.txt \
        \
        python/clidef.py \
@@ -117,3 +116,23 @@ 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`
+
+if HAVE_GCOV
+
+coverage: check
+       @ find . -name '*.o' -exec gcov {} \;
+
+yorn:
+       @ echo "OK to upload coverage to https://coverage.io [y/N]:"
+       @ read yn; test "$$yn" = "y"
+
+upload-check-coverage:
+       @ if [ "x${COMMIT}" = "x" ]; then echo "COMMIT required"; exit 1; fi
+       @ if [ "x${TOKEN}" = "x" ]; then echo "TOKEN required"; exit 1; fi
+       curl -s https://codecov.io/bash | bash -s - -C ${COMMIT} -t ${TOKEN}
+
+force-check-coverage: coverage upload-check-coverage
+
+check-coverage: coverage yorn upload-check-coverage
+
+endif