From 95dafc361c5715d09f55360d488fd3ede97d1438 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 22 Jun 2020 23:24:57 +0200 Subject: 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 --- ssh/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ssh/Makefile (limited to 'ssh/Makefile') 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 $@ $< -- cgit v1.2.3-54-g00ecf