summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-05-06 03:03:58 -0400
committerTest_User <hax@andrewyu.org>2023-05-06 03:03:58 -0400
commit32d75fadbf193218d0be42ca91b7688f1854f6e4 (patch)
treebacc1c35036a0b38fe63f6cffeb711be43cc7ae3 /Makefile
parent329ca8e8f40efdd7838d40435b5f113d2877c13c (diff)
downloadcoupserv-32d75fadbf193218d0be42ca91b7688f1854f6e4.tar.gz
coupserv-32d75fadbf193218d0be42ca91b7688f1854f6e4.zip
Start adding client support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 078fdf3..9c832ec 100644
--- a/Makefile
+++ b/Makefile
@@ -30,14 +30,14 @@
CFLAGS += $(INCLUDEFLAGS) -D_REENTRANT -ggdb3 -Wall -Wextra -Wno-unused-parameter $(shell pkg-config gnutls --cflags)
-LDFLAGS = -lssl -lcrypto $(shell pkg-config gnutls --libs)
+LDFLAGS = -lpthread $(shell pkg-config gnutls --libs)
DEPS = $(shell $(CC) $(INCLUDEFLAGS) -MM -MT $(1).o $(1).c | sed -z 's/\\\n //g')
.PHONY: all clean cleanall release
all: haxserv
-haxserv: main.o network.o commands.o table.o config.o tls.o utils.o
+haxserv: main.o server_network.o client_network.o commands.o table.o config.o tls.o utils.o
$(CC) $^ -o $@ $(LDFLAGS)
%.o: %.c
@@ -45,7 +45,9 @@ haxserv: main.o network.o commands.o table.o config.o tls.o utils.o
$(call DEPS,main)
-$(call DEPS,network)
+$(call DEPS,server_network)
+
+$(call DEPS,client_network)
$(call DEPS,commands)