diff options
| author | citrons <citrons@mondecitronne.com> | 2023-10-11 23:58:12 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2023-10-11 23:58:12 -0500 |
| commit | ab32d51871248e0fbf6758a425eda2256712d519 (patch) | |
| tree | ba48813a3a75f79eea5c867496d77fdb8a3251db /Makefile | |
initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b0f651d --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +SDL_HEADERS=/usr/include/SDL2 + +CFLAGS=-g -Wall -pedantic -std=c99 $$(sdl2-config --cflags) +LFLAGS=$$(sdl2-config --libs) + +findgame: main.o world.o random.o generator.o save.o + $(CC) -o $@ $^ $(LFLAGS) + +main.o: world.h random.h +world.o: world.h random.h generator.h save.h +generator.o: world.h random.h +save.o: world.h die.h + +.SUFFIXES: .c .o +.c.o: + $(CC) $(CFLAGS) -c -o $@ $< + +clean: + rm -f *.o findgame |
