summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile26
1 files changed, 19 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 3eb2efa..281910d 100755
--- a/Makefile
+++ b/Makefile
@@ -6,18 +6,35 @@
6# configuration # 6# configuration #
7############################################## 7##############################################
8 8
9OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-tls.o vchat-connection.o
10
11LIBS = -lncurses
12LIBS += -lreadline
13
9CFLAGS = -Wall -Os 14CFLAGS = -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
15CFLAGS += $(OLDREADLINE) 18CFLAGS += $(OLDREADLINE)
16 19
20##### Enable this for using the OpenSSL library
21CFLAGS += -DTLS_LIB_OPENSSL -I"/usr/local/opt/openssl@1.1/include"
22LIBS += -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
32PREFIX=/usr/local 47PREFIX=/usr/local
33 48
34LIBS = -lssl -lcrypto -lncurses -lreadline
35OBJS = 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 #