From 9546c2e0a3bbc63adf7cac2f0bf39a77346725dc Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Mon, 7 Apr 2025 15:27:23 -0700 Subject: add Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile 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 -- cgit v1.2.3-70-g09d2