first commit

This commit is contained in:
Lorenzo Torres 2025-11-01 16:23:17 +01:00
commit aa7b921523
10 changed files with 19537 additions and 0 deletions

22
config.mk Normal file
View 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