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