7068c616210174621c5ea9efd6cdb8ea2339b41f
[kai/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_SRC = '''../librpc/ndr/ndr_basic.c
44              ../librpc/ndr/ndr.c
45              ../librpc/ndr/ndr_misc.c
46              ../librpc/gen_ndr/ndr_misc.c
47              ../librpc/ndr/ndr_string.c
48              ../librpc/ndr/uuid.c
49              librpc/ndr/util.c'''
50
51 LIBCLI_SPOOLSS_SRC = '''
52                      ../librpc/gen_ndr/cli_spoolss.c
53                      ../librpc/gen_ndr/ndr_spoolss_c.c
54                      rpc_client/cli_spoolss.c
55                      rpc_client/init_spoolss.c'''
56
57 LIBCLI_EVENTLOG_SRC = '''
58                       ../librpc/gen_ndr/cli_eventlog.c
59                       ../librpc/gen_ndr/ndr_eventlog_c.c'''
60
61 LIBCLI_NTSVCS_SRC = '''
62                     ../librpc/gen_ndr/cli_ntsvcs.c
63                     ../librpc/gen_ndr/ndr_ntsvcs_c.c'''
64
65 LIBCLI_DRSUAPI_SRC = '''
66                      ../librpc/gen_ndr/cli_drsuapi.c
67                      ../librpc/gen_ndr/ndr_drsuapi_c.c'''
68
69 LIBCLI_DFS_SRC = '''
70                  ../librpc/gen_ndr/cli_dfs.c
71                  ../librpc/gen_ndr/ndr_dfs_c.c'''
72
73 LIBCLI_INITSHUTDOWN_SRC = '''
74                           ../librpc/gen_ndr/cli_initshutdown.c
75                           ../librpc/gen_ndr/ndr_initshutdown_c.c'''
76
77 LIBCLI_DSSETUP_SRC = '''
78                      ../librpc/gen_ndr/cli_dssetup.c
79                      ../librpc/gen_ndr/ndr_dssetup_c.c'''
80
81 LIBCLI_SVCCTL_SRC = '''
82                     ../librpc/gen_ndr/cli_svcctl.c
83                     ../librpc/gen_ndr/ndr_svcctl_c.c'''
84
85 LIBCLI_WKSSVC_SRC = '''
86                     ../librpc/gen_ndr/cli_wkssvc.c
87                     ../librpc/gen_ndr/ndr_wkssvc_c.c'''
88
89 LIBCLI_SRVSVC_SRC = '''
90                     ../librpc/gen_ndr/cli_srvsvc.c
91                     ../librpc/gen_ndr/ndr_srvsvc_c.c'''
92
93 LIBCLI_LSA_SRC = '''
94                  ../librpc/gen_ndr/cli_lsa.c
95                  ../librpc/gen_ndr/ndr_lsa_c.c
96                  rpc_client/cli_lsarpc.c
97                  rpc_client/init_lsa.c'''
98
99 LIBCLI_SAMR_SRC = '''
100                   ../librpc/gen_ndr/cli_samr.c
101                   ../librpc/gen_ndr/ndr_samr_c.c
102                   rpc_client/cli_samr.c'''
103
104 LIBCLI_NETLOGON_SRC = '''
105                       ../librpc/gen_ndr/cli_netlogon.c
106                       ../librpc/gen_ndr/ndr_netlogon_c.c
107                       rpc_client/cli_netlogon.c'''
108
109 LIBCLI_EPMAPPER_SRC = '''
110                       ../librpc/gen_ndr/cli_epmapper.c
111                       ../librpc/gen_ndr/ndr_epmapper_c.c'''
112
113 # this includes only the low level parse code, not stuff
114 # that requires knowledge of security contexts
115 REG_PARSE_PRS_SRC = '''registry/reg_parse_prs.c'''
116
117 LIBREPLACE_SRC = '''${LIBREPLACE_SRCS}'''
118
119 LIBSAMBAUTIL_SRC = '''${LIBREPLACE_SRC}'''
120
121 UTIL_SRC = '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
122                    ../lib/util/xfile.c ../lib/util/util_strlist.c
123                    ../lib/util/util_file.c ../lib/util/data_blob.c
124                    ../lib/util/util.c ../lib/util/fsusage.c
125                    ../lib/util/params.c ../lib/util/talloc_stack.c
126                    ../lib/util/genrand.c ../lib/util/util_net.c
127                    ../lib/util/become_daemon.c ../lib/util/system.c
128                    ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
129                    ../lib/util/tevent_werror.c
130                    ../lib/util/smb_threads.c ../lib/util/util_id.c
131                    ../lib/util/blocking.c ../lib/util/rfc1738.c
132                    ../lib/util/select.c'''
133
134 LIBTEVENT_SRC0 = ''
135
136 PTHREADPOOL_SRC = ''
137
138 LIBREPLACE_SRCS = ''
139
140 ZLIB_SRCS = ''
141
142 LIB_SRC = '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC}
143           lib/messages.c lib/messages_local.c
144           lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
145           lib/interfaces.c lib/memcache.c
146           lib/talloc_dict.c
147           lib/util_sconn.c
148           lib/serverid.c
149           lib/util_transfer_file.c ../lib/async_req/async_sock.c
150           ${TDB_LIB_SRC}
151           ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
152           lib/interface.c lib/pidfile.c
153           lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
154           lib/username.c
155           ../libds/common/flag_mapping.c
156           lib/access.c lib/smbrun.c
157           lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
158           lib/wins_srv.c
159           lib/util_str.c lib/clobber.c lib/util_sid.c
160           lib/util_unistr.c lib/util_file.c
161           lib/util.c lib/util_names.c
162           lib/util_sock.c lib/sock_exec.c lib/util_sec.c
163           lib/substitute.c lib/dbwrap_util.c
164           lib/ms_fnmatch.c lib/errmap_unix.c
165           lib/tallocmsg.c lib/dmallocmsg.c
166           libsmb/clisigning.c libsmb/smb_signing.c
167           lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
168           lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
169           lib/sessionid_tdb.c
170           lib/module.c lib/events.c ${LIBTEVENT_SRC0}
171           lib/server_contexts.c
172           lib/ldap_escape.c
173           lib/secdesc.c ${PTHREADPOOL_SRC}
174           lib/fncall.c
175           libads/krb5_errs.c lib/system_smbd.c lib/audit.c
176           lib/file_id.c lib/idmap_cache.c'''
177
178 LIB_DUMMY_SRC = '''lib/dummysmbd.c lib/dummyroot.c'''
179 LIB_NONSMBD_SRC = '''${LIB_DUMMY_SRC}'''
180
181 POPT_LIB_SRC = '''lib/popt_common.c'''
182
183 PARAM_WITHOUT_REG_SRC = '''param/loadparm.c param/util.c param/loadparm_server_role.c
184                            lib/sharesec.c lib/ldap_debug_handler.c'''
185
186 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
187
188 LIBADDNS_SRC0 = '''libaddns/dnsrecord.c libaddns/dnsutils.c  libaddns/dnssock.c
189                libaddns/dnsgss.c libaddns/dnsmarshall.c'''
190 LIBADDNS_SRC = '''${LIBADDNS_SRC0}'''
191
192 LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
193               ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
194               libgpo/gpo_reg.c'''
195 LIBGPO_SRC = '''${LIBGPO_SRC0}'''
196
197 LIBADS_SRC = '''libads/ldap.c
198              libads/sasl.c libads/sasl_wrapping.c
199              libads/krb5_setpw.c
200              libads/kerberos_util.c
201              libads/ldap_user.c
202              libads/ads_struct.c libads/kerberos_keytab.c
203              libads/disp_sec.c libads/ldap_utils.c
204              libads/ldap_schema.c libads/util.c libads/ndr.c'''
205
206 LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c'''
207
208 LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
209
210 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
211                  passdb/machine_sid.c'''
212
213 LIBNBT_SRC = '''../libcli/nbt/nbtname.c
214              ../libcli/netlogon.c
215              ../libcli/ndr_netlogon.c
216              ../librpc/gen_ndr/ndr_nbt.c
217              ../librpc/gen_ndr/ndr_svcctl.c
218              ../librpc/ndr/ndr_svcctl.c'''
219
220 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
221              libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
222              libads/dns.c libads/sitename_cache.c'''
223
224 NTERR_SRC = '''libsmb/nterr.c libsmb/smberr.c'''
225 DOSERR_SRC = '../libcli/util/doserr.c'
226 ERRORMAP_SRC = 'libsmb/errormap.c'
227 DCE_RPC_ERR_SRC = '../librpc/rpc/dcerpc_error.c'
228
229 LIBSMB_ERR_SRC0 = '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
230
231 LIBSMB_ERR_SRC1 = '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
232
233 LIBSMB_ERR_SRC = '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}'
234
235 LIBSMB_SRC0 = '''
236                ../libcli/auth/ntlm_check.c
237                libsmb/ntlmssp.c
238                libsmb/ntlmssp_wrap.c
239                ../libcli/auth/ntlmssp.c
240                ../libcli/auth/ntlmssp_sign.c
241                ../libcli/auth/ntlmssp_ndr.c
242                ../libcli/auth/ntlmssp_server.c'''
243
244 LIBSAMBA_SRC = '${LIBSMB_SRC0}'
245
246 LIBCLI_LDAP_MESSAGE_SRC = '''../libcli/ldap/ldap_message.c'''
247 LIBCLI_LDAP_NDR_SRC = '''../libcli/ldap/ldap_ndr.c lib/ldb_compat.c'''
248
249 CLDAP_SRC = '''libads/cldap.c
250         ../libcli/cldap/cldap.c
251         ../lib/util/idtree.c'''
252
253 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
254
255 SCHANNEL_SRC = '''../libcli/auth/credentials.c
256                ../libcli/auth/schannel_sign.c
257                ../libcli/auth/schannel_state_tdb.c'''
258
259 LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
260              libsmb/clikrb5.c libsmb/clispnego.c
261              ../libcli/auth/spnego_parse.c
262              libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
263              libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
264              libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
265              libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
266              libsmb/clioplock.c libsmb/clirap2.c
267              libsmb/smb_seal.c libsmb/async_smb.c
268              ${LIBNMB_SRC}
269              ${LIBNBT_SRC}
270              ${DRSUAPI_SRC}'''
271
272 LIBMSRPC_SRC = '''
273                ${SCHANNEL_SRC}
274                rpc_client/cli_pipe.c
275                librpc/crypto/gse_krb5.c
276                librpc/crypto/gse.c
277                librpc/crypto/cli_spnego.c
278                librpc/rpc/rpc_common.c
279                rpc_client/rpc_transport_np.c
280                rpc_client/rpc_transport_sock.c
281                rpc_client/rpc_transport_tstream.c
282                ../librpc/rpc/binding.c
283                ../librpc/rpc/dcerpc_util.c
284                librpc/rpc/dcerpc_helpers.c
285                ../librpc/rpc/binding_handle.c
286                ${LIBCLI_EPMAPPER_SRC}'''
287
288 #
289 # registry-related objects
290 #
291 UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
292
293 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
294 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
295 REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
296
297 REGFIO_SRC = '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
298
299 REG_API_REGF_SRC = '''registry/reg_api_regf.c'''
300
301 REGSRCS_SRC = '''registry/reg_objects.c'''
302
303 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
304
305 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
306
307 REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
308                          registry/reg_backend_shares.c
309                          registry/reg_backend_netlogon_params.c
310                          registry/reg_backend_prod_options.c
311                          registry/reg_backend_tcpip_params.c
312                          registry/reg_backend_hkpt_params.c
313                          registry/reg_backend_current_version.c
314                          registry/reg_backend_perflib.c'''
315
316 REG_BASE_SRC = '''registry/reg_api.c
317                registry/reg_dispatcher.c
318                registry/reg_cachehook.c
319                ${REGSRCS_SRC}
320                registry/reg_util_internal.c
321                lib/util_nttoken.c
322                ${REG_BACKENDS_BASE_SRC}
323                ${REG_INIT_BASIC_SRC}'''
324
325 REG_SMBCONF_SRC = '''
326                   ${REG_BACKENDS_SMBCONF_SRC}
327                   ${REG_INIT_SMBCONF_SRC}
328                   registry/reg_util_token.c
329                   registry/reg_api_util.c'''
330
331 REG_FULL_SRC = '''
332                ${REG_BACKENDS_EXTRA_SRC}
333                ${REG_INIT_FULL_SRC}
334                registry/reg_eventlog.c
335                registry/reg_perfcount.c'''
336
337 SERVICES_SRC = '''services/svc_spoolss.c
338                   services/svc_rcinit.c
339                   services/services_db.c
340                   services/svc_netlogon.c
341                   services/svc_winreg.c
342                   services/svc_wins.c'''
343
344 LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
345
346 NPA_TSTREAM_SRC = '''../libcli/named_pipe_auth/npa_tstream.c
347                      ../librpc/gen_ndr/ndr_named_pipe_auth.c'''
348
349 RPC_NCACN_NP = '''rpc_server/rpc_ncacn_np.c
350                   rpc_server/rpc_handles.c'''
351
352 RPC_SERVICE = '''rpc_server/rpc_server.c'''
353
354 RPC_CRYPTO = '''rpc_server/dcesrv_ntlmssp.c
355                 rpc_server/dcesrv_gssapi.c
356                 rpc_server/dcesrv_spnego.c'''
357
358 RPC_PIPE_SRC = '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
359                ${RPC_NCACN_NP} ${RPC_SERVICE} ${RPC_CRYPTO}'''
360
361 RPC_SERVER_SRC = '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC}'''
362
363 RPC_CLIENT_SCHANNEL_SRC = '''rpc_client/cli_pipe_schannel.c'''
364
365 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
366
367 PRIVILEGES_SRC = '''lib/privileges.c'''
368
369 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
370
371 PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c
372                 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
373                 passdb/util_unixsids.c passdb/lookup_sid.c
374                 passdb/login_cache.c
375                 passdb/account_pol.c ${PRIVILEGES_SRC}
376                 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
377 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
378
379 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
380
381 PROFILE_SRC = '''profile/profile.c'''
382 PROFILES_SRC = '''utils/profiles.c'''
383
384 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
385              smbd/oplock_onefs.c'''
386
387 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c
388                 librpc/gen_ndr/ndr_notify.c'''
389
390 FNAME_UTIL_SRC = '''smbd/filename_util.c'''
391
392
393 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
394
395 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
396
397 DCUTIL_SRC  = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
398
399 WINBINDD_SRC1 = '''winbindd/winbindd.c
400                    winbindd/winbindd_group.c
401                    winbindd/winbindd_util.c
402                    winbindd/winbindd_cache.c
403                    winbindd/winbindd_pam.c
404                    winbindd/winbindd_misc.c
405                    winbindd/winbindd_cm.c
406                    winbindd/winbindd_wins.c
407                    winbindd/winbindd_msrpc.c
408                    winbindd/winbindd_rpc.c
409                    winbindd/winbindd_reconnect.c
410                    winbindd/winbindd_ads.c
411                    winbindd/winbindd_samr.c
412                    winbindd/winbindd_dual.c
413                    winbindd/winbindd_dual_ndr.c
414                    winbindd/winbindd_dual_srv.c
415                    winbindd/winbindd_async.c
416                    winbindd/winbindd_creds.c
417                    winbindd/winbindd_cred_cache.c
418                    winbindd/winbindd_ccache_access.c
419                    winbindd/winbindd_domain.c
420                    winbindd/winbindd_idmap.c
421                    winbindd/winbindd_locator.c
422                    winbindd/winbindd_ndr.c
423                    winbindd/wb_ping.c
424                    winbindd/wb_lookupsid.c
425                    winbindd/wb_lookupname.c
426                    winbindd/wb_sid2uid.c
427                    winbindd/wb_sid2gid.c
428                    winbindd/wb_uid2sid.c
429                    winbindd/wb_gid2sid.c
430                    winbindd/wb_queryuser.c
431                    winbindd/wb_lookupuseraliases.c
432                    winbindd/wb_lookupusergroups.c
433                    winbindd/wb_getpwsid.c
434                    winbindd/wb_gettoken.c
435                    winbindd/wb_seqnum.c
436                    winbindd/wb_seqnums.c
437                    winbindd/wb_group_members.c
438                    winbindd/wb_getgrsid.c
439                    winbindd/wb_query_user_list.c
440                    winbindd/wb_fill_pwent.c
441                    winbindd/wb_next_pwent.c
442                    winbindd/wb_next_grent.c
443                    winbindd/wb_dsgetdcname.c
444                    winbindd/winbindd_lookupsid.c
445                    winbindd/winbindd_lookupname.c
446                    winbindd/winbindd_sid_to_uid.c
447                    winbindd/winbindd_sid_to_gid.c
448                    winbindd/winbindd_uid_to_sid.c
449                    winbindd/winbindd_gid_to_sid.c
450                    winbindd/winbindd_allocate_uid.c
451                    winbindd/winbindd_allocate_gid.c
452                    winbindd/winbindd_getpwsid.c
453                    winbindd/winbindd_getpwnam.c
454                    winbindd/winbindd_getpwuid.c
455                    winbindd/winbindd_getsidaliases.c
456                    winbindd/winbindd_getuserdomgroups.c
457                    winbindd/winbindd_getgroups.c
458                    winbindd/winbindd_show_sequence.c
459                    winbindd/winbindd_getgrgid.c
460                    winbindd/winbindd_getgrnam.c
461                    winbindd/winbindd_getusersids.c
462                    winbindd/winbindd_lookuprids.c
463                    winbindd/winbindd_setpwent.c
464                    winbindd/winbindd_getpwent.c
465                    winbindd/winbindd_endpwent.c
466                    winbindd/winbindd_setgrent.c
467                    winbindd/winbindd_getgrent.c
468                    winbindd/winbindd_endgrent.c
469                    winbindd/winbindd_dsgetdcname.c
470                    winbindd/winbindd_getdcname.c
471                    winbindd/winbindd_list_users.c
472                    winbindd/winbindd_list_groups.c
473                    winbindd/winbindd_check_machine_acct.c
474                    winbindd/winbindd_change_machine_acct.c
475                    winbindd/winbindd_ping_dc.c
476                    winbindd/winbindd_pam_auth.c
477                    winbindd/winbindd_pam_logoff.c
478                    winbindd/winbindd_pam_chauthtok.c
479                    winbindd/winbindd_pam_auth_crap.c
480                    winbindd/winbindd_pam_chng_pswd_auth_crap.c
481                    auth/auth_util.c
482                    auth/token_util.c
483                    auth/user_util.c
484                    auth/check_samsec.c
485                    auth/server_info.c
486                    auth/server_info_sam.c
487                    auth/user_info.c
488                    auth/user_util.c
489                    ../nsswitch/libwbclient/wb_reqtrans.c'''
490
491 WINBINDD_SRC = '''${WINBINDD_SRC1}
492                   ${RPC_NCACN_NP} ${NPA_TSTREAM_SRC}
493                   ${TDB_VALIDATE_SRC}
494                   ${LIBCLI_DSSETUP_SRC}
495                   ${LIBCLI_LSA_SRC}
496                   ${LIBCLI_SAMR_SRC}
497                   ${LIBCLI_NETLOGON_SRC}
498                   rpc_client/init_netlogon.c
499                   rpc_server/srv_lsa_nt.c ../librpc/gen_ndr/srv_lsa.c
500                   rpc_server/srv_samr_nt.c ../librpc/gen_ndr/srv_samr.c
501                   rpc_server/srv_samr_util.c
502                   rpc_server/srv_samr_chgpasswd.c
503                   rpc_server/srv_pipe_register.c'''
504
505 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
506
507 SMBD_SRC_MAIN = '''smbd/server.c smbd/server_exit.c'''
508
509 BUILDOPT_SRC = '''smbd/build_options.c'''
510
511 SMBD_SRC_SRV = '''smbd/server_reload.c smbd/files.c smbd/connection.c
512                smbd/utmp.c smbd/session.c
513                smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
514                smbd/share_access.c smbd/fileio.c
515                smbd/ipc.c smbd/lanman.c smbd/negprot.c
516                smbd/message.c smbd/nttrans.c smbd/pipes.c
517                smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
518                smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
519                smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
520                smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
521                smbd/posix_acls.c lib/sysacls.c
522                smbd/process.c smbd/service.c smbd/error.c
523                printing/printspoolss.c
524                lib/sysquotas.c lib/sysquotas_linux.c
525                lib/sysquotas_xfs.c lib/sysquotas_4A.c
526                lib/sysquotas_nfs.c
527                smbd/fake_file.c
528                smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
529                smbd/aio.c smbd/statvfs.c
530                smbd/dmapi.c smbd/signing.c
531                smbd/file_access.c
532                smbd/dnsregister.c smbd/globals.c
533                smbd/smb2_server.c
534                smbd/smb2_signing.c
535                smbd/smb2_glue.c
536                smbd/smb2_negprot.c
537                smbd/smb2_sesssetup.c
538                smbd/smb2_tcon.c
539                smbd/smb2_create.c
540                smbd/smb2_close.c
541                smbd/smb2_flush.c
542                smbd/smb2_read.c
543                smbd/smb2_write.c
544                smbd/smb2_lock.c
545                smbd/smb2_ioctl.c
546                smbd/smb2_keepalive.c
547                smbd/smb2_find.c
548                smbd/smb2_notify.c
549                smbd/smb2_getinfo.c
550                smbd/smb2_setinfo.c
551                smbd/smb2_break.c
552                ../libcli/smb/smb2_create_blob.c
553                ${MANGLE_SRC}'''
554
555 SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
556                 ${RPC_SERVER_SRC}
557                 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
558                 ${BUILDOPT_SRC}
559                 ${LIBCLI_SPOOLSS_SRC}
560                 ${LIBCLI_SRVSVC_SRC}
561                 ${LIBCLI_LSA_SRC}
562                 ${LIBCLI_SAMR_SRC}
563                 ${LIBCLI_NETLOGON_SRC}
564                 rpc_client/init_netlogon.c
565                 rpc_client/init_samr.c'''
566
567 PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
568                printing/print_cups.c printing/print_generic.c
569                printing/lpq_parse.c printing/load.c printing/print_standard.c
570                printing/print_iprint.c printing/printer_list.c'''
571
572 PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
573 PRINTBACKEND_SRC = '''printing/printing.c
574                       printing/nt_printing.c
575                       printing/nt_printing_tdb.c
576                       printing/nt_printing_migrate.c
577                       printing/nt_printing_ads.c'''
578
579 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
580
581 NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
582             nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
583             nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
584             nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
585             nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
586             nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
587             nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
588             nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
589             nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
590             nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
591             nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
592             nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
593
594 NMBD_SRC = '${NMBD_SRC1}'
595
596 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
597                web/swat.c web/neg_lang.c'''
598
599 SWAT_SRC = '''${SWAT_SRC1}
600            ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}
601            ${LIBCLI_SAMR_SRC}
602            rpc_client/init_lsa.c'''
603
604 STATUS_SRC = '''utils/status.c utils/status_profile.c
605              ${FNAME_UTIL_SRC}'''
606
607 SMBCONTROL_SRC = '''utils/smbcontrol.c'''
608
609 SMBTREE_SRC = '''utils/smbtree.c
610              ${LIBCLI_SRVSVC_SRC}'''
611
612 TESTPARM_SRC = 'utils/testparm.c'
613
614 SMBTA_UTIL_SRC = '''utils/smbta-util.c ${FNAME_UTIL_SRC}'''
615
616 TEST_LP_LOAD_SRC = '''param/test_lp_load.c'''
617
618 PASSWD_UTIL_SRC = 'utils/passwd_util.c'
619
620 SMBPASSWD_SRC = '''utils/smbpasswd.c ${PASSCHANGE_SRC}
621                 ${LIBCLI_SAMR_SRC}
622                 rpc_client/init_lsa.c'''
623
624 PDBEDIT_SRC = '''utils/pdbedit.c'''
625
626 SMBGET_SRC = '''utils/smbget.c'''
627
628 RPCCLIENT_SRC1 = '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
629                     rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
630                     rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
631                     rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
632                     rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
633                     rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
634                     rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
635                     rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
636                     rpcclient/cmd_winreg.c'''
637
638 RPCCLIENT_SRC = '''${RPCCLIENT_SRC1}
639                    ${LIBCLI_SPOOLSS_SRC}
640                    ${LIBCLI_EVENTLOG_SRC}
641                    ${LIBCLI_NTSVCS_SRC}
642                    ${LIBCLI_DRSUAPI_SRC}
643                    ${LIBCLI_DFS_SRC}
644                    ${LIBCLI_DSSETUP_SRC}
645                    ${LIBCLI_WKSSVC_SRC}
646                    ${LIBCLI_SRVSVC_SRC}
647                    ${LIBCLI_LSA_SRC}
648                    ${LIBCLI_SAMR_SRC}
649                    ${LIBCLI_NETLOGON_SRC}
650                    rpc_client/init_netlogon.c
651                    rpc_client/init_samr.c'''
652
653 PAM_WINBIND_SRC = '../nsswitch/pam_winbind.c ${WBCOMMON_SRC} ${LIBREPLACE_SRC}'
654
655 LIBSMBCLIENT_THREAD_SRC = '''libsmb/libsmb_thread_impl.c
656                         libsmb/libsmb_thread_posix.c'''
657
658 LIBSMBCLIENT_SRC0 = '''libsmb/libsmb_cache.c
659                     libsmb/libsmb_compat.c
660                     libsmb/libsmb_context.c
661                     libsmb/libsmb_dir.c
662                     libsmb/libsmb_file.c
663                     libsmb/libsmb_misc.c
664                     libsmb/libsmb_path.c
665                     libsmb/libsmb_printjob.c
666                     libsmb/libsmb_server.c
667                     libsmb/libsmb_stat.c
668                     libsmb/libsmb_xattr.c
669                     libsmb/libsmb_setget.c'''
670
671 LIBSMBCLIENT_SRC1 = '''${LIBSMBCLIENT_SRC0}
672                     ${LIBCLI_SRVSVC_SRC}
673                     ${LIBCLI_LSA_SRC}'''
674
675 LIBSMBCLIENT_SRC = '${LIBSMBCLIENT_SRC1}'
676
677 LIBSMBSHAREMODES_SRC0 = 'libsmb/smb_share_modes.c'
678
679 LIBSMBSHAREMODES_SRC = '${LIBSMBSHAREMODES_SRC0}'
680
681 LIBNETAPI_SRC0 = '''lib/netapi/netapi.c
682                     lib/netapi/cm.c
683                     lib/netapi/libnetapi.c
684                     lib/netapi/joindomain.c
685                     lib/netapi/serverinfo.c
686                     lib/netapi/getdc.c
687                     lib/netapi/user.c
688                     lib/netapi/group.c
689                     lib/netapi/localgroup.c
690                     lib/netapi/samr.c
691                     lib/netapi/sid.c
692                     lib/netapi/share.c
693                     lib/netapi/file.c
694                     lib/netapi/shutdown.c
695                     lib/netapi/netlogon.c'''
696
697 LIBNETAPI_SRC = '''${LIBNETAPI_SRC0}
698                    auth/token_util.c
699                    ${LIBCLI_INITSHUTDOWN_SRC}
700                    ${LIBCLI_WKSSVC_SRC}
701                    ${LIBCLI_SRVSVC_SRC}
702                    ${LIBCLI_LSA_SRC}
703                    ${LIBCLI_SAMR_SRC}
704                    ${LIBCLI_NETLOGON_SRC}
705                    rpc_client/init_netlogon.c
706                    rpc_client/init_samr.c'''
707
708 # FIXME:  bigballofmud
709
710 CLIENT_SRC1 = '''client/client.c client/clitar.c
711                  client/dnsbrowse.c'''
712
713 CLIENT_SRC = '''${CLIENT_SRC1}
714                 ${LIBCLI_SRVSVC_SRC}
715                 rpc_client/init_lsa.c'''
716
717 LIBSMBCONF_SRC = '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
718                     ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
719                     lib/smbconf/smbconf_init.c'''
720
721 SMBCONFTORT_SRC0 = 'lib/smbconf/testsuite.c'
722
723 SMBCONFTORT_SRC = '''${SMBCONFTORT_SRC0}'''
724
725 LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c'
726
727
728 LIBNET_DSSYNC_SRC = '''libnet/libnet_dssync.c
729                        libnet/libnet_dssync_keytab.c
730                        ../libcli/drsuapi/repl_decrypt.c'''
731
732 LIBNET_SAMSYNC_SRC = '''libnet/libnet_samsync.c
733                         libnet/libnet_samsync_ldif.c
734                         libnet/libnet_samsync_passdb.c
735                         libnet/libnet_samsync_display.c
736                         libnet/libnet_samsync_keytab.c
737                         ../libcli/samsync/decrypt.c'''
738
739 NET_SRC1 = '''utils/net.c utils/net_ads.c utils/net_help.c
740               utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
741               utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
742               utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
743               utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
744               utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
745               utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
746               utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
747               utils/net_dns.c utils/net_ads_gpo.c
748               utils/net_conf.c utils/net_join.c utils/net_user.c
749               utils/net_group.c utils/net_file.c utils/net_registry.c
750               auth/token_util.c utils/net_dom.c utils/net_share.c
751               utils/net_g_lock.c
752               utils/net_serverid.c
753               utils/net_eventlog.c
754               utils/net_printing.c
755               ${LIBCLI_SPOOLSS_SRC}
756               ${LIBCLI_DRSUAPI_SRC}
757               ${LIBCLI_INITSHUTDOWN_SRC}
758               ${LIBCLI_DSSETUP_SRC}
759               ${LIBCLI_SVCCTL_SRC}
760               ${LIBCLI_WKSSVC_SRC}
761               ${LIBCLI_SRVSVC_SRC}
762               ${LIBCLI_LSA_SRC}
763               ${LIBCLI_SAMR_SRC}
764               ${LIBCLI_NETLOGON_SRC}
765               rpc_client/init_netlogon.c
766               rpc_client/init_samr.c
767               registry/reg_parse.c registry/reg_format.c
768               registry/reg_parse_internal.c registry/reg_import.c
769               lib/cbuf.c lib/srprs.c'''
770
771 NET_SRC2 = 'utils/net_registry_util.c utils/net_help_common.c'
772
773 NET_SRC = '''${NET_SRC1}
774              ${NET_SRC2}'''
775
776 CUPS_SRC = '''client/smbspool.c'''
777
778 NMBLOOKUP_SRC = '''utils/nmblookup.c ${LIBNMB_SRC}'''
779
780 SMBTORTURE_SRC1 = '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
781                 torture/denytest.c torture/mangle_test.c
782                 torture/nbench.c
783                 torture/test_async_echo.c
784                 torture/test_posix_append.c'''
785
786 SMBTORTURE_SRC = '''${SMBTORTURE_SRC1} ${TLDAP_SRC}
787         ../nsswitch/libwbclient/wbc_async.c
788         ../nsswitch/libwbclient/wb_reqtrans.c'''
789
790 MASKTEST_SRC = '''torture/masktest.c'''
791
792 MSGTEST_SRC = '''torture/msgtest.c'''
793
794 LOCKTEST_SRC = '''torture/locktest.c ${FNAME_UTIL_SRC}'''
795
796 NSSTEST_SRC = '''../nsswitch/nsstest.c ${LIBSAMBAUTIL_SRC}'''
797
798 PDBTEST_SRC = '''torture/pdbtest.c'''
799
800 VFSTEST_SRC = '''torture/cmd_vfs.c torture/vfstest.c'''
801
802 SMBICONV_SRC = '''torture/smbiconv.c'''
803
804 LOG2PCAP_SRC = '''utils/log2pcaphex.c'''
805
806 LOCKTEST2_SRC = '''torture/locktest2.c ${FNAME_UTIL_SRC}'''
807
808 SMBCACLS_SRC = '''utils/smbcacls.c
809                 ${LIBCLI_LSA_SRC}'''
810
811 SMBCQUOTAS_SRC = '''utils/smbcquotas.c
812                 ${LIBCLI_LSA_SRC}'''
813
814 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
815
816 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}
817                 registry/reg_eventlog.c'''
818
819 SHARESEC_SRC0 = 'utils/sharesec.c'
820 SHARESEC_SRC  = '''${SHARESEC_SRC0}'''
821
822 DEBUG2HTML_SRC = '''utils/debug2html.c utils/debugparse.c'''
823
824 SMBFILTER_SRC = '''utils/smbfilter.c'''
825
826 WINBIND_WINS_NSS_SRC = '''../nsswitch/wins.c ${PARAM_SRC}
827         ${LIB_NONSMBD_SRC} ${LIBSMB_ERR_SRC} ${LIBNMB_SRC}'''
828
829 WBINFO_SRC = '''../nsswitch/wbinfo.c'''
830
831 WINBIND_NSS_SRC = '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
832
833 WINBIND_KRB5_LOCATOR_SRC1 = '../nsswitch/winbind_krb5_locator.c'
834 WINBIND_KRB5_LOCATOR_SRC = '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
835
836 POPT_SRC = '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
837           ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
838
839 NTLM_AUTH_SRC1 = '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
840
841 NTLM_AUTH_SRC = '''${NTLM_AUTH_SRC1}
842                 ../libcli/auth/spnego_parse.c libsmb/clikrb5.c libads/kerberos.c
843                 libsmb/samlogon_cache.c
844                 ${LIBNMB_SRC}'''
845
846
847 VLP_SRC = '''printing/tests/vlp.c
848           ../lib/util/util_tdb.c
849           ${LIBSAMBAUTIL_SRC}
850           param/util.c'''
851
852 RPC_OPEN_TCP_SRC = 'torture/rpc_open_tcp.c'
853
854 DBWRAP_TOOL_SRC = 'utils/dbwrap_tool.c'
855
856 DBWRAP_TORTURE_SRC = 'utils/dbwrap_torture.c'
857
858 SPLIT_TOKENS_SRC = 'utils/split_tokens.c'
859
860 LIBS='ICONV'
861
862 bld.SAMBA_GENERATOR('build_options',
863                     source='include/config.h script/mkbuildoptions-waf.awk',
864                     target='smbd/build_options.c',
865                     rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
866
867 t = bld.SAMBA_GENERATOR('build_env.h',
868                         source='script/build_env.sh',
869                         target='include/build_env.h',
870                         rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
871 # todo: work out what is really wanted here
872 t.env.SRCDIR = bld.path.abspath()
873 t.env.BUILDDIR = bld.path.abspath()
874
875
876 bld.SETUP_BUILD_GROUPS()
877
878 bld.SAMBA_MKVERSION('include/version.h')
879
880 bld.RECURSE('../lib/replace')
881 bld.RECURSE('../libcli/smbreadline')
882 print "SBINDIR=%s" % bld.env.SBINDIR
883 bld.RECURSE('build')
884
885 bld.RECURSE('../librpc')
886 bld.RECURSE('librpc/idl')
887 bld.RECURSE('librpc')
888 bld.RECURSE('../libcli/security')
889
890 ######################## SUBSYSTEMS #################################
891
892 bld.SAMBA_SUBSYSTEM('WBCOMMON',
893                     source=WBCOMMON_SRC)
894
895 bld.SAMBA_LIBRARY('libwbclient',
896                     source='''../nsswitch/libwbclient/wbc_guid.c
897                               ../nsswitch/libwbclient/wbc_idmap.c
898                               ../nsswitch/libwbclient/wbclient.c
899                               ../nsswitch/libwbclient/wbc_pam.c
900                               ../nsswitch/libwbclient/wbc_pwd.c
901                               ../nsswitch/libwbclient/wbc_sid.c
902                               ../nsswitch/libwbclient/wbc_util.c''',
903                     public_headers='../nsswitch/libwbclient/wbclient.h',
904                     private_library=True,
905                     public_deps='talloc WBCOMMON')
906
907 bld.SAMBA_LIBRARY('libnetapi',
908                     source=LIBNETAPI_SRC,
909                     public_deps='''talloc tdb cap libwbclient LIB_NONSMBD LIBSMB KRBCLIENT
910                     PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
911                     LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL NDR_LIBNETAPI
912                     RPC_CLIENT_SCHANNEL LIBSMBCONF REG_SMBCONF''',
913                     public_headers='lib/netapi/netapi.h',
914                     private_library=True,
915                     vars=locals())
916
917 bld.SAMBA_LIBRARY('libsmbclient',
918                     source=LIBSMBCLIENT_SRC,
919                     public_deps='''talloc tdb libwbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
920                     LIBMSRPC_GEN LIBMSRPC''',
921                     public_headers='include/libsmbclient.h',
922                     private_library=True,
923                     vars=locals())
924
925 bld.SAMBA_LIBRARY('libsmbsharemodes',
926                     source=LIBSMBSHAREMODES_SRC,
927                     public_deps='''talloc tdb''',
928                     public_headers='include/smb_share_modes.h',
929                     private_library=True,
930                     vars=locals())
931
932 bld.SAMBA_LIBRARY('libaddns',
933                     source=LIBADDNS_SRC,
934                     public_deps='talloc krb5 k5crypto com_err gssapi gssapi_krb5',
935                     private_library=True,
936                     vars=locals())
937
938 bld.SAMBA_SUBSYSTEM('LIBMSRPC',
939                     source='${LIBMSRPC_SRC}',
940                     deps='LIBNDR NDR_SECURITY NDR_DCERPC NDR_SCHANNEL',
941                     vars=locals())
942
943 bld.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
944                     source='',
945                     deps='''NDR_STANDARD NDR_DSSETUP NDR_SPOOLSS''',
946                     vars=locals())
947
948 bld.SAMBA_SUBSYSTEM('LIBGPO',
949                     source='${LIBGPO_SRC}',
950                     deps='gpext',
951                     vars=locals())
952
953 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
954                     source='../lib/util/asn1.c',
955                     deps='talloc',
956                     local_include=False)
957
958 bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
959                     source=LIBCLI_LDAP_MESSAGE_SRC)
960
961 bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_NDR',
962                     source=LIBCLI_LDAP_NDR_SRC)
963
964 bld.SAMBA_SUBSYSTEM('AVAHI',
965                     source=AVAHI_SRC,
966                     deps='avahi-common avahi-client',
967                     enabled=bld.env.with_avahi)
968
969 bld.SAMBA_SUBSYSTEM('GROUPDB',
970                     source=GROUPDB_SRC)
971
972 bld.SAMBA_SUBSYSTEM('TLDAP',
973                     source=TLDAP_SRC,
974                     deps='ASN1_UTIL LIBTSOCKET')
975
976 bld.SAMBA_SUBSYSTEM('PASSDB',
977                     source=PASSDB_SRC,
978                     deps='''GROUPDB TLDAP SECRETS SMBLDAP pdb''',
979                     vars=locals())
980
981 bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
982                     source=PARAM_WITHOUT_REG_SRC)
983
984 bld.SAMBA_SUBSYSTEM('PARAM',
985                     source='',
986                     deps='PARAM_WITHOUT_REG DYNCONFIG LIBSMBCONF',
987                     vars=locals())
988
989 bld.SAMBA_SUBSYSTEM('REGFIO',
990                     source=REGFIO_SRC,
991                     vars=locals())
992
993 bld.SAMBA_SUBSYSTEM('REG_API_REGF',
994                     source=REG_API_REGF_SRC,
995                     vars=locals())
996
997 bld.SAMBA_SUBSYSTEM('REG_BASE',
998                     source=REG_BASE_SRC,
999                     vars=locals())
1000
1001 bld.SAMBA_SUBSYSTEM('REG_SMBCONF',
1002                     source=REG_SMBCONF_SRC,
1003                     deps='REG_BASE',
1004                     vars=locals())
1005
1006 bld.SAMBA_SUBSYSTEM('REG_FULL',
1007                     source=REG_FULL_SRC,
1008                     deps='REG_SMBCONF',
1009                     vars=locals())
1010
1011 bld.SAMBA_SUBSYSTEM('POPT_SAMBA',
1012                     source=POPT_LIB_SRC,
1013                     vars=locals())
1014
1015 bld.SAMBA_SUBSYSTEM('KRBCLIENT',
1016                     source=KRBCLIENT_SRC,
1017                     deps='krb5 k5crypto com_err gssapi gssapi_krb5',
1018                     vars=locals())
1019
1020 bld.SAMBA_SUBSYSTEM('LIBS',
1021                     source=LIB_SRC,
1022                     deps='iconv LIBCRYPTO LIBNDR security NDR_SECURITY charset NDR_MESSAGING',
1023                     vars=locals())
1024
1025 bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
1026                     source=LIB_NONSMBD_SRC,
1027                     deps='LIBS',
1028                     vars=locals())
1029
1030 bld.SAMBA_SUBSYSTEM('LIBSMB_ERR',
1031                     source=LIBSMB_ERR_SRC,
1032                     deps='SECRETS ldap lber',
1033                     vars=locals())
1034
1035 bld.SAMBA_SUBSYSTEM('LIBSAMBA',
1036                     source=LIBSAMBA_SRC,
1037                     deps='LIBSMB_ERR NDR_NTLMSSP',
1038                     vars=locals())
1039
1040 bld.SAMBA_SUBSYSTEM('LIBSMB',
1041                     source=LIBSMB_SRC,
1042                     deps='LIBSAMBA ZLIB CLDAP',
1043                     vars=locals())
1044
1045 bld.SAMBA_SUBSYSTEM('CLDAP',
1046                     source=CLDAP_SRC,
1047                     deps='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
1048                     vars=locals())
1049
1050 bld.SAMBA_SUBSYSTEM('SECRETS',
1051                     source=SECRETS_SRC,
1052                     deps='NDR_SECRETS',
1053                     vars=locals())
1054
1055 bld.SAMBA_SUBSYSTEM('SMBLDAP',
1056                     source=SMBLDAP_SRC,
1057                     deps='ldap lber',
1058                     vars=locals())
1059
1060 bld.SAMBA_SUBSYSTEM('LIBADS',
1061                     source=LIBADS_SRC,
1062                     deps='LIBCLI_LDAP_NDR',
1063                     vars=locals())
1064
1065 bld.SAMBA_SUBSYSTEM('LIBADS_SERVER',
1066                     source=LIBADS_SERVER_SRC,
1067                     deps='NDR_KRB5PAC',
1068                     vars=locals())
1069
1070 bld.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
1071                     source=LIBADS_PRINTER_SRC,
1072                     vars=locals())
1073
1074 bld.SAMBA_SUBSYSTEM('LIBAFS',
1075                     source=AFS_SRC,
1076                     vars=locals())
1077
1078 bld.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
1079                     source=AFS_SETTOKEN_SRC,
1080                     vars=locals())
1081
1082 bld.SAMBA_SUBSYSTEM('LIBSMBCONF',
1083                     source=LIBSMBCONF_SRC,
1084                     deps='REG_BASE REG_SMBCONF',
1085                     vars=locals())
1086
1087 bld.SAMBA_SUBSYSTEM('SMBD_BASE',
1088                     source=SMBD_SRC_BASE,
1089                     deps='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
1090                     DYNCONFIG libwbclient crypt nsl cups cap resolv ZLIB PASSDB
1091                     PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
1092                     LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
1093                     vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
1094                     PRINTING PRINTBACKEND NDR_XATTR REGFIO
1095                     LIBSMBCONF REG_FULL
1096                     ''',
1097                     vars=locals())
1098
1099 bld.SAMBA_SUBSYSTEM('LOCKING',
1100                     source='${LOCKING_SRC}',
1101                     deps='''tdb talloc''',
1102                     vars=locals())
1103
1104 bld.SAMBA_SUBSYSTEM('PROFILE',
1105                     source='${PROFILE_SRC}',
1106                     vars=locals())
1107
1108 bld.SAMBA_SUBSYSTEM('PRINTBASE',
1109                     source=PRINTBASE_SRC,
1110                     vars=locals())
1111
1112 bld.SAMBA_SUBSYSTEM('PRINTBACKEND',
1113                     source=PRINTBACKEND_SRC,
1114                     deps='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
1115                     vars=locals())
1116
1117 bld.SAMBA_SUBSYSTEM('PRINTING',
1118                     source=PRINTING_SRC,
1119                     vars=locals())
1120
1121 bld.SAMBA_SUBSYSTEM('PASSWD_UTIL',
1122                     source=PASSWD_UTIL_SRC,
1123                     vars=locals())
1124
1125 bld.SAMBA_SUBSYSTEM('LIBNET',
1126                     source=LIBNET_SRC,
1127                     deps='NDR_LIBNET_JOIN',
1128                     vars=locals())
1129
1130 bld.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
1131                     source=LIBNET_DSSYNC_SRC,
1132                     deps='LIBNET',
1133                     vars=locals())
1134
1135 bld.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
1136                     source=LIBNET_SAMSYNC_SRC,
1137                     deps='LIBNET',
1138                     vars=locals())
1139
1140 bld.SAMBA_SUBSYSTEM('LIBEVENTLOG',
1141                     source=LIB_EVENTLOG_SRC,
1142                     deps='NDR_EVENTLOG',
1143                     vars=locals())
1144
1145 bld.SAMBA_SUBSYSTEM('SERVICES',
1146                     source=SERVICES_SRC,
1147                     vars=locals())
1148
1149 bld.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1150                     source=PLAINTEXT_AUTH_SRC,
1151                     vars=locals())
1152
1153 bld.SAMBA_SUBSYSTEM('SLCACHE',
1154                     source=SLCACHE_SRC,
1155                     vars=locals())
1156
1157 bld.SAMBA_SUBSYSTEM('DCUTIL',
1158                     source=DCUTIL_SRC,
1159                     vars=locals())
1160
1161 bld.SAMBA_SUBSYSTEM('LIBNDR',
1162                     source=LIBNDR_SRC,
1163                     vars=locals())
1164
1165 #FIXME
1166 bld.SAMBA_SUBSYSTEM('NDR_STANDARD',
1167                     source='',
1168                     deps='''
1169                     NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
1170                     NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
1171                     NDR_ECHO libsecurity NDR_DNS
1172                     ''',
1173                     public_deps='LIBNDR',
1174                     vars=locals())
1175
1176 #FIXME
1177 bld.SAMBA_SUBSYSTEM('dcerpc', '')
1178
1179 bld.SAMBA_SUBSYSTEM('LZXPRESS',
1180                     deps='replace',
1181                     source='../lib/compression/lzxpress.c')
1182
1183 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
1184                     source='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1185                     deps='LIBNDR',
1186                     vars=locals())
1187
1188 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
1189                     source='../librpc/gen_ndr/ndr_dcerpc.c',
1190                     vars=locals())
1191
1192 bld.SAMBA_SUBSYSTEM('libsamba-errors',
1193         source='../libcli/util/doserr.c libsmb/nterr.c')
1194
1195 bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1196         source='../libcli/nbt/nbtname.c',
1197         deps='talloc',
1198         autoproto='nbtname.h')
1199
1200 bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1201         source='../libcli/ndr_netlogon.c',
1202         public_deps='LIBNDR NDR_SECURITY')
1203
1204 bld.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1205         source='../librpc/gen_ndr/cli_winreg.c',
1206         public_deps='RPC_NDR_WINREG')
1207
1208 bld.SAMBA_SUBSYSTEM('RPCCLI_ECHO',
1209         source='../librpc/gen_ndr/cli_echo.c',
1210         public_deps='RPC_NDR_ECHO')
1211
1212 bld.SAMBA_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
1213         source=RPC_CLIENT_SCHANNEL_SRC,
1214         vars=locals())
1215
1216
1217 ########################## BINARIES #################################
1218
1219 bld.SAMBA_BINARY('smbd/smbd',
1220                  source='${SMBD_SRC_MAIN}',
1221                  deps='''SMBD_BASE''',
1222                  install_path='${SBINDIR}',
1223                  vars=locals())
1224
1225 bld.SAMBA_BINARY('nmbd/nmbd',
1226                  source=NMBD_SRC,
1227                  deps='''talloc tdb tevent ZLIB cap resolv libwbclient dl
1228                  PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1229                  POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1230                  install_path='${SBINDIR}',
1231                  vars=locals())
1232
1233 bld.SAMBA_BINARY('winbindd/winbindd',
1234                  source=WINBINDD_SRC,
1235                  deps='''talloc tdb tevent cap dl ZLIB 
1236                  libwbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1237                  POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1238                  SRV_NDR_WBINT RPCCLI_NDR_WBINT LIBAFS
1239                  LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1240                  ''',
1241                  enabled=bld.env.build_winbind,
1242                  install_path='${SBINDIR}',
1243                  vars=locals())
1244
1245 bld.SAMBA_BINARY('web/swat',
1246                  source=SWAT_SRC,
1247                  deps='''talloc tevent cap LIBS LIBSMB libwbclient PARAM
1248                  LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1249                  LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING''',
1250                  enabled=bld.env.build_swat,
1251                  install_path='${SBINDIR}',
1252                  vars=locals())
1253
1254 bld.SAMBA_BINARY('rpcclient/rpcclient',
1255                  source=RPCCLIENT_SRC,
1256                  deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1257                  PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1258                  LIBADS SMBREADLINE DCUTIL RPCCLI_WINREG RPCCLI_ECHO
1259                  RPC_CLIENT_SCHANNEL''',
1260                  vars=locals())
1261
1262 bld.SAMBA_BINARY('smbclient',
1263                  source=CLIENT_SRC,
1264                  deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1265                  PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN
1266                  LIBMSRPC SMBREADLINE''',
1267                  vars=locals())
1268
1269 bld.SAMBA_BINARY('net',
1270                  source=NET_SRC,
1271                  deps='''talloc tdb libnetapi libaddns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1272                  PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1273                  LOCALE_DIR LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
1274                  LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
1275                  REGFIO NDR_NTPRINTING RPCCLI_WINREG
1276                  RPC_CLIENT_SCHANNEL''',
1277                  vars=locals())
1278
1279 bld.SAMBA_BINARY('profiles',
1280                  source=PROFILES_SRC,
1281                  deps='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD REGFIO''',
1282                  vars=locals())
1283
1284 bld.SAMBA_BINARY('smbspool',
1285                  source=CUPS_SRC,
1286                  deps='''talloc tdb tevent resolv cap libwbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1287                  KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1288                  vars=locals())
1289
1290 bld.SAMBA_BINARY('testparm',
1291                  source=TESTPARM_SRC,
1292                  deps='''talloc tevent ldap cap 
1293                  libwbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1294                  LIBSMB_ERR POPT_SAMBA''',
1295                  vars=locals())
1296
1297 bld.SAMBA_BINARY('smbta-util',
1298                  source=SMBTA_UTIL_SRC,
1299                  deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1300                  LIBSMB_ERR''',
1301                  vars=locals())
1302
1303 bld.SAMBA_BINARY('smbstatus',
1304                  source=STATUS_SRC,
1305                  deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1306                  LIBSMB_ERR LOCKING PROFILE''',
1307                  vars=locals())
1308
1309 bld.SAMBA_BINARY('smbcontrol',
1310                  source=SMBCONTROL_SRC,
1311                  deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA PRINTBASE''',
1312                  vars=locals())
1313
1314 bld.SAMBA_BINARY('smbtree',
1315                  source=SMBTREE_SRC,
1316                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1317                  LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE''',
1318                  vars=locals())
1319
1320 bld.SAMBA_BINARY('smbpasswd',
1321                  source=SMBPASSWD_SRC,
1322                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1323                  LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL''',
1324                  vars=locals())
1325
1326 bld.SAMBA_BINARY('pdbedit',
1327                  source=PDBEDIT_SRC,
1328                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1329                  LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1330                  PASSWD_UTIL LIBCLI_LDAP_NDR''',
1331                  vars=locals())
1332
1333 bld.SAMBA_BINARY('smbget',
1334                  source=SMBGET_SRC,
1335                  deps='''talloc tdb libsmbclient POPT_SAMBA''',
1336                  vars=locals())
1337
1338 bld.SAMBA_BINARY('nmblookup',
1339                  source=NMBLOOKUP_SRC,
1340                  deps='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1341                  vars=locals())
1342
1343 bld.SAMBA_BINARY('smbtorture',
1344                  source=SMBTORTURE_SRC,
1345                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1346                  LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_LSA LIBMSRPC LIBMSRPC_GEN RPCCLI_ECHO''',
1347                  vars=locals())
1348
1349 bld.SAMBA_BINARY('smbconftort',
1350                  source=SMBCONFTORT_SRC,
1351                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1352                  vars=locals())
1353
1354 bld.SAMBA_BINARY('masktest',
1355                  source=MASKTEST_SRC,
1356                  deps='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1357                  ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1358                  vars=locals())
1359
1360 bld.SAMBA_BINARY('msgtest',
1361                  source=MSGTEST_SRC,
1362                  deps='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1363                  vars=locals())
1364
1365 bld.SAMBA_BINARY('smbcacls',
1366                  source=SMBCACLS_SRC,
1367                  deps='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1368                  LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1369                  LIBMSRPC''',
1370                  vars=locals())
1371
1372 bld.SAMBA_BINARY('smbcquotas',
1373                  source=SMBCQUOTAS_SRC,
1374                  deps='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1375                  POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC''',
1376                  vars=locals())
1377
1378 bld.SAMBA_BINARY('eventlogadm',
1379                  source=EVTLOGADM_SRC,
1380                  deps='''talloc tevent cap POPT_SAMBA LIBS PARAM
1381                  LIB_NONSMBD LIBSMB_ERR PASSDB libwbclient LIBEVENTLOG''',
1382                  vars=locals())
1383
1384 bld.SAMBA_BINARY('sharesec',
1385                  source=SHARESEC_SRC,
1386                  deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1387                  vars=locals())
1388
1389 bld.SAMBA_BINARY('locktest',
1390                  source=LOCKTEST_SRC,
1391                  deps='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1392                  ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1393                  vars=locals())
1394
1395 bld.SAMBA_BINARY('nsstest',
1396                  source=NSSTEST_SRC,
1397                  deps='',
1398                  vars=locals())
1399
1400 bld.SAMBA_BINARY('pdbtest',
1401                  source=PDBTEST_SRC,
1402                  deps='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1403                  SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1404                  vars=locals())
1405
1406 bld.SAMBA_BINARY('vfstest',
1407                  source=VFSTEST_SRC,
1408                  deps='''SMBD_BASE SMBREADLINE''',
1409                  vars=locals())
1410
1411 bld.SAMBA_BINARY('smbiconv',
1412                  source=SMBICONV_SRC,
1413                  deps='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1414                  vars=locals())
1415
1416 bld.SAMBA_BINARY('log2pcap',
1417                  source=LOG2PCAP_SRC,
1418                  deps='''talloc popt''',
1419                  vars=locals())
1420
1421 bld.SAMBA_BINARY('locktest2',
1422                  source=LOCKTEST2_SRC,
1423                  deps='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1424                  ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1425                  vars=locals())
1426
1427 bld.SAMBA_BINARY('debug2html',
1428                  source=DEBUG2HTML_SRC,
1429                  deps='''talloc popt''',
1430                  vars=locals())
1431
1432 bld.SAMBA_BINARY('smbfilter',
1433                  source=SMBFILTER_SRC,
1434                  deps='''talloc tevent cap resolv libwbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1435                  NDR_SAMR NDR_LSA''',
1436                  vars=locals())
1437
1438 bld.SAMBA_BINARY('versiontest',
1439                  source='lib/version_test.c ${VERSION_SRC}',
1440                  vars=locals())
1441
1442 bld.SAMBA_BINARY('wbinfo',
1443                  source=WBINFO_SRC,
1444                  deps='''talloc libwbclient tevent cap
1445                  ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1446                  LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1447                  vars=locals())
1448
1449 bld.SAMBA_BINARY('ntlm_auth',
1450                  source=NTLM_AUTH_SRC,
1451                  deps='''tdb talloc cap resolv krb5 k5crypto com_err libwbclient PARAM LIB_NONSMBD
1452                  LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1453                  PASSDB GROUPDB SMBLDAP WBCOMMON LIBINIPARSER LIBADS_SERVER
1454                  NDR_SAMR NDR_LSA NDR_NETLOGON LIBCLI_LDAP_NDR''',
1455                  vars=locals())
1456
1457 bld.SAMBA_BINARY('timelimit',
1458                  source='script/tests/timelimit.c',
1459                  vars=locals())
1460
1461 bld.SAMBA_BINARY('rpc_open_tcp',
1462                  source=RPC_OPEN_TCP_SRC,
1463                  deps='''talloc tdb tevent resolv cap libwbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1464                  LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1465                  vars=locals())
1466
1467 bld.SAMBA_BINARY('test_lp_load',
1468                  source=TEST_LP_LOAD_SRC,
1469                  deps='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1470                  vars=locals())
1471
1472 bld.SAMBA_BINARY('dbwrap_tool',
1473                  source=DBWRAP_TOOL_SRC,
1474                  deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1475                  vars=locals())
1476
1477 bld.SAMBA_BINARY('dbwrap_torture',
1478                  source=DBWRAP_TORTURE_SRC,
1479                  deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1480                  POPT_SAMBA''',
1481                  vars=locals())
1482
1483 bld.SAMBA_BINARY('split_tokens',
1484                  source=SPLIT_TOKENS_SRC,
1485                  deps='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA
1486                  LIBSAMBA''',
1487                  vars=locals())
1488
1489 bld.SAMBA_BINARY('vlp',
1490                  source=VLP_SRC,
1491                  deps='''talloc tdb''',
1492                  vars=locals())
1493
1494 swat_files=recursive_dirlist('../swat', '../swat', '*')
1495 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
1496
1497 ########################## INCLUDES #################################
1498
1499 bld.RECURSE('../lib/socket_wrapper')
1500 bld.RECURSE('../lib/talloc')
1501 bld.RECURSE('../lib/tdb')
1502 bld.RECURSE('../lib/nss_wrapper')
1503 bld.RECURSE('../lib/tevent')
1504 bld.RECURSE('../lib/popt')
1505 bld.RECURSE('../lib/zlib')
1506 bld.RECURSE('../lib/tsocket')
1507 bld.RECURSE('../lib/iniparser/src')
1508 bld.RECURSE('../lib/crypto')
1509 bld.RECURSE('modules')
1510 bld.RECURSE('auth')
1511 bld.RECURSE('passdb')
1512 bld.RECURSE('winbindd')
1513 bld.RECURSE('libgpo/gpext')
1514 bld.RECURSE('pam_smbpass')
1515 bld.RECURSE('rpc_server')
1516
1517 bld.ENFORCE_GROUP_ORDERING()
1518 bld.CHECK_PROJECT_RULES()