Fix dependencies when using shared libraries.
[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 PRIVATE_DEPENDENCIES = SAMDB
12
13 PUBLIC_HEADERS += $(authsrcdir)/session.h
14
15 auth_session_OBJ_FILES = $(addprefix $(authsrcdir)/, session.o)
16
17 $(eval $(call proto_header_template,$(authsrcdir)/session_proto.h,$(auth_session_OBJ_FILES:.o=.c)))
18
19 [SUBSYSTEM::samba_server_gensec]
20 PUBLIC_DEPENDENCIES = CREDENTIALS GENSEC auth 
21
22 samba_server_gensec_OBJ_FILES = $(addprefix $(authsrcdir)/, samba_server_gensec.o)
23
24 [SUBSYSTEM::auth_system_session]
25 PUBLIC_DEPENDENCIES = CREDENTIALS
26 PRIVATE_DEPENDENCIES = auth_session LIBSAMBA-UTIL LIBSECURITY 
27
28 auth_system_session_OBJ_FILES = $(addprefix $(authsrcdir)/, system_session.o)
29 $(eval $(call proto_header_template,$(authsrcdir)/system_session_proto.h,$(auth_system_session_OBJ_FILES:.o=.c)))
30
31 [SUBSYSTEM::auth_sam]
32 PUBLIC_DEPENDENCIES = SAMDB UTIL_LDB LIBSECURITY
33 PRIVATE_DEPENDENCIES = LDAP_ENCODE
34
35 auth_sam_OBJ_FILES = $(addprefix $(authsrcdir)/, sam.o)
36
37 $(eval $(call proto_header_template,$(authsrcdir)/auth_sam.h,$(auth_sam_OBJ_FILES:.o=.c)))
38
39 [SUBSYSTEM::auth_sam_reply]
40
41 auth_sam_reply_OBJ_FILES = $(addprefix $(authsrcdir)/, auth_sam_reply.o)
42
43 $(eval $(call proto_header_template,$(authsrcdir)/auth_sam_reply.h,$(auth_sam_reply_OBJ_FILES:.o=.c)))
44
45 [PYTHON::pyauth]
46 LIBRARY_REALNAME = samba/auth.$(SHLIBEXT)
47 PUBLIC_DEPENDENCIES = auth_system_session
48 PRIVATE_DEPENDENCIES = SAMDB PYTALLOC param
49
50 pyauth_OBJ_FILES = $(authsrcdir)/pyauth.o
51