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