[sr-dev] git:master:0475310a: misc/protoshoot: option to disable sctp with SCTP=0 in make command

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 8 18:36:39 CET 2016


Module: kamailio
Branch: master
Commit: 0475310ae96217809acd5120bf25ccc6c44119f4
URL: https://github.com/kamailio/kamailio/commit/0475310ae96217809acd5120bf25ccc6c44119f4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/0475310ae96217809acd5120bf25ccc6c44119f4.diff
Patch: https://github.com/kamailio/kamailio/commit/0475310ae96217809acd5120bf25ccc6c44119f4.patch

---

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)




More information about the sr-dev mailing list