- Move CLI internal headers to `includes/internal/cli/` - Split CLI handler and parsing declarations across dedicated internal headers - Move handler map to `option_map.c` and properly update references - Relocate CLI utility source and test files from `utils` to `parse_utils` - Refactor `cli.h` to only expose the public interface, move internal typedefs/functions out - Update build system: add conditional git commit detection
37 lines
1.5 KiB
Makefile
37 lines
1.5 KiB
Makefile
|
|
SRC_DIR = src
|
|
SRCS = $(SRC_DIR)/main.c \
|
|
$(SRC_DIR)/cli/parse.c \
|
|
$(SRC_DIR)/cli/handlers/handle_count.c \
|
|
$(SRC_DIR)/cli/handlers/handle_flood.c \
|
|
$(SRC_DIR)/cli/handlers/handle_help.c \
|
|
$(SRC_DIR)/cli/handlers/handle_interval.c \
|
|
$(SRC_DIR)/cli/handlers/handle_quiet.c \
|
|
$(SRC_DIR)/cli/handlers/option_map.c \
|
|
$(SRC_DIR)/cli/handlers/handle_size.c \
|
|
$(SRC_DIR)/cli/handlers/handle_timeout.c \
|
|
$(SRC_DIR)/cli/handlers/handle_ttl.c \
|
|
$(SRC_DIR)/cli/handlers/handle_version.c \
|
|
$(SRC_DIR)/cli/handlers/handle_verbose.c \
|
|
$(SRC_DIR)/cli/parse_utils/parse_int.c \
|
|
$(SRC_DIR)/cli/parse_utils/parse_float.c \
|
|
$(SRC_DIR)/cli/parse_utils/get_optstr.c \
|
|
$(SRC_DIR)/cli/messages/help.c \
|
|
$(SRC_DIR)/cli/messages/version.c \
|
|
|
|
TESTS_DIR = tests
|
|
TESTS = $(TESTS_DIR)/test_main.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_count.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_flood.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_help.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_interval.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_quiet.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handler_map.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_size.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_timeout.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_ttl.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_version.c \
|
|
$(TESTS_DIR)/cli/handlers/test_handle_verbose.c \
|
|
$(TESTS_DIR)/cli/parse_utils/test_parse_int.c \
|
|
$(TESTS_DIR)/cli/parse_utils/test_parse_float.c \
|
|
|