summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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
+