Frame rendering optimizations

This commit is contained in:
markmental 2026-03-30 12:09:11 -04:00
commit f64429b7b4
11 changed files with 268 additions and 44 deletions

View file

@ -1,6 +1,7 @@
CC ?= cc
CSTD ?= -std=c11
CFLAGS ?= -O2 -Wall -Wextra -Wpedantic $(CSTD)
CFLAGS += -MMD -MP
SDL_CFLAGS := $(shell pkg-config --cflags SDL2 SDL2_ttf SDL2_image 2>/dev/null)
SDL_LIBS := $(shell pkg-config --libs SDL2 SDL2_ttf SDL2_image 2>/dev/null)
@ -19,6 +20,7 @@ endif
SRC := $(wildcard src/*.c)
OBJ := $(SRC:.c=.o)
DEP := $(OBJ:.o=.d)
BIN := passport-c-media-player
CPPFLAGS += -I./src $(SDL_CFLAGS) $(FFMPEG_CFLAGS)
@ -31,6 +33,8 @@ all: $(BIN)
$(BIN): $(OBJ)
$(CC) $(OBJ) -o $@ $(LDLIBS)
-include $(DEP)
run: $(BIN)
./$(BIN)