aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-07-12 12:12:54 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-07-12 12:12:54 +0200
commit7cfede3e206592ad0e4cb7a3a63a1e18ee7a5bad (patch)
treeaa177597fd77b1388e26df4579d796042309ac11
parenta0672edaeaf9f4da0e9f6bf6dbe787e1386fa713 (diff)
ssh: Some executable renamings
-rw-r--r--ssh/.gitignore4
-rw-r--r--ssh/Makefile12
-rw-r--r--ssh/server_proxy.c (renamed from ssh/server.c)0
-rw-r--r--ssh/ssh_client.c (renamed from ssh/client.c)0
4 files changed, 9 insertions, 7 deletions
diff --git a/ssh/.gitignore b/ssh/.gitignore
index 0abd297..fa45e11 100644
--- a/ssh/.gitignore
+++ b/ssh/.gitignore
@@ -1,6 +1,6 @@
ssh_host_key
-server
-client
+server_proxy
client_proxy
+ssh_client
*.o
compile_commands.json
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)
diff --git a/ssh/server.c b/ssh/server_proxy.c
index 84f0587..84f0587 100644
--- a/ssh/server.c
+++ b/ssh/server_proxy.c
diff --git a/ssh/client.c b/ssh/ssh_client.c
index 5c7f084..5c7f084 100644
--- a/ssh/client.c
+++ b/ssh/ssh_client.c