Merge branch 'master' of git://git.samba.org/samba into minschema
[ira/wip.git] / source4 / cldap_server / config.mk
index 00c0ef4f03a8e198eb2b7713406e917ec10acc21..045fca3fd0087634c7bcde93e65473fab43bbc5e 100644 (file)
@@ -2,12 +2,17 @@
 
 #######################
 # Start SUBSYSTEM CLDAPD
-[SUBSYSTEM::CLDAPD]
-PRIVATE_PROTO_HEADER = proto.h
-OBJ_FILES = \
-               cldap_server.o \
-               netlogon.o
-PUBLIC_DEPENDENCIES = \
+[MODULE::CLDAPD]
+INIT_FUNCTION = server_service_cldapd_init
+SUBSYSTEM = service
+PRIVATE_DEPENDENCIES = \
                LIBCLI_CLDAP LIBNETIF process_model
 # End SUBSYSTEM CLDAPD
 #######################
+
+CLDAPD_OBJ_FILES = $(addprefix $(cldap_serversrcdir)/, \
+               cldap_server.o \
+               netlogon.o \
+               rootdse.o)
+
+$(eval $(call proto_header_template,$(cldap_serversrcdir)/proto.h,$(CLDAPD_OBJ_FILES:.o=.c)))