diff options
author | Test_User <hax@andrewyu.org> | 2024-06-18 02:18:46 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-06-18 02:18:46 -0400 |
commit | c82ee1c2cdf492a05e4bf3d3d151205e50c9b603 (patch) | |
tree | d8e71d3c7b7c03bd512d427ab93b4c75ca4f990f /Makefile | |
parent | f67a7bd24b2e655c21ffdc6160d663d8d5ba5be6 (diff) | |
download | haxircd-c82ee1c2cdf492a05e4bf3d3d151205e50c9b603.tar.gz haxircd-c82ee1c2cdf492a05e4bf3d3d151205e50c9b603.zip |
Optional futex support, increased spam limit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -45,6 +45,7 @@ LDFLAGS = -lpthread printf '%s\n' 'LAST_INSPIRCD3_PROTOCOL = $(INSPIRCD3_PROTOCOL)' >> .makeopts printf '%s\n' 'LAST_HAXSERV_PSEUDOCLIENT = $(HAXSERV_PSEUDOCLIENT)' >> .makeopts printf '%s\n' 'LAST_SAFE_STACK = $(SAFE_STACK)' >> .makeopts + printf '%s\n' 'LAST_FUTEX = $(FUTEX)' >> .makeopts printf '%s\n' 'LAST_CFLAGS = $(ORIGINAL_CFLAGS)' >> .makeopts printf '%s\n' 'LAST_CC = $(CC)' >> .makeopts @@ -150,6 +151,14 @@ else CC = $(LAST_CC) endif +ifneq ($(FUTEX),) +ifneq ($(FUTEX),$(LAST_FUTEX)) +rebuild = 1 +endif +else +FUXEX = $(LAST_FUTEX) +endif + ifeq ($(rebuild),1) .PHONY: .makeopts endif @@ -159,7 +168,7 @@ USE_CLIENT = 0 USE_GNUTLS = 0 USE_SERVER = 0 -OFILES = config.o general_network.o haxstring_utils.o real_main.o table.o +OFILES = config.o general_network.o haxstring_utils.o real_main.o table.o mutex.o SOFILES = HaxIRCd.so ifeq ($(PLAINTEXT_CLIENT),1) @@ -270,6 +279,12 @@ endif +ifeq ($(FUTEX),1) +CFLAGS += -DUSE_FUTEX +endif + + + ifeq ($(SAFE_STACK),1) CFLAGS += -fstack-check endif @@ -304,6 +319,8 @@ $(call DEPS,real_main,o) $(call DEPS,main,o) +$(call DEPS,mutex,o) + $(call DEPS,protocols,o) $(call DEPS,table,o) |