diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-04-07 15:27:23 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-04-07 15:27:23 -0700 |
commit | 9546c2e0a3bbc63adf7cac2f0bf39a77346725dc (patch) | |
tree | c0ae707864ac7de36d5601c98eed0b8536b43c05 | |
parent | 16861fad04560d236541fb4b0b1463ef2d7882c9 (diff) |
add Makefile
-rw-r--r-- | Makefile | 18 |
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 |