Fix a couple (well, little more than that..) of typos.
[nivanova/samba-autobuild/.git] / source4 / smb_server / config.mk
index 03a49d728a72fb05ac82cec26b5b395c85e7f168..e11968a1004a28456b33e09bd48c79887842ca04 100644 (file)
@@ -1,25 +1,33 @@
 # SMB server subsystem
+#
+[MODULE::SERVICE_SMB]
+INIT_FUNCTION = server_service_smb_init
+SUBSYSTEM = smbd
+PRIVATE_DEPENDENCIES = SMB_SERVER
+
+SERVICE_SMB_OBJ_FILES = $(smb_serversrcdir)/smb_server.o
+
+$(eval $(call proto_header_template,$(smb_serversrcdir)/service_smb_proto.h,$(SERVICE_SMB_OBJ_FILES:.o=.c)))
 
 #######################
 # Start SUBSYSTEM SMB
-[SUBSYSTEM::SMB]
-INIT_OBJ_FILES = \
-               smb_server.o
-ADD_OBJ_FILES = \
-               conn.o \
-               negprot.o \
-               nttrans.o \
-               session.o \
-               reply.o \
-               request.o \
-               search.o \
-               service.o \
-               sesssetup.o \
-               srvtime.o \
-               trans2.o \
-               signing.o \
-               management.o
-REQUIRED_SUBSYSTEMS = \
-               NTVFS
+[SUBSYSTEM::SMB_SERVER]
+PUBLIC_DEPENDENCIES = \
+               share \
+               LIBPACKET \
+               SMB_PROTOCOL \
+               SMB2_PROTOCOL
 # End SUBSYSTEM SMB
 #######################
+
+SMB_SERVER_OBJ_FILES = $(addprefix $(smb_serversrcdir)/, \
+               handle.o \
+               tcon.o \
+               session.o \
+               blob.o \
+               management.o)
+
+$(eval $(call proto_header_template,$(smb_serversrcdir)/smb_server_proto.h,$(SMB_SERVER_OBJ_FILES:.o=.c)))
+
+mkinclude smb/config.mk
+mkinclude smb2/config.mk