diff --git a/makefile b/makefile index d427d34..4dcd7c9 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,7 @@ CC = gcc CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L -Ilib -fsanitize=address,undefined LDFLAGS = -ljack -lm -lncurses -all: jack-looper test_engine test_tui test_gui test_cli +all: jack-looper test_engine test_tui test_gui test_cli test_stress jack-looper: main.o engine.o tui.o gui.o cli.o transport.o lib/microui.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) @@ -22,6 +22,12 @@ test_cli: test_cli.o engine.o cli.o transport.o test_double_process: test_double_process.o engine.o transport.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) +test_stress: test_stress.o engine.o transport.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +test_stress.o: test_stress.c engine.h tui.h transport.h + $(CC) $(CFLAGS) -c -o $@ $< + main.o: main.c engine.h tui.h transport.h $(CC) $(CFLAGS) -c -o $@ $< @@ -61,10 +67,11 @@ cli.o: cli.c cli.h engine.h transport.h .PHONY: all clean test clean: - rm -f *.o lib/microui.o jack-looper test_engine test_tui test_gui test_cli + rm -f *.o lib/microui.o jack-looper test_engine test_tui test_gui test_cli test_double_process test_stress -test: test_engine test_tui test_cli test_double_process +test: test_engine test_tui test_cli test_double_process test_stress ./test_engine ./test_tui ./test_cli ./test_double_process + ./test_stress