Skip to content
Snippets Groups Projects
Commit 2aa96caa authored by Vanshika Mohan Bongade's avatar Vanshika Mohan Bongade
Browse files

Upload New File

parent a8f43269
Branches
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment