s3-waf: convert PERFCOUNT into a subsystem.
[samba.git] / source3 / wscript_build
1 #!/usr/bin/env python
2
3 from samba_utils import *
4
5 TDB_LIB_SRC = '''lib/util_tdb.c ../lib/util/util_tdb.c
6           lib/dbwrap.c lib/dbwrap_tdb.c
7           lib/dbwrap_ctdb.c
8           lib/g_lock.c
9           lib/dbwrap_rbt.c'''
10
11 TDB_VALIDATE_SRC = '''lib/tdb_validate.c'''
12
13 SMBLDAP = bld.env.SMBLDAP or ""
14 SMBLDAPUTIL = bld.env.SMBLDAPUTIL or ""
15
16 SMBLDAP_SRC = '''${SMBLDAP} ${SMBLDAPUTIL}'''
17
18 VERSION_SRC = '''lib/version.c'''
19
20 WBCOMMON_SRC = '../nsswitch/wb_common.c'
21
22 AFS_SRC = 'lib/afs.c'
23
24 AFS_SETTOKEN_SRC = 'lib/afs_settoken.c'
25
26 AVAHI_SRC = 'lib/avahi.c smbd/avahi_register.c'
27
28 SERVER_MUTEX_SRC = 'lib/server_mutex.c'
29
30 PASSCHANGE_SRC = '''libsmb/passchange.c'''
31
32 LIBNDR_DRSUAPI_SRC = '''../librpc/ndr/ndr_drsuapi.c
33                      ../librpc/ndr/ndr_compression.c
34                      ../librpc/gen_ndr/ndr_drsuapi.c
35                      ../librpc/ndr/ndr_drsblobs.c
36                      ../librpc/gen_ndr/ndr_drsblobs.c'''
37
38 COMPRESSION_SRC = '../lib/compression/mszip.c ../lib/compression/lzxpress.c'
39
40 DRSUAPI_SRC = '''${LIBNDR_DRSUAPI_SRC}
41               ${COMPRESSION_SRC}'''
42
43 LIBNDR_NTLMSSP_SRC = '''../librpc/gen_ndr/ndr_ntlmssp.c
44                      ../librpc/ndr/ndr_ntlmssp.c'''
45
46 LIBNDR_SRC = '''../librpc/ndr/ndr_basic.c
47              ../librpc/ndr/ndr.c
48              ../librpc/ndr/ndr_misc.c
49              ../librpc/gen_ndr/ndr_misc.c
50              ../librpc/ndr/ndr_string.c
51              ../librpc/ndr/uuid.c
52              librpc/ndr/util.c'''
53
54 LIBNDR_GEN_SRC0 = '''../librpc/gen_ndr/ndr_samr.c'''
55
56 LIBNDR_NETLOGON_SRC = '''../librpc/gen_ndr/ndr_netlogon.c
57                   ../librpc/ndr/ndr_netlogon.c'''
58
59 LIBNDR_SCHANNEL_SRC = '''../librpc/gen_ndr/ndr_schannel.c
60                   ../librpc/ndr/ndr_schannel.c'''
61
62 LIBNDR_SPOOLSS_SRC = '''../librpc/gen_ndr/ndr_spoolss.c
63                   ../librpc/ndr/ndr_spoolss_buf.c'''
64
65 LIBNDR_NTPRINTING_SRC = '''../librpc/gen_ndr/ndr_ntprinting.c
66                            ../librpc/ndr/ndr_ntprinting.c'''
67
68 LIBNDR_PREG_SRC = '''librpc/gen_ndr/ndr_preg.c
69                      librpc/ndr/ndr_preg.c'''
70
71 LIBNDR_XATTR_SRC = '''../librpc/gen_ndr/ndr_xattr.c
72                   ../librpc/ndr/ndr_xattr.c'''
73
74 LIBCLI_SPOOLSS_SRC = '''
75                      ../librpc/gen_ndr/cli_spoolss.c
76                      ../librpc/gen_ndr/ndr_spoolss_c.c
77                      rpc_client/cli_spoolss.c
78                      rpc_client/init_spoolss.c'''
79
80 LIBCLI_EVENTLOG_SRC = '''
81                       ../librpc/gen_ndr/cli_eventlog.c
82                       ../librpc/gen_ndr/ndr_eventlog_c.c'''
83
84 LIBCLI_WINREG_SRC = '''
85                     ../librpc/gen_ndr/cli_winreg.c
86                     ../librpc/gen_ndr/ndr_winreg_c.c'''
87
88 LIBCLI_NTSVCS_SRC = '''
89                     ../librpc/gen_ndr/cli_ntsvcs.c
90                     ../librpc/gen_ndr/ndr_ntsvcs_c.c'''
91
92 LIBCLI_DRSUAPI_SRC = '''
93                      ../librpc/gen_ndr/cli_drsuapi.c
94                      ../librpc/gen_ndr/ndr_drsuapi_c.c'''
95
96 LIBCLI_DFS_SRC = '''
97                  ../librpc/gen_ndr/cli_dfs.c
98                  ../librpc/gen_ndr/ndr_dfs_c.c'''
99
100 LIBCLI_ECHO_SRC = '''
101                   ../librpc/gen_ndr/cli_echo.c
102                   ../librpc/gen_ndr/ndr_echo_c.c'''
103
104 LIBCLI_INITSHUTDOWN_SRC = '''
105                           ../librpc/gen_ndr/cli_initshutdown.c
106                           ../librpc/gen_ndr/ndr_initshutdown_c.c'''
107
108 LIBCLI_DSSETUP_SRC = '''
109                      ../librpc/gen_ndr/cli_dssetup.c
110                      ../librpc/gen_ndr/ndr_dssetup_c.c'''
111
112 LIBCLI_SVCCTL_SRC = '''
113                     ../librpc/gen_ndr/cli_svcctl.c
114                     ../librpc/gen_ndr/ndr_svcctl_c.c'''
115
116 LIBCLI_WKSSVC_SRC = '''
117                     ../librpc/gen_ndr/cli_wkssvc.c
118                     ../librpc/gen_ndr/ndr_wkssvc_c.c'''
119
120 LIBCLI_SRVSVC_SRC = '''
121                     ../librpc/gen_ndr/cli_srvsvc.c
122                     ../librpc/gen_ndr/ndr_srvsvc_c.c'''
123
124 LIBCLI_LSA_SRC = '''
125                  ../librpc/gen_ndr/cli_lsa.c
126                  ../librpc/gen_ndr/ndr_lsa_c.c
127                  rpc_client/cli_lsarpc.c
128                  rpc_client/init_lsa.c'''
129
130 LIBCLI_SAMR_SRC = '''
131                   ../librpc/gen_ndr/cli_samr.c
132                   ../librpc/gen_ndr/ndr_samr_c.c
133                   rpc_client/cli_samr.c'''
134
135 LIBCLI_NETLOGON_SRC = '''
136                       ../librpc/gen_ndr/cli_netlogon.c
137                       ../librpc/gen_ndr/ndr_netlogon_c.c
138                       rpc_client/cli_netlogon.c'''
139
140 LIBCLI_EPMAPPER_SRC = '''
141                       ../librpc/gen_ndr/cli_epmapper.c
142                       ../librpc/gen_ndr/ndr_epmapper_c.c'''
143
144 LIBNDR_GEN_SRC = '''../librpc/gen_ndr/ndr_wkssvc.c
145                  ${LIBNDR_GEN_SRC0}
146                  ../librpc/gen_ndr/ndr_dfs.c
147                  ../librpc/gen_ndr/ndr_echo.c
148                  ../librpc/gen_ndr/ndr_winreg.c
149                  ../librpc/gen_ndr/ndr_initshutdown.c
150                  ../librpc/gen_ndr/ndr_srvsvc.c
151                  ${LIBNDR_NETLOGON_SRC}
152                  ../librpc/gen_ndr/ndr_dssetup.c
153                  ../librpc/gen_ndr/ndr_epmapper.c
154                  ../librpc/gen_ndr/ndr_ntsvcs.c
155                  ${LIBNDR_SPOOLSS_SRC}'''
156
157 # this includes only the low level parse code, not stuff
158 # that requires knowledge of security contexts
159 REG_PARSE_PRS_SRC = '''registry/reg_parse_prs.c'''
160
161 LIBREPLACE_SRC = '''${LIBREPLACE_SRCS}'''
162
163 SOCKET_WRAPPER_SRC = '''${SOCKET_WRAPPER_SRCS}'''
164 NSS_WRAPPER_SRC = '''${NSS_WRAPPER_SRCS}'''
165
166 LIBSAMBAUTIL_SRC = '''
167                 ${LIBREPLACE_SRC}
168                 ${SOCKET_WRAPPER_SRC}
169                 ${NSS_WRAPPER_SRC}'''
170
171 UTIL_SRC = '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
172                    ../lib/util/xfile.c ../lib/util/util_strlist.c
173                    ../lib/util/util_file.c ../lib/util/data_blob.c
174                    ../lib/util/util.c ../lib/util/fsusage.c
175                    ../lib/util/params.c ../lib/util/talloc_stack.c
176                    ../lib/util/genrand.c ../lib/util/util_net.c
177                    ../lib/util/become_daemon.c ../lib/util/system.c
178                    ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
179                    ../lib/util/smb_threads.c ../lib/util/util_id.c
180                    ../lib/util/blocking.c ../lib/util/rfc1738.c '''
181
182 LIBTEVENT_SRC0 = ''
183
184 PTHREADPOOL_SRC = ''
185
186 LIBREPLACE_SRCS = ''
187
188 SOCKET_WRAPPER_SRCS = ''
189
190 NSS_WRAPPER_SRCS = ''
191
192 ZLIB_SRCS = ''
193
194 LIB_SRC = '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC}
195           lib/messages.c librpc/gen_ndr/ndr_messaging.c lib/messages_local.c
196           lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
197           lib/interfaces.c lib/memcache.c
198           lib/talloc_dict.c
199           lib/util_sconn.c
200           lib/serverid.c
201           lib/util_transfer_file.c ../lib/async_req/async_sock.c
202           ${TDB_LIB_SRC}
203           ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
204           lib/interface.c lib/pidfile.c
205           lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
206           lib/username.c
207           ../libds/common/flag_mapping.c
208           lib/util_pw.c lib/access.c lib/smbrun.c
209           lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
210           lib/wins_srv.c
211           lib/util_str.c lib/clobber.c lib/util_sid.c
212           lib/util_unistr.c lib/util_file.c
213           lib/util.c lib/util_names.c
214           lib/util_sock.c lib/sock_exec.c lib/util_sec.c
215           lib/substitute.c lib/dbwrap_util.c
216           lib/ms_fnmatch.c lib/select.c lib/errmap_unix.c
217           lib/tallocmsg.c lib/dmallocmsg.c
218           libsmb/clisigning.c libsmb/smb_signing.c
219           lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
220           lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
221           lib/sessionid_tdb.c
222           lib/module.c lib/events.c ${LIBTEVENT_SRC0}
223           lib/server_contexts.c
224           lib/ldap_escape.c ${CHARSET_STATIC}
225           lib/secdesc.c lib/util_seaccess.c ../libcli/security/secace.c
226           ../libcli/security/sddl.c
227           ../libcli/security/secacl.c ${PTHREADPOOL_SRC}
228           lib/fncall.c
229           libads/krb5_errs.c lib/system_smbd.c lib/audit.c
230           lib/file_id.c lib/idmap_cache.c
231           ../libcli/security/dom_sid.c ../libcli/security/security_descriptor.c'''
232
233 LIB_DUMMY_SRC = '''lib/dummysmbd.c lib/dummyroot.c'''
234 LIB_NONSMBD_SRC = '''${LIB_DUMMY_SRC}'''
235
236 READLINE_SRC = '''lib/readline.c'''
237
238 POPT_LIB_SRC = '''lib/popt_common.c'''
239
240 PARAM_WITHOUT_REG_SRC = '''param/loadparm.c param/util.c param/loadparm_server_role.c
241                            lib/sharesec.c lib/ldap_debug_handler.c'''
242 PARAM_REG_ADD_SRC = '''${REG_SMBCONF_SRC} ${LIBSMBCONF_SRC} ${PRIVILEGES_BASIC_SRC}'''
243 PARAM_SRC = '''${PARAM_REG_ADD_SRC}'''
244
245 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
246
247 LIBADDNS_SRC0 = '''libaddns/dnsrecord.c libaddns/dnsutils.c  libaddns/dnssock.c
248                libaddns/dnsgss.c libaddns/dnsmarshall.c'''
249 LIBADDNS_SRC = '''${LIBADDNS_SRC0} ${SOCKET_WRAPPER_SRC}'''
250
251 GPEXT_STATIC = ''
252 GPEXT_REGISTRY_SRC = 'libgpo/gpext/registry.c'
253 GPEXT_SCRIPTS_SRC = 'libgpo/gpext/scripts.c'
254 GPEXT_SECURITY_SRC = 'libgpo/gpext/security.c'
255
256 GPEXT_SRC = '''../libgpo/gpext/gpext.c ${GPEXT_STATIC}'''
257
258 LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
259               ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
260               libgpo/gpo_reg.c
261               ${GPEXT_SRC}'''
262 LIBGPO_SRC = '''${LIBGPO_SRC0}'''
263
264 LIBADS_SRC = '''libads/ldap.c
265              libads/sasl.c libads/sasl_wrapping.c
266              libads/krb5_setpw.c
267              libads/kerberos_util.c
268              libads/ldap_user.c
269              libads/ads_struct.c libads/kerberos_keytab.c
270              libads/disp_sec.c libads/ldap_utils.c
271              libads/ldap_schema.c libads/util.c libads/ndr.c'''
272
273 LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c
274                     ../librpc/ndr/ndr_krb5pac.c
275                     ../librpc/gen_ndr/ndr_krb5pac.c'''
276
277 LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
278
279 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
280                  passdb/machine_sid.c librpc/gen_ndr/ndr_secrets.c'''
281
282 LIBNBT_SRC = '''../libcli/nbt/nbtname.c
283              ../libcli/netlogon.c
284              ../libcli/ndr_netlogon.c
285              ../librpc/gen_ndr/ndr_nbt.c
286              ../librpc/gen_ndr/ndr_svcctl.c
287              ../librpc/ndr/ndr_svcctl.c'''
288
289 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
290              libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
291              libads/dns.c libads/sitename_cache.c'''
292
293 NTERR_SRC = '''libsmb/nterr.c libsmb/smberr.c'''
294 DOSERR_SRC = '../libcli/util/doserr.c'
295 ERRORMAP_SRC = 'libsmb/errormap.c'
296 DCE_RPC_ERR_SRC = '../librpc/rpc/dcerpc_error.c'
297
298 LIBSMB_ERR_SRC0 = '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
299
300 LIBSMB_ERR_SRC1 = '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
301
302 LIBSMB_ERR_SRC = '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}'
303
304 LIBSMB_SRC0 = '''
305                ../libcli/auth/ntlm_check.c
306                libsmb/ntlmssp.c
307                libsmb/ntlmssp_wrap.c
308                ../libcli/auth/ntlmssp.c
309                ../libcli/auth/ntlmssp_sign.c
310                ${LIBNDR_NTLMSSP_SRC}
311                ../libcli/auth/ntlmssp_ndr.c
312                ../libcli/auth/ntlmssp_server.c'''
313
314 LIBSAMBA_SRC = '${LIBSMB_SRC0}'
315
316 LIBCLI_LDAP_MESSAGE_SRC = '''../libcli/ldap/ldap_message.c'''
317 LIBCLI_LDAP_NDR_SRC = '''../libcli/ldap/ldap_ndr.c lib/ldb_compat.c'''
318
319 CLDAP_SRC = '''libads/cldap.c
320         ../libcli/cldap/cldap.c
321         ../lib/util/idtree.c
322         ${LIBCLI_LDAP_MESSAGE_SRC} ${LIBCLI_LDAP_NDR_SRC}'''
323
324 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
325
326 SCHANNEL_SRC = '''../libcli/auth/credentials.c
327                ../libcli/auth/schannel_sign.c
328                ../libcli/auth/schannel_state_tdb.c
329                ${LIBNDR_SCHANNEL_SRC}'''
330
331 LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
332              libsmb/clikrb5.c libsmb/clispnego.c
333              ../libcli/auth/spnego_parse.c
334              libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
335              libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
336              libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
337              libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
338              libsmb/clioplock.c libsmb/clirap2.c
339              libsmb/smb_seal.c libsmb/async_smb.c
340              ${LIBNMB_SRC}
341              ${LIBNBT_SRC}
342              ${CLDAP_SRC}
343              ${DRSUAPI_SRC}'''
344
345 LIBMSRPC_SRC = '''
346                ${SCHANNEL_SRC}
347                rpc_client/cli_pipe.c
348                librpc/crypto/gse_krb5.c
349                librpc/crypto/gse.c
350                librpc/crypto/cli_spnego.c
351                librpc/rpc/rpc_common.c
352                rpc_client/rpc_transport_np.c
353                rpc_client/rpc_transport_sock.c
354                rpc_client/rpc_transport_tstream.c
355                ../librpc/rpc/binding.c
356                ../librpc/rpc/dcerpc_util.c
357                librpc/rpc/dcerpc_helpers.c
358                ../librpc/rpc/binding_handle.c
359                ${LIBCLI_EPMAPPER_SRC}'''
360
361 #
362 # registry-related objects
363 #
364 UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
365
366 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
367 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
368 REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
369
370 REGFIO_SRC = '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
371
372 REG_API_REGF_SRC = '''registry/reg_api_regf.c'''
373
374 REGSRCS_SRC = '''registry/reg_objects.c'''
375
376 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
377
378 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
379
380 REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
381                          registry/reg_backend_shares.c
382                          registry/reg_backend_netlogon_params.c
383                          registry/reg_backend_prod_options.c
384                          registry/reg_backend_tcpip_params.c
385                          registry/reg_backend_hkpt_params.c
386                          registry/reg_backend_current_version.c
387                          registry/reg_backend_perflib.c'''
388
389 REG_BASE_SRC = '''registry/reg_api.c
390                registry/reg_dispatcher.c
391                registry/reg_cachehook.c
392                ${REGSRCS_SRC}
393                registry/reg_util_internal.c
394                lib/util_nttoken.c
395                ${REG_BACKENDS_BASE_SRC}
396                ${REG_INIT_BASIC_SRC}'''
397
398 REG_SMBCONF_SRC = '''${REG_BASE_SRC}
399                   ${REG_BACKENDS_SMBCONF_SRC}
400                   ${REG_INIT_SMBCONF_SRC}
401                   registry/reg_util_token.c
402                   registry/reg_api_util.c'''
403
404 REG_FULL_SRC = '''${REG_SMBCONF_SRC}
405                ${REG_BACKENDS_EXTRA_SRC}
406                ${REG_INIT_FULL_SRC}
407                registry/reg_eventlog.c
408                registry/reg_perfcount.c
409                librpc/gen_ndr/ndr_perfcount.c'''
410
411 LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
412
413 RPC_STATIC = ''
414
415 RPC_LSARPC_SRC = '''rpc_server/srv_lsa_nt.c
416                     ../librpc/gen_ndr/srv_lsa.c'''
417
418 RPC_NETLOGON_SRC = '''rpc_server/srv_netlog_nt.c
419                       ../librpc/gen_ndr/srv_netlogon.c'''
420
421 RPC_SAMR_SRC = '''rpc_server/srv_samr_nt.c
422                rpc_server/srv_samr_util.c
423                rpc_server/srv_samr_chgpasswd.c
424                ../librpc/gen_ndr/srv_samr.c'''
425
426 RPC_INITSHUTDOWN_SRC = ''' ../librpc/gen_ndr/srv_initshutdown.c rpc_server/srv_initshutdown_nt.c'''
427
428 RPC_WINREG_SRC = '''rpc_server/srv_winreg_nt.c
429                     ../librpc/gen_ndr/srv_winreg.c'''
430
431 RPC_DSSETUP_SRC = ''' rpc_server/srv_dssetup_nt.c ../librpc/gen_ndr/srv_dssetup.c'''
432
433 RPC_SRVSVC_SRC = '''rpc_server/srv_srvsvc_nt.c
434                     ../librpc/gen_ndr/srv_srvsvc.c'''
435
436 RPC_WKSSVC_SRC = '''../librpc/gen_ndr/srv_wkssvc.c
437                     rpc_server/srv_wkssvc_nt.c'''
438
439 RPC_SVCCTL_SRC = ''' rpc_server/srv_svcctl_nt.c
440                   ../librpc/gen_ndr/srv_svcctl.c
441                   services/svc_spoolss.c services/svc_rcinit.c services/services_db.c
442                   services/svc_netlogon.c services/svc_winreg.c
443                   services/svc_wins.c'''
444
445 RPC_NTSVCS_SRC = '''rpc_server/srv_ntsvcs_nt.c
446                  ../librpc/gen_ndr/srv_ntsvcs.c'''
447
448 RPC_NETDFS_SRC = '''../librpc/gen_ndr/srv_dfs.c
449                     rpc_server/srv_dfs_nt.c'''
450
451 RPC_SPOOLSS_SRC = '''rpc_server/srv_spoolss_nt.c
452                      rpc_server/srv_spoolss_util.c
453                   ../librpc/gen_ndr/srv_spoolss.c'''
454
455 RPC_EVENTLOG_SRC = '''rpc_server/srv_eventlog_nt.c
456                    ../librpc/gen_ndr/srv_eventlog.c'''
457
458 NPA_TSTREAM_SRC = '''../libcli/named_pipe_auth/npa_tstream.c
459                      ../librpc/gen_ndr/ndr_named_pipe_auth.c'''
460
461 RPC_NCACN_NP = '''rpc_server/srv_pipe_register.c rpc_server/rpc_ncacn_np.c
462                   rpc_server/rpc_handles.c'''
463
464 RPC_SERVICE = '''rpc_server/rpc_server.c'''
465
466 RPC_CRYPTO = '''rpc_server/dcesrv_ntlmssp.c
467                 rpc_server/dcesrv_gssapi.c
468                 rpc_server/dcesrv_spnego.c'''
469
470 RPC_PIPE_SRC = '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
471                ${RPC_NCACN_NP} ${RPC_SERVICE} ${RPC_CRYPTO}'''
472
473 RPC_RPCECHO_SRC = '''rpc_server/srv_echo_nt.c ../librpc/gen_ndr/srv_echo.c'''
474
475 RPC_SERVER_SRC = '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC} ${RPC_STATIC}'''
476
477 RPC_CLIENT_SCHANNEL_SRC = '''rpc_client/cli_pipe_schannel.c'''
478
479 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
480
481 PRIVILEGES_BASIC_SRC = '''../libcli/security/privileges.c'''
482
483 PRIVILEGES_SRC = '''lib/privileges.c'''
484
485 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
486
487 PDB_STATIC =        ''
488 PDB_TDBSAM_SRC =    'passdb/pdb_tdb.c'
489 PDB_LDAP_SRC =      'passdb/pdb_ldap.c passdb/pdb_nds.c'
490 PDB_ADS_SRC =       'passdb/pdb_ads.c'
491 PDB_SMBPASSWD_SRC = 'passdb/pdb_smbpasswd.c'
492 PDB_WBC_SAM_SRC =   'passdb/pdb_wbc_sam.c'
493
494 PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c passdb/pdb_interface.c
495                 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
496                 passdb/util_unixsids.c passdb/lookup_sid.c
497                 passdb/login_cache.c ${PDB_STATIC}
498                 passdb/account_pol.c ${PRIVILEGES_SRC}
499                 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
500 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
501
502 CHARSET_STATIC = ''
503 CHARSET_WEIRD_SRC = 'modules/weird.c'
504 CHARSET_CP850_SRC = 'modules/CP850.c'
505 CHARSET_CP437_SRC = 'modules/CP437.c'
506 CHARSET_MACOSXFS_SRC = 'modules/charset_macosxfs.c'
507
508 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
509
510 PROFILE_SRC = '''profile/profile.c'''
511 PROFILES_SRC = '''utils/profiles.c
512                ${REGFIO_SRC}'''
513
514 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
515              smbd/oplock_onefs.c'''
516
517 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c
518                 librpc/gen_ndr/ndr_notify.c'''
519
520 FNAME_UTIL_SRC = '''smbd/filename_util.c'''
521
522 VFS_STATIC = ''
523 VFS_DEFAULT_SRC = '''modules/vfs_default.c'''
524 VFS_AUDIT_SRC = '''modules/vfs_audit.c'''
525 VFS_EXTD_AUDIT_SRC = '''modules/vfs_extd_audit.c'''
526 VFS_FULL_AUDIT_SRC = '''modules/vfs_full_audit.c'''
527 VFS_FAKE_PERMS_SRC = '''modules/vfs_fake_perms.c'''
528 VFS_RECYCLE_SRC = '''modules/vfs_recycle.c'''
529 VFS_NETATALK_SRC = '''modules/vfs_netatalk.c'''
530 VFS_DEFAULT_QUOTA_SRC = '''modules/vfs_default_quota.c'''
531 VFS_READONLY_SRC = '''modules/vfs_readonly.c modules/getdate.c'''
532 VFS_CAP_SRC = '''modules/vfs_cap.c'''
533 VFS_EXPAND_MSDFS_SRC = '''modules/vfs_expand_msdfs.c'''
534 VFS_SHADOW_COPY_SRC = '''modules/vfs_shadow_copy.c'''
535 VFS_SHADOW_COPY2_SRC = '''modules/vfs_shadow_copy2.c'''
536 VFS_AFSACL_SRC = '''modules/vfs_afsacl.c'''
537 VFS_XATTR_TDB_SRC = '''modules/vfs_xattr_tdb.c'''
538 VFS_POSIXACL_SRC = '''modules/vfs_posixacl.c'''
539 VFS_AIXACL_SRC = '''modules/vfs_aixacl.c modules/vfs_aixacl_util.c'''
540 VFS_AIXACL2_SRC = '''modules/vfs_aixacl2.c modules/vfs_aixacl_util.c modules/nfs4_acls.c'''
541 VFS_SOLARISACL_SRC = '''modules/vfs_solarisacl.c'''
542 VFS_ZFSACL_SRC = '''modules/vfs_zfsacl.c modules/nfs4_acls.c'''
543 VFS_HPUXACL_SRC = '''modules/vfs_hpuxacl.c'''
544 VFS_IRIXACL_SRC = '''modules/vfs_irixacl.c'''
545 VFS_TRU64ACL_SRC = '''modules/vfs_tru64acl.c'''
546 VFS_CATIA_SRC = 'modules/vfs_catia.c'
547 VFS_STREAMS_XATTR_SRC = 'modules/vfs_streams_xattr.c'
548 VFS_STREAMS_DEPOT_SRC = 'modules/vfs_streams_depot.c'
549 VFS_CACHEPRIME_SRC = 'modules/vfs_cacheprime.c'
550 VFS_PREALLOC_SRC = 'modules/vfs_prealloc.c'
551 VFS_COMMIT_SRC = 'modules/vfs_commit.c'
552 VFS_GPFS_SRC = 'modules/vfs_gpfs.c modules/gpfs.c modules/nfs4_acls.c'
553 VFS_NOTIFY_FAM_SRC = 'modules/vfs_notify_fam.c'
554 VFS_READAHEAD_SRC = 'modules/vfs_readahead.c'
555 VFS_TSMSM_SRC = 'modules/vfs_tsmsm.c'
556 VFS_FILEID_SRC = 'modules/vfs_fileid.c'
557 VFS_AIO_FORK_SRC = 'modules/vfs_aio_fork.c'
558 VFS_PREOPEN_SRC = 'modules/vfs_preopen.c'
559 VFS_SYNCOPS_SRC = 'modules/vfs_syncops.c'
560 VFS_ACL_XATTR_SRC = 'modules/vfs_acl_xattr.c'
561 VFS_ACL_TDB_SRC = 'modules/vfs_acl_tdb.c'
562 VFS_SMB_TRAFFIC_ANALYZER_SRC = 'modules/vfs_smb_traffic_analyzer.c'
563 VFS_ONEFS_SRC = '''modules/vfs_onefs.c modules/onefs_acl.c modules/onefs_system.c
564                 modules/onefs_open.c modules/onefs_streams.c modules/onefs_dir.c
565                 modules/onefs_cbrl.c modules/onefs_notify.c modules/onefs_config.c'''
566 VFS_ONEFS_SHADOW_COPY_SRC = 'modules/vfs_onefs_shadow_copy.c modules/onefs_shadow_copy.c'
567 VFS_DIRSORT_SRC = 'modules/vfs_dirsort.c'
568 VFS_SCANNEDONLY_SRC = 'modules/vfs_scannedonly.c'
569 VFS_CROSSRENAME_SRC = 'modules/vfs_crossrename.c'
570 VFS_LINUX_XFS_SGID_SRC = 'modules/vfs_linux_xfs_sgid.c'
571
572 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
573
574 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
575
576 DCUTIL_SRC  = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
577
578 AUTH_BUILTIN_SRC = 'auth/auth_builtin.c'
579 AUTH_DOMAIN_SRC = 'auth/auth_domain.c'
580 AUTH_SAM_SRC = 'auth/auth_sam.c auth/check_samsec.c'
581 AUTH_SERVER_SRC = 'auth/auth_server.c'
582 AUTH_UNIX_SRC = 'auth/auth_unix.c'
583 AUTH_WINBIND_SRC = 'auth/auth_winbind.c'
584 AUTH_WBC_SRC = 'auth/auth_wbc.c'
585 AUTH_SCRIPT_SRC = 'auth/auth_script.c'
586 AUTH_NETLOGOND_SRC = 'auth/auth_netlogond.c'
587
588 AUTH_STATIC = ''
589 AUTH_SRC = '''${AUTH_STATIC} auth/auth.c auth/auth_util.c auth/token_util.c
590            auth/server_info.c
591            auth/server_info_sam.c
592            auth/user_info.c
593            auth/user_util.c
594            auth/user_krb5.c
595            auth/auth_compat.c auth/auth_ntlmssp.c
596            ${PLAINTEXT_AUTH_SRC} ${SLCACHE_SRC} ${DCUTIL_SRC}'''
597
598 #FIXME: set IDMAP_STATIC during configuration
599 IDMAP_STATIC=''
600 IDMAP_RW_SRC = 'winbindd/idmap_rw.c'
601 IDMAP_SRC = 'winbindd/idmap.c winbindd/idmap_util.c ${IDMAP_RW_SRC} ${IDMAP_STATIC}'
602
603 #FIXME: set NSS_INFO_STATIC during configuration
604 NSS_INFO_STATIC = ''
605 NSS_INFO_TEMPLATE_SRC = 'winbindd/nss_info_template.c'
606 NSS_INFO_SRC = 'winbindd/nss_info.c'
607
608 IDMAP_AD_SRC = '''winbindd/idmap_ad.c'''
609 IDMAP_RID_SRC = '''winbindd/idmap_rid.c'''
610 IDMAP_PASSDB_SRC = '''winbindd/idmap_passdb.c'''
611 IDMAP_LDAP_SRC = '''winbindd/idmap_ldap.c'''
612 IDMAP_TDB2_SRC = '''winbindd/idmap_tdb2.c'''
613
614 IDMAP_HASH_SRC = '''winbindd/idmap_hash/idmap_hash.c
615                     winbindd/idmap_hash/mapfile.c'''
616
617 IDMAP_ADEX_SRC = '''winbindd/idmap_adex/idmap_adex.c
618                     winbindd/idmap_adex/cell_util.c
619                     winbindd/idmap_adex/likewise_cell.c
620                     winbindd/idmap_adex/provider_unified.c
621                     winbindd/idmap_adex/gc_util.c
622                     winbindd/idmap_adex/domain_util.c'''
623
624 PERFCOUNT_STATIC = ''
625 PERFCOUNT_ONEFS_SRC = 'modules/perfcount_onefs.c'
626 PERFCOUNT_TEST_SRC = 'modules/perfcount_test.c'
627
628 WINBINDD_SRC1 = '''winbindd/winbindd.c
629                    winbindd/winbindd_group.c
630                    winbindd/winbindd_util.c
631                    winbindd/winbindd_cache.c
632                    winbindd/winbindd_pam.c
633                    winbindd/winbindd_misc.c
634                    winbindd/winbindd_cm.c
635                    winbindd/winbindd_wins.c
636                    winbindd/winbindd_msrpc.c
637                    winbindd/winbindd_rpc.c
638                    winbindd/winbindd_reconnect.c
639                    winbindd/winbindd_ads.c
640                    winbindd/winbindd_samr.c
641                    winbindd/winbindd_dual.c
642                    winbindd/winbindd_dual_ndr.c
643                    winbindd/winbindd_dual_srv.c
644                    winbindd/winbindd_async.c
645                    winbindd/winbindd_creds.c
646                    winbindd/winbindd_cred_cache.c
647                    winbindd/winbindd_ccache_access.c
648                    winbindd/winbindd_domain.c
649                    winbindd/winbindd_idmap.c
650                    winbindd/winbindd_locator.c
651                    winbindd/winbindd_ndr.c
652                    winbindd/wb_ping.c
653                    winbindd/wb_lookupsid.c
654                    winbindd/wb_lookupname.c
655                    winbindd/wb_sid2uid.c
656                    winbindd/wb_sid2gid.c
657                    winbindd/wb_uid2sid.c
658                    winbindd/wb_gid2sid.c
659                    winbindd/wb_queryuser.c
660                    winbindd/wb_lookupuseraliases.c
661                    winbindd/wb_lookupusergroups.c
662                    winbindd/wb_getpwsid.c
663                    winbindd/wb_gettoken.c
664                    winbindd/wb_seqnum.c
665                    winbindd/wb_seqnums.c
666                    winbindd/wb_group_members.c
667                    winbindd/wb_getgrsid.c
668                    winbindd/wb_query_user_list.c
669                    winbindd/wb_fill_pwent.c
670                    winbindd/wb_next_pwent.c
671                    winbindd/wb_next_grent.c
672                    winbindd/wb_dsgetdcname.c
673                    winbindd/winbindd_lookupsid.c
674                    winbindd/winbindd_lookupname.c
675                    winbindd/winbindd_sid_to_uid.c
676                    winbindd/winbindd_sid_to_gid.c
677                    winbindd/winbindd_uid_to_sid.c
678                    winbindd/winbindd_gid_to_sid.c
679                    winbindd/winbindd_allocate_uid.c
680                    winbindd/winbindd_allocate_gid.c
681                    winbindd/winbindd_getpwsid.c
682                    winbindd/winbindd_getpwnam.c
683                    winbindd/winbindd_getpwuid.c
684                    winbindd/winbindd_getsidaliases.c
685                    winbindd/winbindd_getuserdomgroups.c
686                    winbindd/winbindd_getgroups.c
687                    winbindd/winbindd_show_sequence.c
688                    winbindd/winbindd_getgrgid.c
689                    winbindd/winbindd_getgrnam.c
690                    winbindd/winbindd_getusersids.c
691                    winbindd/winbindd_lookuprids.c
692                    winbindd/winbindd_setpwent.c
693                    winbindd/winbindd_getpwent.c
694                    winbindd/winbindd_endpwent.c
695                    winbindd/winbindd_setgrent.c
696                    winbindd/winbindd_getgrent.c
697                    winbindd/winbindd_endgrent.c
698                    winbindd/winbindd_dsgetdcname.c
699                    winbindd/winbindd_getdcname.c
700                    winbindd/winbindd_list_users.c
701                    winbindd/winbindd_list_groups.c
702                    winbindd/winbindd_check_machine_acct.c
703                    winbindd/winbindd_change_machine_acct.c
704                    winbindd/winbindd_ping_dc.c
705                    winbindd/winbindd_pam_auth.c
706                    winbindd/winbindd_pam_logoff.c
707                    winbindd/winbindd_pam_chauthtok.c
708                    winbindd/winbindd_pam_auth_crap.c
709                    winbindd/winbindd_pam_chng_pswd_auth_crap.c
710                    auth/auth_util.c
711                    auth/token_util.c
712                    auth/user_util.c
713                    auth/check_samsec.c
714                    auth/server_info.c
715                    auth/server_info_sam.c
716                    auth/user_info.c
717                    auth/user_util.c
718                    rpc_server/srv_samr_chgpasswd.c
719                    ../nsswitch/libwbclient/wb_reqtrans.c'''
720
721 WINBINDD_SRC = '''${WINBINDD_SRC1}
722                   ${IDMAP_SRC} ${NSS_INFO_SRC}
723                   ${RPC_NCACN_NP} ${NPA_TSTREAM_SRC} ${RPC_SAMR_SRC} ${RPC_LSARPC_SRC}
724                   ${TDB_VALIDATE_SRC}
725                   ${LIBCLI_DSSETUP_SRC}
726                   ${LIBCLI_LSA_SRC}
727                   ${LIBCLI_SAMR_SRC}
728                   ${LIBCLI_NETLOGON_SRC}
729                   rpc_client/init_netlogon.c'''
730
731 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
732
733 SMBD_SRC_MAIN = '''smbd/server.c smbd/server_exit.c'''
734
735 BUILDOPT_SRC = '''smbd/build_options.c'''
736
737 SMBD_SRC_SRV = '''smbd/server_reload.c smbd/files.c smbd/connection.c
738                smbd/utmp.c smbd/session.c
739                smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
740                smbd/share_access.c smbd/fileio.c
741                smbd/ipc.c smbd/lanman.c smbd/negprot.c
742                smbd/message.c smbd/nttrans.c smbd/pipes.c
743                smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
744                smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
745                smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
746                smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
747                smbd/posix_acls.c lib/sysacls.c
748                smbd/process.c smbd/service.c smbd/error.c
749                printing/printspoolss.c
750                lib/sysquotas.c lib/sysquotas_linux.c
751                lib/sysquotas_xfs.c lib/sysquotas_4A.c
752                lib/sysquotas_nfs.c
753                smbd/fake_file.c
754                smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
755                smbd/aio.c smbd/statvfs.c
756                smbd/dmapi.c smbd/signing.c
757                smbd/file_access.c
758                smbd/dnsregister.c smbd/globals.c
759                smbd/smb2_server.c
760                smbd/smb2_signing.c
761                smbd/smb2_glue.c
762                smbd/smb2_negprot.c
763                smbd/smb2_sesssetup.c
764                smbd/smb2_tcon.c
765                smbd/smb2_create.c
766                smbd/smb2_close.c
767                smbd/smb2_flush.c
768                smbd/smb2_read.c
769                smbd/smb2_write.c
770                smbd/smb2_lock.c
771                smbd/smb2_ioctl.c
772                smbd/smb2_keepalive.c
773                smbd/smb2_find.c
774                smbd/smb2_notify.c
775                smbd/smb2_getinfo.c
776                smbd/smb2_setinfo.c
777                smbd/smb2_break.c
778                ../libcli/smb/smb2_create_blob.c
779                ${MANGLE_SRC}'''
780
781 SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
782                 ${RPC_SERVER_SRC}
783                 ${PRINTING_SRC}
784                 ${PRINTBACKEND_SRC}
785                 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
786                 ${REG_FULL_SRC}
787                 ${BUILDOPT_SRC}
788                 ${LIBSMBCONF_SRC}
789                 ${LIBCLI_SPOOLSS_SRC}
790                 ${LIBCLI_WINREG_SRC}
791                 ${LIBCLI_SRVSVC_SRC}
792                 ${LIBCLI_LSA_SRC}
793                 ${LIBCLI_SAMR_SRC}
794                 ${LIBCLI_NETLOGON_SRC}
795                 ${RPC_CLIENT_SCHANNEL_SRC}
796                 rpc_client/init_netlogon.c
797                 rpc_client/init_samr.c
798                 ${PRIVILEGES_BASIC_SRC}
799                 ${REGFIO_SRC}
800                 ${REG_API_REGF_SRC}
801                 ${LIBNDR_XATTR_SRC}'''
802
803 PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
804                printing/print_cups.c printing/print_generic.c
805                printing/lpq_parse.c printing/load.c printing/print_standard.c
806                printing/print_iprint.c printing/printer_list.c'''
807
808 PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
809 PRINTBACKEND_SRC = '''printing/printing.c
810                       printing/nt_printing.c
811                       printing/nt_printing_tdb.c
812                       printing/nt_printing_migrate.c
813                       printing/nt_printing_ads.c
814                       ${LIBNDR_NTPRINTING_SRC}
815                       ${PRINTBASE_SRC}'''
816
817 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
818
819 NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
820             nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
821             nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
822             nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
823             nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
824             nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
825             nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
826             nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
827             nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
828             nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
829             nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
830             nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
831
832 NMBD_SRC = '${NMBD_SRC1}'
833
834 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
835                web/swat.c web/neg_lang.c'''
836
837 SWAT_SRC = '''${SWAT_SRC1} ${PRINTING_SRC} ${PRINTBASE_SRC}
838            ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}
839            ${LIBCLI_SAMR_SRC}
840            rpc_client/init_lsa.c'''
841
842 STATUS_SRC = '''utils/status.c utils/status_profile.c
843              ${FNAME_UTIL_SRC}'''
844
845 SMBCONTROL_SRC = '''utils/smbcontrol.c ${PRINTBASE_SRC}'''
846
847 SMBTREE_SRC = '''utils/smbtree.c
848              ${LIBCLI_SRVSVC_SRC}'''
849
850 TESTPARM_SRC = 'utils/testparm.c'
851
852 SMBTA_UTIL_SRC = '''utils/smbta-util.c ${FNAME_UTIL_SRC}'''
853
854 TEST_LP_LOAD_SRC = '''param/test_lp_load.c'''
855
856 PASSWD_UTIL_SRC = 'utils/passwd_util.c'
857
858 SMBPASSWD_SRC = '''utils/smbpasswd.c ${PASSCHANGE_SRC}
859                 ${LIBCLI_SAMR_SRC}
860                 rpc_client/init_lsa.c'''
861
862 PDBEDIT_SRC = '''utils/pdbedit.c
863                 ${LIBCLI_LDAP_NDR_SRC}'''
864
865 SMBGET_SRC = '''utils/smbget.c'''
866
867 DISPLAY_SEC_SRC= '../libcli/security/display_sec.c'
868
869 RPCCLIENT_SRC1 = '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
870                     rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
871                     rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
872                     rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
873                     rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
874                     rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
875                     rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
876                     rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
877                     rpcclient/cmd_winreg.c'''
878
879 RPCCLIENT_SRC = '''${RPCCLIENT_SRC1}
880                    ${LIBCLI_SPOOLSS_SRC}
881                    ${LIBCLI_EVENTLOG_SRC}
882                    ${LIBCLI_NTSVCS_SRC}
883                    ${LIBCLI_DRSUAPI_SRC}
884                    ${LIBCLI_DFS_SRC}
885                    ${LIBCLI_ECHO_SRC}
886                    ${LIBCLI_DSSETUP_SRC}
887                    ${LIBCLI_WKSSVC_SRC}
888                    ${LIBCLI_SRVSVC_SRC}
889                    ${LIBCLI_LSA_SRC}
890                    ${LIBCLI_SAMR_SRC}
891                    ${LIBCLI_WINREG_SRC}
892                    ${LIBCLI_NETLOGON_SRC}
893                    ${RPC_CLIENT_SCHANNEL_SRC}
894                    rpc_client/init_netlogon.c
895                    rpc_client/init_samr.c'''
896
897 PAM_WINBIND_SRC = '../nsswitch/pam_winbind.c ${WBCOMMON_SRC} ${LIBREPLACE_SRC}'
898
899 LIBSMBCLIENT_THREAD_SRC = '''libsmb/libsmb_thread_impl.c
900                         libsmb/libsmb_thread_posix.c'''
901
902 LIBSMBCLIENT_SRC0 = '''libsmb/libsmb_cache.c
903                     libsmb/libsmb_compat.c
904                     libsmb/libsmb_context.c
905                     libsmb/libsmb_dir.c
906                     libsmb/libsmb_file.c
907                     libsmb/libsmb_misc.c
908                     libsmb/libsmb_path.c
909                     libsmb/libsmb_printjob.c
910                     libsmb/libsmb_server.c
911                     libsmb/libsmb_stat.c
912                     libsmb/libsmb_xattr.c
913                     libsmb/libsmb_setget.c'''
914
915 LIBSMBCLIENT_SRC1 = '''${LIBSMBCLIENT_SRC0}
916                     ${LIBCLI_SRVSVC_SRC}
917                     ${LIBCLI_LSA_SRC}'''
918
919 LIBSMBCLIENT_SRC = '${LIBSMBCLIENT_SRC1}'
920
921 LIBSMBSHAREMODES_SRC0 = 'libsmb/smb_share_modes.c'
922
923 LIBSMBSHAREMODES_SRC = '${LIBSMBSHAREMODES_SRC0}'
924
925 LIBNETAPI_SRC0 = '''lib/netapi/netapi.c
926                     lib/netapi/cm.c
927                     librpc/gen_ndr/ndr_libnetapi.c
928                     lib/netapi/libnetapi.c
929                     lib/netapi/joindomain.c
930                     lib/netapi/serverinfo.c
931                     lib/netapi/getdc.c
932                     lib/netapi/user.c
933                     lib/netapi/group.c
934                     lib/netapi/localgroup.c
935                     lib/netapi/samr.c
936                     lib/netapi/sid.c
937                     lib/netapi/share.c
938                     lib/netapi/file.c
939                     lib/netapi/shutdown.c
940                     lib/netapi/netlogon.c'''
941
942 LIBNETAPI_SRC = '''${LIBNETAPI_SRC0}
943                    ${LIBSMBCONF_SRC}
944                    ${REG_SMBCONF_SRC}
945                    ${PRIVILEGES_BASIC_SRC}
946                    auth/token_util.c
947                    ${LIBCLI_INITSHUTDOWN_SRC}
948                    ${LIBCLI_WKSSVC_SRC}
949                    ${LIBCLI_SRVSVC_SRC}
950                    ${LIBCLI_LSA_SRC}
951                    ${LIBCLI_SAMR_SRC}
952                    ${LIBCLI_NETLOGON_SRC}
953                    ${RPC_CLIENT_SCHANNEL_SRC}
954                    rpc_client/init_netlogon.c
955                    rpc_client/init_samr.c'''
956
957 # FIXME:  bigballofmud
958
959 CLIENT_SRC1 = '''client/client.c client/clitar.c
960                  client/dnsbrowse.c'''
961
962 CLIENT_SRC = '''${CLIENT_SRC1}
963                 ${LIBCLI_SRVSVC_SRC}
964                 rpc_client/init_lsa.c'''
965
966 LIBSMBCONF_SRC = '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
967                     ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
968                     lib/smbconf/smbconf_init.c'''
969
970 SMBCONFTORT_SRC0 = 'lib/smbconf/testsuite.c'
971
972 SMBCONFTORT_SRC = '''${SMBCONFTORT_SRC0}'''
973
974 LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c'
975
976
977 LIBNET_DSSYNC_SRC = '''libnet/libnet_dssync.c
978                        libnet/libnet_dssync_keytab.c
979                        ../libcli/drsuapi/repl_decrypt.c'''
980
981 LIBNET_SAMSYNC_SRC = '''libnet/libnet_samsync.c
982                         libnet/libnet_samsync_ldif.c
983                         libnet/libnet_samsync_passdb.c
984                         libnet/libnet_samsync_display.c
985                         libnet/libnet_samsync_keytab.c
986                         ../libcli/samsync/decrypt.c'''
987
988 NET_SRC1 = '''utils/net.c utils/net_ads.c utils/net_help.c
989               utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
990               utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
991               utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
992               utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
993               utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
994               utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
995               utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
996               utils/net_dns.c utils/net_ads_gpo.c
997               utils/net_conf.c utils/net_join.c utils/net_user.c
998               utils/net_group.c utils/net_file.c utils/net_registry.c
999               auth/token_util.c utils/net_dom.c utils/net_share.c
1000               utils/net_g_lock.c
1001               utils/net_serverid.c
1002               utils/net_eventlog.c
1003               utils/net_printing.c
1004               ${LIBNDR_NTPRINTING_SRC}
1005               ${LIBNDR_PREG_SRC}
1006               ${LIBCLI_SPOOLSS_SRC}
1007               ${LIBCLI_WINREG_SRC}
1008               ${LIBCLI_DRSUAPI_SRC}
1009               ${LIBCLI_INITSHUTDOWN_SRC}
1010               ${LIBCLI_DSSETUP_SRC}
1011               ${LIBCLI_SVCCTL_SRC}
1012               ${LIBCLI_WKSSVC_SRC}
1013               ${LIBCLI_SRVSVC_SRC}
1014               ${LIBCLI_LSA_SRC}
1015               ${LIBCLI_SAMR_SRC}
1016               ${LIBCLI_NETLOGON_SRC}
1017               ${RPC_CLIENT_SCHANNEL_SRC}
1018               rpc_client/init_netlogon.c
1019               rpc_client/init_samr.c
1020               registry/reg_parse.c registry/reg_format.c
1021               registry/reg_parse_internal.c registry/reg_import.c
1022               lib/cbuf.c lib/srprs.c'''
1023
1024 NET_SRC2 = 'utils/net_registry_util.c utils/net_help_common.c'
1025
1026 NET_SRC = '''${NET_SRC1}
1027              ${NET_SRC2}
1028              ${REGFIO_SRC}'''
1029
1030 CUPS_SRC = '''client/smbspool.c'''
1031
1032 NMBLOOKUP_SRC = '''utils/nmblookup.c ${LIBNMB_SRC}'''
1033
1034 SMBTORTURE_SRC1 = '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
1035                 torture/denytest.c torture/mangle_test.c
1036                 torture/nbench.c
1037                 torture/test_posix_append.c'''
1038
1039 SMBTORTURE_SRC = '''${SMBTORTURE_SRC1} ${TLDAP_SRC}
1040         ../nsswitch/libwbclient/wbc_async.c
1041         ../nsswitch/libwbclient/wb_reqtrans.c'''
1042
1043 MASKTEST_SRC = '''torture/masktest.c'''
1044
1045 MSGTEST_SRC = '''torture/msgtest.c'''
1046
1047 LOCKTEST_SRC = '''torture/locktest.c ${FNAME_UTIL_SRC}'''
1048
1049 NSSTEST_SRC = '''torture/nsstest.c ${LIBSAMBAUTIL_SRC}'''
1050
1051 PDBTEST_SRC = '''torture/pdbtest.c'''
1052
1053 VFSTEST_SRC = '''torture/cmd_vfs.c torture/vfstest.c'''
1054
1055 SMBICONV_SRC = '''torture/smbiconv.c'''
1056
1057 LOG2PCAP_SRC = '''utils/log2pcaphex.c'''
1058
1059 LOCKTEST2_SRC = '''torture/locktest2.c ${FNAME_UTIL_SRC}'''
1060
1061 SMBCACLS_SRC = '''utils/smbcacls.c
1062                 ${LIBCLI_LSA_SRC}'''
1063
1064 SMBCQUOTAS_SRC = '''utils/smbcquotas.c
1065                 ${LIBCLI_LSA_SRC}'''
1066
1067 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
1068
1069 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}
1070                 registry/reg_eventlog.c'''
1071
1072 SHARESEC_SRC0 = 'utils/sharesec.c'
1073 SHARESEC_SRC  = '''${SHARESEC_SRC0}'''
1074
1075 DEBUG2HTML_SRC = '''utils/debug2html.c utils/debugparse.c'''
1076
1077 SMBFILTER_SRC = '''utils/smbfilter.c'''
1078
1079 WINBIND_WINS_NSS_SRC = '''../nsswitch/wins.c ${PARAM_SRC}
1080         ${LIB_NONSMBD_SRC} ${LIBSMB_ERR_SRC} ${LIBNMB_SRC}'''
1081
1082 PAM_SMBPASS_SRC_0 = '''pam_smbpass/pam_smb_auth.c pam_smbpass/pam_smb_passwd.c
1083                 pam_smbpass/pam_smb_acct.c pam_smbpass/support.c ../lib/util/asn1.c'''
1084 PAM_SMBPASS_SRC = '''${PAM_SMBPASS_SRC_0} ${PARAM_SRC} ${LIB_NONSMBD_SRC} ${PASSDB_SRC} ${GROUPDB_SRC} \
1085                 ${SMBLDAP_SRC} ${LIBSAMBA_SRC} \
1086                 ${LIBTSOCKET_SRC}'''
1087
1088 WBINFO_SRC = '''../nsswitch/wbinfo.c'''
1089
1090 WINBIND_NSS_SRC = '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
1091
1092 WINBIND_KRB5_LOCATOR_SRC1 = '../nsswitch/winbind_krb5_locator.c'
1093 WINBIND_KRB5_LOCATOR_SRC = '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
1094
1095 POPT_SRC = '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
1096           ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
1097
1098 NTLM_AUTH_SRC1 = '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
1099
1100 NTLM_AUTH_SRC = '''${NTLM_AUTH_SRC1}
1101                 ../libcli/auth/spnego_parse.c libsmb/clikrb5.c libads/kerberos.c
1102                 libsmb/samlogon_cache.c
1103                 ${LIBNMB_SRC}
1104                 ${LIBCLI_LDAP_NDR_SRC}
1105                 ${LIBNDR_NETLOGON_SRC}'''
1106
1107
1108 VLP_SRC = '''printing/tests/vlp.c
1109           ../lib/util/util_tdb.c
1110           ${LIBSAMBAUTIL_SRC}
1111           param/util.c'''
1112
1113 RPC_OPEN_TCP_SRC = 'torture/rpc_open_tcp.c'
1114
1115 DBWRAP_TOOL_SRC = 'utils/dbwrap_tool.c'
1116
1117 DBWRAP_TORTURE_SRC = 'utils/dbwrap_torture.c'
1118
1119 SPLIT_TOKENS_SRC = 'utils/split_tokens.c'
1120
1121 LIBS='ICONV'
1122
1123 bld.SAMBA_GENERATOR('build_options',
1124                     source='include/config.h script/mkbuildoptions.awk',
1125                     target='smbd/build_options.c',
1126                     rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
1127
1128 t = bld.SAMBA_GENERATOR('build_env.h',
1129                         source='script/build_env.sh',
1130                         target='include/build_env.h',
1131                         rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
1132 # todo: work out what is really wanted here
1133 t.env.SRCDIR = bld.path.abspath()
1134 t.env.BUILDDIR = bld.path.abspath()
1135
1136
1137 bld.SETUP_BUILD_GROUPS()
1138
1139 bld.RECURSE('../lib/replace')
1140 print "SBINDIR=%s" % bld.env.SBINDIR
1141 bld.RECURSE('build')
1142
1143 bld.RECURSE('../librpc')
1144 bld.RECURSE('librpc/idl')
1145 bld.RECURSE('librpc')
1146
1147 bld.SAMBA_MKVERSION('include/version.h')
1148
1149 for prefix in bld.env.MODULE_PREFIXES:
1150
1151     if prefix == 'auth': continue
1152     if prefix == 'pdb': continue
1153     if prefix == 'idmap': continue
1154     if prefix == 'charset': continue
1155     if prefix == 'perfcount': continue
1156
1157     static_key = "%s_STATIC" % prefix.upper()
1158     shared_key = "%s_SHARED" % prefix.upper()
1159
1160     for module in bld.env[static_key]:
1161         bld.SAMBA_SUBSYSTEM(module,
1162                             source="${%s_SRC}" % module,
1163                             vars=locals())
1164
1165     # Set up subsystems for the shared modules
1166     for module in bld.env[shared_key]:
1167         bld.SAMBA_MODULE(module,
1168                             source="${%s_SRC}" % module,
1169                             vars=locals())
1170
1171 ######################## SUBSYSTEMS #################################
1172
1173 bld.SAMBA_SUBSYSTEM('WBCOMMON',
1174                     source=WBCOMMON_SRC)
1175
1176 bld.SAMBA_LIBRARY('libwbclient',
1177                     source='''../nsswitch/libwbclient/wbc_guid.c
1178                               ../nsswitch/libwbclient/wbc_idmap.c
1179                               ../nsswitch/libwbclient/wbclient.c
1180                               ../nsswitch/libwbclient/wbc_pam.c
1181                               ../nsswitch/libwbclient/wbc_pwd.c
1182                               ../nsswitch/libwbclient/wbc_sid.c
1183                               ../nsswitch/libwbclient/wbc_util.c''',
1184                     public_headers='../nsswitch/libwbclient/wbclient.h',
1185                     public_deps='talloc WBCOMMON')
1186
1187 bld.SAMBA_LIBRARY('libnetapi',
1188                     source=LIBNETAPI_SRC,
1189                     public_deps='''talloc tdb cap libwbclient LIB_NONSMBD LIBSMB KRBCLIENT
1190                     PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
1191                     LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL''',
1192                     public_headers='lib/netapi/netapi.h',
1193                     vars=locals())
1194
1195 bld.SAMBA_LIBRARY('libsmbclient',
1196                     source=LIBSMBCLIENT_SRC,
1197                     public_deps='''talloc tdb libwbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
1198                     LIBMSRPC_GEN LIBMSRPC''',
1199                     public_headers='include/libsmbclient.h',
1200                     vars=locals())
1201
1202 bld.SAMBA_LIBRARY('libsmbsharemodes',
1203                     source=LIBSMBSHAREMODES_SRC,
1204                     public_deps='''talloc tdb''',
1205                     public_headers='include/smb_share_modes.h',
1206                     vars=locals())
1207
1208 bld.SAMBA_LIBRARY('libaddns',
1209                     source=LIBADDNS_SRC,
1210                     deps='SOCKET_WRAPPER',
1211                     public_deps='talloc krb5 k5crypto com_err gssapi gssapi_krb5',
1212                     vars=locals())
1213
1214 bld.SAMBA_SUBSYSTEM('LIBMSRPC',
1215                     source='${LIBMSRPC_SRC}',
1216                     deps='LIBNDR NDR_SECURITY NDR_DCERPC',
1217                     vars=locals())
1218
1219 bld.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
1220                     source='${LIBNDR_GEN_SRC}',
1221                     deps='LIBNDR NDR_SECURITY NDR_DCERPC NDR_EVENTLOG NDR_LSA',
1222                     vars=locals())
1223
1224 bld.SAMBA_SUBSYSTEM('LIBGPO',
1225                     source='${LIBGPO_SRC}',
1226                     vars=locals())
1227
1228 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
1229                     source='../lib/util/asn1.c',
1230                     deps='talloc',
1231                     local_include=False)
1232
1233 bld.SAMBA_SUBSYSTEM('AUTH',
1234                     source=AUTH_SRC,
1235                     deps='''AUTH_SAM AUTH_UNIX AUTH_WINBIND AUTH_WBC
1236                             AUTH_SERVER AUTH_DOMAIN AUTH_BUILTIN
1237                             AUTH_NETLOGOND''',
1238                     vars=locals())
1239
1240 bld.SAMBA_MODULE('AUTH_SAM',
1241                  subsystem='AUTH',
1242                  source=AUTH_SAM_SRC,
1243                  init_function='',
1244                  internal_module=True,
1245                  enabled=True)
1246
1247 bld.SAMBA_MODULE('AUTH_UNIX',
1248                  subsystem='AUTH',
1249                  source=AUTH_UNIX_SRC,
1250                  init_function='',
1251                  internal_module=True,
1252                  enabled=True)
1253
1254 bld.SAMBA_MODULE('AUTH_WINBIND',
1255                  subsystem='AUTH',
1256                  source=AUTH_WINBIND_SRC,
1257                  init_function='',
1258                  internal_module=True,
1259                  enabled=True)
1260
1261 bld.SAMBA_MODULE('AUTH_WBC',
1262                  subsystem='AUTH',
1263                  source=AUTH_WBC_SRC,
1264                  init_function='',
1265                  internal_module=True,
1266                  enabled=True)
1267
1268 bld.SAMBA_MODULE('AUTH_SERVER',
1269                  subsystem='AUTH',
1270                  source=AUTH_SERVER_SRC,
1271                  init_function='',
1272                  internal_module=True,
1273                  enabled=True)
1274
1275 bld.SAMBA_MODULE('AUTH_DOMAIN',
1276                  subsystem='AUTH',
1277                  source=AUTH_DOMAIN_SRC,
1278                  init_function='',
1279                  internal_module=True,
1280                  enabled=True)
1281
1282 bld.SAMBA_MODULE('AUTH_BUILTIN',
1283                  subsystem='AUTH',
1284                  source=AUTH_BUILTIN_SRC,
1285                  init_function='',
1286                  internal_module=True,
1287                  enabled=True)
1288
1289 bld.SAMBA_MODULE('AUTH_NETLOGOND',
1290                  subsystem='AUTH',
1291                  source=AUTH_NETLOGOND_SRC,
1292                  init_function='',
1293                  internal_module=True,
1294                  enabled=True)
1295
1296 bld.SAMBA_SUBSYSTEM('PDB',
1297                     source='',
1298                     deps='''PDB_TDBSAM PDB_LDAP PDB_ADS PDB_SMBPASSWD PDB_WBC_SAM''',
1299                     vars=locals())
1300
1301 bld.SAMBA_MODULE('PDB_TDBSAM',
1302                  subsystem='PDB',
1303                  source=PDB_TDBSAM_SRC,
1304                  init_function='',
1305                  internal_module=True,
1306                  enabled=True)
1307
1308 bld.SAMBA_MODULE('PDB_LDAP',
1309                  subsystem='PDB',
1310                  source=PDB_LDAP_SRC,
1311                  init_function='',
1312                  internal_module=True,
1313                  enabled=True)
1314
1315 bld.SAMBA_MODULE('PDB_ADS',
1316                  subsystem='PDB',
1317                  source=PDB_ADS_SRC,
1318                  init_function='',
1319                  internal_module=True,
1320                  enabled=False) #fixme
1321
1322 bld.SAMBA_MODULE('PDB_SMBPASSWD',
1323                  subsystem='PDB',
1324                  source=PDB_SMBPASSWD_SRC,
1325                  init_function='',
1326                  internal_module=True,
1327                  enabled=True)
1328
1329 bld.SAMBA_MODULE('PDB_WBC_SAM',
1330                  subsystem='PDB',
1331                  source=PDB_WBC_SAM_SRC,
1332                  init_function='',
1333                  internal_module=True,
1334                  enabled=True)
1335
1336 bld.SAMBA_SUBSYSTEM('IDMAP',
1337                     source=IDMAP_SRC,
1338                     deps='''IDMAP_AD IDMAP_RID IDMAP_PASSDB IDMAP_LDAP IDMAP_TDB2 IDMAP_HASH IDMAP_ADEX''',
1339                     vars=locals())
1340
1341 bld.SAMBA_MODULE('IDMAP_AD',
1342                  subsystem='IDMAP',
1343                  source=IDMAP_AD_SRC,
1344                  init_function='',
1345                  internal_module=True,
1346                  enabled=True)
1347
1348 bld.SAMBA_MODULE('IDMAP_RID',
1349                  subsystem='IDMAP',
1350                  source=IDMAP_RID_SRC,
1351                  init_function='',
1352                  internal_module=True,
1353                  enabled=True)
1354
1355 bld.SAMBA_MODULE('IDMAP_PASSDB',
1356                  subsystem='IDMAP',
1357                  source=IDMAP_PASSDB_SRC,
1358                  init_function='',
1359                  internal_module=True,
1360                  enabled=True)
1361
1362 bld.SAMBA_MODULE('IDMAP_LDAP',
1363                  subsystem='IDMAP',
1364                  source=IDMAP_LDAP_SRC,
1365                  init_function='',
1366                  internal_module=True,
1367                  enabled=True)
1368
1369 bld.SAMBA_MODULE('IDMAP_TDB2',
1370                  subsystem='IDMAP',
1371                  source=IDMAP_TDB2_SRC,
1372                  init_function='',
1373                  internal_module=True,
1374                  enabled=True)
1375
1376 bld.SAMBA_MODULE('IDMAP_HASH',
1377                  subsystem='IDMAP',
1378                  source=IDMAP_HASH_SRC,
1379                  init_function='',
1380                  internal_module=True,
1381                  enabled=True)
1382
1383 bld.SAMBA_MODULE('IDMAP_ADEX',
1384                  subsystem='IDMAP',
1385                  source=IDMAP_ADEX_SRC,
1386                  init_function='',
1387                  internal_module=True,
1388                  enabled=True)
1389
1390 bld.SAMBA_SUBSYSTEM('CHARSET',
1391                     source='',
1392                     deps='''CHARSET_WEIRD CHARSET_CP850 CHARSET_CP437 CHARSET_MACOSXFS''',
1393                     vars=locals())
1394
1395 bld.SAMBA_MODULE('CHARSET_WEIRD',
1396                  subsystem='CHARSET',
1397                  source=CHARSET_WEIRD_SRC,
1398                  init_function='',
1399                  internal_module=True,
1400                  enabled=True)
1401
1402 bld.SAMBA_MODULE('CHARSET_CP850',
1403                  subsystem='CHARSET',
1404                  source=CHARSET_CP850_SRC,
1405                  init_function='',
1406                  internal_module=True,
1407                  enabled=True)
1408
1409 bld.SAMBA_MODULE('CHARSET_CP437',
1410                  subsystem='CHARSET',
1411                  source=CHARSET_CP437_SRC,
1412                  init_function='',
1413                  internal_module=True,
1414                  enabled=True)
1415
1416 bld.SAMBA_MODULE('CHARSET_MACOSXFS',
1417                  subsystem='CHARSET',
1418                  source=CHARSET_MACOSXFS_SRC,
1419                  init_function='',
1420                  internal_module=True,
1421                  enabled=False) #fixme
1422
1423 bld.SAMBA_SUBSYSTEM('PERFCOUNT',
1424                     source='',
1425                     deps='''PERFCOUNT_ONEFS PERFCOUNT_TEST''',
1426                     vars=locals())
1427
1428 bld.SAMBA_MODULE('PERFCOUNT_ONEFS',
1429                  subsystem='PERFCOUNT',
1430                  source=PERFCOUNT_ONEFS_SRC,
1431                  init_function='',
1432                  internal_module=True,
1433                  enabled=False) #fixme
1434
1435 bld.SAMBA_MODULE('PERFCOUNT_TEST',
1436                  subsystem='PERFCOUNT',
1437                  source=PERFCOUNT_TEST_SRC,
1438                  init_function='',
1439                  internal_module=True,
1440                  enabled=True)
1441
1442 bld.SAMBA_SUBSYSTEM('AVAHI',
1443                     source=AVAHI_SRC,
1444                     deps='avahi-common avahi-client',
1445                     enabled=bld.env.with_avahi)
1446
1447 bld.SAMBA_SUBSYSTEM('GROUPDB',
1448                     source=GROUPDB_SRC)
1449
1450 bld.SAMBA_SUBSYSTEM('TLDAP',
1451                     source=TLDAP_SRC,
1452                     deps='ASN1_UTIL LIBTSOCKET')
1453
1454 bld.SAMBA_SUBSYSTEM('PASSDB',
1455                     source=PASSDB_SRC,
1456                     deps='''GROUPDB TLDAP SECRETS SMBLDAP PDB_SMBPASSWD
1457                             PDB_TDBSAM PDB_WBC_SAM PDB_LDAP''',
1458                     vars=locals())
1459
1460 bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
1461                     source=PARAM_WITHOUT_REG_SRC)
1462
1463 bld.SAMBA_SUBSYSTEM('PARAM',
1464                     source=PARAM_SRC,
1465                     deps='PARAM_WITHOUT_REG DYNCONFIG',
1466                     vars=locals())
1467
1468 bld.SAMBA_SUBSYSTEM('POPT_SAMBA',
1469                     source=POPT_LIB_SRC,
1470                     vars=locals())
1471
1472 bld.SAMBA_SUBSYSTEM('KRBCLIENT',
1473                     source=KRBCLIENT_SRC,
1474                     deps='krb5 k5crypto com_err gssapi gssapi_krb5',
1475                     vars=locals())
1476
1477 bld.SAMBA_SUBSYSTEM('LIBS',
1478                     source=LIB_SRC,
1479                     deps='NSS_WRAPPER iconv LIBCRYPTO LIBNDR NDR_SECURITY',
1480                     vars=locals())
1481
1482 bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
1483                     source=LIB_NONSMBD_SRC,
1484                     deps='LIBS',
1485                     vars=locals())
1486
1487 bld.SAMBA_SUBSYSTEM('LIBSMB_ERR',
1488                     source=LIBSMB_ERR_SRC,
1489                     deps='SECRETS ldap lber',
1490                     vars=locals())
1491
1492 bld.SAMBA_SUBSYSTEM('LIBSAMBA',
1493                     source=LIBSAMBA_SRC,
1494                     deps='LIBSMB_ERR',
1495                     vars=locals())
1496
1497 bld.SAMBA_SUBSYSTEM('LIBSMB',
1498                     source=LIBSMB_SRC,
1499                     deps='LIBSAMBA ZLIB',
1500                     vars=locals())
1501
1502 bld.SAMBA_SUBSYSTEM('SECRETS',
1503                     source=SECRETS_SRC,
1504                     vars=locals())
1505
1506 bld.SAMBA_SUBSYSTEM('SMBLDAP',
1507                     source=SMBLDAP_SRC,
1508                     deps='ldap lber',
1509                     vars=locals())
1510
1511 bld.SAMBA_SUBSYSTEM('LIBADS',
1512                     source=LIBADS_SRC,
1513                     vars=locals())
1514
1515 bld.SAMBA_SUBSYSTEM('LIBADS_SERVER',
1516                     source=LIBADS_SERVER_SRC,
1517                     vars=locals())
1518
1519 bld.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
1520                     source=LIBADS_PRINTER_SRC,
1521                     vars=locals())
1522
1523 bld.SAMBA_SUBSYSTEM('LIBAFS',
1524                     source=AFS_SRC,
1525                     vars=locals())
1526
1527 bld.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
1528                     source=AFS_SETTOKEN_SRC,
1529                     vars=locals())
1530
1531 bld.SAMBA_SUBSYSTEM('SMBD_BASE',
1532                     source=SMBD_SRC_BASE,
1533                     deps='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
1534                     NSS_WRAPPER DYNCONFIG libwbclient crypt nsl cups cap resolv ZLIB PASSDB
1535                     PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
1536                     LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
1537                     VFS_DEFAULT RPC_MODULES AUTH LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE LIBNET LIBEVENTLOG''',
1538                     vars=locals())
1539
1540 bld.SAMBA_SUBSYSTEM('RPC_MODULES',
1541                     source='',
1542                     deps='''RPC_LSARPC RPC_SAMR RPC_WINREG RPC_INITSHUTDOWN
1543                             RPC_DSSETUP RPC_WKSSVC RPC_SVCCTL RPC_NTSVCS
1544                             RPC_NETLOGON RPC_NETDFS RPC_SRVSVC RPC_SPOOLSS
1545                             RPC_EVENTLOG RPC_RPCECHO''')
1546
1547 bld.SAMBA_SUBSYSTEM('LOCKING',
1548                     source='${LOCKING_SRC}',
1549                     deps='''tdb talloc''',
1550                     vars=locals())
1551
1552 bld.SAMBA_SUBSYSTEM('PROFILE',
1553                     source='${PROFILE_SRC}',
1554                     vars=locals())
1555
1556 bld.SAMBA_SUBSYSTEM('READLINE',
1557                     source=READLINE_SRC,
1558                     vars=locals())
1559
1560 bld.SAMBA_SUBSYSTEM('PASSWD_UTIL',
1561                     source=PASSWD_UTIL_SRC,
1562                     vars=locals())
1563
1564 bld.SAMBA_SUBSYSTEM('DISPLAY_SEC',
1565                     source=DISPLAY_SEC_SRC,
1566                     vars=locals())
1567
1568 bld.SAMBA_SUBSYSTEM('LIBNET',
1569                     source=LIBNET_SRC,
1570                     deps='NDR_LIBNET_JOIN',
1571                     vars=locals())
1572
1573 bld.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
1574                     source=LIBNET_DSSYNC_SRC,
1575                     deps='LIBNET',
1576                     vars=locals())
1577
1578 bld.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
1579                     source=LIBNET_SAMSYNC_SRC,
1580                     deps='LIBNET',
1581                     vars=locals())
1582
1583 bld.SAMBA_SUBSYSTEM('LIBEVENTLOG',
1584                     source=LIB_EVENTLOG_SRC,
1585                     deps='NDR_EVENTLOG',
1586                     vars=locals())
1587
1588 bld.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1589                     source=PLAINTEXT_AUTH_SRC,
1590                     vars=locals())
1591
1592 bld.SAMBA_SUBSYSTEM('SLCACHE',
1593                     source=SLCACHE_SRC,
1594                     vars=locals())
1595
1596 bld.SAMBA_SUBSYSTEM('DCUTIL',
1597                     source=DCUTIL_SRC,
1598                     vars=locals())
1599
1600 bld.SAMBA_SUBSYSTEM('LIBNDR',
1601                     source=LIBNDR_SRC,
1602                     vars=locals())
1603
1604 #FIXME
1605 bld.SAMBA_SUBSYSTEM('NDR_STANDARD',
1606                     source=LIBNDR_SRC,
1607                     vars=locals())
1608
1609 #FIXME
1610 bld.SAMBA_SUBSYSTEM('dcerpc', '')
1611
1612 bld.SAMBA_SUBSYSTEM('LZXPRESS',
1613                     deps='replace',
1614                     source='../lib/compression/lzxpress.c')
1615
1616 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
1617                     source='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1618                     deps='LIBNDR',
1619                     vars=locals())
1620
1621 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
1622                     source='../librpc/gen_ndr/ndr_dcerpc.c',
1623                     vars=locals())
1624
1625 bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
1626                     source='../librpc/gen_ndr/ndr_srvsvc.c',
1627                     vars=locals())
1628
1629 bld.SAMBA_SUBSYSTEM('LIBSAMBA-ERRORS',
1630                     source='../libcli/util/doserr.c libsmb/nterr.c')
1631
1632 bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1633                     source='../libcli/nbt/nbtname.c',
1634                     deps='talloc',
1635                     autoproto='nbtname.h')
1636
1637 bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1638                     source='../libcli/ndr_netlogon.c',
1639                     public_deps='LIBNDR NDR_SECURITY')
1640
1641 ########################## BINARIES #################################
1642
1643 bld.SAMBA_BINARY('smbd/smbd',
1644                  source='${SMBD_SRC_MAIN}',
1645                  deps='''SMBD_BASE''',
1646                  install_path='${SBINDIR}',
1647                  vars=locals())
1648
1649 bld.SAMBA_BINARY('nmbd/nmbd',
1650                  source=NMBD_SRC,
1651                  deps='''talloc tdb tevent ZLIB cap resolv libwbclient dl
1652                  NSS_WRAPPER PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1653                  POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1654                  install_path='${SBINDIR}',
1655                  vars=locals())
1656
1657 bld.SAMBA_BINARY('winbindd/winbindd',
1658                  source=WINBINDD_SRC,
1659                  deps='''talloc tdb tevent cap dl ZLIB NSS_WRAPPER
1660                  libwbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1661                  POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1662                  NSS_INFO_TEMPLATE SRV_NDR_WBINT RPCCLI_NDR_WBINT LIBAFS
1663                  LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL
1664                  ''',
1665                  enabled=bld.env.build_winbind,
1666                  install_path='${SBINDIR}',
1667                  vars=locals())
1668
1669 bld.SAMBA_BINARY('web/swat',
1670                  source=SWAT_SRC,
1671                  deps='''talloc tevent cap LIBS LIBSMB libwbclient PARAM
1672                  LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1673                  LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH''',
1674                  enabled=bld.env.build_swat,
1675                  install_path='${SBINDIR}',
1676                  vars=locals())
1677
1678 bld.SAMBA_BINARY('rpcclient/rpcclient',
1679                  source=RPCCLIENT_SRC,
1680                  deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1681                  PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1682                  LIBADS READLINE DISPLAY_SEC DCUTIL''',
1683                  vars=locals())
1684
1685 bld.SAMBA_BINARY('smbclient',
1686                  source=CLIENT_SRC,
1687                  deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1688                  PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN
1689                  LIBMSRPC READLINE DISPLAY_SEC''',
1690                  vars=locals())
1691
1692 bld.SAMBA_BINARY('net',
1693                  source=NET_SRC,
1694                  deps='''talloc tdb libnetapi libaddns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1695                  PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1696                  LOCALE_DIR LIBAFS LIBAFS_SETTOKEN READLINE PASSWD_UTIL LIBNET
1697                  LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DISPLAY_SEC DCUTIL''',
1698                  vars=locals())
1699
1700 bld.SAMBA_BINARY('profiles',
1701                  source=PROFILES_SRC,
1702                  deps='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD''',
1703                  vars=locals())
1704
1705 bld.SAMBA_BINARY('smbspool',
1706                  source=CUPS_SRC,
1707                  deps='''talloc tdb tevent resolv cap libwbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1708                  KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1709                  vars=locals())
1710
1711 bld.SAMBA_BINARY('testparm',
1712                  source=TESTPARM_SRC,
1713                  deps='''talloc tevent ldap cap NSS_WRAPPER
1714                  libwbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1715                  LIBSMB_ERR POPT_SAMBA''',
1716                  vars=locals())
1717
1718 bld.SAMBA_BINARY('smbta-util',
1719                  source=SMBTA_UTIL_SRC,
1720                  deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1721                  LIBSMB_ERR''',
1722                  vars=locals())
1723
1724 bld.SAMBA_BINARY('smbstatus',
1725                  source=STATUS_SRC,
1726                  deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1727                  LIBSMB_ERR LOCKING PROFILE''',
1728                  vars=locals())
1729
1730 bld.SAMBA_BINARY('smbcontrol',
1731                  source=SMBCONTROL_SRC,
1732                  deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1733                  vars=locals())
1734
1735 bld.SAMBA_BINARY('smbtree',
1736                  source=SMBTREE_SRC,
1737                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1738                  LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE''',
1739                  vars=locals())
1740
1741 bld.SAMBA_BINARY('smbpasswd',
1742                  source=SMBPASSWD_SRC,
1743                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1744                  LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL''',
1745                  vars=locals())
1746
1747 bld.SAMBA_BINARY('pdbedit',
1748                  source=PDBEDIT_SRC,
1749                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1750                  LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1751                  PASSWD_UTIL''',
1752                  vars=locals())
1753
1754 bld.SAMBA_BINARY('smbget',
1755                  source=SMBGET_SRC,
1756                  deps='''talloc tdb libsmbclient POPT_SAMBA''',
1757                  vars=locals())
1758
1759 bld.SAMBA_BINARY('nmblookup',
1760                  source=NMBLOOKUP_SRC,
1761                  deps='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1762                  vars=locals())
1763
1764 bld.SAMBA_BINARY('smbtorture',
1765                  source=SMBTORTURE_SRC,
1766                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1767                  LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1768                  vars=locals())
1769
1770 bld.SAMBA_BINARY('smbconftort',
1771                  source=SMBCONFTORT_SRC,
1772                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1773                  vars=locals())
1774
1775 bld.SAMBA_BINARY('masktest',
1776                  source=MASKTEST_SRC,
1777                  deps='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1778                  ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1779                  vars=locals())
1780
1781 bld.SAMBA_BINARY('msgtest',
1782                  source=MSGTEST_SRC,
1783                  deps='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1784                  vars=locals())
1785
1786 bld.SAMBA_BINARY('smbcacls',
1787                  source=SMBCACLS_SRC,
1788                  deps='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1789                  LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1790                  LIBMSRPC''',
1791                  vars=locals())
1792
1793 bld.SAMBA_BINARY('smbcquotas',
1794                  source=SMBCQUOTAS_SRC,
1795                  deps='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1796                  POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC''',
1797                  vars=locals())
1798
1799 bld.SAMBA_BINARY('eventlogadm',
1800                  source=EVTLOGADM_SRC,
1801                  deps='''talloc tevent cap POPT_SAMBA LIBS PARAM
1802                  LIB_NONSMBD LIBSMB_ERR PASSDB libwbclient LIBEVENTLOG''',
1803                  vars=locals())
1804
1805 bld.SAMBA_BINARY('sharesec',
1806                  source=SHARESEC_SRC,
1807                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1808                  vars=locals())
1809
1810 bld.SAMBA_BINARY('locktest',
1811                  source=LOCKTEST_SRC,
1812                  deps='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1813                  ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1814                  vars=locals())
1815
1816 bld.SAMBA_BINARY('nsstest',
1817                  source=NSSTEST_SRC,
1818                  deps='NSS_WRAPPER',
1819                  vars=locals())
1820
1821 bld.SAMBA_BINARY('pdbtest',
1822                  source=PDBTEST_SRC,
1823                  deps='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1824                  SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1825                  vars=locals())
1826
1827 bld.SAMBA_BINARY('vfstest',
1828                  source=VFSTEST_SRC,
1829                  deps='''SMBD_BASE READLINE''',
1830                  vars=locals())
1831
1832 bld.SAMBA_BINARY('smbiconv',
1833                  source=SMBICONV_SRC,
1834                  deps='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1835                  vars=locals())
1836
1837 bld.SAMBA_BINARY('log2pcap',
1838                  source=LOG2PCAP_SRC,
1839                  deps='''talloc popt''',
1840                  vars=locals())
1841
1842 bld.SAMBA_BINARY('locktest2',
1843                  source=LOCKTEST2_SRC,
1844                  deps='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1845                  ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1846                  vars=locals())
1847
1848 bld.SAMBA_BINARY('debug2html',
1849                  source=DEBUG2HTML_SRC,
1850                  deps='''talloc popt''',
1851                  vars=locals())
1852
1853 bld.SAMBA_BINARY('smbfilter',
1854                  source=SMBFILTER_SRC,
1855                  deps='''talloc tevent cap resolv libwbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1856                  NDR_SAMR NDR_LSA''',
1857                  vars=locals())
1858
1859 bld.SAMBA_BINARY('versiontest',
1860                  source='lib/version_test.c ${VERSION_SRC}',
1861                  vars=locals())
1862
1863 bld.SAMBA_BINARY('wbinfo',
1864                  source=WBINFO_SRC,
1865                  deps='''talloc libwbclient tevent cap
1866                  NSS_WRAPPER ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1867                  LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1868                  vars=locals())
1869
1870 bld.SAMBA_BINARY('ntlm_auth',
1871                  source=NTLM_AUTH_SRC,
1872                  deps='''tdb talloc cap resolv krb5 k5crypto com_err libwbclient PARAM LIB_NONSMBD
1873                  LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1874                  PASSDB GROUPDB SMBLDAP WBCOMMON LIBINIPARSER LIBADS_SERVER
1875                  NDR_SAMR NDR_LSA''',
1876                  vars=locals())
1877
1878 bld.SAMBA_BINARY('timelimit',
1879                  source='script/tests/timelimit.c',
1880                  vars=locals())
1881
1882 bld.SAMBA_BINARY('rpc_open_tcp',
1883                  source=RPC_OPEN_TCP_SRC,
1884                  deps='''talloc tdb tevent resolv cap libwbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1885                  LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1886                  vars=locals())
1887
1888 bld.SAMBA_BINARY('test_lp_load',
1889                  source=TEST_LP_LOAD_SRC,
1890                  deps='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1891                  vars=locals())
1892
1893 bld.SAMBA_BINARY('dbwrap_tool',
1894                  source=DBWRAP_TOOL_SRC,
1895                  deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1896                  vars=locals())
1897
1898 bld.SAMBA_BINARY('dbwrap_torture',
1899                  source=DBWRAP_TORTURE_SRC,
1900                  deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1901                  POPT_SAMBA''',
1902                  vars=locals())
1903
1904 bld.SAMBA_BINARY('split_tokens',
1905                  source=SPLIT_TOKENS_SRC,
1906                  deps='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA
1907                  LIBSAMBA''',
1908                  vars=locals())
1909
1910 swat_files=recursive_dirlist('../swat', '../swat', '*')
1911 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
1912
1913 ########################## INCLUDES #################################
1914
1915 bld.RECURSE('../lib/socket_wrapper')
1916 bld.RECURSE('../lib/talloc')
1917 bld.RECURSE('../lib/tdb')
1918 bld.RECURSE('../lib/nss_wrapper')
1919 bld.RECURSE('../lib/tevent')
1920 bld.RECURSE('../lib/popt')
1921 bld.RECURSE('../lib/zlib')
1922 bld.RECURSE('../lib/tsocket')
1923 bld.RECURSE('../lib/iniparser/src')
1924 bld.RECURSE('../lib/crypto')
1925
1926 bld.ENFORCE_GROUP_ORDERING()
1927 bld.CHECK_PROJECT_RULES()