From: Jérémie Astor Date: Tue, 1 Dec 2020 12:42:07 +0000 (+0100) Subject: :wrench: Windows stuff, again X-Git-Tag: nightly~1140^2~2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ba339a07d93a936f440f3a660f6c3aef898810b9;p=gwion.git :wrench: Windows stuff, again --- diff --git a/tests/plug/Makefile b/tests/plug/Makefile index 93ba7f81..0f6d5945 100644 --- a/tests/plug/Makefile +++ b/tests/plug/Makefile @@ -13,7 +13,6 @@ else ifeq ($(shell uname), Linux) LDFLAGS += -shared else -CFLAGS += -DBUILD_ON_WINDOWS=1 LDFLAGS += -shared -lpsapi -fPIC -Wl,--export-all -Wl,--enable-auto-import LDFLAGS += -L../../ -lgwion LDLAGS += ../../libgwion.dll.a @@ -21,6 +20,10 @@ LDLAGS += ../../libgwion.a endif endif +ifeq (${BUILD_ON_WINDOWS}, 1) +CFLAGS += -DBUILD_ON_WINDOWS=1 +endif + all: ${NAME}.so