$(eval $(call proto_header_template,$(authsrcdir)/session_proto.h,$(auth_session_OBJ_FILES:.o=.c)))
+[SUBSYSTEM::samba_server_gensec]
+PUBLIC_DEPENDENCIES = CREDENTIALS GENSEC auth
+
+samba_server_gensec_OBJ_FILES = $(addprefix $(authsrcdir)/, samba_server_gensec.o)
+
[SUBSYSTEM::auth_system_session]
PUBLIC_DEPENDENCIES = CREDENTIALS
PRIVATE_DEPENDENCIES = auth_session LIBSAMBA-UTIL LIBSECURITY
$(eval $(call proto_header_template,$(authsrcdir)/auth_sam_reply.h,$(auth_sam_reply_OBJ_FILES:.o=.c)))
-[PYTHON::swig_auth]
+[PYTHON::pyauth]
+LIBRARY_REALNAME = samba/auth.$(SHLIBEXT)
PUBLIC_DEPENDENCIES = auth_system_session
-PRIVATE_DEPENDENCIES = SAMDB
-SWIG_FILE = auth.i
+PRIVATE_DEPENDENCIES = SAMDB PYTALLOC param
-$(eval $(call python_py_module_template,auth.py,$(authsrcdir)/auth.py))
+pyauth_OBJ_FILES = $(authsrcdir)/pyauth.o
-swig_auth_OBJ_FILES = $(authsrcdir)/auth_wrap.o