first commit
This commit is contained in:
commit
aa7b921523
10 changed files with 19537 additions and 0 deletions
22
config.mk
Normal file
22
config.mk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
CC := cc
|
||||
CFLAGS := -Wall -Wextra -std=c99 -pedantic -ggdb -O2
|
||||
LIBS :=
|
||||
# if this is set to gl, it will use OpenGL, otherwise it will use Vulkan
|
||||
BACKEND := gl
|
||||
|
||||
PLATFORM := $(shell uname)
|
||||
|
||||
ifeq (${BACKEND},gl)
|
||||
CFLAGS += -DBACKEND_GL
|
||||
ifeq (${PLATFORM},Darwin)
|
||||
LIBS += -framework Cocoa -framework CoreVideo -framework OpenGL -framework IOKit
|
||||
else
|
||||
LIBS += -lGL
|
||||
endif
|
||||
else
|
||||
CFLAGS := -DBACKEND_VK
|
||||
endif
|
||||
|
||||
ifeq (${PLATFORM},Darwin)
|
||||
CFLAGS += -DPLATFORM_MACOS
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue