diff --git a/status/Makefile b/status/Makefile index b30efc9..9574e30 100644 --- a/status/Makefile +++ b/status/Makefile @@ -1,13 +1,19 @@ CFLAGS += -g +.PHONY: run run: status ./status +.PHONY: cleanall +cleanall: clean + rm -f order.c settings.c + +.PHONY: clean clean: rm -f status *.o status: status.c order.c libio.o libkeyval.o - $(CC) $(CFLAGS) -o $@ $@.c libio.o libkeyval.o + time $(CC) $(CFLAGS) -o $@ $@.c libio.o libkeyval.o order.c: order.def.c - cp -v order.def.c $@ diff --git a/status/README b/status/README index 7efbb8d..acbe5cc 100644 --- a/status/README +++ b/status/README @@ -4,3 +4,10 @@ /__/ /_//_//_//_/ /__/ /__/ 2025 DTB. Public Domain. build: $ make + +libio.c, libio.h: libio, a wrapper around I/O functions for status(1) +libkeyval.c, libkeyval.h: libkeyval, a key/value system for status(1) +*.def.c: the default for foo.c, a configuration file #included + directly in a source-file +mod_*.c: modules to be #included directly in status.h +status.c: main() and boilerplate