improve windows build
This commit is contained in:
parent
78a597964b
commit
0d41c8036a
3
Makefile
3
Makefile
@ -17,6 +17,9 @@ CFLAGS += -Wno-error=unused-but-set-variable
|
|||||||
CFLAGS += -Wno-error=unused-variable
|
CFLAGS += -Wno-error=unused-variable
|
||||||
CFLAGS += -I$(MAKEFILE_PATH)/include
|
CFLAGS += -I$(MAKEFILE_PATH)/include
|
||||||
LDFLAGS += -lm
|
LDFLAGS += -lm
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
LDFLAGS += -Wl,--subsystem,windows -mwindows
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef GLFW
|
ifndef GLFW
|
||||||
$(error GLFW undefined)
|
$(error GLFW undefined)
|
||||||
|
|||||||
3
windows_build.sh
Normal file
3
windows_build.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
set -eux
|
||||||
|
|
||||||
|
GLFW=$HOME/glfw-3.4/src/libglfw3.a make -j$(nproc)
|
||||||
Loading…
x
Reference in New Issue
Block a user