From 6b969d25ce136eaf695222bd1a10bff1ecac0220 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Sat, 20 Jun 2026 20:10:56 +0200 Subject: all: split Makefile and reorg library/tools --- tools/cli/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/cli/Makefile (limited to 'tools/cli/Makefile') diff --git a/tools/cli/Makefile b/tools/cli/Makefile new file mode 100644 index 0000000..cc076f1 --- /dev/null +++ b/tools/cli/Makefile @@ -0,0 +1,22 @@ +ROOT := ../.. +COMPONENT := cli +include $(ROOT)/build.mk + +.DEFAULT_GOAL := all + +LIBFFWD := $(ROOT)/libffwd + +BIN := $(OUTDIR)/ffwd-cli +SRCS := main.c +LIBS := $(OUTDIR)/libffwd.a +LDLIBS := $(BACKEND_LDFLAGS) -lm + +CFLAGS += -std=gnu11 -pthread +CPPFLAGS += -I. -I$(LIBFFWD) + +$(OBJDIR)/main.o: CFLAGS += $(VERSION_CFLAGS) + +$(OUTDIR)/libffwd.a: + $(MAKE) -C $(LIBFFWD) + +$(eval $(program)) -- cgit v1.3.1