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