summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-12-06 22:52:04 -0500
committerTest_User <hax@andrewyu.org>2023-12-06 22:52:04 -0500
commite939637c995c8730e899dff61cd93cc71decc928 (patch)
tree7329376068a458c51de8bace2d1be6bc5a1145e9 /Makefile
parentb5f5f18ae3ed0887685ef48b6d7750c0a4d0d57e (diff)
downloadcoupserv-e939637c995c8730e899dff61cd93cc71decc928.tar.gz
coupserv-e939637c995c8730e899dff61cd93cc71decc928.zip
Revert "No more TLS"
This reverts commit 8fb7f0bc0d3300637c2db8499efbf193ffebf28f.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6d6d5e0..4ddf248 100644
--- a/Makefile
+++ b/Makefile
@@ -36,16 +36,16 @@ ifeq ($(COLORIZE), 1)
CFLAGS += -DCOLORIZE=1
endif
-CFLAGS += $(INCLUDEFLAGS) -D_REENTRANT -ggdb3 -Wall -Wextra -Wsign-conversion -Wno-unused-parameter
+CFLAGS += $(INCLUDEFLAGS) -D_REENTRANT -ggdb3 -Wall -Wextra -Wsign-conversion -Wno-unused-parameter $(shell pkg-config gnutls --cflags)
-LDFLAGS = -lpthread
+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 server_network.o client_network.o general_network.o commands.o table.o config.o utils.o
+haxserv: main.o server_network.o client_network.o general_network.o commands.o table.o config.o tls.o utils.o
$(CC) $^ -o $@ $(LDFLAGS)
%.o: %.c
@@ -65,6 +65,8 @@ $(call DEPS,table)
$(call DEPS,config)
+$(call DEPS,tls)
+
$(call DEPS,utils)
clean: