From 62e3b79f3eec9cdd005b167c67c680a9406d6e08 Mon Sep 17 00:00:00 2001 From: Charles Barnwell <cxb23@drexel.edu> Date: Fri, 7 Feb 2025 00:33:41 +0000 Subject: [PATCH] Upload New File --- 2-StudentDB/makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 2-StudentDB/makefile diff --git a/2-StudentDB/makefile b/2-StudentDB/makefile new file mode 100644 index 0000000..c9ca137 --- /dev/null +++ b/2-StudentDB/makefile @@ -0,0 +1,28 @@ +# Compiler settings +CC = gcc +CFLAGS = -Wall -Wextra -g + +# Target executable name +TARGET = sdbsc + +# 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) + rm -f student.db + +test: + ./test.sh + +# Phony targets +.PHONY: all clean -- GitLab