Update Makefile to include security_utils and types.h files

This commit is contained in:
2025-09-16 22:21:57 +08:00
parent f208059b70
commit 53964df405
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -7,10 +7,10 @@ CFLAGS = -Wall -Wextra -std=c17 -g
TARGET = student_system TARGET = student_system
# 源文件 # 源文件
SOURCES = main.c globals.c main_menu.c user_manage.c core_handlers.c statistical_analysis.c student_io.c student_crud.c student_search.c student_sort.c io_utils.c validation.c string_utils.c file_utils.c math_utils.c system_utils.c SOURCES = main.c globals.c main_menu.c user_manage.c core_handlers.c statistical_analysis.c student_io.c student_crud.c student_search.c student_sort.c io_utils.c validation.c string_utils.c file_utils.c math_utils.c system_utils.c security_utils.c
# 头文件 # 头文件
HEADERS = config.h globals.h main_menu.h user_manage.h core_handlers.h statistical_analysis.h student_io.h student_crud.h student_search.h student_sort.h io_utils.h validation.h string_utils.h file_utils.h math_utils.h system_utils.h HEADERS = config.h globals.h main_menu.h user_manage.h core_handlers.h statistical_analysis.h student_io.h student_crud.h student_search.h student_sort.h io_utils.h validation.h string_utils.h file_utils.h math_utils.h system_utils.h security_utils.h types.h
# 默认目标 # 默认目标
all: $(TARGET) all: $(TARGET)
+3
View File
@@ -11,6 +11,9 @@
* @note 编译运行命令: * @note 编译运行命令:
* gcc -std=c17 -o student_system.exe *.c -I. * gcc -std=c17 -o student_system.exe *.c -I.
./student_system ./student_system
或者用Makefile编译
make run
make clean
* @warning 登录失败超过MAX_LOGIN_ATTEMPTS次会强制退出程序 * @warning 登录失败超过MAX_LOGIN_ATTEMPTS次会强制退出程序
*/ */