#
# $Id: Makefile.modules,v 1.7 2004/09/07 15:48:52 andrei Exp $
#
# module Makefile
#(to be included from each module)
#
MOD_NAME=$(NAME:.so=)
ALLDEP=Makefile ../../Makefile.sources ../../Makefile.rules \
../../Makefile.modules
#override modules value, a module cannot have submodules
override modules=
override static_modules=
override static_modules_path=
ifeq ($(MAKELEVEL), 0)
# make called directly in the module dir!
$(warning "you should run make from the main ser directory")
ifneq ($(makefile_defs), 1)
$(error "the local makefile does not include Makefile.defs!")
endif
else
# called by the main Makefile
ALLDEP+=../../Makefile ../../Makefile.defs
endif
include ../../Makefile.sources
ifeq (,$(filter $(MOD_NAME), $(static_modules)))
CFLAGS:=$(MOD_CFLAGS)
LDFLAGS:=$(MOD_LDFLAGS)
endif
include ../../Makefile.rules
syntax highlighted by Code2HTML, v. 0.9.1