From 7387c7dd6b08a22e11022495601879d6d38b68ae Mon Sep 17 00:00:00 2001 From: Ziheng Chen <zc328@dragons.drexel.edu> Date: Mon, 10 Feb 2025 01:21:57 +0000 Subject: [PATCH] Upload New File --- w5/codes/makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 w5/codes/makefile diff --git a/w5/codes/makefile b/w5/codes/makefile new file mode 100644 index 0000000..9d20e5b --- /dev/null +++ b/w5/codes/makefile @@ -0,0 +1,27 @@ +# Compiler settings +CC = gcc +CFLAGS = -Wall -Wextra -g + +# Target executable name +TARGET = dsh + +# Find all source and header files +SRCS = $(wildcard *.c) +HDRS = $(wildcard *.h) + +# Default target +all: $(TARGET) + +# Compile source to executable +$(TARGET): $(SRCS) $(HDRS) + $(CC) $(CFLAGS) -o $(TARGET) $(SRCS) + +# Clean up build files +clean: + rm -f $(TARGET) + +test: + ./test.sh + +# Phony targets +.PHONY: all clean \ No newline at end of file -- GitLab