diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-04-28 20:25:40 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-04-28 20:25:40 -0700 |
commit | 10e19dab46407cb9cf23923d2431cef0f2a50733 (patch) | |
tree | ba315453a9fd8dcda9090bc8752866b0de377132 /Makefile | |
parent | ea551f37cc03c691e7f2c002d1ca313fbca8793c (diff) |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 |