Create prototype headers from Makefile directory, without smb_build in the middle.
[samba.git] / source4 / smb_server / smb / config.mk
index 7e6fce7d7b8f529e9fbe57eb3282d3c662062398..b5e87de2caebd3bfc3c1d42e1c0f669da05c9e11 100644 (file)
@@ -1,7 +1,6 @@
 #######################
 # Start SUBSYSTEM SMB_PROTOCOL
 [SUBSYSTEM::SMB_PROTOCOL]
-PRIVATE_PROTO_HEADER = smb_proto.h
 PUBLIC_DEPENDENCIES = \
                ntvfs LIBPACKET CREDENTIALS
 # End SUBSYSTEM SMB_PROTOCOL
@@ -20,3 +19,4 @@ SMB_PROTOCOL_OBJ_FILES = $(addprefix $(smb_serversrcdir)/smb/, \
                trans2.o \
                signing.o)
 
+$(call proto_header_template,$(smb_serversrcdir)/smb/smb_proto.h,$(SMB_PROTOCOL_OBJ_FILES:.o=.c))