Module: sip-router Branch: master Commit: 1bdbdb64e4862ddb69c2bf13be0f9be93968bb1e URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1bdbdb64...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Sat May 25 16:30:33 2013 +0200
protoshoot: use Makefile pattern for utils
- link to libsctp if SCTP support is enabled
---
utils/protoshoot/Makefile | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/utils/protoshoot/Makefile b/utils/protoshoot/Makefile index 1adba1f..9f6efd4 100644 --- a/utils/protoshoot/Makefile +++ b/utils/protoshoot/Makefile @@ -1,13 +1,26 @@ #
-include ../../Makefile.defs +COREPATH=../.. +include $(COREPATH)/Makefile.defs +include $(COREPATH)/Makefile.targets
auto_gen= NAME=protoshoot +RELEASE=0.2
-include ../../Makefile.sources +ifneq (,$(findstring -DUSE_SCTP,$(C_DEFS))) +SCTP=1 +endif
-include ../../Makefile.rules +ifeq ($(SCTP),1) +ifeq ($(OS), linux) + LIBS+= -lsctp +endif +endif + +include $(COREPATH)/Makefile.utils + +$(NAME).o:
modules: