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