]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Windows stuff, again and again
authorJérémie Astor <fennecdjay@gmail.com>
Tue, 1 Dec 2020 13:18:17 +0000 (14:18 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Tue, 1 Dec 2020 13:18:17 +0000 (14:18 +0100)
tests/driver/Makefile
tests/module/Makefile
tests/plug/Makefile

index 6327be109b2d50a47204af7b4f5e22d2999752e3..93ba7f814c05bb8c2a9671ffe1362108d7c77001 100644 (file)
@@ -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
index 6327be109b2d50a47204af7b4f5e22d2999752e3..93ba7f814c05bb8c2a9671ffe1362108d7c77001 100644 (file)
@@ -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
index 0f6d59458e7afbc8ac66b570a91b88efa4bb32b0..93ba7f814c05bb8c2a9671ffe1362108d7c77001 100644 (file)
@@ -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