fix: update Makefile to find microui.h in lib/ directory
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
13
makefile
13
makefile
@@ -1,10 +1,10 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L
|
||||
CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L -Ilib
|
||||
LDFLAGS = -ljack -lm -lncurses
|
||||
|
||||
all: jack-looper test_engine test_tui test_gui test_cli
|
||||
|
||||
jack-looper: main.o engine.o tui.o gui.o
|
||||
jack-looper: main.o engine.o tui.o gui.o lib/microui.o
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
test_engine: test_engine.o engine.o
|
||||
@@ -13,7 +13,7 @@ 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
|
||||
test_gui: test_gui.o gui.o engine.o lib/microui.o
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
test_cli: test_cli.o engine.o
|
||||
@@ -28,7 +28,10 @@ engine.o: engine.c engine.h
|
||||
tui.o: tui.c tui.h engine.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
gui.o: gui.c gui.h engine.h microui.h
|
||||
gui.o: gui.c gui.h engine.h lib/microui.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
lib/microui.o: lib/microui.c lib/microui.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
test_engine.o: test_engine.c engine.h
|
||||
@@ -46,7 +49,7 @@ test_cli.o: test_cli.c engine.h
|
||||
.PHONY: all clean test
|
||||
|
||||
clean:
|
||||
rm -f *.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: test_engine test_tui test_gui test_cli
|
||||
./test_engine
|
||||
|
||||
Reference in New Issue
Block a user