From 74929656c3a672738cb02b1f956457ea44098a86 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 26 Jul 2024 08:00:00 +0800 Subject: Makefile: Clarify error messages a bit --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index fba7e40..5ce5758 100644 --- a/Makefile +++ b/Makefile @@ -314,11 +314,10 @@ USE_OPENSSL_BUFFERED_NETWORK := 1 endif ifneq ($(USE_NETWORK),1) -$(error How would you like to communicate with these clients or servers?) +$(error How would you like to communicate with these clients or servers? You need to enable at least one network transport) endif - ifeq ($(INSPIRCD2_PROTOCOL),1) OFILES += protocols/inspircd2.o CFLAGS += -DUSE_INSPIRCD2_PROTOCOL @@ -339,7 +338,7 @@ endif ifeq ($(USE_SERVER),1) ifneq ($(USE_PROTOCOLS),1) -$(error You must use some s2s protocol if you want to link servers) +$(error You must enable at least one s2s protocol if you want to link servers) endif endif @@ -379,7 +378,7 @@ endif ifeq ($(USE_PROTOCOLS),1) ifneq ($(USE_SERVER),1) -$(error You must have some form of server transport layer enabled if you hope to use an s2s protocol) +$(error You must have some form of server network transport enabled if you hope to use an s2s protocol) endif OFILES += protocols.o endif @@ -399,7 +398,7 @@ endif ifeq ($(MISERABLE_SPINLOCKS),1) ifeq ($(FUTEX),1) -$(error Miserable spinlocks are only enabled when noy using futexes) +$(error Why are you trying to use miserable spinlocks when using futexes? Choose one) endif CFLAGS += -DUSE_MISERABLE_SPINLOCKS endif @@ -423,7 +422,7 @@ IP_ENABLED := 1 endif ifneq ($(IP_ENABLED),1) -$(error I don't know how you intend to use TCP/IP without IP) +$(error I don't know how you intend to use TCP/IP without IP. Enable at least one of IPv4 and IPv6) endif -- cgit v1.2.3