]> git.proxmox.com Git - mirror_frr.git/blob - Makefile.am
Merge pull request #2800 from adharkar/frr-bgp_cli
[mirror_frr.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 AUTOMAKE_OPTIONS = subdir-objects 1.12
4 include common.am
5
6 AM_CPPFLAGS += -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \
7 -I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib
8 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE)
9 LIBCAP = @LIBCAP@
10
11 EXTRA_DIST =
12 BUILT_SOURCES =
13 CLEANFILES =
14
15 examplesdir = $(exampledir)
16
17 bin_PROGRAMS =
18 sbin_PROGRAMS =
19 sbin_SCRIPTS =
20 noinst_PROGRAMS =
21 noinst_HEADERS =
22 noinst_LIBRARIES =
23 lib_LTLIBRARIES =
24 module_LTLIBRARIES =
25 pkginclude_HEADERS =
26 nodist_pkginclude_HEADERS =
27 dist_examples_DATA =
28
29 ## libtool, the self-made GNU scourge
30 ## ... this should fix relinking
31 ## ... and AUTOMAKE_DUMMY is needed to prevent automake from treating this
32 ## as overriding the normal targets...
33 $(AUTOMAKE_DUMMY)install-moduleLTLIBRARIES: install-libLTLIBRARIES
34 $(AUTOMAKE_DUMMY)install-binPROGRAMS: install-libLTLIBRARIES
35 $(AUTOMAKE_DUMMY)install-sbinPROGRAMS: install-libLTLIBRARIES
36
37 include include/subdir.am
38 include lib/subdir.am
39 include zebra/subdir.am
40 include watchfrr/subdir.am
41 include qpb/subdir.am
42 include fpm/subdir.am
43 include tools/subdir.am
44
45 include ripd/subdir.am
46 include ripngd/subdir.am
47 include ospfd/subdir.am
48 include ospf6d/subdir.am
49 include ospfclient/subdir.am
50 include isisd/subdir.am
51 include nhrpd/subdir.am
52 include ldpd/subdir.am
53 include babeld/subdir.am
54 include eigrpd/subdir.am
55 include sharpd/subdir.am
56 include pimd/subdir.am
57 include pbrd/subdir.am
58
59 SUBDIRS = . @LIBRFP@ @RFPTEST@ \
60 @BGPD@ \
61 @VTYSH@ @DOC@ \
62 @SOLARIS@ tests
63
64 DIST_SUBDIRS = . bgpd \
65 vtysh doc tests \
66 solaris bgpd/rfp-example/librfp \
67 bgpd/rfp-example/rfptest \
68 debianpkg \
69 # end
70
71 if PKGSRC
72 rcdir=@pkgsrcrcdir@
73 rc_SCRIPTS = \
74 pkgsrc/bgpd.sh \
75 pkgsrc/ospf6d.sh \
76 pkgsrc/ospfd.sh \
77 pkgsrc/ripd.sh \
78 pkgsrc/ripngd.sh \
79 pkgsrc/zebra.sh \
80 # end
81 endif
82
83 EXTRA_DIST += \
84 aclocal.m4 \
85 m4/README.txt \
86 \
87 python/clidef.py \
88 python/clippy/__init__.py \
89 \
90 redhat/frr.init \
91 redhat/frr.service \
92 redhat/daemons \
93 redhat/frr.logrotate \
94 redhat/frr.pam \
95 redhat/frr.spec \
96 redhat/README.rpm_build.md \
97 \
98 snapcraft/snapcraft.yaml \
99 snapcraft/README.snap_build.md \
100 snapcraft/README.usage.md \
101 snapcraft/extra_version_info.txt \
102 snapcraft/scripts \
103 snapcraft/defaults \
104 snapcraft/helpers \
105 snapcraft/snap \
106 \
107 vtysh/Makefile.am \
108 vtysh/Makefile.in \
109 # end
110
111 ACLOCAL_AMFLAGS = -I m4
112
113 noinst_HEADERS += defaults.h
114
115 indent:
116 tools/indent.py `find sharpd bgpd eigrpd include isisd lib nhrpd ospf6d ospfd pimd qpb ripd vtysh zebra -name '*.[ch]' | grep -v include/linux`
117
118 if HAVE_GCOV
119
120 coverage: check
121 @ find . -name '*.o' -exec gcov {} \;
122
123 yorn:
124 @ echo "OK to upload coverage to https://coverage.io [y/N]:"
125 @ read yn; test "$$yn" = "y"
126
127 upload-check-coverage:
128 @ if [ "x${COMMIT}" = "x" ]; then echo "COMMIT required"; exit 1; fi
129 @ if [ "x${TOKEN}" = "x" ]; then echo "TOKEN required"; exit 1; fi
130 curl -s https://codecov.io/bash | bash -s - -C ${COMMIT} -t ${TOKEN}
131
132 force-check-coverage: coverage upload-check-coverage
133
134 check-coverage: coverage yorn upload-check-coverage
135
136 endif