Skip to content
Snippets Groups Projects
Commit cdec747c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add optional NOCAP command-line option (call with NOCAP=1)

This can be used to defeat the automatic inclusion of the sbbs3
"setcap" build target when building on Linux. This should address
issue #175.
parent 656bdb8f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
# SYMLINK = Don't copy binaries, rather create symlinks in $(SBBSDIR)/exec # SYMLINK = Don't copy binaries, rather create symlinks in $(SBBSDIR)/exec
# SBBSDIR = Directory to do install to # SBBSDIR = Directory to do install to
# REPODIR = Directory where source files are cloned # REPODIR = Directory where source files are cloned
# NOCAP = Set to defeat sbbs3 bind-capabilities (setcap) build target on Linux
# bcc = Set to use Borland compiler # bcc = Set to use Borland compiler
# os = Set to the OS name (Not required) # os = Set to the OS name (Not required)
# SBBSUSER = Owner for the installed files # SBBSUSER = Owner for the installed files
...@@ -79,6 +80,12 @@ endif ...@@ -79,6 +80,12 @@ endif
MKFLAGS += os=$(os) MKFLAGS += os=$(os)
ifndef NOCAP
ifeq (($os),linux)
SETCAP := setcap
endif
endif
ifdef DEBUG ifdef DEBUG
BUILD := debug BUILD := debug
MKFLAGS += DEBUG=1 MKFLAGS += DEBUG=1
...@@ -147,11 +154,7 @@ binaries: sbbs3 gtkuseredit gtkchat gtkmonitor gtkuserlist syncview sexpots ...@@ -147,11 +154,7 @@ binaries: sbbs3 gtkuseredit gtkchat gtkmonitor gtkuserlist syncview sexpots
externals: sbj dpoker tbd externals: sbj dpoker tbd
sbbs3: src sbbs3: src
ifeq ($(os),linux) $(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS) $(SETCAP)
$(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS) setcap
else
$(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS)
endif
sexpots: src sexpots: src
$(MAKE) -C $(REPODIR)/src/sexpots $(MKFLAGS) $(MAKE) -C $(REPODIR)/src/sexpots $(MKFLAGS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment