summaryrefslogtreecommitdiffstats
path: root/source4/lib/events/config.mk
blob: 22c54b86edbb6a5d2ad865ed62d6b69124299e52 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
################################################
# Start SUBSYSTEM LIBEVENTS
[LIBRARY::LIBEVENTS]
PUBLIC_DEPENDENCIES = LIBTALLOC
OUTPUT_TYPE = STATIC_LIBRARY
CFLAGS = -Ilib/events
#
# End SUBSYSTEM LIBEVENTS
################################################

##############################
[MODULE::EVENTS_AIO]
PRIVATE_DEPENDENCIES = LIBAIO_LINUX
SUBSYSTEM = LIBEVENTS
INIT_FUNCTION = s4_events_aio_init
##############################

EVENTS_AIO_OBJ_FILES = $(libeventssrcdir)/events_aio.o

##############################
[MODULE::EVENTS_EPOLL]
SUBSYSTEM = LIBEVENTS
INIT_FUNCTION = s4_events_epoll_init
##############################

EVENTS_EPOLL_OBJ_FILES = $(libeventssrcdir)/events_epoll.o

##############################
[MODULE::EVENTS_SELECT]
SUBSYSTEM = LIBEVENTS
INIT_FUNCTION = s4_events_select_init
##############################

EVENTS_SELECT_OBJ_FILES = $(libeventssrcdir)/events_select.o

##############################
[MODULE::EVENTS_STANDARD]
SUBSYSTEM = LIBEVENTS
INIT_FUNCTION = s4_events_standard_init
##############################

EVENTS_STANDARD_OBJ_FILES = $(libeventssrcdir)/events_standard.o

##############################
# Start SUBSYSTEM LIBEVENTS
[SUBSYSTEM::LIBEVENTS]
# End SUBSYSTEM LIBEVENTS
##############################

LIBEVENTS_OBJ_FILES = $(addprefix $(libeventssrcdir)/, events.o events_timed.o events_signal.o)

PUBLIC_HEADERS += $(addprefix $(libeventssrcdir)/, events.h events_internal.h)

[PYTHON::swig_events]
SWIG_FILE = events.i
PRIVATE_DEPENDENCIES = LIBEVENTS LIBSAMBA-HOSTCONFIG

swig_events_OBJ_FILES = $(libeventssrcdir)/events_wrap.o

$(eval $(call python_py_module_template,samba/events.py,$(libeventssrcdir)/events.py))

$(swig_events_OBJ_FILES): CFLAGS+="$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)"