浏览代码

misc/protoshoot: option to disable sctp with SCTP=0 in make command

Daniel-Constantin Mierla 8 年之前
父节点
当前提交
0475310ae9
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      misc/tools/protoshoot/Makefile

+ 6 - 2
misc/tools/protoshoot/Makefile

@@ -1,6 +1,6 @@
 #
 #
 
 
-COREPATH=../../src
+COREPATH=../../../src
 include $(COREPATH)/Makefile.defs
 include $(COREPATH)/Makefile.defs
 include $(COREPATH)/Makefile.targets
 include $(COREPATH)/Makefile.targets
 
 
@@ -8,8 +8,12 @@ auto_gen=
 NAME=protoshoot
 NAME=protoshoot
 RELEASE=0.2
 RELEASE=0.2
 
 
+ifeq ($(SCTP),0)
+C_DEFS:=$(filter-out -DUSE_SCTP, $(C_DEFS))
+else
 ifneq (,$(findstring -DUSE_SCTP,$(C_DEFS)))
 ifneq (,$(findstring -DUSE_SCTP,$(C_DEFS)))
-SCTP=1
+SCTP?=1
+endif
 endif
 endif
 
 
 ifeq ($(SCTP),1)
 ifeq ($(SCTP),1)