aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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