fix: add GUI support to build system and test suite
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
16
makefile
16
makefile
@@ -2,9 +2,9 @@ CC = gcc
|
||||
CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L
|
||||
LDFLAGS = -ljack -lm -lncurses
|
||||
|
||||
all: jack-looper test_engine test_tui
|
||||
all: jack-looper test_engine test_tui test_gui
|
||||
|
||||
jack-looper: main.o engine.o tui.o
|
||||
jack-looper: main.o engine.o tui.o gui.o
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
test_engine: test_engine.o engine.o
|
||||
@@ -13,6 +13,12 @@ test_engine: test_engine.o engine.o
|
||||
test_tui: test_tui.o engine.o
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
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 $@ $<
|
||||
|
||||
@@ -31,6 +37,12 @@ test_engine.o: test_engine.c engine.h
|
||||
test_tui.o: test_tui.c engine.h tui.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user