fix: remove duplicate makefile rules and duplicate main functions in test_gui.c

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 14:13:50 +00:00
parent 1302de01e7
commit ca0eedca3e
2 changed files with 3 additions and 40 deletions

View File

@@ -16,9 +16,6 @@ test_tui: test_tui.o engine.o
test_gui: test_gui.o gui.o engine.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
test_gui: test_gui.o gui.o engine.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
main.o: main.c engine.h tui.h
$(CC) $(CFLAGS) -c -o $@ $<
@@ -40,14 +37,12 @@ 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_gui.o: test_gui.c gui.h engine.h
$(CC) $(CFLAGS) -c -o $@ $<
.PHONY: all clean test
clean:
rm -f *.o jack-looper test_engine test_tui
rm -f *.o jack-looper test_engine test_tui test_gui
test: test_engine test_tui
test: test_engine test_tui test_gui
./test_engine
./test_tui
./test_gui