diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 |