aboutsummaryrefslogtreecommitdiff
path: root/tools/cli
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cli')
-rw-r--r--tools/cli/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/cli/Makefile b/tools/cli/Makefile
index 47f697a..895b6fa 100644
--- a/tools/cli/Makefile
+++ b/tools/cli/Makefile
@@ -5,11 +5,12 @@ include $(ROOT)/build.mk
.DEFAULT_GOAL := all
LIBFFWD := $(ROOT)/libffwd
+YYJSON := $(ROOT)/deps/yyjson
BIN := $(OUTDIR)/ffwd-cli
SRCS := main.c
-LIBS := $(OUTDIR)/libffwd.a
-LDLIBS := $(BACKEND_LDFLAGS) $(YYJSON_LDFLAGS) -lm
+LIBS := $(OUTDIR)/libffwd.a $(OUTDIR)/libyyjson.a
+LDLIBS := $(BACKEND_LDFLAGS) -lm
CFLAGS += -std=gnu11 -pthread
CPPFLAGS += -I. -I$(LIBFFWD)
@@ -19,4 +20,7 @@ $(OBJDIR)/main.o: CFLAGS += $(VERSION_CFLAGS)
$(OUTDIR)/libffwd.a:
$(MAKE) -C $(LIBFFWD)
+$(OUTDIR)/libyyjson.a:
+ $(MAKE) -C $(YYJSON)
+
$(eval $(program))