aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-04-28 20:25:40 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-04-28 20:25:40 -0700
commit10e19dab46407cb9cf23923d2431cef0f2a50733 (patch)
treeba315453a9fd8dcda9090bc8752866b0de377132 /Makefile
parentea551f37cc03c691e7f2c002d1ca313fbca8793c (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--Makefile12
1 files changed, 9 insertions, 3 deletions
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