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