add scaffold for 2048

This commit is contained in:
2026-10-05 03:54:40 +02:00
parent 904b8c3a29
commit f5be3992a6
2 changed files with 63 additions and 1 deletions
+12 -1
View File
@@ -8,9 +8,11 @@ SRC := src/engine/engine.c \
OUT := build/main
SNAKE_SRC := src/examples/snake.c $(SRC)
SNAKE := build/snake
2048_SRC := src/examples/2048.c $(SRC)
2048 := build/2048
build:
$(CC) -o $(OUT) src/main.c $(SRC) $(INC) $(LIBS)
$(CC) -o $(OUT) -O3 -DNDEBUG src/main.c $(SRC) $(INC) $(LIBS)
run:
$(OUT)
@@ -24,6 +26,15 @@ run-snake:
clean-snake:
rm $(SNAKE)
build-2048:
$(CC) -o $(2048) -O3 -DNDEBUG $(2048_SRC) $(INC) $(LIBS)
run-2048:
$(2048)
clean-2048:
rm $(2048)
clean:
rm $(OUT)