浏览代码

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

Daniel-Constantin Mierla 13 年之前
父节点
当前提交
6fb2e27d0f
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      Makefile.modules

+ 12 - 0
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