From 755417a3f01f085ff64fa60cbe763e7f4c0bc5ba Mon Sep 17 00:00:00 2001 From: Matthew Slowe Date: Wed, 18 Jan 2017 16:40:43 +0000 Subject: [PATCH] makefile --- src/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/Makefile diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..38a1369 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,12 @@ +CC=gcc +CFLAGS=-DDEBUG_GRID_MAIN +DEPS=dir.o rnd.o grid.o + +wordsearch: $(DEPS) + $(CC) -o wordsearch $(DEPS) $(CFLAGS) + +%.o: %.c + $(CC) -c -o $@ $< $(CFLAGS) + +clean: + rm $(DEPS) \ No newline at end of file