Module: kamailio
Branch: master
Commit: 0475310ae96217809acd5120bf25ccc6c44119f4
URL:
https://github.com/kamailio/kamailio/commit/0475310ae96217809acd5120bf25ccc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-12-08T18:32:19+01:00
misc/protoshoot: option to disable sctp with SCTP=0 in make command
---
Modified: misc/tools/protoshoot/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/0475310ae96217809acd5120bf25ccc…
Patch:
https://github.com/kamailio/kamailio/commit/0475310ae96217809acd5120bf25ccc…
---
diff --git a/misc/tools/protoshoot/Makefile b/misc/tools/protoshoot/Makefile
index d4a8757..a37776b 100644
--- a/misc/tools/protoshoot/Makefile
+++ b/misc/tools/protoshoot/Makefile
@@ -1,6 +1,6 @@
#
-COREPATH=../../src
+COREPATH=../../../src
include $(COREPATH)/Makefile.defs
include $(COREPATH)/Makefile.targets
@@ -8,8 +8,12 @@ auto_gen=
NAME=protoshoot
RELEASE=0.2
+ifeq ($(SCTP),0)
+C_DEFS:=$(filter-out -DUSE_SCTP, $(C_DEFS))
+else
ifneq (,$(findstring -DUSE_SCTP,$(C_DEFS)))
-SCTP=1
+SCTP?=1
+endif
endif
ifeq ($(SCTP),1)