File: Makefile.modules

package info (click to toggle)
openser 1.1.0-9etch1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,828 kB
  • ctags: 11,809
  • sloc: ansic: 120,528; sh: 5,249; yacc: 1,716; makefile: 1,261; php: 656; perl: 205; sql: 190
file content (40 lines) | stat: -rw-r--r-- 843 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# $Id: Makefile.modules,v 1.2 2005/08/30 10:52:07 miconda 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 openser 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