diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-16 15:53:39 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-16 15:53:39 +0200 |
commit | d1ac67f6d73f24a165ccc008440bb8b208ae140f (patch) | |
tree | 0da0184ec2273ffa6f642ab06e776fcdda9f4ac3 /Makefile | |
parent | 43b74147212ddc5e619ac17dd1b5967b6b293d8a (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-x | Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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 |
30 | PREFIX=/usr/local | 32 | PREFIX=/usr/local |
31 | 33 | ||
32 | LIBS = -lreadline -lncursesw -lssl -lcrypto | 34 | LIBS = -lssl -lcrypto -lncurses -lreadline |
33 | OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-ssl.o | 35 | OBJS = 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 | ||
68 | vchat-client: $(OBJS) | 70 | vchat-client: $(OBJS) |
69 | $(CC) $(CFLAGS) -o vchat-client $(OBJS) $(LIBS) | 71 | $(CC) $(CFLAGS) -o vchat-client $(OBJS) $(LIBS) $(LDFLAGS) |
70 | 72 | ||
71 | vchat-client.o: vchat-client.c vchat-config.h Makefile | 73 | vchat-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 | |||
83 | vchat-commands.o: vchat-commands.c vchat.h vchat-config.h | 85 | vchat-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 | ||
86 | vchat-ssl.o: vchat-ssl.c vchat-ssl.h | 88 | vchat-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 | |||
91 | vchat-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 |