From 8d7676bd109a40c2ae77ac47ffdfb26a33a28540 Mon Sep 17 00:00:00 2001 From: gandc Date: Fri, 25 Apr 2025 10:18:47 +0300 Subject: [PATCH] add Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile 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