From e5637e294637e57c13977f68cf0a479696e7d970 Mon Sep 17 00:00:00 2001
From: Logan Aerl Arias <logana@srb2.org>
Date: Mon, 1 Jan 2024 20:21:46 +0000
Subject: [PATCH] change name of binary in dedicated server build to lsrb2d

---
 src/Makefile.d/nix.mk | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.d/nix.mk b/src/Makefile.d/nix.mk
index c4fa3640f..d06544667 100644
--- a/src/Makefile.d/nix.mk
+++ b/src/Makefile.d/nix.mk
@@ -2,8 +2,6 @@
 # Makefile options for unices (linux, bsd...)
 #
 
-EXENAME?=lsdl2srb2
-
 opts+=-DUNIXCOMMON -DLUA_USE_POSIX
 # Use -rdynamic so a backtrace log shows function names
 # instead of addresses
@@ -17,9 +15,18 @@ endif
 ifndef DEDICATED
 ifndef DUMMY
 SDL?=1
+DEDICATED?=0
 endif
 endif
 
+ifeq (${SDL},1)
+EXENAME?=lsdl2srb2
+endif
+
+ifeq (${DEDICATED},1)
+EXENAME?=lsrb2d
+endif
+
 # In common usage.
 ifdef LINUX
 libs+=-lrt
-- 
GitLab