From ab32d51871248e0fbf6758a425eda2256712d519 Mon Sep 17 00:00:00 2001 From: citrons Date: Wed, 11 Oct 2023 23:58:12 -0500 Subject: initial commit --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3