summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2023-10-12 15:40:59 -0500
committercitrons <citrons@mondecitronne.com>2023-10-12 15:40:59 -0500
commit818732592abbf3b2a2c8e3d66cdd056a104bade1 (patch)
tree7d3b677cc234292b9e68a7c121dcdcaed992a8c1
parentab32d51871248e0fbf6758a425eda2256712d519 (diff)
include save.h in main.c
-rw-r--r--Makefile2
-rw-r--r--main.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b0f651d..5ffa84a 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ LFLAGS=$$(sdl2-config --libs)
findgame: main.o world.o random.o generator.o save.o
$(CC) -o $@ $^ $(LFLAGS)
-main.o: world.h random.h
+main.o: world.h random.h save.h
world.o: world.h random.h generator.h save.h
generator.o: world.h random.h
save.o: world.h die.h
diff --git a/main.c b/main.c
index 766292c..2443d7a 100644
--- a/main.c
+++ b/main.c
@@ -2,6 +2,7 @@
#include "world.h"
#include "random.h"
+#include "save.h"
static SDL_Window *win;
static SDL_Renderer *rend;