summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-09-17 15:04:49 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-02-28 13:12:36 +0200
commit56d5364fced642aa203bd74b9d92798985d3ca5c (patch)
treef966ed80edf43004772d215bd3833cbee63da958 /src/Makefile
parentd797d5cc5fef90a9fc913b81087308815a126ce5 (diff)
src: monotonic-ts: Monotonic timestamp logging
Introduce a new utility which prefixes a monotonic timestamp rendered in the same format as the kernel logs to all lines fed in through stdin. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index d7f901f..c40e95a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,18 +7,23 @@ CFLAGS ?= -O0 -g -W -Wall -Wno-unused-parameter -Iinclude
LDFLAGS ?=
LIBS := -lm
GEN-IMAGE := gen-image
+MONOTONIC-TS := monotonic-ts
%.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<
-all: $(GEN-IMAGE)
+all: $(GEN-IMAGE) $(MONOTONIC-TS)
$(GEN-IMAGE): gen-image.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+$(MONOTONIC-TS): monotonic-ts.o
+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+
clean:
-rm -f *.o
- -rm -f $(GEN-IMAGE)
+ -rm -f $(GEN-IMAGE) $(MONOTONIC_TS)
install:
cp $(GEN-IMAGE) $(INSTALL_DIR)/
+ cp $(MONOTONIC-TS) $(INSTALL_DIR)/