]> git.proxmox.com Git - mirror_frr.git/blame - Makefile.am
Merge pull request #3192 from lkrishnamoor/evpn_route_server
[mirror_frr.git] / Makefile.am
CommitLineData
718e3744 1## Process this file with automake to produce Makefile.in.
2
4a121f99 3AUTOMAKE_OPTIONS = subdir-objects 1.12
aad24c5b 4ACLOCAL_AMFLAGS = -I m4
4a121f99 5
aad24c5b 6AM_CFLAGS = \
dbac691d
DL
7 $(SAN_FLAGS) \
8 $(WERROR) \
9 # end
aad24c5b 10AM_CPPFLAGS = \
aad24c5b
DL
11 -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \
12 -I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib
4007e3ad 13AM_LDFLAGS = \
dbac691d 14 -export-dynamic \
d6e76257 15 $(AC_LDFLAGS) \
dbac691d
DL
16 $(SAN_FLAGS) \
17 # end
62d21cc6 18DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE)
64d44794 19LIBCAP = @LIBCAP@
4a121f99 20
b8dd5f9d
DL
21# these two targets are provided to easily grab autoconf/Makefile variables
22# you can use either:
23# eval `make VARFD=3 shvar-CFLAGS 3>&1 1>&2`
24# CFLAGS="`make VARFD=3 var-CFLAGS 3>&1 1>&2`"
25# where the former can be used to set several variables at once. Note the
26# fd redirections -- this is to prevent garbage from make rebuilding other
27# targets from causing issues.
28.PHONY: shvar-% var-%
29VARFD ?= 1
30shvar-%:
31 @echo "$*=\"$($*)\"" >&$(VARFD)
32var-%:
33 @echo "$($*)" >&$(VARFD)
34
892d21b1
DL
35# overwriting these vars breaks cross-compilation. let's be helpful and warn.
36#
37# note: "#AUTODERP# " will be removed from Makefile by configure. These are
38# GNU make directives & automake will f*ck them up by trying to process them
39# as automake directives.
40#
41#AUTODERP# null=
42#AUTODERP# SPACE=$(null) $(null)
43#AUTODERP# mkcheck_CC = $(findstring $(SPACE)CC=, $(SPACE)$(MAKEOVERRIDES))
44#AUTODERP# mkcheck_CFLAGS = $(findstring $(SPACE)CFLAGS=, $(SPACE)$(MAKEOVERRIDES))
45#AUTODERP# mkcheck_CPPFLAGS = $(findstring $(SPACE)CPPFLAGS=,$(SPACE)$(MAKEOVERRIDES))
46#AUTODERP# mkcheck_CCLD = $(findstring $(SPACE)CCLD=, $(SPACE)$(MAKEOVERRIDES))
47#AUTODERP# mkcheck_LD = $(findstring $(SPACE)LD=, $(SPACE)$(MAKEOVERRIDES))
48#AUTODERP# mkcheck_LDFLAGS = $(findstring $(SPACE)LDFLAGS=, $(SPACE)$(MAKEOVERRIDES))
49#AUTODERP# #
50#AUTODERP# ifneq ($(mkcheck_CC),)
51#AUTODERP# $(warning WARNING: you have overwritten the "CC" variable on the make command line.)
52#AUTODERP# endif
53#AUTODERP# ifneq ($(mkcheck_CFLAGS),)
54#AUTODERP# $(warning WARNING: you have overwritten the "CFLAGS" variable on the make command line.)
55#AUTODERP# endif
56#AUTODERP# ifneq ($(mkcheck_CPPFLAGS),)
57#AUTODERP# $(warning WARNING: you have overwritten the "CPPFLAGS" variable on the make command line.)
58#AUTODERP# endif
59#AUTODERP# ifneq ($(mkcheck_CCLD),)
60#AUTODERP# $(warning WARNING: you have overwritten the "CCLD" variable on the make command line.)
61#AUTODERP# endif
62#AUTODERP# ifneq ($(mkcheck_LD),)
63#AUTODERP# $(warning WARNING: you have overwritten the "LD" variable on the make command line.)
64#AUTODERP# endif
65#AUTODERP# ifneq ($(mkcheck_LDFLAGS),)
66#AUTODERP# $(warning WARNING: you have overwritten the "LDFLAGS" variable on the make command line.)
67#AUTODERP# endif
68#AUTODERP# #
69#AUTODERP# ifneq ($(mkcheck_CC)$(mkcheck_CFLAGS)$(mkcheck_CPPFLAGS)$(mkcheck_CCLD)$(mkcheck_LD)$(mkcheck_LDFLAGS),)
70#AUTODERP# $(warning ------)
71#AUTODERP# $(warning While overwriting these variables works most of the time, it is not recommended and can cause confusing build errors.)
72#AUTODERP# $(warning This is especially problematic when cross-compiling, since tools that run on the build system during the build process will not be compiled correctly.)
73#AUTODERP# $(warning All of these variables should be supplied to 'configure', and they will be remembered and correctly applied during 'make'.)
74#AUTODERP# $(warning ------)
75#AUTODERP# endif
76
4a121f99
DL
77EXTRA_DIST =
78BUILT_SOURCES =
0f8b5fd5 79CLEANFILES =
4a121f99 80
64d44794
DL
81examplesdir = $(exampledir)
82
4a121f99
DL
83bin_PROGRAMS =
84sbin_PROGRAMS =
bd354725 85sbin_SCRIPTS =
4a121f99
DL
86noinst_PROGRAMS =
87noinst_HEADERS =
88noinst_LIBRARIES =
9e53b315 89nodist_noinst_DATA =
4a121f99 90lib_LTLIBRARIES =
64d44794 91module_LTLIBRARIES =
4a121f99 92pkginclude_HEADERS =
70d27c5b 93nodist_pkginclude_HEADERS =
64d44794 94dist_examples_DATA =
9e53b315 95man_MANS =
74dc19a2 96vtysh_scan =
4a121f99 97
6a35bfba
DL
98## libtool, the self-made GNU scourge
99## ... this should fix relinking
100## ... and AUTOMAKE_DUMMY is needed to prevent automake from treating this
101## as overriding the normal targets...
102$(AUTOMAKE_DUMMY)install-moduleLTLIBRARIES: install-libLTLIBRARIES
103$(AUTOMAKE_DUMMY)install-binPROGRAMS: install-libLTLIBRARIES
104$(AUTOMAKE_DUMMY)install-sbinPROGRAMS: install-libLTLIBRARIES
105
9e53b315
DL
106include doc/subdir.am
107include doc/user/subdir.am
108include doc/manpages/subdir.am
109include doc/developer/subdir.am
ba777396 110include include/subdir.am
4a121f99 111include lib/subdir.am
64d44794 112include zebra/subdir.am
bd354725 113include watchfrr/subdir.am
0f8b5fd5
DL
114include qpb/subdir.am
115include fpm/subdir.am
bd354725 116include tools/subdir.am
0d0812a4 117include debianpkg/subdir.am
e3863245 118include solaris/subdir.am
4a121f99 119
84d837b7
DL
120include bgpd/subdir.am
121include bgpd/rfp-example/librfp/subdir.am
122include bgpd/rfp-example/rfptest/subdir.am
7f269117
DL
123include ripd/subdir.am
124include ripngd/subdir.am
afca0690
DL
125include ospfd/subdir.am
126include ospf6d/subdir.am
127include ospfclient/subdir.am
86e463cf 128include isisd/subdir.am
cde8cd9d 129include nhrpd/subdir.am
30237d29 130include ldpd/subdir.am
b6f5781c
DL
131include babeld/subdir.am
132include eigrpd/subdir.am
8a71d93d 133include sharpd/subdir.am
35a3c3c1 134include pimd/subdir.am
e5c83d9b 135include pbrd/subdir.am
7e24fdf3 136include staticd/subdir.am
7134904b 137include bfdd/subdir.am
7f269117 138
8b7668ec 139include vtysh/subdir.am
a1286a32 140include tests/subdir.am
718e3744 141
53d93be1
DL
142if PKGSRC
143rcdir=@pkgsrcrcdir@
144rc_SCRIPTS = \
145 pkgsrc/bgpd.sh \
146 pkgsrc/ospf6d.sh \
147 pkgsrc/ospfd.sh \
148 pkgsrc/ripd.sh \
149 pkgsrc/ripngd.sh \
150 pkgsrc/zebra.sh \
151 # end
152endif
153
154EXTRA_DIST += \
53d93be1 155 aclocal.m4 \
d85cb6b6 156 README.md \
53d93be1 157 m4/README.txt \
d6e76257 158 m4/libtool-whole-archive.patch \
53d93be1
DL
159 \
160 python/clidef.py \
161 python/clippy/__init__.py \
162 \
163 redhat/frr.init \
164 redhat/frr.service \
165 redhat/daemons \
166 redhat/frr.logrotate \
167 redhat/frr.pam \
168 redhat/frr.spec \
169 redhat/README.rpm_build.md \
170 \
171 snapcraft/snapcraft.yaml \
172 snapcraft/README.snap_build.md \
173 snapcraft/README.usage.md \
174 snapcraft/extra_version_info.txt \
175 snapcraft/scripts \
176 snapcraft/defaults \
177 snapcraft/helpers \
178 snapcraft/snap \
179 \
f8948c1e
DL
180 babeld/Makefile \
181 bgpd/Makefile \
182 bgpd/rfp-example/librfp/Makefile \
183 bgpd/rfp-example/rfptest/Makefile \
9e53b315
DL
184 doc/Makefile \
185 doc/developer/Makefile \
186 doc/manpages/Makefile \
187 doc/user/Makefile \
f8948c1e
DL
188 eigrpd/Makefile \
189 fpm/Makefile \
190 isisd/Makefile \
191 ldpd/Makefile \
192 lib/Makefile \
193 nhrpd/Makefile \
194 ospf6d/Makefile \
195 ospfclient/Makefile \
196 ospfd/Makefile \
197 pbrd/Makefile \
198 pimd/Makefile \
199 ports/Makefile \
200 qpb/Makefile \
201 ripd/Makefile \
202 ripngd/Makefile \
203 staticd/Makefile \
204 tests/Makefile \
205 tools/Makefile \
206 vtysh/Makefile \
207 watchfrr/Makefile \
208 zebra/Makefile \
53d93be1 209 # end
0fc42949 210
4a121f99 211noinst_HEADERS += defaults.h
da5a0d00
LB
212
213indent:
214 tools/indent.py `find sharpd bgpd eigrpd include isisd lib nhrpd ospf6d ospfd pimd qpb ripd vtysh zebra -name '*.[ch]' | grep -v include/linux`
83284209
AJ
215
216if HAVE_GCOV
217
218coverage: check
219 @ find . -name '*.o' -exec gcov {} \;
220
221yorn:
222 @ echo "OK to upload coverage to https://coverage.io [y/N]:"
223 @ read yn; test "$$yn" = "y"
224
225upload-check-coverage:
226 @ if [ "x${COMMIT}" = "x" ]; then echo "COMMIT required"; exit 1; fi
227 @ if [ "x${TOKEN}" = "x" ]; then echo "TOKEN required"; exit 1; fi
228 curl -s https://codecov.io/bash | bash -s - -C ${COMMIT} -t ${TOKEN}
229
230force-check-coverage: coverage upload-check-coverage
231
232check-coverage: coverage yorn upload-check-coverage
233
234endif