]>
Commit | Line | Data |
---|---|---|
939f4522 | 1 | # Copyright (C) 2007-2017 Nicira, Inc. |
a14bc59f BP |
2 | # |
3 | # Copying and distribution of this file, with or without modification, | |
4 | # are permitted in any medium without royalty provided the copyright | |
5 | # notice and this notice are preserved. This file is offered as-is, | |
6 | # without warranty of any kind. | |
7 | ||
064af421 BP |
8 | AUTOMAKE_OPTIONS = foreign subdir-objects |
9 | ACLOCAL_AMFLAGS = -I m4 | |
10 | SUBDIRS = datapath | |
11 | ||
064af421 | 12 | AM_CPPFLAGS = $(SSL_CFLAGS) |
cf06c2e9 | 13 | AM_LDFLAGS = $(SSL_LDFLAGS) |
95626395 | 14 | AM_LDFLAGS += $(OVS_LDFLAGS) |
e42dfc72 AS |
15 | |
16 | if WIN32 | |
17 | AM_CPPFLAGS += -I $(top_srcdir)/include/windows | |
c803536e | 18 | AM_CPPFLAGS += -I $(top_srcdir)/datapath-windows/include |
94887cf4 | 19 | AM_CPPFLAGS += $(PTHREAD_INCLUDES) |
b0e1bce5 | 20 | AM_CPPFLAGS += $(MSVC_CFLAGS) |
94887cf4 | 21 | AM_LDFLAGS += $(PTHREAD_LDFLAGS) |
1cb3649c | 22 | AM_LDFLAGS += $(MSVC64_LDFLAGS) |
e42dfc72 AS |
23 | endif |
24 | ||
064af421 | 25 | AM_CPPFLAGS += -I $(top_srcdir)/include |
837eefc7 | 26 | AM_CPPFLAGS += -I $(top_builddir)/include |
064af421 | 27 | AM_CPPFLAGS += -I $(top_srcdir)/lib |
611d30ce | 28 | AM_CPPFLAGS += -I $(top_builddir)/lib |
064af421 | 29 | |
8605a29b PK |
30 | AM_CPPFLAGS += $(SSL_INCLUDES) |
31 | ||
064af421 | 32 | AM_CFLAGS = -Wstrict-prototypes |
d161c099 | 33 | AM_CFLAGS += $(WARNING_FLAGS) |
95626395 | 34 | AM_CFLAGS += $(OVS_CFLAGS) |
064af421 | 35 | |
58397e6c KT |
36 | if DPDK_NETDEV |
37 | AM_CFLAGS += -D_FILE_OFFSET_BITS=64 | |
8e6681ea AC |
38 | DPDKSTRIP_FLAGS = --dpdk |
39 | else | |
40 | DPDKSTRIP_FLAGS = --nodpdk | |
58397e6c KT |
41 | endif |
42 | ||
064af421 BP |
43 | if NDEBUG |
44 | AM_CPPFLAGS += -DNDEBUG | |
45 | AM_CFLAGS += -fomit-frame-pointer | |
064af421 BP |
46 | endif |
47 | ||
0eaaacac FL |
48 | AM_CTAGSFLAGS = $(OVS_CTAGS_IDENTIFIERS_LIST) |
49 | ||
b02e1154 GS |
50 | if WIN32 |
51 | psep=";" | |
52 | else | |
53 | psep=":" | |
54 | endif | |
853d1083 BP |
55 | # PYTHONDONTWRITEBYTECODE=yes keeps Python from creating .pyc and .pyo |
56 | # files. Creating .py[co] works OK for any given version of Open | |
57 | # vSwitch, but it causes trouble if you switch from a version with | |
58 | # foo/__init__.py into an (older) version with plain foo.py, since | |
59 | # foo/__init__.pyc will cause Python to ignore foo.py. | |
e23812fc BP |
60 | run_python = \ |
61 | PYTHONPATH=$(top_srcdir)/python$(psep)$$PYTHONPATH \ | |
62 | PYTHONDONTWRITEBYTECODE=yes $(PYTHON) | |
853d1083 | 63 | |
22c79496 | 64 | ALL_LOCAL = |
d879a707 | 65 | BUILT_SOURCES = |
064af421 | 66 | CLEANFILES = |
15b619e2 | 67 | CLEAN_LOCAL = |
064af421 | 68 | DISTCLEANFILES = |
79982e90 | 69 | PYCOV_CLEAN_FILES = build-aux/check-structs,cover |
4441a01c | 70 | |
c431227e | 71 | EXTRA_DIST = \ |
8a97dc6e | 72 | AUTHORS.rst \ |
255efa72 | 73 | CONTRIBUTING.rst \ |
2eb98b60 | 74 | MAINTAINERS.rst \ |
c431227e | 75 | README.rst \ |
4441a01c | 76 | NOTICE \ |
826bc7b6 | 77 | .travis.yml \ |
40a75bbf LR |
78 | .travis/linux-build.sh \ |
79 | .travis/linux-prepare.sh \ | |
80 | .travis/osx-build.sh \ | |
81 | .travis/osx-prepare.sh \ | |
12c96b8a | 82 | appveyor.yml \ |
0027492d | 83 | boot.sh \ |
c9b94429 | 84 | build-aux/cccl \ |
abc67c1e | 85 | build-aux/cksum-schema-check \ |
39916858 | 86 | build-aux/calculate-schema-cksum \ |
4441a01c | 87 | build-aux/dist-docs \ |
3828b456 | 88 | build-aux/dpdkstrip.pl \ |
6ca37677 | 89 | build-aux/sodepends.pl \ |
94512c4a | 90 | build-aux/soexpand.pl \ |
a4e3c495 | 91 | build-aux/xml2nroff \ |
6ca37677 | 92 | $(MAN_FRAGMENTS) \ |
1ce96d2a | 93 | $(MAN_ROOTS) \ |
ef9c432c | 94 | Vagrantfile \ |
673b80ea RB |
95 | Vagrantfile-FreeBSD \ |
96 | .mailmap | |
064af421 BP |
97 | bin_PROGRAMS = |
98 | sbin_PROGRAMS = | |
99 | bin_SCRIPTS = | |
87103e1f | 100 | DIST_HOOKS = |
064af421 | 101 | dist_man_MANS = |
3b12adda | 102 | dist_pkgdata_DATA = |
064af421 BP |
103 | dist_pkgdata_SCRIPTS = |
104 | dist_sbin_SCRIPTS = | |
b2df0225 | 105 | dist_scripts_SCRIPTS = |
429ebf21 | 106 | dist_scripts_DATA = |
b2df0225 | 107 | INSTALL_DATA_LOCAL = |
44852fdf | 108 | UNINSTALL_LOCAL = |
064af421 | 109 | man_MANS = |
0027492d | 110 | MAN_FRAGMENTS = |
6ca37677 | 111 | MAN_ROOTS = |
c3bb4bd7 | 112 | noinst_DATA = |
064af421 | 113 | noinst_HEADERS = |
38b7a52b | 114 | lib_LTLIBRARIES = |
994bfc29 | 115 | noinst_LTLIBRARIES = |
045b2e5c | 116 | noinst_man_MANS = |
064af421 BP |
117 | noinst_PROGRAMS = |
118 | noinst_SCRIPTS = | |
00732bf5 | 119 | OVSIDL_BUILT = |
9c16ed64 | 120 | pkgdata_DATA = |
b2df0225 | 121 | sbin_SCRIPTS = |
43bb5f82 | 122 | scripts_SCRIPTS = |
2c9907cd | 123 | completion_SCRIPTS = |
429ebf21 | 124 | scripts_DATA = |
c3bb4bd7 | 125 | SUFFIXES = |
15b619e2 | 126 | check_DATA = |
08d42548 | 127 | check_SCRIPTS = |
81696de0 | 128 | pkgconfig_DATA = |
115d8719 | 129 | FLAKE8_PYFILES = |
064af421 | 130 | |
43bb5f82 | 131 | scriptsdir = $(pkgdatadir)/scripts |
2c9907cd | 132 | completiondir = $(sysconfdir)/bash_completion.d |
81696de0 | 133 | pkgconfigdir = $(libdir)/pkgconfig |
43bb5f82 | 134 | |
9741af79 BP |
135 | # This ensures that files added to EXTRA_DIST are always distributed, |
136 | # even if they are inside an Automake if...endif conditional block that is | |
137 | # disabled by some particular "configure" run. For more information, see: | |
138 | # http://article.gmane.org/gmane.comp.sysutils.automake.general/10891 | |
139 | noinst_HEADERS += $(EXTRA_DIST) | |
140 | ||
064af421 | 141 | ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */' |
cbaa4ffe | 142 | ro_shell = printf '\043 Generated automatically -- do not modify! -*- buffer-read-only: t -*-\n' |
064af421 | 143 | |
c3bb4bd7 | 144 | SUFFIXES += .in |
064af421 | 145 | .in: |
ef44aa50 | 146 | $(AM_V_GEN)$(PERL) $(srcdir)/build-aux/soexpand.pl -I$(srcdir) < $< | \ |
8e6681ea | 147 | $(PERL) $(srcdir)/build-aux/dpdkstrip.pl $(DPDKSTRIP_FLAGS) | \ |
aca1bb54 SF |
148 | sed \ |
149 | -e 's,[@]PKIDIR[@],$(PKIDIR),g' \ | |
150 | -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ | |
151 | -e 's,[@]DBDIR[@],$(DBDIR),g' \ | |
152 | -e 's,[@]PERL[@],$(PERL),g' \ | |
153 | -e 's,[@]PYTHON[@],$(PYTHON),g' \ | |
154 | -e 's,[@]RUNDIR[@],$(RUNDIR),g' \ | |
155 | -e 's,[@]VERSION[@],$(VERSION),g' \ | |
156 | -e 's,[@]localstatedir[@],$(localstatedir),g' \ | |
157 | -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ | |
158 | -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ | |
159 | -e 's,[@]bindir[@],$(bindir),g' \ | |
160 | -e 's,[@]sbindir[@],$(sbindir),g' \ | |
161 | -e 's,[@]abs_builddir[@],$(abs_builddir),g' \ | |
162 | -e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g' \ | |
163 | > $@.tmp | |
00961f7c | 164 | @if head -n 1 $@.tmp | grep '#!' > /dev/null; then \ |
aca1bb54 | 165 | chmod +x $@.tmp; \ |
3b135da3 | 166 | fi |
ef44aa50 | 167 | $(AM_V_at) mv $@.tmp $@ |
064af421 | 168 | |
99635791 BP |
169 | SUFFIXES += .xml |
170 | %: %.xml | |
171 | $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/xml2nroff $< > $@.tmp \ | |
aca1bb54 SF |
172 | -I $(srcdir) \ |
173 | --version=$(VERSION) \ | |
174 | PKIDIR='$(PKIDIR)' \ | |
175 | LOGDIR='$(LOGDIR)' \ | |
176 | DBDIR='$(DBDIR)' \ | |
177 | PERL='$(PERL)' \ | |
178 | PYTHON='$(PYTHON)' \ | |
179 | RUNDIR='$(RUNDIR)' \ | |
180 | VERSION='$(VERSION)' \ | |
181 | localstatedir='$(localstatedir)' \ | |
182 | pkgdatadir='$(pkgdatadir)' \ | |
183 | sysconfdir='$(sysconfdir)' \ | |
184 | bindir='$(bindir)' \ | |
185 | sbindir='$(sbindir)' | |
99635791 BP |
186 | $(AM_v_at)mv $@.tmp $@ |
187 | ||
79982e90 EJ |
188 | clean-pycov: |
189 | cd $(srcdir) && rm -f $(PYCOV_CLEAN_FILES) | |
190 | CLEAN_LOCAL += clean-pycov | |
099cf485 | 191 | .PHONY: clean-pycov |
79982e90 | 192 | |
87103e1f BP |
193 | # If we're checked out from a Git repository, make sure that every |
194 | # file that is in Git is distributed. | |
39376d06 BP |
195 | ALL_LOCAL += dist-hook-git |
196 | dist-hook-git: distfiles | |
197 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1; then \ | |
aca1bb54 SF |
198 | (cd datapath && $(MAKE) distfiles); \ |
199 | (cat distfiles; sed 's|^|datapath/|' datapath/distfiles) | \ | |
200 | LC_ALL=C sort -u > all-distfiles; \ | |
201 | (cd $(srcdir) && git ls-files) | grep -v '\.gitignore$$' | \ | |
202 | LC_ALL=C sort -u > all-gitfiles; \ | |
a6da6967 | 203 | LC_ALL=C comm -1 -3 all-distfiles all-gitfiles > missing-distfiles; \ |
aca1bb54 | 204 | if test -s missing-distfiles; then \ |
4207d631 | 205 | echo "The following files are in git but not the distribution:"; \ |
aca1bb54 SF |
206 | cat missing-distfiles; \ |
207 | exit 1; \ | |
208 | fi; \ | |
939f4522 BP |
209 | if LC_ALL=C grep '\.gitignore$$' all-distfiles; then \ |
210 | echo "See above for list of files that are distributed but"; \ | |
211 | echo "should not be."; \ | |
212 | exit 1; \ | |
213 | fi \ | |
87103e1f | 214 | fi |
39376d06 BP |
215 | CLEANFILES += all-distfiles all-gitfiles missing-distfiles |
216 | # The following is based on commands for the Automake "distdir" target. | |
217 | distfiles: Makefile | |
218 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
219 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
220 | list='$(DISTFILES)'; \ | |
221 | for file in $$list; do echo $$file; done | \ | |
222 | sed -e "s|^$$srcdirstrip/||;t" \ | |
a6da6967 | 223 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" | \ |
aca1bb54 | 224 | LC_ALL=C sort -u > $@ |
39376d06 | 225 | CLEANFILES += distfiles |
b4e1bf8b | 226 | .PHONY: dist-hook-git |
87103e1f | 227 | |
9e4ba008 BP |
228 | # Check that every .c file includes <config.h>. |
229 | ALL_LOCAL += config-h-check | |
230 | config-h-check: | |
231 | @cd $(srcdir); \ | |
232 | if test -e .git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
233 | git --no-pager grep -L '#include <config\.h>' `git ls-files | grep '\.c$$' | \ |
234 | grep -vE '^datapath|^lib/sflow|^third-party|^datapath-windows|^python'`; \ | |
9e4ba008 | 235 | then \ |
aca1bb54 SF |
236 | echo "See above for list of violations of the rule that"; \ |
237 | echo "every C source file must #include <config.h>."; \ | |
238 | exit 1; \ | |
f7e6e24c TR |
239 | fi; \ |
240 | if grep '#include' include/openvswitch/*.h | \ | |
c458e4a3 YHW |
241 | grep -vE '(<.*>)|("openvswitch)|("openflow)'; \ |
242 | then \ | |
243 | echo "See above for list of violations of the rule that"; \ | |
244 | echo "public openvswitch header file should not include internal library."; \ | |
245 | exit 1; \ | |
246 | fi | |
9e4ba008 BP |
247 | .PHONY: config-h-check |
248 | ||
34582733 AS |
249 | # Check for printf() type modifiers that MSVC doesn't support. |
250 | ALL_LOCAL += printf-check | |
251 | printf-check: | |
8faeab72 DDP |
252 | @cd $(srcdir); \ |
253 | if test -e .git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
254 | git --no-pager grep -n -E -e '%[-+ #0-9.*]*([ztj]|hh)' --and --not -e 'ovs_scan' `git ls-files | grep '\.[ch]$$' | \ |
255 | grep -vE '^datapath|^lib/sflow|^third-party'`; \ | |
34582733 | 256 | then \ |
aca1bb54 SF |
257 | echo "See above for list of violations of the rule that"; \ |
258 | echo "'z', 't', 'j', 'hh' printf() type modifiers are"; \ | |
692ac452 | 259 | echo "forbidden. See coding-style.rst for replacements."; \ |
aca1bb54 | 260 | exit 1; \ |
34582733 AS |
261 | fi |
262 | .PHONY: printf-check | |
263 | ||
1514b275 BP |
264 | # Check that certain data structures are always declared "static". |
265 | ALL_LOCAL += static-check | |
266 | static-check: | |
db5ce514 | 267 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ |
aca1bb54 SF |
268 | git --no-pager grep -n -E '^[ ]+(struct vlog_rate_limit|pthread_once_t|struct ovsthread_once).*=' $(srcdir); \ |
269 | then \ | |
270 | echo "See above for list of violations of the rule that "; \ | |
271 | echo "certain data structures must always be 'static'"; \ | |
272 | exit 1; \ | |
273 | fi | |
1514b275 | 274 | .PHONY: static-check |
db5ce514 | 275 | |
4958e3ee BP |
276 | # Check that assert.h is not used outside a whitelist of files. |
277 | ALL_LOCAL += check-assert-h-usage | |
278 | check-assert-h-usage: | |
279 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
280 | (cd $(srcdir) && git --no-pager grep -l -E '[<]assert.h[>]') | \ |
281 | $(EGREP) -v '^lib/(sflow_receiver|vlog).c$$|^tests/'; \ | |
282 | then \ | |
283 | echo "Files listed above unexpectedly #include <""assert.h"">."; \ | |
284 | echo "Please use ovs_assert (from util.h) instead of assert."; \ | |
285 | exit 1; \ | |
286 | fi | |
4958e3ee BP |
287 | .PHONY: check-assert-h-usage |
288 | ||
64746850 BP |
289 | # Check that LITTLE_ENDIAN and BIG_ENDIAN are not used unless BYTE_ORDER is |
290 | # also mentioned. (<endian.h> always defines the former two constants. They | |
291 | # must be compared to BYTE_ORDER to get the machine's correct endianness. But | |
292 | # it is better to use WORDS_BIGENDIAN.) | |
293 | ALL_LOCAL += check-endian | |
294 | check-endian: | |
295 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
296 | (cd $(srcdir) && git --no-pager grep -l -E \ |
297 | -e 'BIG_ENDIAN|LITTLE_ENDIAN' --and --not -e 'BYTE_ORDER' | \ | |
298 | $(EGREP) -v '^datapath/'); \ | |
299 | then \ | |
300 | echo "See above for list of files that misuse LITTLE""_ENDIAN"; \ | |
301 | echo "or BIG""_ENDIAN. Please use WORDS_BIGENDIAN instead."; \ | |
302 | exit 1; \ | |
303 | fi | |
64746850 BP |
304 | .PHONY: check-endian |
305 | ||
6a3e30f3 BP |
306 | ALL_LOCAL += thread-safety-check |
307 | thread-safety-check: | |
8faeab72 DDP |
308 | @cd $(srcdir); \ |
309 | if test -e .git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
310 | grep -n -f build-aux/thread-safety-blacklist \ |
311 | `git ls-files | grep '\.[ch]$$' \ | |
312 | | $(EGREP) -v '^datapath|^lib/sflow|^third-party'` /dev/null \ | |
313 | | $(EGREP) -v ':[ ]*/?\*'; \ | |
6a3e30f3 | 314 | then \ |
aca1bb54 SF |
315 | echo "See above for list of calls to functions that are"; \ |
316 | echo "blacklisted due to thread safety issues"; \ | |
317 | exit 1; \ | |
6a3e30f3 BP |
318 | fi |
319 | EXTRA_DIST += build-aux/thread-safety-blacklist | |
c9172561 | 320 | .PHONY: thread-safety-check |
6a3e30f3 | 321 | |
0b2c7e69 BP |
322 | # Check that "ip" is used in preference to "ifconfig", because |
323 | # "ifconfig" is not installed ubiquitously anymore. | |
324 | ALL_LOCAL += check-ifconfig | |
325 | check-ifconfig: | |
326 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ | |
327 | (cd $(srcdir) && git --no-pager grep -l -E -e 'ifconfig' | \ | |
328 | $(EGREP) -v 'Makefile.am|ovs-vsctl-bashcomp|openvswitch-custom\.te'); \ | |
329 | then \ | |
330 | echo "See above for list of files that use or reference"; \ | |
331 | echo "'ifconfig'. Please use 'ip' instead."; \ | |
332 | exit 1; \ | |
333 | fi | |
334 | .PHONY: check-ifconfig | |
335 | ||
0027492d BP |
336 | if HAVE_GROFF |
337 | ALL_LOCAL += manpage-check | |
1261619f BP |
338 | manpage-check: $(man_MANS) $(dist_man_MANS) $(noinst_man_MANS) |
339 | @error=false; \ | |
340 | for manpage in $?; do \ | |
aca1bb54 SF |
341 | LANG=en_US.UTF-8 groff -w mac -w delim -w escape -w input -w missing -w tab -T utf8 -man -p -z $$manpage >$@.tmp 2>&1; \ |
342 | if grep warning: $@.tmp; then error=:; fi; \ | |
343 | rm -f $@.tmp; \ | |
0027492d | 344 | done; \ |
be09aa10 EJ |
345 | if $$error; then exit 1; else touch $@; fi |
346 | $(AM_V_GEN) touch -c $@ | |
0027492d BP |
347 | CLEANFILES += manpage-check |
348 | endif | |
349 | ||
115d8719 RB |
350 | if HAVE_FLAKE8 |
351 | ALL_LOCAL += flake8-check | |
007ec24d | 352 | # http://flake8.readthedocs.org/en/latest/warnings.html |
f3068bff RB |
353 | # All warnings explicitly selected or ignored should be listed below. |
354 | # | |
355 | # E***, W*** -- warnings from pep8 | |
356 | # E121 continuation line under-indented for hanging indent (only from flake8 v2.0) | |
357 | # E123 closing bracket does not match indentation of opening bracket's line | |
358 | # E125 continuation line with same indent as next logical line (only from flake8 v2.0) | |
359 | # E126 continuation line over-indented for hanging indent | |
360 | # E127 continuation line over-indented for visual indent | |
361 | # E128 continuation line under-indented for visual indent | |
362 | # E129 visually indented line with same indent as next logical line | |
363 | # E131 continuation line unaligned for hanging indent | |
364 | # W503 line break before binary operator | |
365 | # F*** -- warnings native to flake8 | |
366 | # F811 redefinition of unused <name> from line <N> (only from flake8 v2.0) | |
007ec24d NS |
367 | # D*** -- warnings from flake8-docstrings plugin |
368 | # H*** -- warnings from flake8 hacking plugin (custom style checks beyond PEP8) | |
f3068bff | 369 | # H231 Python 3.x incompatible 'except x,y:' construct |
56ec0611 | 370 | # H232 Python 3.x incompatible octal 077 should be written as 0o77 |
8ea171ab | 371 | # H233 Python 3.x incompatible use of print operator |
03756304 | 372 | # H238 old style class declaration, use new style (inherit from `object`) |
aca1bb54 | 373 | FLAKE8_SELECT = H231,H232,H233,H238 |
92d8490f | 374 | FLAKE8_IGNORE = E121,E123,E125,E126,E127,E128,E129,E131,W503,F811,D,H,I |
115d8719 | 375 | flake8-check: $(FLAKE8_PYFILES) |
308bf988 | 376 | $(FLAKE8_WERROR)$(AM_V_GEN) \ |
aca1bb54 SF |
377 | src='$^' && \ |
378 | flake8 $$src --select=$(FLAKE8_SELECT) $(FLAKE8_FLAGS) && \ | |
379 | flake8 $$src --ignore=$(FLAKE8_IGNORE) $(FLAKE8_FLAGS) && \ | |
380 | touch $@ | |
115d8719 | 381 | endif |
968eec59 | 382 | CLEANFILES += flake8-check |
115d8719 | 383 | |
6ca37677 BP |
384 | include $(srcdir)/manpages.mk |
385 | $(srcdir)/manpages.mk: $(MAN_ROOTS) build-aux/sodepends.pl | |
386 | @$(PERL) $(srcdir)/build-aux/sodepends.pl -I. -I$(srcdir) $(MAN_ROOTS) >$(@F).tmp | |
387 | @if cmp -s $(@F).tmp $@; then \ | |
aca1bb54 SF |
388 | touch $@; \ |
389 | rm -f $(@F).tmp; \ | |
6ca37677 | 390 | else \ |
aca1bb54 | 391 | mv $(@F).tmp $@; \ |
6ca37677 BP |
392 | fi |
393 | CLEANFILES += manpage-dep-check | |
394 | ||
bd9d7025 | 395 | if VSTUDIO_DDK |
e02b8fb0 AS |
396 | ALL_LOCAL += ovsext |
397 | ovsext: datapath-windows/ovsext.sln $(srcdir)/datapath-windows/include/OvsDpInterface.h | |
e90a8753 AS |
398 | MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win8$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" |
399 | MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win8.1$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" | |
bd9d7025 AS |
400 | |
401 | CLEAN_LOCAL += ovsext_clean | |
402 | ovsext_clean: datapath-windows/ovsext.sln | |
e90a8753 AS |
403 | MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean /property:Configuration="Win8$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" |
404 | MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean /property:Configuration="Win8.1$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" | |
bd9d7025 | 405 | endif |
e02b8fb0 | 406 | .PHONY: ovsext |
bd9d7025 | 407 | |
30b79363 BB |
408 | clang-analyze: clean |
409 | @which clang scan-build >/dev/null 2>&1 || \ | |
aca1bb54 | 410 | (echo "Unable to find clang/scan-build, Install clang,clang-analyzer packages"; exit 1) |
30b79363 BB |
411 | @$(MKDIR_P) "$(srcdir)/tests/clang-analyzer-results" |
412 | @scan-build -o $(srcdir)/tests/clang-analyzer-results --use-cc=$(CC) $(MAKE) | |
413 | .PHONY: clang-analyze | |
414 | ||
87103e1f | 415 | dist-hook: $(DIST_HOOKS) |
22c79496 | 416 | all-local: $(ALL_LOCAL) |
15b619e2 | 417 | clean-local: $(CLEAN_LOCAL) |
b2df0225 | 418 | install-data-local: $(INSTALL_DATA_LOCAL) |
44852fdf BP |
419 | uninstall-local: $(UNINSTALL_LOCAL) |
420 | .PHONY: $(DIST_HOOKS) $(CLEAN_LOCAL) $(INSTALL_DATA_LOCAL) $(UNINSTALL_LOCAL) | |
87103e1f | 421 | |
3a14d239 BP |
422 | modules_install: |
423 | if LINUX_ENABLED | |
424 | cd datapath/linux && $(MAKE) modules_install | |
425 | endif | |
426 | ||
4441a01c | 427 | dist-docs: |
6b304335 | 428 | VERSION=$(VERSION) MAKE='$(MAKE)' $(srcdir)/build-aux/dist-docs $(srcdir) $(docs) |
4441a01c BP |
429 | .PHONY: dist-docs |
430 | ||
8c254406 | 431 | include Documentation/automake.mk |
ed1be787 | 432 | include m4/automake.mk |
064af421 | 433 | include lib/automake.mk |
8cd4882f | 434 | include ofproto/automake.mk |
064af421 BP |
435 | include utilities/automake.mk |
436 | include tests/automake.mk | |
437 | include include/automake.mk | |
438 | include third-party/automake.mk | |
439 | include debian/automake.mk | |
440 | include vswitchd/automake.mk | |
f85f8ebb | 441 | include ovsdb/automake.mk |
c434706a | 442 | include rhel/automake.mk |
064af421 | 443 | include xenserver/automake.mk |
0be6140a | 444 | include python/automake.mk |
eeecce05 | 445 | include tutorial/automake.mk |
add17b69 | 446 | include vtep/automake.mk |
c803536e | 447 | include datapath-windows/automake.mk |
c640e3ce | 448 | include datapath-windows/include/automake.mk |
d183efc2 | 449 | include windows/automake.mk |
fe36184b | 450 | include ovn/automake.mk |
9b897c91 | 451 | include selinux/automake.mk |
e522804f | 452 | include build-aux/automake.mk |