aboutsummaryrefslogtreecommitdiff
path: root/ssh/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-06-22 23:24:57 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-06-25 17:21:29 +0200
commit95dafc361c5715d09f55360d488fd3ede97d1438 (patch)
tree6d5b48f71f7a53736030bd2860e6b2d17d1eac96 /ssh/Makefile
parent46feba9a7b1e4ed023dcdc3c505b67f3eb8348f0 (diff)
WIP server using libssh, TODO is custom client
I think writing a custom client may work better with the callback structure, though I'm not sure
Diffstat (limited to 'ssh/Makefile')
-rw-r--r--ssh/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/ssh/Makefile b/ssh/Makefile
new file mode 100644
index 0000000..63cb462
--- /dev/null
+++ b/ssh/Makefile
@@ -0,0 +1,19 @@
+CC = gcc
+CFLAGS = -Wall -Wextra -std=c11 -g -O2 -fwrapv -pthread -D_DEFAULT_SOURCE
+LDFLAGS = -pthread
+CFLAGS += $(shell pkg-config --cflags libssh)
+LDFLAGS += $(shell pkg-config --libs libssh)
+
+.PHONY: all clean
+
+all: server
+
+clean:
+ rm -f server *.o
+
+
+server: server.o ../global.o ../memory.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c $(wildcard *.h)
+ $(CC) $(CFLAGS) -c -o $@ $<