Makefile.modules
247c2b65
 #
 # $Id$
 #
 # module Makefile
 #(to be included from each module)
 #
404073d3
 MOD_NAME=$(NAME:.so=)
247c2b65
 
 ALLDEP=Makefile ../../Makefile.sources ../../Makefile.rules \
  ../../Makefile.modules
 
 ifeq ($(MAKELEVEL), 0)
 # make called directly in the module dir!
 
 $(warning "you should run make from the main ser directory")
 include ../../Makefile.defs
 ALLDEP+=../../Makefile.defs
 
 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