From ca3c48311d76ba2db253a5dcc53132d1843b222e Mon Sep 17 00:00:00 2001 From: Ziheng Chen <zc328@dragons.drexel.edu> Date: Mon, 27 Jan 2025 04:10:16 +0000 Subject: [PATCH] Upload New File --- w3-hw/makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 w3-hw/makefile diff --git a/w3-hw/makefile b/w3-hw/makefile new file mode 100644 index 0000000..98655da --- /dev/null +++ b/w3-hw/makefile @@ -0,0 +1,20 @@ +# Compiler settings +CC = gcc +CFLAGS = -Wall -Wextra -g + +# Target executable name +TARGET = stringfun + +# Default target +all: $(TARGET) + +# Compile source to executable +$(TARGET): stringfun.c + $(CC) $(CFLAGS) -o $(TARGET) $^ + +# Clean up build files +clean: + rm -f $(TARGET) + +# Phony targets +.PHONY: all clean \ No newline at end of file -- GitLab