diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-20 01:12:42 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-20 01:12:42 +0200 |
commit | 52a72be2a6790a5a59d19c11847aa27b9e32ea89 (patch) | |
tree | 2779a209384f525583d6945ebec83a4098f513a0 /Makefile | |
parent | 92c67507e7b9b94341b3453b01a124f642aa68fb (diff) |
Implement a happy path mbedtls wrapper
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 26 |
1 files changed, 19 insertions, 7 deletions
@@ -6,18 +6,35 @@ | |||
6 | # configuration # | 6 | # configuration # |
7 | ############################################## | 7 | ############################################## |
8 | 8 | ||
9 | OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-tls.o vchat-connection.o | ||
10 | |||
11 | LIBS = -lncurses | ||
12 | LIBS += -lreadline | ||
13 | |||
9 | CFLAGS = -Wall -Os | 14 | CFLAGS = -Wall -Os |
10 | #CFLAGS = -Wall -g -ggdb | ||
11 | 15 | ||
12 | ## use this line when you've got an readline before 4.(x|2) | 16 | ## use this line when you've got an readline before 4.(x|2) |
13 | #CFLAGS += -DOLDREADLINE | 17 | #CFLAGS += -DOLDREADLINE |
14 | |||
15 | CFLAGS += $(OLDREADLINE) | 18 | CFLAGS += $(OLDREADLINE) |
16 | 19 | ||
20 | ##### Enable this for using the OpenSSL library | ||
21 | CFLAGS += -DTLS_LIB_OPENSSL -I"/usr/local/opt/openssl@1.1/include" | ||
22 | LIBS += -lssl -lcrypto | ||
23 | |||
24 | ##### Enable this for using the mbedTLS library | ||
25 | #CFLAGS += -DTLS_LIB_MBEDTLS | ||
26 | #LIBS += -lmbedx509 -lmbedtls -lmbedcrypto | ||
27 | |||
17 | ## you might need one or more of these: | 28 | ## you might need one or more of these: |
29 | #CFLAGS+= -Wextra -Wall -g -ggdb | ||
30 | #CFLAGS+= -arch x86_64 -Wno-deprecated-declarations | ||
31 | #CFLAGS+= -arch i386 -Wno-deprecated-declarations | ||
18 | #CFLAGS += -I/usr/local/ssl/include -L/usr/local/ssl/lib | 32 | #CFLAGS += -I/usr/local/ssl/include -L/usr/local/ssl/lib |
19 | #CFLAGS += -I/usr/local/include -L/usr/local/lib | 33 | #CFLAGS += -I/usr/local/include -L/usr/local/lib |
20 | #CFLAGS += -I/usr/pkg/include -L/usr/pkg/lib | 34 | #CFLAGS += -I/usr/pkg/include -L/usr/pkg/lib |
35 | #LDFLAGS += -L"/usr/local/opt/openssl@1.1/lib" | ||
36 | #CFLAGS += -I../readline-6.3 | ||
37 | #LIBS += ../readline-6.3/libreadline.a | ||
21 | 38 | ||
22 | ## enable dietlibc | 39 | ## enable dietlibc |
23 | #CC = diet cc | 40 | #CC = diet cc |
@@ -26,14 +43,9 @@ CFLAGS += $(OLDREADLINE) | |||
26 | ## enable debug code | 43 | ## enable debug code |
27 | #CFLAGS += -DDEBUG | 44 | #CFLAGS += -DDEBUG |
28 | 45 | ||
29 | #LDFLAGS = -L"/usr/local/opt/openssl@1.1/lib" | ||
30 | |||
31 | ## the install prefix best is /usr/local | 46 | ## the install prefix best is /usr/local |
32 | PREFIX=/usr/local | 47 | PREFIX=/usr/local |
33 | 48 | ||
34 | LIBS = -lssl -lcrypto -lncurses -lreadline | ||
35 | OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-tls.o vchat-connection.o | ||
36 | |||
37 | 49 | ||
38 | ############################################## | 50 | ############################################## |
39 | # general targets # | 51 | # general targets # |