From 70a92f923320608c7ca393a7f525d06c3ae64295 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 1 Dec 2020 14:18:17 +0100 Subject: [PATCH] :wrench: Windows stuff, again and again --- tests/driver/Makefile | 1 + tests/module/Makefile | 1 + tests/plug/Makefile | 5 +---- 3 files changed, 3 insertions(+), 4 deletions(-) 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 -- 2.43.0