summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/configure.in9
-rw-r--r--source4/smbd/config.m49
-rw-r--r--source4/smbd/config.mk51
3 files changed, 61 insertions, 8 deletions
diff --git a/source4/configure.in b/source4/configure.in
index 15019b8e00..32b600dc3b 100644
--- a/source4/configure.in
+++ b/source4/configure.in
@@ -237,14 +237,7 @@ SMB_EXT_LIB(ALLLIBS,
[${ALLLIBS_CPPFLAGS}],
[${ALLLIBS_LDFLAGS}])
-SMB_BINARY(smbd, [ALL], [SBIN],
- [smbd/server.o
- smbd/process.o
- lib/server_mutex.o
- smbd/build_options.o
- smbd/rewrite.o],
- [],
- [PROCESS_MODEL SMB AUTH NTVFS DCERPC LIBBASIC CONFIG LIBCMDLINE LIBSMB REGISTRY])
+SMB_INCLUDE_M4(smbd/config.m4)
SMB_BINARY(smbclient, [ALL], [BIN],
[client/client.o
diff --git a/source4/smbd/config.m4 b/source4/smbd/config.m4
new file mode 100644
index 0000000000..0f2f65a14e
--- /dev/null
+++ b/source4/smbd/config.m4
@@ -0,0 +1,9 @@
+dnl # SMB server subsystem
+
+SMB_MODULE_MK(server_smb,SERVER,STATIC,smbd/config.mk)
+SMB_MODULE_MK(server_rpc,SERVER,STATIC,smbd/config.mk)
+SMB_MODULE_MK(server_auth,SERVER,STATIC,smbd/config.mk)
+
+SMB_SUBSYSTEM_MK(SERVER,smbd/config.mk)
+
+SMB_BINARY_MK(smbd, smbd/config.mk)
diff --git a/source4/smbd/config.mk b/source4/smbd/config.mk
new file mode 100644
index 0000000000..1711a86a97
--- /dev/null
+++ b/source4/smbd/config.mk
@@ -0,0 +1,51 @@
+# server subsystem
+
+################################################
+# Start MODULE server_auth
+[MODULE::server_auth]
+REQUIRED_SUBSYSTEMS = \
+ AUTH
+# End MODULE server_auth
+################################################
+
+################################################
+# Start MODULE server_smb
+[MODULE::server_smb]
+REQUIRED_SUBSYSTEMS = \
+ SMB
+# End MODULE server_smb
+################################################
+
+################################################
+# Start MODULE server_rpc
+[MODULE::server_rpc]
+REQUIRED_SUBSYSTEMS = \
+ DCERPC
+# End MODULE server_rpc
+################################################
+
+#######################
+# Start SUBSYSTEM SERVER
+[SUBSYSTEM::SERVER]
+INIT_OBJ_FILES = \
+ smbd/server.o
+ADD_OBJ_FILES = \
+ smbd/process.o \
+ lib/server_mutex.o \
+ smbd/build_options.o \
+ smbd/rewrite.o
+REQUIRED_SUBSYSTEMS = \
+ PROCESS_MODEL
+# End SUBSYSTEM SERVER
+#######################
+
+#################################
+# Start BINARY smbd
+[BINARY::smbd]
+REQUIRED_SUBSYSTEMS = \
+ SERVER \
+ CONFIG \
+ LIBCMDLINE \
+ LIBBASIC
+# End BINARY smbd
+#################################