aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-06-24 11:08:29 -0400
committerTest_User <hax@andrewyu.org>2024-06-24 11:08:50 -0400
commitd095efe06273ec29bdc07c2cc522d6fe5a793550 (patch)
tree0eab2d9999ae71d5cff1ae682b54d17ad8aa98b5 /Makefile
parent7b3767d3988c3bb9c96f049ca8e5a829917c8426 (diff)
downloadhaxircd-d095efe06273ec29bdc07c2cc522d6fe5a793550.tar.gz
haxircd-d095efe06273ec29bdc07c2cc522d6fe5a793550.zip
The start of some services, inspircd3 support extra broken for now
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ff77124..c8f5dac 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,7 @@ LDFLAGS = -lpthread
printf '%s\n' 'LAST_INSPIRCD2_PROTOCOL = $(INSPIRCD2_PROTOCOL)' >> .makeopts
printf '%s\n' 'LAST_INSPIRCD3_PROTOCOL = $(INSPIRCD3_PROTOCOL)' >> .makeopts
printf '%s\n' 'LAST_HAXSERV_PSEUDOCLIENT = $(HAXSERV_PSEUDOCLIENT)' >> .makeopts
+ printf '%s\n' 'LAST_SERVICES_PSEUDOCLIENT = $(SERVICES_PSEUDOCLIENT)' >> .makeopts
printf '%s\n' 'LAST_SAFE_STACK = $(SAFE_STACK)' >> .makeopts
printf '%s\n' 'LAST_FUTEX = $(FUTEX)' >> .makeopts
printf '%s\n' 'LAST_ATOMICS = $(ATOMICS)' >> .makeopts
@@ -181,6 +182,14 @@ else
HAXSERV_PSEUDOCLIENT := $(LAST_HAXSERV_PSEUDOCLIENT)
endif
+ifneq ($(SERVICES_PSEUDOCLIENT),)
+ifneq ($(SERVICES_PSEUDOCLIENT),$(LAST_SERVICES_PSEUDOCLIENT))
+rebuild = 1
+endif
+else
+SERVICES_PSEUDOCLIENT := $(LAST_SERVICES_PSEUDOCLIENT)
+endif
+
ifneq ($(SAFE_STACK),)
ifneq ($(SAFE_STACK),$(LAST_SAFE_STACK))
rebuild = 1
@@ -330,6 +339,12 @@ CFLAGS += -DUSE_HAXSERV_PSEUDOCLIENT
USE_PSEUDOCLIENTS = 1
endif
+ifeq ($(SERVICES_PSEUDOCLIENT),1)
+SOFILES += pseudoclients/services.so
+CFLAGS += -DUSE_SERVICES_PSEUDOCLIENT
+USE_PSEUDOCLIENTS = 1
+endif
+
ifeq ($(USE_CLIENT),1)
@@ -497,6 +512,10 @@ ifeq ($(HAXSERV_PSEUDOCLIENT),1)
$(call DEPS,pseudoclients/haxserv,so)
endif
+ifeq ($(SERVICES_PSEUDOCLIENT),1)
+$(call DEPS,pseudoclients/services,so)
+endif
+
clean:
$(RM) HaxIRCd
for file in `find . -name '*.so'`; do $(RM) $$file; done