summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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