diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..debf8dc --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +.POSIX: + +CC = clang + +CFLAGS += -O3 -Wall -Wextra -pedantic -std=c11 + +SRC = main.c puzz.c +OBJ = $(SRC:.c=.o) + +mines: $(OBJ) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) + +clean: + rm -f mines $(OBJ) + +main.o puzz.o: puzz.h + +.PHONY: clean