aboutsummaryrefslogtreecommitdiff
path: root/ssh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ssh/Makefile')
-rw-r--r--ssh/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/ssh/Makefile b/ssh/Makefile
index 76d23c9..487bb46 100644
--- a/ssh/Makefile
+++ b/ssh/Makefile
@@ -4,22 +4,24 @@ LDFLAGS = -pthread
CFLAGS += $(shell pkg-config --cflags libssh)
LDFLAGS += $(shell pkg-config --libs libssh)
+TARGETS = server_proxy client_proxy ssh_client
+
.PHONY: all clean
-all: server client client_proxy
+all: $(TARGETS)
clean:
- rm -f server client *.o
+ rm -f $(TARGETS) *.o
-server: server.o util.o
+server_proxy: server_proxy.o util.o
$(CC) -o $@ $^ $(LDFLAGS)
-client: client.o sshnc.o util.o
+client_proxy: client_proxy.o sshnc.o util.o
$(CC) -o $@ $^ $(LDFLAGS)
-client_proxy: client_proxy.o sshnc.o util.o
+ssh_client: ssh_client.o sshnc.o util.o
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c $(wildcard *.h)