forked from Vocalocity/opensips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.modules
44 lines (31 loc) · 872 Bytes
/
Makefile.modules
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
41
42
43
44
#
# $Id$
#
# module Makefile
#(to be included from each module)
#
MOD_NAME=$(NAME:.so=)
ALLDEP=Makefile ../../Makefile.sources ../../Makefile.rules \
../../Makefile.modules ../../Makefile.conf
#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 opensips directory")
ifneq ($(makefile_defs), 1)
$(error "the local makefile does not include Makefile.defs!")
endif
include ../../Makefile.conf
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
CFLAGS+=-DMOD_NAME='"$(MOD_NAME)"'
include ../../Makefile.rules