Commit cdec747c authored by Rob Swindell's avatar Rob Swindell 💬
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
......@@ -12,6 +12,7 @@
# SYMLINK = Don't copy binaries, rather create symlinks in $(SBBSDIR)/exec
# SBBSDIR = Directory to do install to
# 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
# os = Set to the OS name (Not required)
# SBBSUSER = Owner for the installed files
......@@ -79,6 +80,12 @@ endif
MKFLAGS += os=$(os)
ifndef NOCAP
ifeq (($os),linux)
SETCAP := setcap
ifdef DEBUG
BUILD := debug
......@@ -147,11 +154,7 @@ binaries: sbbs3 gtkuseredit gtkchat gtkmonitor gtkuserlist syncview sexpots
externals: sbj dpoker tbd
sbbs3: src
ifeq ($(os),linux)
$(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS) setcap
$(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS)
$(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS) $(SETCAP)
sexpots: src
$(MAKE) -C $(REPODIR)/src/sexpots $(MKFLAGS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment