Makefile: fix windows build
This commit is contained in:
parent
59ba6e43d0
commit
c098a3d0b9
8
Makefile
8
Makefile
@ -14,12 +14,7 @@ CFLAGS += -Wall -Werror -Wfatal-errors
|
||||
CFLAGS += -Wno-error=unused-function
|
||||
CFLAGS += -Wno-error=unused-const-variable
|
||||
CFLAGS += -I$(MAKEFILE_PATH)/include
|
||||
#CFLAGS += $(shell pkg-config --cflags glfw3)
|
||||
#CFLAGS += $(shell pkg-config --cflags freetype2)
|
||||
LDFLAGS += -lm
|
||||
#LDFLAGS += $(shell pkg-config --libs glfw3)
|
||||
LDFLAGS += -z noexecstack
|
||||
#LDFLAGS += $(shell pkg-config --libs freetype2)
|
||||
|
||||
ifndef GLFW
|
||||
$(error GLFW undefined)
|
||||
@ -27,8 +22,9 @@ endif
|
||||
|
||||
ifeq ($(shell uname),Linux)
|
||||
OBJARCH = -O elf64-x86-64
|
||||
LDFLAGS += -z noexecstack
|
||||
else
|
||||
OBJARCH = -O pe-x86-64
|
||||
OBJARCH = -O pe-x86-64 -B i386:x86-64
|
||||
endif
|
||||
|
||||
DEPFLAGS = -MMD -MP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user