Browse code

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

Daniel-Constantin Mierla authored on 25/11/2011 17:38:24
Showing 1 changed files
... ...
@@ -75,6 +75,14 @@ override static_modules_path=
75 75
 # temporary def (visible only in the module, not exported)
76 76
 DEFS += -DMOD_NAME='"$(MOD_NAME)"'
77 77
 
78
+
79
+ifeq (,$(findstring -DSER_MOD_INTERFACE, $(DEFS)))
80
+	MODIFACE=-DOPENSER_MOD_INTERFACE
81
+else
82
+	MODIFACE=-DSER_MOD_INTERFACE
83
+endif
84
+
85
+
78 86
 ifneq ($(makefile_defs_included),1)
79 87
 $(error "the local makefile does not include Makefile.defs!")
80 88
 endif
... ...
@@ -297,6 +305,10 @@ man:
297 297
 
298 298
 endif
299 299
 
300
+
301
+printmiface:
302
+	@echo $(MODIFACE)
303
+
300 304
 endif # ifeq($(makefile_defs),1)
301 305
 
302 306
 include $(COREPATH)/Makefile.cfg