diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fd14a5d --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +CC = gcc +CFLAGS = -std=c99 -Wall -Wextra +TARGET = searchword +SRC = searchword.c + +.PHONY: all clean + +all: $(TARGET) + +$(TARGET): $(SRC) + $(CC) $(CFLAGS) -o $(TARGET) $(SRC) + +clean: + rm -f $(TARGET) \ No newline at end of file