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)