summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authororangerot <orangerot@orangerot.dev>2025-10-14 06:17:32 +0200
committerorangerot <orangerot@orangerot.dev>2025-10-14 06:17:32 +0200
commit2d359fb932c245267d3da8edbb479b549fc6cebb (patch)
tree125b93953833588cc98821cd73b7c6c91e9c74d9 /Makefile
parent06aaf6e0bab748c2b491c8a56715c9ac74f1e36e (diff)
feat: draw dominos
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 95c7f8f..5d74d89 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,12 @@
CFLAGS := -Wall -Wextra
LDFLAGS = -lglfw -lm -lGL -I./glad/include
-domino-dungeon: main.c game.c game.h glad/src/glad.c
+domino-dungeon: main.c game.c game.h glad/src/glad.c assets/dominos.h
$(CC) ${CFLAGS} ${LDFLAGS} -o $@ $^
+assets/dominos.h: src_build/domino_assets
+ $< assets/1bit_dominoes_asset_pack/white_and_blue_dominoes.png > $@
+
+src_build/domino_assets: src_build/domino_assets.c
+ $(CC) -o $@ $^ -lm
+