Move more modules inside of the samba package.
[ira/wip.git] / source4 / auth / config.mk
1 # auth server subsystem
2 gensecsrcdir := $(authsrcdir)/gensec
3 mkinclude gensec/config.mk
4 mkinclude kerberos/config.mk
5 mkinclude ntlmssp/config.mk
6 mkinclude ntlm/config.mk
7 mkinclude credentials/config.mk
8
9 [SUBSYSTEM::auth_session]
10 PUBLIC_DEPENDENCIES = CREDENTIALS
11
12 PUBLIC_HEADERS += $(authsrcdir)/session.h
13
14 auth_session_OBJ_FILES = $(addprefix $(authsrcdir)/, session.o)
15
16 $(eval $(call proto_header_template,$(authsrcdir)/session_proto.h,$(auth_session_OBJ_FILES:.o=.c)))
17
18 [SUBSYSTEM::auth_system_session]
19 PUBLIC_DEPENDENCIES = CREDENTIALS
20 PRIVATE_DEPENDENCIES = auth_session LIBSAMBA-UTIL LIBSECURITY 
21
22 auth_system_session_OBJ_FILES = $(addprefix $(authsrcdir)/, system_session.o)
23 $(eval $(call proto_header_template,$(authsrcdir)/system_session_proto.h,$(auth_system_session_OBJ_FILES:.o=.c)))
24
25 [SUBSYSTEM::auth_sam]
26 PUBLIC_DEPENDENCIES = SAMDB UTIL_LDB LIBSECURITY
27 PRIVATE_DEPENDENCIES = LDAP_ENCODE
28
29 auth_sam_OBJ_FILES = $(addprefix $(authsrcdir)/, sam.o)
30
31 $(eval $(call proto_header_template,$(authsrcdir)/auth_sam.h,$(auth_sam_OBJ_FILES:.o=.c)))
32
33 [SUBSYSTEM::auth_sam_reply]
34
35 auth_sam_reply_OBJ_FILES = $(addprefix $(authsrcdir)/, auth_sam_reply.o)
36
37 $(eval $(call proto_header_template,$(authsrcdir)/auth_sam_reply.h,$(auth_sam_reply_OBJ_FILES:.o=.c)))
38
39 [PYTHON::swig_auth]
40 LIBRARY_REALNAME = samba/_auth.$(SHLIBEXT)
41 PUBLIC_DEPENDENCIES = auth_system_session
42 PRIVATE_DEPENDENCIES = SAMDB 
43
44 $(eval $(call python_py_module_template,samba/auth.py,$(authsrcdir)/auth.py))
45
46 swig_auth_OBJ_FILES = $(authsrcdir)/auth_wrap.o
47
48 $(swig_auth_OBJ_FILES): CFLAGS+="$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)"