From 0d41c8036a689a841b1633a67afbfeeff0384386 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Fri, 5 Dec 2025 15:30:42 -0600 Subject: [PATCH] improve windows build --- Makefile | 3 +++ windows_build.sh | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 windows_build.sh diff --git a/Makefile b/Makefile index 10234cf..cd77033 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ CFLAGS += -Wno-error=unused-but-set-variable CFLAGS += -Wno-error=unused-variable CFLAGS += -I$(MAKEFILE_PATH)/include LDFLAGS += -lm +ifeq ($(OS),Windows_NT) +LDFLAGS += -Wl,--subsystem,windows -mwindows +endif ifndef GLFW $(error GLFW undefined) diff --git a/windows_build.sh b/windows_build.sh new file mode 100644 index 0000000..e309326 --- /dev/null +++ b/windows_build.sh @@ -0,0 +1,3 @@ +set -eux + +GLFW=$HOME/glfw-3.4/src/libglfw3.a make -j$(nproc)