]> git.proxmox.com Git - mirror_frr.git/blob - Makefile.am
Merge pull request #2799 from adharkar/frr-zebra_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 include staticd/subdir.am
59
60 SUBDIRS = . @LIBRFP@ @RFPTEST@ \
61 @BGPD@ \
62 @VTYSH@ @DOC@ \
63 @SOLARIS@ tests
64
65 DIST_SUBDIRS = . bgpd \
66 vtysh doc tests \
67 solaris bgpd/rfp-example/librfp \
68 bgpd/rfp-example/rfptest \
69 debianpkg \
70 # end
71
72 if PKGSRC
73 rcdir=@pkgsrcrcdir@
74 rc_SCRIPTS = \
75 pkgsrc/bgpd.sh \
76 pkgsrc/ospf6d.sh \
77 pkgsrc/ospfd.sh \
78 pkgsrc/ripd.sh \
79 pkgsrc/ripngd.sh \
80 pkgsrc/zebra.sh \
81 # end
82 endif
83
84 EXTRA_DIST += \
85 aclocal.m4 \
86 m4/README.txt \
87 \
88 python/clidef.py \
89 python/clippy/__init__.py \
90 \
91 redhat/frr.init \
92 redhat/frr.service \
93 redhat/daemons \
94 redhat/frr.logrotate \
95 redhat/frr.pam \
96 redhat/frr.spec \
97 redhat/README.rpm_build.md \
98 \
99 snapcraft/snapcraft.yaml \
100 snapcraft/README.snap_build.md \
101 snapcraft/README.usage.md \
102 snapcraft/extra_version_info.txt \
103 snapcraft/scripts \
104 snapcraft/defaults \
105 snapcraft/helpers \
106 snapcraft/snap \
107 \
108 vtysh/Makefile.am \
109 vtysh/Makefile.in \
110 # end
111
112 ACLOCAL_AMFLAGS = -I m4
113
114 noinst_HEADERS += defaults.h
115
116 indent:
117 tools/indent.py `find sharpd bgpd eigrpd include isisd lib nhrpd ospf6d ospfd pimd qpb ripd vtysh zebra -name '*.[ch]' | grep -v include/linux`
118
119 if HAVE_GCOV
120
121 coverage: check
122 @ find . -name '*.o' -exec gcov {} \;
123
124 yorn:
125 @ echo "OK to upload coverage to https://coverage.io [y/N]:"
126 @ read yn; test "$$yn" = "y"
127
128 upload-check-coverage:
129 @ if [ "x${COMMIT}" = "x" ]; then echo "COMMIT required"; exit 1; fi
130 @ if [ "x${TOKEN}" = "x" ]; then echo "TOKEN required"; exit 1; fi
131 curl -s https://codecov.io/bash | bash -s - -C ${COMMIT} -t ${TOKEN}
132
133 force-check-coverage: coverage upload-check-coverage
134
135 check-coverage: coverage yorn upload-check-coverage
136
137 endif