@@ -19,16 +19,6 @@ AM_CPPFLAGS = $(SSL_CFLAGS)
1919AM_LDFLAGS = $(SSL_LDFLAGS )
2020AM_LDFLAGS += $(OVS_LDFLAGS )
2121
22- AM_CPPFLAGS += -I $(top_srcdir ) /include
23-
24- if WIN32
25- AM_CPPFLAGS += $(PTHREAD_INCLUDES )
26- AM_CPPFLAGS += $(MSVC_CFLAGS )
27- AM_LDFLAGS += $(PTHREAD_LDFLAGS )
28- AM_LDFLAGS += $(MSVC64_LDFLAGS )
29- PLATFORM = $(MSVC_PLATFORM )
30- endif
31-
3222AM_CPPFLAGS += -I $(top_srcdir ) /include
3323AM_CPPFLAGS += -I $(top_srcdir ) /ovn
3424AM_CPPFLAGS += -I $(top_builddir ) /include
@@ -57,18 +47,13 @@ endif
5747
5848AM_CTAGSFLAGS = $(OVS_CTAGS_IDENTIFIERS_LIST )
5949
60- if WIN32
61- psep =";"
62- else
63- psep =":"
64- endif
6550# PYTHONDONTWRITEBYTECODE=yes keeps Python from creating .pyc and .pyo
6651# files. Creating .py[co] works OK for any given version of Open
6752# vSwitch, but it causes trouble if you switch from a version with
6853# foo/__init__.py into an (older) version with plain foo.py, since
6954# foo/__init__.pyc will cause Python to ignore foo.py.
7055run_python = \
71- PYTHONPATH=$(OVS_SRCDIR ) /python$( psep ) $$PYTHONPATH \
56+ PYTHONPATH=$(OVS_SRCDIR ) /python: $$PYTHONPATH \
7257 PYTHONDONTWRITEBYTECODE=yes $(PYTHON3 )
7358
7459ALL_LOCAL =
@@ -176,7 +161,7 @@ submodules = $(shell grep 'path =' $(srcdir)/.gitmodules | sed -E 's/[\t ]*path
176161
177162SUFFIXES += .in
178163.in :
179- $(AM_V_GEN ) PYTHONPATH=$(OVS_SRCDIR ) /python$( psep ) $$ PYTHONPATH$( psep ) $(srcdir ) /python $(PYTHON3 ) $(srcdir ) /build-aux/soexpand.py -I$(srcdir ) -I$(OVS_SRCDIR ) < $< | \
164+ $(AM_V_GEN ) PYTHONPATH=$(OVS_SRCDIR ) /python: $$ PYTHONPATH: $(srcdir ) /python $(PYTHON3 ) $(srcdir ) /build-aux/soexpand.py -I$(srcdir ) -I$(OVS_SRCDIR ) < $< | \
180165 $(PYTHON3 ) $(srcdir ) /build-aux/dpdkstrip.py $(DPDKSTRIP_FLAGS ) | \
181166 sed \
182167 -e ' s,[@]PKIDIR[@],$(PKIDIR),g' \
@@ -275,7 +260,7 @@ config-h-check:
275260 fi
276261.PHONY : config-h-check
277262
278- # Check for printf() type modifiers that MSVC doesn't support .
263+ # Check for non-portable printf() type modifiers.
279264ALL_LOCAL += printf-check
280265printf-check :
281266 @cd $(srcdir ) ; \
@@ -444,7 +429,7 @@ CLEANFILES += flake8-check
444429
445430include $(srcdir ) /manpages.mk
446431$(srcdir ) /manpages.mk : $(MAN_ROOTS ) build-aux/sodepends.py $(OVS_SRCDIR ) /python/ovs_build_helpers/soutil.py
447- @PYTHONPATH=$(OVS_SRCDIR ) /python$( psep ) $$ PYTHONPATH$( psep ) $(srcdir ) /python $(PYTHON3 ) $(srcdir ) /build-aux/sodepends.py -I. -Isrcdir,$(srcdir ) -IOVS_MANDIR,$(OVS_MANDIR ) $(MAN_ROOTS ) > $(@F ) .tmp
432+ @PYTHONPATH=$(OVS_SRCDIR ) /python: $$ PYTHONPATH: $(srcdir ) /python $(PYTHON3 ) $(srcdir ) /build-aux/sodepends.py -I. -Isrcdir,$(srcdir ) -IOVS_MANDIR,$(OVS_MANDIR ) $(MAN_ROOTS ) > $(@F ) .tmp
448433 @if cmp -s $(@F ) .tmp $@ ; then \
449434 touch $@ ; \
450435 rm -f $(@F ) .tmp; \
@@ -453,35 +438,6 @@ $(srcdir)/manpages.mk: $(MAN_ROOTS) build-aux/sodepends.py $(OVS_SRCDIR)/python/
453438 fi
454439CLEANFILES += manpage-dep-check
455440
456- if VSTUDIO_DDK
457- ALL_LOCAL += ovsext
458- ARCH = x64
459- ovsext : datapath-windows/ovsext.sln $(srcdir ) /datapath-windows/include/OvsDpInterface.h
460- if VSTUDIO_WIN8
461- MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win8$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" //p:Platform=$(ARCH)
462- endif
463- if VSTUDIO_WIN8_1
464- MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win8.1$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" //p:Platform=$(ARCH)
465- endif
466- if VSTUDIO_WIN10
467- MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win10$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" //p:Platform=$(ARCH)
468- endif
469-
470-
471- CLEAN_LOCAL += ovsext_clean
472- ovsext_clean : datapath-windows/ovsext.sln
473- if VSTUDIO_WIN8
474- MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Clean /property:Configuration="Win8$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" //p:Platform=$(ARCH)
475- endif
476- if VSTUDIO_WIN8_1
477- MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Clean /property:Configuration="Win8.1$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" //p:Platform=$(ARCH)
478- endif
479- if VSTUDIO_WIN10
480- MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Clean /property:Configuration="Win10$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" //p:Platform=$(ARCH)
481- endif
482- endif
483- .PHONY : ovsext
484-
485441clang-analyze : clean
486442 @which clang scan-build > /dev/null 2>&1 || \
487443 (echo " Unable to find clang/scan-build, Install clang,clang-analyzer packages" ; exit 1)
0 commit comments