From 472336606c575591f8d77a7222a67ad9472fc94e Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Fri, 1 May 2026 14:15:51 +0000 Subject: [PATCH] build: add test_cli target to Makefile Co-authored-by: aider (deepseek/deepseek-coder) --- makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 94d112a..a57f98c 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,7 @@ CC = gcc CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L LDFLAGS = -ljack -lm -lncurses -all: jack-looper test_engine test_tui test_gui +all: jack-looper test_engine test_tui test_gui test_cli jack-looper: main.o engine.o tui.o gui.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) @@ -16,6 +16,9 @@ test_tui: test_tui.o engine.o test_gui: test_gui.o gui.o engine.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) +test_cli: test_cli.o engine.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + main.o: main.c engine.h tui.h $(CC) $(CFLAGS) -c -o $@ $< @@ -37,12 +40,16 @@ test_tui.o: test_tui.c engine.h tui.h test_gui.o: test_gui.c gui.h engine.h $(CC) $(CFLAGS) -c -o $@ $< +test_cli.o: test_cli.c engine.h + $(CC) $(CFLAGS) -c -o $@ $< + .PHONY: all clean test clean: - rm -f *.o jack-looper test_engine test_tui test_gui + rm -f *.o jack-looper test_engine test_tui test_gui test_cli -test: test_engine test_tui test_gui +test: test_engine test_tui test_gui test_cli ./test_engine ./test_tui ./test_gui + ./test_cli