[sr-dev] git:master: Makefile.modules: printmiface - new target to print module interface define

Daniel-Constantin Mierla miconda at gmail.com
Fri Nov 25 18:43:22 CET 2011


Module: sip-router
Branch: master
Commit: 6fb2e27d0f9db5191b8939df69e23ef12f3b6d1d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6fb2e27d0f9db5191b8939df69e23ef12f3b6d1d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Nov 25 18:38:24 2011 +0100

Makefile.modules: printmiface - new target to print module interface define

---

 Makefile.modules |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Makefile.modules b/Makefile.modules
index 1e198d6..303a7af 100644
--- a/Makefile.modules
+++ b/Makefile.modules
@@ -75,6 +75,14 @@ override static_modules_path=
 # temporary def (visible only in the module, not exported)
 DEFS += -DMOD_NAME='"$(MOD_NAME)"'
 
+
+ifeq (,$(findstring -DSER_MOD_INTERFACE, $(DEFS)))
+	MODIFACE=-DOPENSER_MOD_INTERFACE
+else
+	MODIFACE=-DSER_MOD_INTERFACE
+endif
+
+
 ifneq ($(makefile_defs_included),1)
 $(error "the local makefile does not include Makefile.defs!")
 endif
@@ -297,6 +305,10 @@ man:
 
 endif
 
+
+printmiface:
+	@echo $(MODIFACE)
+
 endif # ifeq($(makefile_defs),1)
 
 include $(COREPATH)/Makefile.cfg




More information about the sr-dev mailing list