From 7cddd3e1ea648b7c478c00559a23cc10417bc5dd Mon Sep 17 00:00:00 2001 From: Yaroslav de la Peña Smirnov Date: Fri, 12 Sep 2025 12:33:18 +0300 Subject: cli.h: a simple command-line parser A simple command-line commands and options parser. --- cli/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cli/Makefile (limited to 'cli/Makefile') diff --git a/cli/Makefile b/cli/Makefile new file mode 100644 index 0000000..1d10d3f --- /dev/null +++ b/cli/Makefile @@ -0,0 +1,14 @@ +CC?=gcc +CFLAGS+=-Wall -std=gnu23 -O0 -g + +cli-test: cli-test.c cli.h + $(CC) $(CFLAGS) -o cli-test cli-test.c + +cli-example: cli-example.c cli.h + $(CC) $(CFLAGS) -o cli-example cli-example.c + +example: cli-example + +test: cli-test + +.PHONY: test example -- cgit v1.2.3