aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-06-20 18:29:24 -0400
committerTest_User <hax@andrewyu.org>2024-06-20 18:29:24 -0400
commitef6f87193ab6628a2366b004a21c5cb21304c663 (patch)
tree8406b6c90f6f4a65ac19360e4fbc640779b52aa5 /Makefile
parent6a858830eb5ab1c8cd78e502471f88333b9bcca5 (diff)
downloadhaxircd-ef6f87193ab6628a2366b004a21c5cb21304c663.tar.gz
haxircd-ef6f87193ab6628a2366b004a21c5cb21304c663.zip
Seperate futex fom atomics
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4994a14..ff77124 100644
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,7 @@ LDFLAGS = -lpthread
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_ATOMICS = $(ATOMICS)' >> .makeopts
printf '%s\n' 'LAST_CFLAGS = $(ORIGINAL_CFLAGS)' >> .makeopts
printf '%s\n' 'LAST_CC = $(CC)' >> .makeopts
@@ -213,6 +214,14 @@ else
FUTEX := $(LAST_FUTEX)
endif
+ifneq ($(ATOMICS),)
+ifneq ($(ATOMICS),$(LAST_ATOMICS))
+rebuild = 1
+endif
+else
+ATOMICS := $(LAST_ATOMICS)
+endif
+
ifeq ($(rebuild),1)
.PHONY: .makeopts
endif
@@ -390,6 +399,10 @@ ifeq ($(FUTEX),1)
CFLAGS += -DUSE_FUTEX
endif
+ifeq ($(ATOMICS),1)
+CFLAGS += -DUSE_ATOMICS
+endif
+
ifeq ($(SAFE_STACK),1)