aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-04-07 15:27:23 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-04-07 15:27:23 -0700
commit9546c2e0a3bbc63adf7cac2f0bf39a77346725dc (patch)
treec0ae707864ac7de36d5601c98eed0b8536b43c05 /Makefile
parent16861fad04560d236541fb4b0b1463ef2d7882c9 (diff)
add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7a9cd9e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+PREFIX = /usr/local
+
+all: remote_plot
+
+remote_plot: remote_plot.c
+ cc -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -o $@ $<
+
+clean:
+ rm -f remote_plot
+
+install: all
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ cp -f remote_plot ${DESTDIR}${PREFIX}/bin
+
+uninstall:
+ rm -f ${DESTDIR}${PREFIX}/bin/remote_plot
+
+.PHONY: all clean install uninstall