aboutsummaryrefslogtreecommitdiff
path: root/ssh/Makefile
diff options
context:
space:
mode:
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 $@ $<