From 10e19dab46407cb9cf23923d2431cef0f2a50733 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Mon, 28 Apr 2025 20:25:40 -0700 Subject: feat: read past data from remote pi Using linked list so I can keep adding data without worrying about arrary max length. I also moved old code that can only read live data to old/remote_plot_live.c as an archive. --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7a9cd9e..adccbbf 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,17 @@ PREFIX = /usr/local all: remote_plot -remote_plot: remote_plot.c - cc -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -o $@ $< +list.o: list.c list.h + cc -Wall -c $< + +remote_plot.o: remote_plot.c + cc -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -c $< + +remote_plot: list.o remote_plot.o + cc -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -o $@ $^ clean: - rm -f remote_plot + rm -f remote_plot remote_plot.o list.o install: all mkdir -p ${DESTDIR}${PREFIX}/bin -- cgit v1.2.3-70-g09d2