247c2b65 |
#
# $Id$
#
# module Makefile
#(to be included from each module)
#
|
404073d3 |
MOD_NAME=$(NAME:.so=)
|
247c2b65 |
ALLDEP=Makefile ../../Makefile.sources ../../Makefile.rules \
../../Makefile.modules
|
3431bcad |
#override modules value, a module cannot have submodules
override modules=
override static_modules=
override static_modules_path=
|
247c2b65 |
ifeq ($(MAKELEVEL), 0)
# make called directly in the module dir!
$(warning "you should run make from the main ser directory")
|
4ce32edc |
ifneq ($(makefile_defs), 1)
$(error "the local makefile does not include Makefile.defs!")
endif
|
247c2b65 |
else
# called by the main Makefile
|
dcb5f364 |
ALLDEP+=../../Makefile ../../Makefile.defs
|
247c2b65 |
endif
include ../../Makefile.sources
|
404073d3 |
ifeq (,$(filter $(MOD_NAME), $(static_modules)))
|
247c2b65 |
CFLAGS:=$(MOD_CFLAGS)
LDFLAGS:=$(MOD_LDFLAGS)
|
404073d3 |
endif
|
247c2b65 |
include ../../Makefile.rules
|