diff --git a/makefile b/makefile index 49e2dd4..94d112a 100644 --- a/makefile +++ b/makefile @@ -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 diff --git a/test_gui.c b/test_gui.c index e9ee40b..f5728a5 100644 --- a/test_gui.c +++ b/test_gui.c @@ -19,35 +19,3 @@ int main(void) return ret; } -#include -#include -#include "engine.h" -#include "gui.h" - -int main(void) { - Engine engine; - if (engine_init(&engine, "test-gui") != 0) { - fprintf(stderr, "Failed to initialize engine\n"); - return 1; - } - engine.control_channel = 0; - int ret = gui_main(&engine); - engine_cleanup(&engine); - return ret; -} -#include -#include -#include "engine.h" -#include "gui.h" - -int main(void) { - Engine engine; - if (engine_init(&engine, "test-gui") != 0) { - fprintf(stderr, "Failed to initialize engine\n"); - return 1; - } - engine.control_channel = 0; - int ret = gui_main(&engine); - engine_cleanup(&engine); - return ret; -}