r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
[kamenim/samba.git] / source4 / auth / config.mk
index 99e590faa14a38f79537665b120ac9aa5f70e007..497fccbc965173047e24c60d298004c4fd21b7f6 100644 (file)
@@ -1,14 +1,23 @@
-# AUTH Server subsystem
+# auth server subsystem
+include gensec/config.mk
+include kerberos/config.mk
+include ntlmssp/config.mk
+include credentials/config.mk
+
+[SUBSYSTEM::auth_sam]
+PRIVATE_PROTO_HEADER = auth_sam.h
+OBJ_FILES = sam.o auth_sam_reply.o ntlm_check.o 
+PUBLIC_DEPENDENCIES = SAMDB UTIL_LDB
 
 #######################
 # Start MODULE auth_sam
-[MODULE::auth_sam]
+[MODULE::auth_sam_module]
+# gensec_krb5 and gensec_gssapi depend on it
 INIT_FUNCTION = auth_sam_init
-SUBSYSTEM = AUTH
-INIT_OBJ_FILES = \
-               auth/auth_sam.o
-REQUIRED_SUBSYSTEMS = \
-               SAMDB
+SUBSYSTEM = auth
+OBJ_FILES = auth_sam.o
+PRIVATE_DEPENDENCIES = \
+               SAMDB auth_sam
 # End MODULE auth_sam
 #######################
 
@@ -16,9 +25,8 @@ REQUIRED_SUBSYSTEMS = \
 # Start MODULE auth_anonymous
 [MODULE::auth_anonymous]
 INIT_FUNCTION = auth_anonymous_init
-SUBSYSTEM = AUTH
-INIT_OBJ_FILES = \
-               auth/auth_anonymous.o
+SUBSYSTEM = auth
+OBJ_FILES = auth_anonymous.o
 # End MODULE auth_anonymous
 #######################
 
@@ -26,24 +34,9 @@ INIT_OBJ_FILES = \
 # Start MODULE auth_winbind
 [MODULE::auth_winbind]
 INIT_FUNCTION = auth_winbind_init
-SUBSYSTEM = AUTH
-INIT_OBJ_FILES = \
-               auth/auth_winbind.o
-REQUIRED_SUBSYSTEMS = \
-               LIB_WINBIND_CLIENT \
-               NDR_NETLOGON NDR_RAW
-# End MODULE auth_winbind
-#######################
-
-#######################
-# Start MODULE auth_domain
-[MODULE::auth_domain]
-INIT_FUNCTION = auth_domain_init
-SUBSYSTEM = AUTH
-INIT_OBJ_FILES = \
-               auth/auth_domain.o
-REQUIRED_SUBSYSTEMS = \
-               NDR_NETLOGON NDR_RAW
+SUBSYSTEM = auth
+OBJ_FILES = auth_winbind.o
+PRIVATE_DEPENDENCIES = NDR_WINBIND MESSAGING LIBWINBIND-CLIENT
 # End MODULE auth_winbind
 #######################
 
@@ -51,19 +44,36 @@ REQUIRED_SUBSYSTEMS = \
 # Start MODULE auth_developer
 [MODULE::auth_developer]
 INIT_FUNCTION = auth_developer_init
-SUBSYSTEM = AUTH
-INIT_OBJ_FILES = \
-               auth/auth_developer.o
+SUBSYSTEM = auth
+OBJ_FILES = auth_developer.o
 # End MODULE auth_developer
 #######################
 
 #######################
-# Start SUBSYSTEM AUTH
-[SUBSYSTEM::AUTH]
-INIT_OBJ_FILES = \
-               auth/auth.o
-ADD_OBJ_FILES = \
-               auth/auth_util.o \
-               auth/ntlm_check.o
-# End SUBSYSTEM AUTH
+# Start MODULE auth_unix
+[MODULE::auth_unix]
+INIT_FUNCTION = auth_unix_init
+SUBSYSTEM = auth
+OBJ_FILES = auth_unix.o
+PRIVATE_DEPENDENCIES = CRYPT PAM PAM_ERRORS NSS_WRAPPER
+# End MODULE auth_unix
+#######################
+
+[SUBSYSTEM::PAM_ERRORS]
+PRIVATE_PROTO_HEADER = pam_errors.h
+OBJ_FILES = pam_errors.o
+
+#######################
+# Start SUBSYSTEM auth
+[SUBSYSTEM::auth]
+#VERSION = 0.0.1
+#SO_VERSION = 0
+PUBLIC_HEADERS = auth.h
+PUBLIC_PROTO_HEADER = auth_proto.h
+OBJ_FILES = \
+               auth.o \
+               auth_util.o \
+               auth_simple.o
+PUBLIC_DEPENDENCIES = LIBSECURITY SAMDB CREDENTIALS
+# End SUBSYSTEM auth
 #######################