TNT/tests/unit/Makefile
m1ngsama a832fe703f feat: add whisper messaging and command history
- Add :msg/:w command for private whisper messages between users
- Add command history with UP/DOWN arrow navigation in command mode
- Store up to 16 commands in ring buffer per client session
- Update help text to document new features
- Fix unit test Makefile to link common.c
2026-04-19 17:22:23 +08:00

31 lines
630 B
Makefile

# Unit Tests Makefile
CC = gcc
CFLAGS = -Wall -Wextra -std=c11 -I../../include
LDFLAGS = -pthread
# Source files
UTF8_SRC = ../../src/utf8.c
MESSAGE_SRC = ../../src/message.c
COMMON_SRC = ../../src/common.c
TESTS = test_utf8 test_message
.PHONY: all clean run
all: $(TESTS)
test_utf8: test_utf8.c $(UTF8_SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
test_message: test_message.c $(MESSAGE_SRC) $(UTF8_SRC) $(COMMON_SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
run: all
@echo "=== Running UTF-8 Tests ==="
./test_utf8
@echo ""
@echo "=== Running Message Tests ==="
./test_message
clean:
rm -f $(TESTS) *.o test_messages.log