diff --git a/2-StudentDB/makefile b/2-StudentDB/makefile new file mode 100644 index 0000000000000000000000000000000000000000..c9ca137edb32ab7f2822fecfec4a54e4bdda3825 --- /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