|
@@ -6,14 +6,18 @@
|
|
#
|
|
#
|
|
MOD_NAME=$(NAME:.so=)
|
|
MOD_NAME=$(NAME:.so=)
|
|
|
|
|
|
-ALLDEP=Makefile ../../Makefile.sources ../../Makefile.rules \
|
|
|
|
- ../../Makefile.modules
|
|
|
|
|
|
+# allow place modules in separate directory apart from ser core
|
|
|
|
+COREPATH ?=../..
|
|
|
|
+
|
|
|
|
+ALLDEP=Makefile $(COREPATH)/Makefile.sources $(COREPATH)/Makefile.rules \
|
|
|
|
+ $(COREPATH)/Makefile.modules
|
|
|
|
|
|
#override modules value, a module cannot have submodules
|
|
#override modules value, a module cannot have submodules
|
|
override modules=
|
|
override modules=
|
|
override static_modules=
|
|
override static_modules=
|
|
override static_modules_path=
|
|
override static_modules_path=
|
|
|
|
|
|
|
|
+INCLUDES += -I$(COREPATH)
|
|
|
|
|
|
ifeq ($(MAKELEVEL), 0)
|
|
ifeq ($(MAKELEVEL), 0)
|
|
# make called directly in the module dir!
|
|
# make called directly in the module dir!
|
|
@@ -26,15 +30,15 @@ endif
|
|
else
|
|
else
|
|
# called by the main Makefile
|
|
# called by the main Makefile
|
|
|
|
|
|
-ALLDEP+=../../Makefile ../../Makefile.defs
|
|
|
|
|
|
+ALLDEP+=$(COREPATH)/Makefile $(COREPATH)/Makefile.defs
|
|
|
|
|
|
endif
|
|
endif
|
|
|
|
|
|
-include ../../Makefile.sources
|
|
|
|
|
|
+include $(COREPATH)/Makefile.sources
|
|
|
|
|
|
ifeq (,$(filter $(MOD_NAME), $(static_modules)))
|
|
ifeq (,$(filter $(MOD_NAME), $(static_modules)))
|
|
CFLAGS:=$(MOD_CFLAGS)
|
|
CFLAGS:=$(MOD_CFLAGS)
|
|
LDFLAGS:=$(MOD_LDFLAGS)
|
|
LDFLAGS:=$(MOD_LDFLAGS)
|
|
endif
|
|
endif
|
|
|
|
|
|
-include ../../Makefile.rules
|
|
|
|
|
|
+include $(COREPATH)/Makefile.rules
|