From: Jérémie Astor Date: Tue, 1 Dec 2020 13:18:17 +0000 (+0100) Subject: :wrench: Windows stuff, again and again X-Git-Tag: nightly~1140^2~1 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=70a92f923320608c7ca393a7f525d06c3ae64295;p=gwion.git :wrench: Windows stuff, again and again --- diff --git a/tests/driver/Makefile b/tests/driver/Makefile index 6327be10..93ba7f81 100644 --- a/tests/driver/Makefile +++ b/tests/driver/Makefile @@ -13,6 +13,7 @@ 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 diff --git a/tests/module/Makefile b/tests/module/Makefile index 6327be10..93ba7f81 100644 --- a/tests/module/Makefile +++ b/tests/module/Makefile @@ -13,6 +13,7 @@ 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 diff --git a/tests/plug/Makefile b/tests/plug/Makefile index 0f6d5945..93ba7f81 100644 --- a/tests/plug/Makefile +++ b/tests/plug/Makefile @@ -13,6 +13,7 @@ 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 @@ -20,10 +21,6 @@ LDLAGS += ../../libgwion.a endif endif -ifeq (${BUILD_ON_WINDOWS}, 1) -CFLAGS += -DBUILD_ON_WINDOWS=1 -endif - all: ${NAME}.so