From 2aa96caa366456c48ff8c338abd7f3eac6d3b7f8 Mon Sep 17 00:00:00 2001 From: Vanshika Mohan Bongade <vb525@drexel.edu> Date: Fri, 28 Feb 2025 18:17:33 +0000 Subject: [PATCH] Upload New File --- WEEK-8/makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 WEEK-8/makefile diff --git a/WEEK-8/makefile b/WEEK-8/makefile new file mode 100644 index 0000000..7565848 --- /dev/null +++ b/WEEK-8/makefile @@ -0,0 +1,20 @@ +CC = gcc +CFLAGS = -Wall -Wextra -g +SRC = dsh_cli.c dshlib.c rsh_cli.c rsh_server.c +OBJ = dsh_cli.o dshlib.o rsh_cli.o rsh_server.o +TARGET = dsh + +# Default rule +all: $(TARGET) + +# Build the executable +$(TARGET): $(OBJ) + $(CC) $(CFLAGS) -o $(TARGET) $(OBJ) + +# Compile individual source files into object files +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + +# Clean build files +clean: + rm -f $(OBJ) $(TARGET) -- GitLab