summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2022-05-16 15:53:39 +0200
committerDirk Engling <erdgeist@erdgeist.org>2022-05-16 15:53:39 +0200
commitd1ac67f6d73f24a165ccc008440bb8b208ae140f (patch)
tree0da0184ec2273ffa6f642ab06e776fcdda9f4ac3 /Makefile
parent43b74147212ddc5e619ac17dd1b5967b6b293d8a (diff)
Decouple IO openssl's BIO abstraction and split connection and tls handling to allow for other TLS libs
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1796234..3eb2efa 100755
--- a/Makefile
+++ b/Makefile
@@ -26,11 +26,13 @@ CFLAGS += $(OLDREADLINE)
26## enable debug code 26## enable debug code
27#CFLAGS += -DDEBUG 27#CFLAGS += -DDEBUG
28 28
29#LDFLAGS = -L"/usr/local/opt/openssl@1.1/lib"
30
29## the install prefix best is /usr/local 31## the install prefix best is /usr/local
30PREFIX=/usr/local 32PREFIX=/usr/local
31 33
32LIBS = -lreadline -lncursesw -lssl -lcrypto 34LIBS = -lssl -lcrypto -lncurses -lreadline
33OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-ssl.o 35OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-tls.o vchat-connection.o
34 36
35 37
36############################################## 38##############################################
@@ -66,7 +68,7 @@ clean:
66############################################## 68##############################################
67 69
68vchat-client: $(OBJS) 70vchat-client: $(OBJS)
69 $(CC) $(CFLAGS) -o vchat-client $(OBJS) $(LIBS) 71 $(CC) $(CFLAGS) -o vchat-client $(OBJS) $(LIBS) $(LDFLAGS)
70 72
71vchat-client.o: vchat-client.c vchat-config.h Makefile 73vchat-client.o: vchat-client.c vchat-config.h Makefile
72 $(CC) $(CFLAGS) -o vchat-client.o -c vchat-client.c 74 $(CC) $(CFLAGS) -o vchat-client.o -c vchat-client.c
@@ -83,8 +85,11 @@ vchat-user.o: vchat-user.c vchat.h
83vchat-commands.o: vchat-commands.c vchat.h vchat-config.h 85vchat-commands.o: vchat-commands.c vchat.h vchat-config.h
84 $(CC) $(CFLAGS) -o vchat-commands.o -c vchat-commands.c 86 $(CC) $(CFLAGS) -o vchat-commands.o -c vchat-commands.c
85 87
86vchat-ssl.o: vchat-ssl.c vchat-ssl.h 88vchat-tls.o: vchat-tls.c vchat-tls.h
87 $(CC) $(CFLAGS) -o vchat-ssl.o -c vchat-ssl.c 89 $(CC) $(CFLAGS) -o vchat-tls.o -c vchat-tls.c
90
91vchat-connection.o: vchat-connection.c vchat-connection.h
92 $(CC) $(CFLAGS) -o vchat-connection.o -c vchat-connection.c
88 93
89#vchat-client.1: vchat-client.sgml 94#vchat-client.1: vchat-client.sgml
90# docbook2man vchat-client.sgml 95# docbook2man vchat-client.sgml