fixed config.mk from last patch
This commit is contained in:
parent
b9a8fb3722
commit
a54825931b
1 changed files with 3 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ CC := cc
|
||||||
CFLAGS := -Wall -Wextra -std=c99 -pedantic
|
CFLAGS := -Wall -Wextra -std=c99 -pedantic
|
||||||
LIBS := -lm
|
LIBS := -lm
|
||||||
# Can be gl or vk
|
# Can be gl or vk
|
||||||
BACKEND := vk
|
GRAPHICS_BACKEND := vk
|
||||||
|
|
||||||
PLATFORM := $(shell uname)
|
PLATFORM := $(shell uname)
|
||||||
|
|
||||||
|
|
@ -26,11 +26,10 @@ ifeq (${PLATFORM},Darwin)
|
||||||
else ifeq (${PLATFORM},Linux)
|
else ifeq (${PLATFORM},Linux)
|
||||||
# Check for windowing platforms if it's linux
|
# Check for windowing platforms if it's linux
|
||||||
LINUX_WINDOW_PLATFORM := $(shell echo $$DISPLAY)
|
LINUX_WINDOW_PLATFORM := $(shell echo $$DISPLAY)
|
||||||
endif
|
|
||||||
|
|
||||||
# If LINUX_WINDOW_PLATFORM is "", it is Wayland, otherwise it's Xorg
|
# If LINUX_WINDOW_PLATFORM is "", it is Wayland, otherwise it's Xorg
|
||||||
ifeq ($(LINUX_WINDOW_PLATFORM),)
|
ifeq ($(LINUX_WINDOW_PLATFORM),)
|
||||||
LIBS += -lwayland-client
|
LIBS += -lwayland-client
|
||||||
else
|
else
|
||||||
LIBS += -lX11 -lXrandr
|
LIBS += -lX11 -lXrandr
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue