Frame rendering optimizations
This commit is contained in:
parent
126469df76
commit
f64429b7b4
11 changed files with 268 additions and 44 deletions
4
Makefile
4
Makefile
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue