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

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