s4:samr RPC server - DomainGeneralInformation - never return NULL on the oem name
[Samba.git] / source3 / wscript_build
blob2ae29b03c27d6b9326fb3160e0569ce10d7622cf
1 #!/usr/bin/env python
3 from samba_utils import *
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'''
11 TDB_VALIDATE_SRC = '''lib/tdb_validate.c'''
13 SMBLDAP = bld.env.SMBLDAP or ""
14 SMBLDAPUTIL = bld.env.SMBLDAPUTIL or ""
16 SMBLDAP_SRC = '''${SMBLDAP} ${SMBLDAPUTIL}'''
18 VERSION_SRC = '''lib/version.c'''
20 WBCOMMON_SRC = '../nsswitch/wb_common.c'
22 AFS_SRC = 'lib/afs.c'
24 AFS_SETTOKEN_SRC = 'lib/afs_settoken.c'
26 AVAHI_SRC = 'lib/avahi.c smbd/avahi_register.c'
28 SERVER_MUTEX_SRC = 'lib/server_mutex.c'
30 PASSCHANGE_SRC = '''libsmb/passchange.c'''
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'''
38 COMPRESSION_SRC = '../lib/compression/mszip.c'
40 DRSUAPI_SRC = '''${LIBNDR_DRSUAPI_SRC}
41 ${COMPRESSION_SRC}'''
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'''
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'''
57 LIBCLI_EVENTLOG_SRC = '''
58 ../librpc/gen_ndr/cli_eventlog.c
59 ../librpc/gen_ndr/ndr_eventlog_c.c'''
61 LIBCLI_NTSVCS_SRC = '''
62 ../librpc/gen_ndr/cli_ntsvcs.c
63 ../librpc/gen_ndr/ndr_ntsvcs_c.c'''
65 LIBCLI_DRSUAPI_SRC = '''
66 ../librpc/gen_ndr/cli_drsuapi.c
67 ../librpc/gen_ndr/ndr_drsuapi_c.c'''
69 LIBCLI_DFS_SRC = '''
70 ../librpc/gen_ndr/cli_dfs.c
71 ../librpc/gen_ndr/ndr_dfs_c.c'''
73 LIBCLI_INITSHUTDOWN_SRC = '''
74 ../librpc/gen_ndr/cli_initshutdown.c
75 ../librpc/gen_ndr/ndr_initshutdown_c.c'''
77 LIBCLI_DSSETUP_SRC = '''
78 ../librpc/gen_ndr/cli_dssetup.c
79 ../librpc/gen_ndr/ndr_dssetup_c.c'''
81 LIBCLI_SVCCTL_SRC = '''
82 ../librpc/gen_ndr/cli_svcctl.c
83 ../librpc/gen_ndr/ndr_svcctl_c.c'''
85 LIBCLI_WKSSVC_SRC = '''
86 ../librpc/gen_ndr/cli_wkssvc.c
87 ../librpc/gen_ndr/ndr_wkssvc_c.c'''
89 LIBCLI_SRVSVC_SRC = '''
90 ../librpc/gen_ndr/cli_srvsvc.c
91 ../librpc/gen_ndr/ndr_srvsvc_c.c'''
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'''
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'''
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'''
109 LIBCLI_EPMAPPER_SRC = '''
110 ../librpc/gen_ndr/cli_epmapper.c
111 ../librpc/gen_ndr/ndr_epmapper_c.c'''
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'''
117 LIBREPLACE_SRC = '''${LIBREPLACE_SRCS}'''
119 LIBSAMBAUTIL_SRC = '''${LIBREPLACE_SRC}'''
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'''
134 LIBTEVENT_SRC0 = ''
136 PTHREADPOOL_SRC = ''
138 LIBREPLACE_SRCS = ''
140 ZLIB_SRCS = ''
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'''
178 LIB_DUMMY_SRC = '''lib/dummysmbd.c lib/dummyroot.c'''
179 LIB_NONSMBD_SRC = '''${LIB_DUMMY_SRC}'''
181 POPT_LIB_SRC = '''lib/popt_common.c'''
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'''
186 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
188 LIBADDNS_SRC0 = '''libaddns/dnsrecord.c libaddns/dnsutils.c libaddns/dnssock.c
189 libaddns/dnsgss.c libaddns/dnsmarshall.c'''
190 LIBADDNS_SRC = '''${LIBADDNS_SRC0}'''
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}'''
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'''
206 LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c'''
208 LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
210 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
211 passdb/machine_sid.c'''
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'''
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'''
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'
229 LIBSMB_ERR_SRC0 = '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
231 LIBSMB_ERR_SRC1 = '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
233 LIBSMB_ERR_SRC = '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}'
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'''
244 LIBSAMBA_SRC = '${LIBSMB_SRC0}'
246 LIBCLI_LDAP_MESSAGE_SRC = '''../libcli/ldap/ldap_message.c'''
247 LIBCLI_LDAP_NDR_SRC = '''../libcli/ldap/ldap_ndr.c lib/ldb_compat.c'''
249 CLDAP_SRC = '''libads/cldap.c
250 ../libcli/cldap/cldap.c
251 ../lib/util/idtree.c'''
253 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
255 SCHANNEL_SRC = '''../libcli/auth/credentials.c
256 ../libcli/auth/schannel_sign.c
257 ../libcli/auth/schannel_state_tdb.c'''
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}'''
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}'''
289 # registry-related objects
291 UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
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'''
297 REGFIO_SRC = '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
299 REG_API_REGF_SRC = '''registry/reg_api_regf.c'''
301 REGSRCS_SRC = '''registry/reg_objects.c'''
303 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
305 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
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'''
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}'''
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'''
331 REG_FULL_SRC = '''
332 ${REG_BACKENDS_EXTRA_SRC}
333 ${REG_INIT_FULL_SRC}
334 registry/reg_eventlog.c
335 registry/reg_perfcount.c'''
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'''
344 LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
346 NPA_TSTREAM_SRC = '''../libcli/named_pipe_auth/npa_tstream.c
347 ../librpc/gen_ndr/ndr_named_pipe_auth.c'''
349 RPC_NCACN_NP = '''rpc_server/rpc_ncacn_np.c
350 rpc_server/rpc_handles.c'''
352 RPC_SERVICE = '''rpc_server/rpc_server.c'''
354 RPC_CRYPTO = '''rpc_server/dcesrv_ntlmssp.c
355 rpc_server/dcesrv_gssapi.c
356 rpc_server/dcesrv_spnego.c'''
358 RPC_PIPE_SRC = '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
359 ${RPC_NCACN_NP} ${RPC_SERVICE} ${RPC_CRYPTO}'''
361 RPC_SERVER_SRC = '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC}'''
363 RPC_CLIENT_SCHANNEL_SRC = '''rpc_client/cli_pipe_schannel.c'''
365 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
367 PRIVILEGES_SRC = '''lib/privileges.c'''
369 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
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
379 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
381 PROFILE_SRC = '''profile/profile.c'''
382 PROFILES_SRC = '''utils/profiles.c'''
384 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
385 smbd/oplock_onefs.c'''
387 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c
388 librpc/gen_ndr/ndr_notify.c'''
390 FNAME_UTIL_SRC = '''smbd/filename_util.c'''
393 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
395 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
397 DCUTIL_SRC = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
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'''
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'''
505 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
507 SMBD_SRC_MAIN = '''smbd/server.c smbd/server_exit.c'''
509 BUILDOPT_SRC = '''smbd/build_options.c'''
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}'''
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'''
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'''
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'''
579 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
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'''
594 NMBD_SRC = '${NMBD_SRC1}'
596 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
597 web/swat.c web/neg_lang.c'''
599 SWAT_SRC = '''${SWAT_SRC1}
600 ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}
601 ${LIBCLI_SAMR_SRC}
602 rpc_client/init_lsa.c'''
604 STATUS_SRC = '''utils/status.c utils/status_profile.c
605 ${FNAME_UTIL_SRC}'''
607 SMBCONTROL_SRC = '''utils/smbcontrol.c'''
609 SMBTREE_SRC = '''utils/smbtree.c
610 ${LIBCLI_SRVSVC_SRC}'''
612 TESTPARM_SRC = 'utils/testparm.c'
614 SMBTA_UTIL_SRC = '''utils/smbta-util.c ${FNAME_UTIL_SRC}'''
616 TEST_LP_LOAD_SRC = '''param/test_lp_load.c'''
618 PASSWD_UTIL_SRC = 'utils/passwd_util.c'
620 SMBPASSWD_SRC = '''utils/smbpasswd.c ${PASSCHANGE_SRC}
621 ${LIBCLI_SAMR_SRC}
622 rpc_client/init_lsa.c'''
624 PDBEDIT_SRC = '''utils/pdbedit.c'''
626 SMBGET_SRC = '''utils/smbget.c'''
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'''
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'''
653 PAM_WINBIND_SRC = '../nsswitch/pam_winbind.c ${WBCOMMON_SRC} ${LIBREPLACE_SRC}'
655 LIBSMBCLIENT_THREAD_SRC = '''libsmb/libsmb_thread_impl.c
656 libsmb/libsmb_thread_posix.c'''
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'''
671 LIBSMBCLIENT_SRC1 = '''${LIBSMBCLIENT_SRC0}
672 ${LIBCLI_SRVSVC_SRC}
673 ${LIBCLI_LSA_SRC}'''
675 LIBSMBCLIENT_SRC = '${LIBSMBCLIENT_SRC1}'
677 LIBSMBSHAREMODES_SRC0 = 'libsmb/smb_share_modes.c'
679 LIBSMBSHAREMODES_SRC = '${LIBSMBSHAREMODES_SRC0}'
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'''
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'''
708 # FIXME: bigballofmud
710 CLIENT_SRC1 = '''client/client.c client/clitar.c
711 client/dnsbrowse.c'''
713 CLIENT_SRC = '''${CLIENT_SRC1}
714 ${LIBCLI_SRVSVC_SRC}
715 rpc_client/init_lsa.c'''
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'''
721 SMBCONFTORT_SRC0 = 'lib/smbconf/testsuite.c'
723 SMBCONFTORT_SRC = '''${SMBCONFTORT_SRC0}'''
725 LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c'
728 LIBNET_DSSYNC_SRC = '''libnet/libnet_dssync.c
729 libnet/libnet_dssync_keytab.c
730 ../libcli/drsuapi/repl_decrypt.c'''
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'''
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'''
771 NET_SRC2 = 'utils/net_registry_util.c utils/net_help_common.c'
773 NET_SRC = '''${NET_SRC1}
774 ${NET_SRC2}'''
776 CUPS_SRC = '''client/smbspool.c'''
778 NMBLOOKUP_SRC = '''utils/nmblookup.c ${LIBNMB_SRC}'''
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'''
786 SMBTORTURE_SRC = '''${SMBTORTURE_SRC1} ${TLDAP_SRC}
787 ../nsswitch/libwbclient/wbc_async.c
788 ../nsswitch/libwbclient/wb_reqtrans.c'''
790 MASKTEST_SRC = '''torture/masktest.c'''
792 MSGTEST_SRC = '''torture/msgtest.c'''
794 LOCKTEST_SRC = '''torture/locktest.c ${FNAME_UTIL_SRC}'''
796 NSSTEST_SRC = '''../nsswitch/nsstest.c ${LIBSAMBAUTIL_SRC}'''
798 PDBTEST_SRC = '''torture/pdbtest.c'''
800 VFSTEST_SRC = '''torture/cmd_vfs.c torture/vfstest.c'''
802 SMBICONV_SRC = '''torture/smbiconv.c'''
804 LOG2PCAP_SRC = '''utils/log2pcaphex.c'''
806 LOCKTEST2_SRC = '''torture/locktest2.c ${FNAME_UTIL_SRC}'''
808 SMBCACLS_SRC = '''utils/smbcacls.c
809 ${LIBCLI_LSA_SRC}'''
811 SMBCQUOTAS_SRC = '''utils/smbcquotas.c
812 ${LIBCLI_LSA_SRC}'''
814 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
816 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}
817 registry/reg_eventlog.c'''
819 SHARESEC_SRC0 = 'utils/sharesec.c'
820 SHARESEC_SRC = '''${SHARESEC_SRC0}'''
822 DEBUG2HTML_SRC = '''utils/debug2html.c utils/debugparse.c'''
824 SMBFILTER_SRC = '''utils/smbfilter.c'''
826 WINBIND_WINS_NSS_SRC = '''../nsswitch/wins.c ${PARAM_SRC}
827 ${LIB_NONSMBD_SRC} ${LIBSMB_ERR_SRC} ${LIBNMB_SRC}'''
829 WBINFO_SRC = '''../nsswitch/wbinfo.c'''
831 WINBIND_NSS_SRC = '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
833 WINBIND_KRB5_LOCATOR_SRC1 = '../nsswitch/winbind_krb5_locator.c'
834 WINBIND_KRB5_LOCATOR_SRC = '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
836 POPT_SRC = '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
837 ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
839 NTLM_AUTH_SRC1 = '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
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}'''
847 VLP_SRC = '''printing/tests/vlp.c
848 ../lib/util/util_tdb.c
849 ${LIBSAMBAUTIL_SRC}
850 param/util.c'''
852 RPC_OPEN_TCP_SRC = 'torture/rpc_open_tcp.c'
854 DBWRAP_TOOL_SRC = 'utils/dbwrap_tool.c'
856 DBWRAP_TORTURE_SRC = 'utils/dbwrap_torture.c'
858 SPLIT_TOKENS_SRC = 'utils/split_tokens.c'
860 LIBS='ICONV'
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)}')
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()
876 bld.SETUP_BUILD_GROUPS()
878 bld.SAMBA_MKVERSION('include/version.h')
880 bld.RECURSE('../lib/replace')
881 bld.RECURSE('../libcli/smbreadline')
882 print "SBINDIR=%s" % bld.env.SBINDIR
883 bld.RECURSE('build')
885 bld.RECURSE('../librpc')
886 bld.RECURSE('librpc/idl')
887 bld.RECURSE('librpc')
888 bld.RECURSE('../libcli/security')
890 ######################## SUBSYSTEMS #################################
892 bld.SAMBA_SUBSYSTEM('WBCOMMON',
893 source=WBCOMMON_SRC)
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')
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())
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())
925 bld.SAMBA_LIBRARY('smbsharemodes',
926 source=LIBSMBSHAREMODES_SRC,
927 public_deps='''talloc tdb''',
928 public_headers='include/smb_share_modes.h',
929 private_library=True,
930 vars=locals())
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())
938 bld.SAMBA_SUBSYSTEM('LIBMSRPC',
939 source='${LIBMSRPC_SRC}',
940 deps='ndr NDR_SECURITY NDR_DCERPC NDR_SCHANNEL',
941 vars=locals())
943 bld.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
944 source='',
945 deps='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
946 vars=locals())
948 bld.SAMBA_SUBSYSTEM('LIBGPO',
949 source='${LIBGPO_SRC}',
950 deps='gpext',
951 vars=locals())
953 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
954 source='../lib/util/asn1.c',
955 deps='talloc',
956 local_include=False)
958 bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
959 source=LIBCLI_LDAP_MESSAGE_SRC)
961 bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_NDR',
962 source=LIBCLI_LDAP_NDR_SRC)
964 bld.SAMBA_SUBSYSTEM('AVAHI',
965 source=AVAHI_SRC,
966 deps='avahi-common avahi-client',
967 enabled=bld.env.with_avahi)
969 bld.SAMBA_SUBSYSTEM('GROUPDB',
970 source=GROUPDB_SRC)
972 bld.SAMBA_SUBSYSTEM('TLDAP',
973 source=TLDAP_SRC,
974 deps='ASN1_UTIL LIBTSOCKET')
976 bld.SAMBA_SUBSYSTEM('PASSDB',
977 source=PASSDB_SRC,
978 deps='''GROUPDB TLDAP SECRETS SMBLDAP pdb''',
979 vars=locals())
981 bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
982 source=PARAM_WITHOUT_REG_SRC)
984 bld.SAMBA_SUBSYSTEM('PARAM',
985 source='',
986 deps='PARAM_WITHOUT_REG DYNCONFIG LIBSMBCONF',
987 vars=locals())
989 bld.SAMBA_SUBSYSTEM('REGFIO',
990 source=REGFIO_SRC,
991 vars=locals())
993 bld.SAMBA_SUBSYSTEM('REG_API_REGF',
994 source=REG_API_REGF_SRC,
995 vars=locals())
997 bld.SAMBA_SUBSYSTEM('REG_BASE',
998 source=REG_BASE_SRC,
999 vars=locals())
1001 bld.SAMBA_SUBSYSTEM('REG_SMBCONF',
1002 source=REG_SMBCONF_SRC,
1003 deps='REG_BASE',
1004 vars=locals())
1006 bld.SAMBA_SUBSYSTEM('REG_FULL',
1007 source=REG_FULL_SRC,
1008 deps='REG_SMBCONF',
1009 vars=locals())
1011 bld.SAMBA_SUBSYSTEM('POPT_SAMBA',
1012 source=POPT_LIB_SRC,
1013 vars=locals())
1015 bld.SAMBA_SUBSYSTEM('KRBCLIENT',
1016 source=KRBCLIENT_SRC,
1017 deps='krb5 k5crypto com_err gssapi gssapi_krb5',
1018 vars=locals())
1020 bld.SAMBA_SUBSYSTEM('LIBS',
1021 source=LIB_SRC,
1022 deps='iconv LIBCRYPTO ndr security NDR_SECURITY charset NDR_MESSAGING',
1023 vars=locals())
1025 bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
1026 source=LIB_NONSMBD_SRC,
1027 deps='LIBS',
1028 vars=locals())
1030 bld.SAMBA_SUBSYSTEM('LIBSMB_ERR',
1031 source=LIBSMB_ERR_SRC,
1032 deps='SECRETS ldap lber',
1033 vars=locals())
1035 bld.SAMBA_SUBSYSTEM('LIBSAMBA',
1036 source=LIBSAMBA_SRC,
1037 deps='LIBSMB_ERR NDR_NTLMSSP',
1038 vars=locals())
1040 bld.SAMBA_SUBSYSTEM('LIBSMB',
1041 source=LIBSMB_SRC,
1042 deps='LIBSAMBA ZLIB LZXPRESS CLDAP',
1043 vars=locals())
1045 bld.SAMBA_SUBSYSTEM('CLDAP',
1046 source=CLDAP_SRC,
1047 deps='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
1048 vars=locals())
1050 bld.SAMBA_SUBSYSTEM('SECRETS',
1051 source=SECRETS_SRC,
1052 deps='NDR_SECRETS',
1053 vars=locals())
1055 bld.SAMBA_SUBSYSTEM('SMBLDAP',
1056 source=SMBLDAP_SRC,
1057 deps='ldap lber',
1058 vars=locals())
1060 bld.SAMBA_SUBSYSTEM('LIBADS',
1061 source=LIBADS_SRC,
1062 deps='LIBCLI_LDAP_NDR',
1063 vars=locals())
1065 bld.SAMBA_SUBSYSTEM('LIBADS_SERVER',
1066 source=LIBADS_SERVER_SRC,
1067 deps='NDR_KRB5PAC',
1068 vars=locals())
1070 bld.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
1071 source=LIBADS_PRINTER_SRC,
1072 vars=locals())
1074 bld.SAMBA_SUBSYSTEM('LIBAFS',
1075 source=AFS_SRC,
1076 vars=locals())
1078 bld.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
1079 source=AFS_SETTOKEN_SRC,
1080 vars=locals())
1082 bld.SAMBA_SUBSYSTEM('LIBSMBCONF',
1083 source=LIBSMBCONF_SRC,
1084 deps='REG_BASE REG_SMBCONF',
1085 vars=locals())
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())
1099 bld.SAMBA_SUBSYSTEM('LOCKING',
1100 source='${LOCKING_SRC}',
1101 deps='''tdb talloc''',
1102 vars=locals())
1104 bld.SAMBA_SUBSYSTEM('PROFILE',
1105 source='${PROFILE_SRC}',
1106 vars=locals())
1108 bld.SAMBA_SUBSYSTEM('PRINTBASE',
1109 source=PRINTBASE_SRC,
1110 vars=locals())
1112 bld.SAMBA_SUBSYSTEM('PRINTBACKEND',
1113 source=PRINTBACKEND_SRC,
1114 deps='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
1115 vars=locals())
1117 bld.SAMBA_SUBSYSTEM('PRINTING',
1118 source=PRINTING_SRC,
1119 vars=locals())
1121 bld.SAMBA_SUBSYSTEM('PASSWD_UTIL',
1122 source=PASSWD_UTIL_SRC,
1123 vars=locals())
1125 bld.SAMBA_SUBSYSTEM('LIBNET',
1126 source=LIBNET_SRC,
1127 deps='NDR_LIBNET_JOIN',
1128 vars=locals())
1130 bld.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
1131 source=LIBNET_DSSYNC_SRC,
1132 deps='LIBNET',
1133 vars=locals())
1135 bld.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
1136 source=LIBNET_SAMSYNC_SRC,
1137 deps='LIBNET',
1138 vars=locals())
1140 bld.SAMBA_SUBSYSTEM('LIBEVENTLOG',
1141 source=LIB_EVENTLOG_SRC,
1142 deps='NDR_EVENTLOG',
1143 vars=locals())
1145 bld.SAMBA_SUBSYSTEM('SERVICES',
1146 source=SERVICES_SRC,
1147 vars=locals())
1149 bld.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1150 source=PLAINTEXT_AUTH_SRC,
1151 vars=locals())
1153 bld.SAMBA_SUBSYSTEM('SLCACHE',
1154 source=SLCACHE_SRC,
1155 vars=locals())
1157 bld.SAMBA_SUBSYSTEM('DCUTIL',
1158 source=DCUTIL_SRC,
1159 vars=locals())
1161 bld.SAMBA_SUBSYSTEM('ndr',
1162 source=LIBNDR_SRC,
1163 vars=locals())
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 security NDR_DNS
1172 ''',
1173 vars=locals())
1175 #FIXME
1176 bld.SAMBA_SUBSYSTEM('dcerpc', '')
1178 bld.SAMBA_SUBSYSTEM('LZXPRESS',
1179 deps='replace',
1180 source='../lib/compression/lzxpress.c')
1182 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
1183 source='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1184 deps='ndr',
1185 vars=locals())
1187 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
1188 source='../librpc/gen_ndr/ndr_dcerpc.c',
1189 vars=locals())
1191 bld.SAMBA_SUBSYSTEM('errors',
1192 source='../libcli/util/doserr.c libsmb/nterr.c')
1194 bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1195 source='../libcli/nbt/nbtname.c',
1196 deps='talloc',
1197 autoproto='nbtname.h')
1199 bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1200 source='../libcli/ndr_netlogon.c',
1201 public_deps='ndr NDR_SECURITY')
1203 bld.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1204 source='../librpc/gen_ndr/cli_winreg.c',
1205 public_deps='RPC_NDR_WINREG')
1207 bld.SAMBA_SUBSYSTEM('RPCCLI_ECHO',
1208 source='../librpc/gen_ndr/cli_echo.c',
1209 public_deps='RPC_NDR_ECHO')
1211 bld.SAMBA_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
1212 source=RPC_CLIENT_SCHANNEL_SRC,
1213 vars=locals())
1216 ########################## BINARIES #################################
1218 bld.SAMBA_BINARY('smbd/smbd',
1219 source='${SMBD_SRC_MAIN}',
1220 deps='''SMBD_BASE''',
1221 install_path='${SBINDIR}',
1222 vars=locals())
1224 bld.SAMBA_BINARY('nmbd/nmbd',
1225 source=NMBD_SRC,
1226 deps='''talloc tdb tevent ZLIB cap resolv libwbclient dl
1227 PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1228 POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1229 install_path='${SBINDIR}',
1230 vars=locals())
1232 bld.SAMBA_BINARY('winbindd/winbindd',
1233 source=WINBINDD_SRC,
1234 deps='''talloc tdb tevent cap dl ZLIB
1235 libwbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1236 POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1237 SRV_NDR_WBINT RPCCLI_NDR_WBINT LIBAFS
1238 LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1239 ''',
1240 enabled=bld.env.build_winbind,
1241 install_path='${SBINDIR}',
1242 vars=locals())
1244 bld.SAMBA_BINARY('web/swat',
1245 source=SWAT_SRC,
1246 deps='''talloc tevent cap LIBS LIBSMB libwbclient PARAM
1247 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1248 LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING''',
1249 enabled=bld.env.build_swat,
1250 install_path='${SBINDIR}',
1251 vars=locals())
1253 bld.SAMBA_BINARY('rpcclient/rpcclient',
1254 source=RPCCLIENT_SRC,
1255 deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1256 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1257 LIBADS SMBREADLINE DCUTIL RPCCLI_WINREG RPCCLI_ECHO
1258 RPC_CLIENT_SCHANNEL''',
1259 vars=locals())
1261 bld.SAMBA_BINARY('smbclient',
1262 source=CLIENT_SRC,
1263 deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1264 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN
1265 LIBMSRPC SMBREADLINE libsmbclient''',
1266 vars=locals())
1268 bld.SAMBA_BINARY('net',
1269 source=NET_SRC,
1270 deps='''talloc tdb libnetapi libaddns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1271 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1272 LOCALE_DIR LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
1273 LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
1274 REGFIO NDR_NTPRINTING RPCCLI_WINREG
1275 RPC_CLIENT_SCHANNEL''',
1276 vars=locals())
1278 bld.SAMBA_BINARY('profiles',
1279 source=PROFILES_SRC,
1280 deps='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD REGFIO''',
1281 vars=locals())
1283 bld.SAMBA_BINARY('smbspool',
1284 source=CUPS_SRC,
1285 deps='''talloc tdb tevent resolv cap libwbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1286 KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1287 vars=locals())
1289 bld.SAMBA_BINARY('testparm',
1290 source=TESTPARM_SRC,
1291 deps='''talloc tevent ldap cap
1292 libwbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1293 LIBSMB_ERR POPT_SAMBA''',
1294 vars=locals())
1296 bld.SAMBA_BINARY('smbta-util',
1297 source=SMBTA_UTIL_SRC,
1298 deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1299 LIBSMB_ERR''',
1300 vars=locals())
1302 bld.SAMBA_BINARY('smbstatus',
1303 source=STATUS_SRC,
1304 deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1305 LIBSMB_ERR LOCKING PROFILE''',
1306 vars=locals())
1308 bld.SAMBA_BINARY('smbcontrol',
1309 source=SMBCONTROL_SRC,
1310 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA PRINTBASE''',
1311 vars=locals())
1313 bld.SAMBA_BINARY('smbtree',
1314 source=SMBTREE_SRC,
1315 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1316 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE''',
1317 vars=locals())
1319 bld.SAMBA_BINARY('smbpasswd',
1320 source=SMBPASSWD_SRC,
1321 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1322 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL''',
1323 vars=locals())
1325 bld.SAMBA_BINARY('pdbedit',
1326 source=PDBEDIT_SRC,
1327 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1328 LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1329 PASSWD_UTIL LIBCLI_LDAP_NDR''',
1330 vars=locals())
1332 bld.SAMBA_BINARY('smbget',
1333 source=SMBGET_SRC,
1334 deps='''talloc tdb libsmbclient POPT_SAMBA''',
1335 vars=locals())
1337 bld.SAMBA_BINARY('nmblookup',
1338 source=NMBLOOKUP_SRC,
1339 deps='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1340 vars=locals())
1342 bld.SAMBA_BINARY('smbtorture',
1343 source=SMBTORTURE_SRC,
1344 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1345 LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_LSA LIBMSRPC LIBMSRPC_GEN RPCCLI_ECHO''',
1346 vars=locals())
1348 bld.SAMBA_BINARY('smbconftort',
1349 source=SMBCONFTORT_SRC,
1350 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1351 vars=locals())
1353 bld.SAMBA_BINARY('masktest',
1354 source=MASKTEST_SRC,
1355 deps='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1356 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1357 vars=locals())
1359 bld.SAMBA_BINARY('msgtest',
1360 source=MSGTEST_SRC,
1361 deps='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1362 vars=locals())
1364 bld.SAMBA_BINARY('smbcacls',
1365 source=SMBCACLS_SRC,
1366 deps='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1367 LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1368 LIBMSRPC''',
1369 vars=locals())
1371 bld.SAMBA_BINARY('smbcquotas',
1372 source=SMBCQUOTAS_SRC,
1373 deps='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1374 POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC''',
1375 vars=locals())
1377 bld.SAMBA_BINARY('eventlogadm',
1378 source=EVTLOGADM_SRC,
1379 deps='''talloc tevent cap POPT_SAMBA LIBS PARAM
1380 LIB_NONSMBD LIBSMB_ERR PASSDB libwbclient LIBEVENTLOG''',
1381 vars=locals())
1383 bld.SAMBA_BINARY('sharesec',
1384 source=SHARESEC_SRC,
1385 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1386 vars=locals())
1388 bld.SAMBA_BINARY('locktest',
1389 source=LOCKTEST_SRC,
1390 deps='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1391 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1392 vars=locals())
1394 bld.SAMBA_BINARY('nsstest',
1395 source=NSSTEST_SRC,
1396 deps='',
1397 vars=locals())
1399 bld.SAMBA_BINARY('pdbtest',
1400 source=PDBTEST_SRC,
1401 deps='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1402 SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1403 vars=locals())
1405 bld.SAMBA_BINARY('vfstest',
1406 source=VFSTEST_SRC,
1407 deps='''SMBD_BASE SMBREADLINE''',
1408 vars=locals())
1410 bld.SAMBA_BINARY('smbiconv',
1411 source=SMBICONV_SRC,
1412 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1413 vars=locals())
1415 bld.SAMBA_BINARY('log2pcap',
1416 source=LOG2PCAP_SRC,
1417 deps='''talloc popt''',
1418 vars=locals())
1420 bld.SAMBA_BINARY('locktest2',
1421 source=LOCKTEST2_SRC,
1422 deps='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1423 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1424 vars=locals())
1426 bld.SAMBA_BINARY('debug2html',
1427 source=DEBUG2HTML_SRC,
1428 deps='''talloc popt''',
1429 vars=locals())
1431 bld.SAMBA_BINARY('smbfilter',
1432 source=SMBFILTER_SRC,
1433 deps='''talloc tevent cap resolv libwbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1434 NDR_SAMR NDR_LSA''',
1435 vars=locals())
1437 bld.SAMBA_BINARY('versiontest',
1438 source='lib/version_test.c ${VERSION_SRC}',
1439 vars=locals())
1441 bld.SAMBA_BINARY('wbinfo',
1442 source=WBINFO_SRC,
1443 deps='''talloc libwbclient tevent cap
1444 ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1445 LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1446 vars=locals())
1448 bld.SAMBA_BINARY('ntlm_auth',
1449 source=NTLM_AUTH_SRC,
1450 deps='''tdb talloc cap resolv krb5 k5crypto com_err libwbclient PARAM LIB_NONSMBD
1451 LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1452 PASSDB GROUPDB SMBLDAP WBCOMMON LIBINIPARSER LIBADS_SERVER
1453 NDR_SAMR NDR_LSA NDR_NETLOGON LIBCLI_LDAP_NDR''',
1454 vars=locals())
1456 bld.SAMBA_BINARY('timelimit',
1457 source='script/tests/timelimit.c',
1458 vars=locals())
1460 bld.SAMBA_BINARY('rpc_open_tcp',
1461 source=RPC_OPEN_TCP_SRC,
1462 deps='''talloc tdb tevent resolv cap libwbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1463 LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1464 vars=locals())
1466 bld.SAMBA_BINARY('test_lp_load',
1467 source=TEST_LP_LOAD_SRC,
1468 deps='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1469 vars=locals())
1471 bld.SAMBA_BINARY('dbwrap_tool',
1472 source=DBWRAP_TOOL_SRC,
1473 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1474 vars=locals())
1476 bld.SAMBA_BINARY('dbwrap_torture',
1477 source=DBWRAP_TORTURE_SRC,
1478 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1479 POPT_SAMBA''',
1480 vars=locals())
1482 bld.SAMBA_BINARY('split_tokens',
1483 source=SPLIT_TOKENS_SRC,
1484 deps='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA
1485 LIBSAMBA''',
1486 vars=locals())
1488 bld.SAMBA_BINARY('vlp',
1489 source=VLP_SRC,
1490 deps='''talloc tdb''',
1491 vars=locals())
1493 swat_files=recursive_dirlist('../swat', '../swat', '*')
1494 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
1496 ########################## INCLUDES #################################
1498 bld.RECURSE('../lib/socket_wrapper')
1499 bld.RECURSE('../lib/talloc')
1500 bld.RECURSE('../lib/tdb')
1501 bld.RECURSE('../lib/nss_wrapper')
1502 bld.RECURSE('../lib/tevent')
1503 bld.RECURSE('../lib/popt')
1504 bld.RECURSE('../lib/zlib')
1505 bld.RECURSE('../lib/tsocket')
1506 bld.RECURSE('../lib/iniparser/src')
1507 bld.RECURSE('../lib/crypto')
1508 bld.RECURSE('modules')
1509 bld.RECURSE('auth')
1510 bld.RECURSE('passdb')
1511 bld.RECURSE('winbindd')
1512 bld.RECURSE('libgpo/gpext')
1513 bld.RECURSE('pam_smbpass')
1514 bld.RECURSE('rpc_server')
1516 bld.ENFORCE_GROUP_ORDERING()
1517 bld.CHECK_PROJECT_RULES()