lib/param: Put common FN_ macros into param_functions.c
[kai/samba.git] / lib / param / wscript_build
index 13b7709abfeb7d7b502a22dae509520d06368dd5..10e05a3072d3f92fe76971f0cd3788fb72ba136b 100644 (file)
@@ -1,20 +1,20 @@
 #!/usr/bin/env python
 
 bld.SAMBA_GENERATOR('param_local_h',
-                    source= 'param_functions.c ../../script/mkparamdefs.pl',
+                    source= '../../script/mkparamdefs.pl param_functions.c ',
                     target='param_local.h',
-                    rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT} --generate-scope=LOCAL')
+                    rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} --file ${TGT} --generate-scope=LOCAL')
 
 
 bld.SAMBA_GENERATOR('s3_param_h',
-                    source= 'loadparm.c ../../script/mks3param.pl',
+                    source= ' ../../script/mks3param.pl loadparm.c param_functions.c',
                     target='s3_param.h',
-                    rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT}')
+                    rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT}')
 
 bld.SAMBA_GENERATOR('param_global_h',
-                    source= 'loadparm.c ../../script/mkparamdefs.pl',
+                    source= '../../script/mkparamdefs.pl loadparm.c param_functions.c',
                     target='param_global.h',
-                    rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
+                    rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)}  ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
 
 bld.SAMBA_LIBRARY('server-role',
                   source='loadparm_server_role.c',