fix: add missing cli.o to test_cli link target

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 14:30:11 +00:00
parent b661cc8873
commit c4e9579faa

View File

@@ -16,7 +16,7 @@ test_tui: test_tui.o engine.o
test_gui: test_gui.o gui.o engine.o lib/microui.o test_gui: test_gui.o gui.o engine.o lib/microui.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
test_cli: test_cli.o engine.o test_cli: test_cli.o engine.o cli.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
main.o: main.c engine.h tui.h main.o: main.c engine.h tui.h
@@ -46,6 +46,9 @@ test_gui.o: test_gui.c gui.h engine.h
test_cli.o: test_cli.c engine.h test_cli.o: test_cli.c engine.h
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<
cli.o: cli.c cli.h engine.h
$(CC) $(CFLAGS) -c -o $@ $<
.PHONY: all clean test .PHONY: all clean test
clean: clean: