lib/replace: split out GSSAPI from lib/replace/system/kerberos.h into lib/replace...
[sfrench/samba-autobuild/.git] / source3 / wscript_build
1 #!/usr/bin/env python
2
3 from samba_utils import *
4 import samba_version, samba3
5
6 TDB_LIB_SRC = '''
7           lib/dbwrap/dbwrap_open.c
8           lib/dbwrap/dbwrap_ctdb.c
9           lib/dbwrap/dbwrap_watch.c
10           lib/g_lock.c'''
11
12 TDB_VALIDATE_SRC = '''lib/tdb_validate.c'''
13
14 SMBLDAP_SRC = '''lib/smbldap.c'''
15
16 VERSION_SRC = '''lib/version.c'''
17
18 AFS_SRC = 'lib/afs.c'
19
20 AFS_SETTOKEN_SRC = 'lib/afs_settoken.c'
21
22 AVAHI_SRC = 'lib/avahi.c smbd/avahi_register.c'
23
24 SERVER_MUTEX_SRC = 'lib/server_mutex.c'
25
26 PASSCHANGE_SRC = '''libsmb/passchange.c'''
27
28 LIBCLI_SPOOLSS_SRC = '''rpc_client/cli_spoolss.c
29                      rpc_client/init_spoolss.c'''
30
31 LIBCLI_LSA_SRC = '''rpc_client/cli_lsarpc.c'''
32
33 LIBCLI_SAMR_SRC = 'rpc_client/cli_samr.c'
34
35 LIBCLI_NETLOGON_SRC = 'rpc_client/cli_netlogon.c rpc_client/util_netlogon.c'
36
37 # this includes only the low level parse code, not stuff
38 # that requires knowledge of security contexts
39 REG_PARSE_PRS_SRC = '''registry/reg_parse_prs.c'''
40
41 LIB_SRC = '''
42           lib/messages.c lib/messages_local.c
43           lib/messages_ctdbd.c lib/ctdb_packet.c lib/ctdbd_conn.c
44           lib/ctdb_conn.c
45           lib/msg_channel.c
46           lib/id_cache.c
47           lib/talloc_dict.c
48           lib/serverid.c
49           lib/addrchange.c
50           ${TDB_LIB_SRC}
51           ../lib/util/debug_s3.c
52           lib/dumpcore.c
53           lib/interface.c
54           lib/username.c
55           lib/access.c lib/smbrun.c
56           lib/wins_srv.c
57           lib/substitute.c lib/substitute_generic.c
58           lib/ms_fnmatch.c
59           lib/tallocmsg.c lib/dmallocmsg.c
60           intl/lang_tdb.c
61           lib/conn_tdb.c lib/gencache.c
62           lib/sessionid_tdb.c
63           lib/events.c
64           lib/server_contexts.c
65           lib/server_prefork.c
66           lib/server_prefork_util.c
67           lib/ldap_escape.c
68           lib/fncall.c
69           libads/krb5_errs.c lib/system_smbd.c lib/audit.c
70           lib/idmap_cache.c'''
71
72 LIB_UTIL_SRC = '''
73                lib/system.c
74                lib/sendfile.c
75                lib/recvfile.c
76                lib/time.c
77                lib/util_sid.c
78                lib/util_file.c
79                lib/util.c
80                lib/util_sock.c
81                lib/util_transfer_file.c
82                lib/sock_exec.c'''
83
84 POPT_LIB_SRC = '''lib/popt_common.c'''
85
86 PARAM_UTIL_SRC = '''param/util.c'''
87
88 PARAM_WITHOUT_REG_SRC = '''param/loadparm.c
89                            lib/sharesec.c lib/ldap_debug_handler.c lib/util_names.c'''
90
91 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
92
93 LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
94               ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
95               libgpo/gpo_reg.c'''
96 LIBGPO_SRC = '''${LIBGPO_SRC0}'''
97
98 LIBADS_SRC = '''libads/ldap.c
99              libads/sasl.c libads/sasl_wrapping.c
100              libads/krb5_setpw.c
101              libads/kerberos_util.c
102              libads/ldap_user.c
103              libads/ads_struct.c libads/kerberos_keytab.c
104              libads/disp_sec.c libads/ldap_utils.c
105              libads/ldap_schema.c libads/util.c libads/ndr.c'''
106
107 LIBADS_SERVER_SRC = '''libads/authdata.c'''
108
109 LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
110
111 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
112                  passdb/machine_sid.c passdb/secrets_lsa.c'''
113
114 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
115              libsmb/namequery.c libsmb/conncache.c
116              libads/dns.c libads/sitename_cache.c'''
117
118 LIBNTLMSSP_SRC = '''
119                libsmb/ntlmssp.c
120                libsmb/ntlmssp_wrap.c'''
121
122 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
123
124 LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
125              libsmb/clispnego.c
126              libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
127              libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
128              libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
129              libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
130              libsmb/clioplock.c libsmb/clirap2.c
131              libsmb/async_smb.c
132              libsmb/clisigning.c
133              libsmb/smb2cli_session.c
134              libsmb/smb2cli_tcon.c
135              libsmb/smb2cli_create.c
136              libsmb/smb2cli_close.c
137              libsmb/smb2cli_flush.c
138              libsmb/smb2cli_read.c
139              libsmb/smb2cli_write.c
140              libsmb/smb2cli_query_directory.c
141              libsmb/cli_np_tstream.c
142              libsmb/reparse_symlink.c
143              libsmb/clisymlink.c
144              libsmb/smbsock_connect.c'''
145
146 LIBMSRPC_SRC = '''
147                rpc_client/cli_pipe.c
148                librpc/rpc/rpc_common.c
149                rpc_client/rpc_transport_np.c
150                rpc_client/rpc_transport_sock.c
151                rpc_client/rpc_transport_tstream.c
152                librpc/rpc/dcerpc_helpers.c
153                '''
154
155 #
156 # registry-related objects
157 #
158
159 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
160 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
161 REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
162
163 REGFIO_SRC = '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
164
165 REG_API_REGF_SRC = '''registry/reg_api_regf.c'''
166
167 REGSRCS_SRC = '''registry/reg_objects.c'''
168
169 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
170
171 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
172
173 REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
174                          registry/reg_backend_shares.c
175                          registry/reg_backend_netlogon_params.c
176                          registry/reg_backend_prod_options.c
177                          registry/reg_backend_tcpip_params.c
178                          registry/reg_backend_hkpt_params.c
179                          registry/reg_backend_current_version.c
180                          registry/reg_backend_perflib.c'''
181
182 REG_BASE_SRC = '''registry/reg_api.c
183                registry/reg_dispatcher.c
184                registry/reg_cachehook.c
185                ${REGSRCS_SRC}
186                registry/reg_util_internal.c
187                lib/util_nttoken.c
188                ${REG_BACKENDS_BASE_SRC}
189                registry/reg_parse_internal.c
190                lib/cbuf.c
191                lib/srprs.c
192                ${REG_INIT_BASIC_SRC}'''
193
194 REG_SMBCONF_SRC = '''
195                   ${REG_BACKENDS_SMBCONF_SRC}
196                   ${REG_INIT_SMBCONF_SRC}
197                   registry/reg_util_token.c
198                   registry/reg_api_util.c'''
199
200 REG_FULL_SRC = '''
201                ${REG_BACKENDS_EXTRA_SRC}
202                ${REG_INIT_FULL_SRC}
203                registry/reg_perfcount.c'''
204
205 SERVICES_SRC = '''services/svc_spoolss.c
206                   services/svc_rcinit.c
207                   services/svc_winreg_glue.c
208                   services/svc_netlogon.c
209                   services/svc_winreg.c
210                   services/svc_wins.c'''
211
212 LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
213
214 RPC_CLIENT_SCHANNEL_SRC = '''rpc_client/cli_pipe_schannel.c'''
215
216 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c locking/share_mode_lock.c'''
217
218 PRIVILEGES_SRC = '''lib/privileges.c'''
219
220 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
221
222 PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c
223                 lib/util_wellknown.c lib/util_builtin.c passdb/pdb_compat.c
224                 lib/util_unixsids.c passdb/lookup_sid.c
225                 passdb/login_cache.c
226                 passdb/account_pol.c ${PRIVILEGES_SRC}
227                 lib/util_nscd.c lib/winbind_util.c
228                 passdb/pdb_util.c passdb/pdb_interface.c
229                 passdb/pdb_ldap_schema.c
230                 passdb/pdb_secrets.c'''
231 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
232
233 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
234
235 PROFILE_SRC = '''profile/profile.c'''
236 PROFILES_SRC = '''utils/profiles.c'''
237
238 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
239              smbd/oplock_onefs.c'''
240
241 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
242
243 FNAME_UTIL_SRC = '''lib/filename_util.c'''
244
245
246 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
247
248 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
249
250 DCUTIL_SRC  = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/dsgetdcname.c'''
251
252 WINBINDD_SRC1 = '''winbindd/winbindd.c
253                    winbindd/winbindd_group.c
254                    winbindd/winbindd_util.c
255                    winbindd/winbindd_cache.c
256                    winbindd/winbindd_pam.c
257                    winbindd/winbindd_misc.c
258                    winbindd/winbindd_cm.c
259                    winbindd/winbindd_wins_byip.c
260                    winbindd/winbindd_wins_byname.c
261                    winbindd/winbindd_msrpc.c
262                    winbindd/winbindd_rpc.c
263                    winbindd/winbindd_reconnect.c
264                    winbindd/winbindd_ads.c
265                    winbindd/winbindd_samr.c
266                    winbindd/winbindd_dual.c
267                    winbindd/winbindd_dual_ndr.c
268                    winbindd/winbindd_dual_srv.c
269                    winbindd/winbindd_async.c
270                    winbindd/winbindd_creds.c
271                    winbindd/winbindd_cred_cache.c
272                    winbindd/winbindd_ccache_access.c
273                    winbindd/winbindd_domain.c
274                    winbindd/winbindd_idmap.c
275                    winbindd/winbindd_locator.c
276                    winbindd/winbindd_ndr.c
277                    winbindd/wb_ping.c
278                    winbindd/wb_lookupsid.c
279                    winbindd/wb_lookupsids.c
280                    winbindd/wb_lookupname.c
281                    winbindd/wb_sid2uid.c
282                    winbindd/wb_sid2gid.c
283                    winbindd/wb_uid2sid.c
284                    winbindd/wb_gid2sid.c
285                    winbindd/wb_queryuser.c
286                    winbindd/wb_lookupuseraliases.c
287                    winbindd/wb_lookupusergroups.c
288                    winbindd/wb_getpwsid.c
289                    winbindd/wb_gettoken.c
290                    winbindd/wb_seqnum.c
291                    winbindd/wb_seqnums.c
292                    winbindd/wb_group_members.c
293                    winbindd/wb_getgrsid.c
294                    winbindd/wb_query_user_list.c
295                    winbindd/wb_fill_pwent.c
296                    winbindd/wb_next_pwent.c
297                    winbindd/wb_next_grent.c
298                    winbindd/wb_dsgetdcname.c
299                    winbindd/winbindd_lookupsid.c
300                    winbindd/winbindd_lookupsids.c
301                    winbindd/winbindd_lookupname.c
302                    winbindd/winbindd_sid_to_uid.c
303                    winbindd/winbindd_sid_to_gid.c
304                    winbindd/winbindd_uid_to_sid.c
305                    winbindd/winbindd_gid_to_sid.c
306                    winbindd/winbindd_sids_to_xids.c
307                    winbindd/winbindd_allocate_uid.c
308                    winbindd/winbindd_allocate_gid.c
309                    winbindd/winbindd_getpwsid.c
310                    winbindd/winbindd_getpwnam.c
311                    winbindd/winbindd_getpwuid.c
312                    winbindd/winbindd_getsidaliases.c
313                    winbindd/winbindd_getuserdomgroups.c
314                    winbindd/winbindd_getgroups.c
315                    winbindd/winbindd_show_sequence.c
316                    winbindd/winbindd_getgrgid.c
317                    winbindd/winbindd_getgrnam.c
318                    winbindd/winbindd_getusersids.c
319                    winbindd/winbindd_lookuprids.c
320                    winbindd/winbindd_setpwent.c
321                    winbindd/winbindd_getpwent.c
322                    winbindd/winbindd_endpwent.c
323                    winbindd/winbindd_setgrent.c
324                    winbindd/winbindd_getgrent.c
325                    winbindd/winbindd_endgrent.c
326                    winbindd/winbindd_dsgetdcname.c
327                    winbindd/winbindd_getdcname.c
328                    winbindd/winbindd_list_users.c
329                    winbindd/winbindd_list_groups.c
330                    winbindd/winbindd_check_machine_acct.c
331                    winbindd/winbindd_change_machine_acct.c
332                    winbindd/winbindd_ping_dc.c
333                    winbindd/winbindd_pam_auth.c
334                    winbindd/winbindd_pam_logoff.c
335                    winbindd/winbindd_pam_chauthtok.c
336                    winbindd/winbindd_pam_auth_crap.c
337                    winbindd/winbindd_pam_chng_pswd_auth_crap.c'''
338
339 WINBINDD_SRC = '''${WINBINDD_SRC1}
340                   ${TDB_VALIDATE_SRC}'''
341
342 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
343
344 SMBD_SRC_MAIN = '''smbd/server.c'''
345
346 BUILDOPT_SRC = '''smbd/build_options.c'''
347
348 SMBD_SRC_SRV = '''smbd/server_reload.c smbd/files.c smbd/connection.c
349                smbd/utmp.c smbd/session.c
350                smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn_msg.c
351                smbd/conn_idle.c
352                smbd/share_access.c smbd/fileio.c
353                smbd/ipc.c smbd/lanman.c smbd/negprot.c
354                smbd/message.c smbd/nttrans.c smbd/pipes.c
355                smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
356                smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
357                smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
358                smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
359                smbd/posix_acls.c lib/sysacls.c
360                smbd/process.c smbd/service.c smbd/error.c
361                printing/printspoolss.c printing/spoolssd.c
362                lib/sysquotas.c lib/sysquotas_linux.c
363                lib/sysquotas_xfs.c lib/sysquotas_4A.c
364                lib/sysquotas_nfs.c
365                lib/background.c
366                smbd/fake_file.c
367                smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
368                smbd/aio.c smbd/statvfs.c
369                smbd/dmapi.c smbd/signing.c
370                smbd/file_access.c
371                smbd/dnsregister.c smbd/globals.c
372                smbd/smb2_server.c
373                smbd/smb2_glue.c
374                smbd/smb2_negprot.c
375                smbd/smb2_sesssetup.c
376                smbd/smb2_tcon.c
377                smbd/smb2_create.c
378                smbd/smb2_close.c
379                smbd/smb2_flush.c
380                smbd/smb2_read.c
381                smbd/smb2_write.c
382                smbd/smb2_lock.c
383                smbd/smb2_ioctl.c
384                smbd/smb2_keepalive.c
385                smbd/smb2_find.c
386                smbd/smb2_notify.c
387                smbd/smb2_getinfo.c
388                smbd/smb2_setinfo.c
389                smbd/smb2_break.c
390                smbd/server_exit.c
391                ${MANGLE_SRC}'''
392
393 SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
394                 ${OPLOCK_SRC} ${NOTIFY_SRC}
395                 ${BUILDOPT_SRC}'''
396
397 PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
398                printing/print_cups.c printing/print_generic.c
399                printing/lpq_parse.c printing/load.c printing/print_standard.c
400                printing/print_iprint.c printing/printer_list.c'''
401
402 PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
403 PRINTBACKEND_SRC = '''printing/printing.c
404                       printing/nt_printing.c
405                       printing/nt_printing_tdb.c
406                       printing/nt_printing_migrate_internal.c
407                       printing/nt_printing_ads.c
408                       printing/queue_process.c'''
409
410 NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
411             nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
412             nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
413             nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
414             nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
415             nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
416             nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
417             nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
418             nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
419             nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
420             nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
421             nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
422
423 NMBD_SRC = '${NMBD_SRC1}'
424
425 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
426                web/swat.c web/neg_lang.c'''
427
428 SWAT_SRC = '''${SWAT_SRC1}'''
429
430 STATUS_SRC = '''utils/status.c utils/status_profile.c smbd/notify_internal.c'''
431
432 SMBCONTROL_SRC = '''utils/smbcontrol.c'''
433
434 SMBTREE_SRC = '''utils/smbtree.c'''
435
436 TESTPARM_SRC = 'utils/testparm.c'
437
438 SMBTA_UTIL_SRC = '''utils/smbta-util.c'''
439
440 TEST_LP_LOAD_SRC = '''param/test_lp_load.c'''
441
442 PASSWD_UTIL_SRC = 'utils/passwd_util.c'
443
444 SMBPASSWD_SRC = '''utils/smbpasswd.c'''
445
446 PDBEDIT_SRC = '''utils/pdbedit.c'''
447
448 SMBGET_SRC = '''utils/smbget.c'''
449
450 RPCCLIENT_SRC1 = '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
451                     rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
452                     rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
453                     rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
454                     rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
455                     rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
456                     rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
457                     rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
458                     rpcclient/cmd_winreg.c'''
459
460 RPCCLIENT_SRC = '''${RPCCLIENT_SRC1}'''
461
462 LIBSMBCLIENT_THREAD_SRC = '''libsmb/libsmb_thread_impl.c
463                         libsmb/libsmb_thread_posix.c'''
464
465 LIBSMBSHAREMODES_SRC0 = 'libsmb/smb_share_modes.c'
466
467 LIBSMBSHAREMODES_SRC = '${LIBSMBSHAREMODES_SRC0}'
468
469 LIBNETAPI_SRC0 = '''lib/netapi/netapi.c
470                     lib/netapi/cm.c
471                     lib/netapi/libnetapi.c
472                     lib/netapi/joindomain.c
473                     lib/netapi/serverinfo.c
474                     lib/netapi/getdc.c
475                     lib/netapi/user.c
476                     lib/netapi/group.c
477                     lib/netapi/localgroup.c
478                     lib/netapi/samr.c
479                     lib/netapi/sid.c
480                     lib/netapi/share.c
481                     lib/netapi/file.c
482                     lib/netapi/shutdown.c
483                     lib/netapi/netlogon.c'''
484
485 LIBNETAPI_SRC = '''${LIBNETAPI_SRC0}'''
486
487 CLIENT_SRC = '''
488              client/client.c
489              client/clitar.c
490              client/dnsbrowse.c'''
491
492 LIB_SMBCONF_SRC = 'lib/smbconf/smbconf_init.c lib/smbconf/smbconf_reg.c'
493
494 SMBCONFTORT_SRC0 = 'lib/smbconf/testsuite.c'
495
496 SMBCONFTORT_SRC = '''${SMBCONFTORT_SRC0}'''
497
498 LIBNET_SRC = 'libnet/libnet_join.c'
499
500
501 LIBNET_DSSYNC_SRC = '''libnet/libnet_dssync.c
502                        libnet/libnet_dssync_passdb.c
503                        libnet/libnet_dssync_keytab.c'''
504
505 LIBNET_SAMSYNC_SRC = '''libnet/libnet_samsync.c
506                         libnet/libnet_samsync_ldif.c
507                         libnet/libnet_samsync_passdb.c
508                         libnet/libnet_samsync_display.c
509                         libnet/libnet_samsync_keytab.c'''
510
511 NET_SRC1 = '''utils/net.c utils/net_ads.c utils/net_help.c
512               utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
513               utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
514               utils/net_cache.c utils/net_groupmap.c
515               utils/net_idmap.c utils/net_idmap_check.c
516               utils/interact.c
517               utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
518               utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
519               utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
520               utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
521               utils/net_dns.c utils/net_ads_gpo.c
522               utils/net_conf.c utils/net_join.c utils/net_user.c
523               utils/net_group.c utils/net_file.c utils/net_registry.c
524               utils/net_registry_check.c
525               utils/net_dom.c utils/net_share.c
526               utils/net_g_lock.c
527               utils/net_serverid.c
528               utils/net_eventlog.c
529               utils/net_printing.c
530               utils/net_rpc_trust.c
531               utils/net_rpc_conf.c
532               registry/reg_parse.c registry/reg_format.c
533               registry/reg_import.c
534               '''
535
536 NET_SRC2 = 'utils/net_registry_util.c utils/net_help_common.c'
537
538 NET_SRC = '''${NET_SRC1}
539              ${NET_SRC2}'''
540
541 CUPS_SRC = '''client/smbspool.c'''
542
543 NMBLOOKUP_SRC = '''utils/nmblookup.c'''
544
545 SMBTORTURE_SRC1 = '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
546                 torture/denytest.c torture/mangle_test.c
547                 torture/nbench.c
548                 torture/test_async_echo.c
549                 torture/test_addrchange.c
550                 torture/test_posix_append.c
551                 torture/test_nttrans_create.c
552                 torture/test_nttrans_fsctl.c
553                 torture/test_case_insensitive.c
554                 torture/test_notify_online.c
555                 torture/test_chain3.c
556                 torture/test_smb2.c
557                 torture/test_authinfo_structs.c
558                 torture/test_smbsock_any_connect.c
559                 torture/test_cleanup.c
560                 torture/test_ctdbconn.c
561                 torture/test_msg.c
562                 torture/test_notify.c
563                 lib/tevent_barrier.c
564                 torture/test_dbwrap_watch.c
565                 torture/t_strappend.c'''
566
567 SMBTORTURE_SRC = '''${SMBTORTURE_SRC1}
568         torture/wbc_async.c'''
569
570 MASKTEST_SRC = '''torture/masktest.c'''
571
572 MSGTEST_SRC = '''torture/msgtest.c'''
573
574 LOCKTEST_SRC = '''torture/locktest.c'''
575
576 PDBTEST_SRC = '''torture/pdbtest.c'''
577
578 VFSTEST_SRC = '''torture/cmd_vfs.c torture/vfstest.c
579                 torture/vfstest_chain.c'''
580
581 LOG2PCAP_SRC = '''utils/log2pcaphex.c'''
582
583 LOCKTEST2_SRC = '''torture/locktest2.c'''
584
585 SMBCACLS_SRC = '''utils/smbcacls.c'''
586
587 SMBCQUOTAS_SRC = '''utils/smbcquotas.c'''
588
589 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
590
591 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}'''
592
593 SHARESEC_SRC0 = 'utils/sharesec.c'
594 SHARESEC_SRC  = '''${SHARESEC_SRC0}'''
595
596 DEBUG2HTML_SRC = '''utils/debug2html.c utils/debugparse.c'''
597
598 SMBFILTER_SRC = '''utils/smbfilter.c'''
599
600 WINBIND_WINS_NSS_SRC = '''../nsswitch/wins.c'''
601
602 NTLM_AUTH_SRC1 = '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
603
604 NTLM_AUTH_SRC = '''${NTLM_AUTH_SRC1}'''
605
606 VLP_SRC = '''printing/tests/vlp.c'''
607
608 RPC_OPEN_TCP_SRC = 'torture/rpc_open_tcp.c'
609
610 DBWRAP_TOOL_SRC = 'utils/dbwrap_tool.c'
611
612 DBWRAP_TORTURE_SRC = 'utils/dbwrap_torture.c'
613
614 SPLIT_TOKENS_SRC = 'utils/split_tokens.c'
615
616 LIBS='ICONV'
617
618 config_h = "../include/config.h"
619
620 bld.SAMBA_BLDOPTIONS('smbd/build_options.c')
621
622 t = bld.SAMBA_GENERATOR('build_env.h',
623                         source='script/build_env.sh',
624                         target='include/build_env.h',
625                         rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
626 # todo: work out what is really wanted here
627 t.env.SRCDIR = bld.path.abspath()
628 t.env.BUILDDIR = bld.path.abspath()
629
630 bld.SETUP_BUILD_GROUPS()
631
632 ######################## SUBSYSTEMS #################################
633
634 bld.SAMBA3_LIBRARY('netapi',
635                     source=LIBNETAPI_SRC,
636                     public_deps='''
637                     talloc
638                     util_cmdline
639                     msrpc3
640                     ads
641                     NDR_LIBNETAPI
642                     LIBNET
643                     RPC_CLIENT_SCHANNEL
644                     libcli_netlogon3
645                     LIBCLI_SAMR
646                     INIT_SAMR
647                     ''',
648                     public_headers='../source3/lib/netapi/netapi.h',
649                     pc_files=[],
650                     vnum='0',
651                     vars=locals())
652
653 bld.SAMBA3_LIBRARY('smbsharemodes',
654                     source=LIBSMBSHAREMODES_SRC,
655                     public_deps='''talloc tdb_compat''',
656                     deps='''ccan''',
657                     public_headers='include/smb_share_modes.h',
658                     pc_files=[],
659                     vnum='0',
660                     vars=locals())
661
662 bld.SAMBA3_LIBRARY('nss_wins',
663                   source=WINBIND_WINS_NSS_SRC,
664                   deps='''param libsmb LIBTSOCKET''',
665                   realname='libnss_wins.so.2',
666                   vnum='2')
667
668 bld.SAMBA3_LIBRARY('gse',
669                    source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
670                    deps='krb5samba gensec param KRBCLIENT secrets3',
671                    private_library=True)
672
673 bld.SAMBA3_LIBRARY('msrpc3',
674                    source='${LIBMSRPC_SRC}',
675                    deps='''ndr ndr-standard
676                     RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
677                     LIBTSOCKET gse dcerpc-binding
678                     libsmb''',
679                    vars=locals(),
680                    private_library=True)
681
682 bld.SAMBA3_LIBRARY('gpo',
683                    source='${LIBGPO_SRC}',
684                    deps='talloc ads TOKEN_UTIL gpext',
685                    vars=locals(),
686                    private_library=True)
687
688 bld.SAMBA3_SUBSYSTEM('AVAHI',
689                     source=AVAHI_SRC,
690                     deps='avahi-common avahi-client',
691                     enabled=bld.env.with_avahi)
692
693 bld.SAMBA3_SUBSYSTEM('GROUPDB',
694                     source=GROUPDB_SRC,
695                     deps='tdb_compat')
696
697 bld.SAMBA3_SUBSYSTEM('TLDAP',
698                     source=TLDAP_SRC,
699                     deps='asn1util LIBTSOCKET')
700
701 bld.SAMBA3_LIBRARY('pdb',
702                    source=PASSDB_SRC,
703                    deps='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping',
704                    private_library=True,
705                    public_headers='''
706                                 include/passdb.h
707                                 passdb/machine_sid.h
708                                 passdb/lookup_sid.h''',
709                    vars=locals())
710
711 bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
712                      source=SERVER_MUTEX_SRC,
713                      deps='talloc')
714
715 bld.SAMBA3_SUBSYSTEM('PARAM_UTIL',
716                     source=PARAM_UTIL_SRC,
717                     deps='talloc')
718
719 bld.SAMBA3_SUBSYSTEM('LOADPARM_CTX',
720                      source='param/loadparm_ctx.c',
721                      deps='''talloc s3_param_h param''',
722                      vars=locals())
723
724 bld.SAMBA_GENERATOR('param/param_global_h',
725                     source= 'param/loadparm.c ../script/mkparamdefs.pl',
726                     target='param/param_global.h',
727                     rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
728
729 bld.SAMBA3_SUBSYSTEM('param',
730                    source=PARAM_WITHOUT_REG_SRC,
731                    deps='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local_h param/param_global_h cups''')
732
733 bld.SAMBA3_PYTHON('pys3param',
734                   source='param/pyparam.c',
735                   deps='param',
736                   public_deps='samba-hostconfig pytalloc-util talloc',
737                   realname='samba/samba3/param.so')
738     
739 bld.SAMBA3_SUBSYSTEM('param_service',
740                      source='param/service.c',
741                      deps = 'USER_UTIL param PRINTING')
742
743 bld.SAMBA3_SUBSYSTEM('REGFIO',
744                     source=REGFIO_SRC,
745                     deps='samba-util',
746                     vars=locals())
747
748 bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
749                     source=REG_API_REGF_SRC,
750                     deps='samba-util',
751                     vars=locals())
752
753 bld.SAMBA3_LIBRARY('smbregistry',
754                    source=REG_BASE_SRC,
755                    deps='''smbd_shim tdb-wrap3 NDR_SECURITY UTIL_TDB talloc
756                    replace util_reg samba-util security
757                    errors3 dbwrap samba3-util''',
758                    vars=locals(),
759                    allow_undefined_symbols=True,
760                    private_library=True)
761
762 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
763                     source=REG_SMBCONF_SRC,
764                     deps='smbregistry',
765                     vars=locals())
766
767 bld.SAMBA3_SUBSYSTEM('REG_FULL',
768                     source=REG_FULL_SRC,
769                     deps='REG_SMBCONF tdb-wrap3',
770                     vars=locals())
771
772 bld.SAMBA3_LIBRARY('popt_samba3',
773                    source=POPT_LIB_SRC,
774                    deps='popt samba-util util_cmdline',
775                    vars=locals(),
776                    private_library=True)
777
778 bld.SAMBA3_LIBRARY('util_cmdline',
779                    source='lib/util_cmdline.c',
780                    deps='secrets3',
781                    private_library=True)
782
783 bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
784                     source=KRBCLIENT_SRC,
785                     public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB',
786                     vars=locals())
787
788 bld.SAMBA3_SUBSYSTEM('samba3util',
789                    source=LIB_UTIL_SRC,
790                    deps='ndr security NDR_SECURITY samba-util UTIL_TDB ccan',
791                    vars=locals())
792
793 bld.SAMBA3_SUBSYSTEM('pidfile',
794                      source='lib/pidfile.c',
795                      # only pidfile.c assumes that CONFIGFILE is set
796                      cflags = ['-DCONFIGFILE="%s"' % bld.env['CONFIGFILE']])
797
798 bld.SAMBA3_SUBSYSTEM('samba3core',
799                    source=LIB_SRC,
800                    deps='''
801                         pidfile
802                         samba3util
803                         LIBTSOCKET
804                         NDR_MESSAGING
805                         LIBASYNC_REQ
806                         UTIL_PW
807                         SAMBA_VERSION
808                         PTHREADPOOL
809                         interfaces
810                         param
811                         dbwrap
812                         samba3-util
813                         ccan
814                         errors3''',
815                    vars=locals())
816
817 bld.SAMBA3_LIBRARY('smbd_shim',
818                    source='''lib/smbd_shim.c''',
819                    deps='talloc',
820                    private_library=True)
821
822 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
823                     source=LIBNTLMSSP_SRC,
824                     deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient',
825                     vars=locals())
826
827 bld.SAMBA3_SUBSYSTEM('auth_generic',
828                     source='libsmb/auth_generic.c',
829                     deps='LIBNTLMSSP gse gensec',
830                     vars=locals())
831
832 bld.SAMBA3_LIBRARY('libsmb',
833                    source=LIBSMB_SRC,
834                    deps='''
835                    LIBNTLMSSP
836                    auth_generic
837                    CLDAP
838                    LIBNMB
839                    SPNEGO_PARSE
840                    LIBTSOCKET
841                    KRBCLIENT
842                    cli_smb_common
843                    util_cmdline
844                    tevent''',
845                    vars=locals(),
846                    private_library=True)
847
848 bld.SAMBA3_SUBSYSTEM('CLDAP',
849                     source='libads/cldap.c',
850                     deps='cli-ldap-common cli_cldap LIBTSOCKET',
851                     vars=locals())
852
853 # NOTE: The secrets3 library is a low level library used by several subsystems.
854 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
855 # doing that your design is wrong and needs changing. -SSS
856 bld.SAMBA3_LIBRARY('secrets3',
857                    source=SECRETS_SRC,
858                    deps='NDR_SECRETS param samba3util dbwrap',
859                    private_library=True,
860                    vars=locals())
861
862 bld.SAMBA3_LIBRARY('smbldap',
863                     source=SMBLDAP_SRC,
864                     deps='ldap lber samba-util param',
865                     vars=locals(),
866                     enabled=bld.env.HAVE_LDAP,
867                     private_library=True,
868                     public_headers='include/smbldap.h include/smb_ldap.h')
869
870 bld.SAMBA3_LIBRARY('ads',
871                    source=LIBADS_SRC,
872                    deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
873                    private_library=True,
874                    vars=locals())
875
876 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
877                     source=LIBADS_SERVER_SRC,
878                     deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi',
879                     vars=locals())
880
881 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
882                     source=LIBADS_PRINTER_SRC,
883                     deps='samba-util',
884                     vars=locals())
885
886 bld.SAMBA3_SUBSYSTEM('LIBAFS',
887                     source=AFS_SRC,
888                     deps='samba-util',
889                     vars=locals())
890
891 bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN',
892                     source=AFS_SETTOKEN_SRC,
893                     deps='samba-util',
894                     vars=locals())
895
896 bld.SAMBA3_LIBRARY('smbconf',
897                    source=LIB_SMBCONF_SRC,
898                    deps='''
899                    CHARSET3
900                    LIBSMBCONF
901                    REG_SMBCONF
902                    SAMBA_VERSION
903                    cap
904                    charset
905                    cli_smb_common
906                    errors3
907                    param
908                    samba-util
909                    smbregistry
910                    talloc
911                    util_reg''',
912                    public_headers='../lib/smbconf/smbconf.h',
913                    pc_files=[],
914                    vnum='0')
915
916 bld.SAMBA3_LIBRARY('smbd_conn',
917                    source='smbd/conn.c',
918                    deps='samba3-util samba-util',
919                    private_library=True)
920
921 bld.SAMBA3_LIBRARY('smbd_base',
922                     source=SMBD_SRC_BASE,
923                     deps='''
924                     talloc
925                     tevent
926                     pdb
927                     libsmb
928                     msrpc3
929                     vfs
930                     vfs_default
931                     vfs_posixacl
932                     popt_samba3
933                     samba3core
934                     smbd_conn
935                     param_service
936                     AVAHI
937                     PRINTBASE
938                     PROFILE
939                     LOCKING
940                     LIBADS_SERVER
941                     LIBAFS
942                     LIBAFS_SETTOKEN
943                     RPC_SERVER
944                     ''',
945                     private_library=True,
946                     vars=locals())
947
948 bld.SAMBA3_SUBSYSTEM('LOCKING',
949                     source='${LOCKING_SRC}',
950                     deps='''
951                     tdb_compat
952                     talloc
953                     NDR_OPEN_FILES
954                     FNAME_UTIL''',
955                     vars=locals())
956
957 bld.SAMBA3_SUBSYSTEM('PROFILE',
958                     source='${PROFILE_SRC}',
959                     deps='samba-util',
960                     vars=locals())
961
962 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
963                     source=PRINTBASE_SRC,
964                     deps='samba-util tdb_compat',
965                     vars=locals())
966
967 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
968                     source=PRINTBACKEND_SRC,
969                     deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate',
970                     vars=locals())
971
972 bld.SAMBA3_LIBRARY('printing_migrate',
973                     source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
974                     deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
975                     vars=locals(),
976                     private_library=True)
977
978 bld.SAMBA3_SUBSYSTEM('PRINTING',
979                     source=PRINTING_SRC,
980                     deps='NDR_PRINTCAP tdb_compat cups',
981                     vars=locals())
982
983 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
984                     source=PASSWD_UTIL_SRC,
985                     deps='samba-util',
986                     vars=locals())
987
988 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
989                     source=FNAME_UTIL_SRC,
990                     deps='samba-util',
991                     vars=locals())
992
993 bld.SAMBA3_SUBSYSTEM('LIBNET',
994                     source=LIBNET_SRC,
995                     deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb',
996                     vars=locals())
997
998 bld.SAMBA3_LIBRARY('net_keytab',
999                    source='libnet/libnet_keytab.c',
1000                    deps='krb5samba ads',
1001                    vars=locals(),
1002                    private_library=True)
1003
1004
1005 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
1006                     source=LIBNET_DSSYNC_SRC,
1007                     deps='LIBNET RPC_NDR_DRSUAPI',
1008                     vars=locals())
1009
1010 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
1011                     source=LIBNET_SAMSYNC_SRC,
1012                     deps='LIBNET LIBCLI_SAMSYNC',
1013                     vars=locals())
1014
1015 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
1016                     source=LIB_EVENTLOG_SRC,
1017                     deps='NDR_EVENTLOG tdb_compat',
1018                     vars=locals())
1019
1020 bld.SAMBA3_SUBSYSTEM('LIBNMB',
1021                      source=LIBNMB_SRC,
1022                      deps='lmhosts resolv',
1023                      vars=locals())
1024
1025 bld.SAMBA3_SUBSYSTEM('SERVICES',
1026                     source=SERVICES_SRC,
1027                     deps='samba-util',
1028                     vars=locals())
1029
1030 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
1031                     source=PLAINTEXT_AUTH_SRC,
1032                     deps='pam PAM_ERRORS',
1033                     vars=locals())
1034
1035 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
1036                     source=PASSCHANGE_SRC,
1037                     deps='''LIBCLI_SAMR
1038                     INIT_LSA
1039                     msrpc3''',
1040                     vars=locals())
1041
1042 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
1043                     source=VERSION_SRC,
1044                     deps='samba-util',
1045                     vars=locals())
1046
1047 bld.SAMBA3_SUBSYSTEM('SLCACHE',
1048                     source=SLCACHE_SRC,
1049                     deps='samba-util tdb_compat',
1050                     vars=locals())
1051
1052 bld.SAMBA3_SUBSYSTEM('DCUTIL',
1053                     source=DCUTIL_SRC,
1054                     deps='ads msrpc3 libcli_lsa3',
1055                     vars=locals())
1056
1057 bld.SAMBA3_LIBRARY('trusts_util',
1058                    source='libsmb/trusts_util.c',
1059                    deps='libcli_netlogon3 msrpc3 pdb',
1060                    vars=locals(),
1061                    private_library=True)
1062
1063 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
1064                     source='lib/util_tdb.c',
1065                     deps='talloc samba3-util',
1066                     vars=locals())
1067
1068 bld.SAMBA3_LIBRARY('dbwrap',
1069                    source='lib/dbwrap/dbwrap.c lib/dbwrap/dbwrap_util.c lib/dbwrap/dbwrap_rbt.c lib/dbwrap/dbwrap_cache.c lib/dbwrap/dbwrap_tdb.c',
1070                    deps='samba-util UTIL_TDB errors tdb tdb-wrap',
1071                    private_library=True)
1072
1073 bld.SAMBA3_LIBRARY('samba3-util',
1074                    source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/memcache.c lib/string_init.c lib/namearray.c lib/file_id.c''',
1075                    deps='samba-util charset',
1076                    private_library=True)
1077
1078 bld.SAMBA_LIBRARY('xattr_tdb',
1079                   source='lib/xattr_tdb.c',
1080                   deps='NDR_XATTR dbwrap samba3-util',
1081                   private_library=True)
1082
1083 bld.SAMBA3_LIBRARY('CHARSET3',
1084                     source='''lib/charcnv.c lib/fstring.c''',
1085                     public_deps='ICONV_WRAPPER charset',
1086                     deps='samba-util samba3-util',
1087                    private_library=True)
1088
1089 bld.SAMBA3_SUBSYSTEM('errors3',
1090                      source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
1091                      deps='errors')
1092
1093 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
1094                     source=LIBCLI_SAMR_SRC,
1095                     deps='RPC_NDR_SAMR')
1096
1097 bld.SAMBA3_LIBRARY('libcli_lsa3',
1098                    source=LIBCLI_LSA_SRC,
1099                    deps='RPC_NDR_LSA INIT_LSA',
1100                    private_library=True)
1101
1102 bld.SAMBA3_LIBRARY('libcli_netlogon3',
1103                    source=LIBCLI_NETLOGON_SRC,
1104                    deps='RPC_NDR_NETLOGON INIT_NETLOGON cliauth param',
1105                    private_library=True)
1106
1107 bld.SAMBA3_LIBRARY('cli_spoolss',
1108                    source=LIBCLI_SPOOLSS_SRC,
1109                    deps='RPC_NDR_SPOOLSS param secrets3',
1110                    private_library=True)
1111
1112 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
1113                     source='rpc_client/cli_winreg.c',
1114                     deps='RPC_NDR_WINREG')
1115
1116 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
1117                     source='rpc_client/cli_winreg_int.c',
1118                     deps='LIBCLI_WINREG RPC_NCACN_NP')
1119
1120 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
1121                     source=RPC_CLIENT_SCHANNEL_SRC,
1122                     deps='samba-util',
1123                     vars=locals())
1124
1125 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
1126                     source='rpc_client/init_lsa.c',
1127                     deps='samba-util')
1128
1129 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
1130                     source='rpc_client/init_netlogon.c',
1131                     deps='samba-util')
1132
1133 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
1134                     source='rpc_client/init_samr.c',
1135                     deps='samba-util')
1136
1137 ########################## BINARIES #################################
1138
1139 bld.SAMBA3_BINARY('smbd/smbd',
1140                  source='${SMBD_SRC_MAIN}',
1141                  deps='smbd_base EPMD LSASD',
1142                  install_path='${SBINDIR}',
1143                  vars=locals())
1144
1145 bld.SAMBA3_BINARY('nmbd/nmbd',
1146                  source=NMBD_SRC,
1147                  deps='''
1148                  talloc
1149                  tevent
1150                  param
1151                  libsmb
1152                  popt_samba3
1153                  PROFILE''',
1154                  install_path='${SBINDIR}',
1155                  vars=locals())
1156
1157 bld.SAMBA3_BINARY('winbindd/winbindd',
1158                  source=WINBINDD_SRC,
1159                  deps='''
1160                  talloc
1161                  tevent
1162                  pdb
1163                  popt_samba3
1164                  idmap
1165                  ads
1166                  msrpc3
1167                  nss_info
1168                  LIBAFS
1169                  LIBADS_SERVER
1170                  LIBCLI_SAMR
1171                  SLCACHE
1172                  RPC_NDR_DSSETUP
1173                  RPC_NDR_WBINT
1174                  SRV_NDR_WBINT
1175                  RPC_SAMR
1176                  RPC_LSARPC
1177                  RPC_NCACN_NP
1178                  RPC_PIPE_REGISTER
1179                  WB_REQTRANS
1180                  ''',
1181                  enabled=bld.env.build_winbind,
1182                  install_path='${SBINDIR}',
1183                  vars=locals())
1184
1185 bld.SAMBA3_BINARY('web/swat',
1186                  source=SWAT_SRC,
1187                  deps='''
1188                  talloc
1189                  tevent
1190                  samba3core
1191                  libsmb
1192                  param
1193                  pdb
1194                  popt_samba3
1195                  LOCKING
1196                  PLAINTEXT_AUTH
1197                  PASSCHANGE
1198                  PRINTBASE
1199                  PRINTING
1200                  ''',
1201                  enabled=bld.env.build_swat,
1202                  install_path='${SBINDIR}',
1203                  vars=locals())
1204
1205 bld.SAMBA3_BINARY('rpcclient/rpcclient',
1206                  source=RPCCLIENT_SRC,
1207                  deps='''
1208                  talloc
1209                  popt_samba3
1210                  pdb
1211                  libsmb
1212                  param
1213                  ndr-standard
1214                  msrpc3
1215                  SMBREADLINE
1216                  trusts_util
1217                  RPC_NDR_WINREG
1218                  RPC_NDR_ECHO
1219                  RPC_CLIENT_SCHANNEL
1220                  DCUTIL
1221                  LIBCLI_SAMR
1222                  libcli_lsa3
1223                  libcli_netlogon3
1224                  cli_spoolss
1225                  RPC_NDR_SRVSVC
1226                  RPC_NDR_WKSSVC
1227                  RPC_NDR_DSSETUP
1228                  RPC_NDR_DFS
1229                  RPC_NDR_DRSUAPI
1230                  RPC_NDR_NTSVCS
1231                  RPC_NDR_EVENTLOG
1232                  INIT_SAMR
1233                  ''',
1234                  vars=locals())
1235
1236 bld.SAMBA3_BINARY('client/smbclient' + bld.env.suffix3,
1237                  source=CLIENT_SRC,
1238                  deps='''
1239                  talloc
1240                  popt_samba3
1241                  param
1242                  ndr-standard
1243                  SMBREADLINE
1244                  libsmb
1245                  msrpc3
1246                  RPC_NDR_SRVSVC
1247                  cli_smb_common''')
1248
1249 bld.SAMBA3_BINARY('net',
1250                  source=NET_SRC,
1251                  deps='''
1252                  talloc
1253                  netapi
1254                  addns
1255                  intl
1256                  popt_samba3
1257                  pdb
1258                  libsmb
1259                  param
1260                  KRBCLIENT
1261                  ndr-standard
1262                  msrpc3
1263                  gpo
1264                  ads
1265                  LIBADS_SERVER
1266                  LIBADS_PRINTER
1267                  SMBREADLINE
1268                  PASSWD_UTIL
1269                  LIBNET
1270                  LIBNET_DSSYNC
1271                  LIBNET_SAMSYNC
1272                  LIBEVENTLOG
1273                  REGFIO
1274                  NDR_NTPRINTING
1275                  RPC_NDR_WINREG
1276                  RPC_CLIENT_SCHANNEL
1277                  LIBCLI_SAMR
1278                  libcli_lsa3
1279                  libcli_netlogon3
1280                  cli_spoolss
1281                  RPC_NDR_SRVSVC
1282                  RPC_NDR_SVCCTL
1283                  RPC_NDR_DSSETUP
1284                  RPC_NDR_INITSHUTDOWN
1285                  printing_migrate
1286                  trusts_util''',
1287                  vars=locals())
1288
1289 bld.SAMBA3_BINARY('profiles',
1290                  source=PROFILES_SRC,
1291                  deps='''
1292                  talloc
1293                  popt_samba3
1294                  param
1295                  REGFIO''',
1296                  vars=locals())
1297
1298 bld.SAMBA3_BINARY('smbspool',
1299                  source=CUPS_SRC,
1300                  deps='''
1301                  talloc
1302                  popt_samba3
1303                  param
1304                  libsmb
1305                  samba3core''',
1306                  vars=locals())
1307
1308 bld.SAMBA3_BINARY('testparm',
1309                  source=TESTPARM_SRC,
1310                  deps='''
1311                  talloc
1312                  param
1313                  popt_samba3''',
1314                  vars=locals())
1315
1316 bld.SAMBA3_BINARY('smbta-util',
1317                  source=SMBTA_UTIL_SRC,
1318                  deps='''
1319                  talloc
1320                  secrets3
1321                  param''',
1322                  vars=locals())
1323
1324 bld.SAMBA3_BINARY('smbstatus',
1325                  source=STATUS_SRC,
1326                  deps='''
1327                  talloc
1328                  param
1329                  popt_samba3
1330                  LOCKING
1331                  PROFILE''',
1332                  vars=locals())
1333
1334 bld.SAMBA3_BINARY('smbcontrol',
1335                  source=SMBCONTROL_SRC,
1336                  deps='''
1337                  talloc
1338                  param
1339                  popt_samba3
1340                  PRINTBASE''',
1341                  vars=locals())
1342
1343 bld.SAMBA3_BINARY('smbtree',
1344                  source=SMBTREE_SRC,
1345                  deps='''
1346                  talloc
1347                  param
1348                  libsmb
1349                  msrpc3
1350                  popt_samba3
1351                  PROFILE
1352                  RPC_NDR_SRVSVC''',
1353                  vars=locals())
1354
1355 bld.SAMBA3_BINARY('smbpasswd',
1356                  source=SMBPASSWD_SRC,
1357                  deps='''
1358                  talloc
1359                  param
1360                  pdb
1361                  PASSWD_UTIL
1362                  PASSCHANGE''',
1363                  vars=locals())
1364
1365 bld.SAMBA3_BINARY('pdbedit',
1366                  source=PDBEDIT_SRC,
1367                  deps='''
1368                  talloc
1369                  param
1370                  popt_samba3
1371                  pdb
1372                  PASSWD_UTIL''',
1373                  vars=locals())
1374
1375 bld.SAMBA3_BINARY('smbget',
1376                  source=SMBGET_SRC,
1377                  deps='''
1378                  talloc
1379                  popt_samba3
1380                  smbclient''',
1381                  vars=locals())
1382
1383 bld.SAMBA3_BINARY('nmblookup' + bld.env.suffix3,
1384                  source=NMBLOOKUP_SRC,
1385                  deps='''
1386                  talloc
1387                  param
1388                  popt_samba3
1389                  LIBNMB''',
1390                  vars=locals())
1391
1392 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1393                  source=SMBTORTURE_SRC,
1394                  deps='''
1395                  talloc
1396                  param
1397                  libsmb
1398                  msrpc3
1399                  TLDAP
1400                  RPC_NDR_ECHO
1401                  WB_REQTRANS
1402                  ''',
1403                  vars=locals())
1404
1405 bld.SAMBA3_BINARY('smbconftort',
1406                  source=SMBCONFTORT_SRC,
1407                  deps='''
1408                  talloc
1409                  param
1410                  popt_samba3''',
1411                  vars=locals())
1412
1413 bld.SAMBA3_BINARY('replacetort',
1414                  source='../lib/replace/test/main.c',
1415                  deps='replace replace-test',
1416                  install=False)
1417
1418 bld.SAMBA3_BINARY('masktest' + bld.env.suffix3,
1419                  source=MASKTEST_SRC,
1420                  deps='''
1421                  talloc
1422                  param
1423                  libsmb''',
1424                  vars=locals())
1425
1426 bld.SAMBA3_BINARY('msgtest',
1427                  source=MSGTEST_SRC,
1428                  deps='''
1429                  talloc
1430                  param''',
1431                  vars=locals())
1432
1433 bld.SAMBA3_BINARY('smbcacls',
1434                  source=SMBCACLS_SRC,
1435                  deps='''
1436                  talloc
1437                  popt_samba3
1438                  msrpc3
1439                  libcli_lsa3''',
1440                  vars=locals())
1441
1442 bld.SAMBA3_BINARY('smbcquotas',
1443                  source=SMBCQUOTAS_SRC,
1444                  deps='''
1445                  talloc
1446                  popt_samba3
1447                  libsmb
1448                  msrpc3
1449                  libcli_lsa3''',
1450                  vars=locals())
1451
1452 bld.SAMBA3_BINARY('eventlogadm',
1453                  source=EVTLOGADM_SRC,
1454                  deps='''
1455                  talloc
1456                  param
1457                  LIBEVENTLOG''',
1458                  vars=locals())
1459
1460 bld.SAMBA3_BINARY('sharesec',
1461                  source=SHARESEC_SRC,
1462                  deps='''
1463                  talloc
1464                  popt_samba3''',
1465                  vars=locals())
1466
1467 bld.SAMBA3_BINARY('locktest' + bld.env.suffix3,
1468                  source=LOCKTEST_SRC,
1469                  deps='''
1470                  talloc
1471                  param
1472                  libsmb
1473                  LOCKING''',
1474                  vars=locals())
1475
1476 bld.SAMBA3_BINARY('pdbtest',
1477                  source=PDBTEST_SRC,
1478                  deps='''
1479                  talloc
1480                  pdb
1481                  popt_samba3''',
1482                  vars=locals())
1483
1484 bld.SAMBA3_BINARY('vfstest',
1485                  source=VFSTEST_SRC,
1486                  deps='''
1487                  vfs
1488                  popt_samba3
1489                  SMBREADLINE''',
1490                  vars=locals())
1491
1492 bld.SAMBA3_BINARY('log2pcap',
1493                  source=LOG2PCAP_SRC,
1494                  deps='''talloc popt''',
1495                  vars=locals())
1496
1497 bld.SAMBA3_BINARY('locktest2',
1498                  source=LOCKTEST2_SRC,
1499                  deps='''
1500                  talloc
1501                  param
1502                  libsmb
1503                  LOCKING''',
1504                  vars=locals())
1505
1506 bld.SAMBA3_BINARY('debug2html',
1507                  source=DEBUG2HTML_SRC,
1508                  deps='''talloc popt''',
1509                  vars=locals())
1510
1511 bld.SAMBA3_BINARY('smbfilter',
1512                  source=SMBFILTER_SRC,
1513                  deps='''
1514                  talloc
1515                  param
1516                  LIBNMB''',
1517                  vars=locals())
1518
1519 bld.SAMBA3_BINARY('versiontest',
1520                  source='lib/version_test.c',
1521                  deps='''
1522                  SAMBA_VERSION
1523                  param''',
1524                  vars=locals())
1525
1526 bld.SAMBA3_BINARY('ntlm_auth' + bld.env.suffix3,
1527                  source=NTLM_AUTH_SRC,
1528                  deps='''
1529                  talloc
1530                  krb5samba
1531                  LIBINIPARSER
1532                  libsmb
1533                  popt_samba3
1534                  LIBNTLMSSP gse gensec''',
1535                  vars=locals())
1536
1537 bld.SAMBA3_BINARY('timelimit',
1538                  source='script/tests/timelimit.c',
1539                  vars=locals())
1540
1541 bld.SAMBA3_BINARY('rpc_open_tcp',
1542                  source=RPC_OPEN_TCP_SRC,
1543                  deps='''
1544                  talloc
1545                  msrpc3''',
1546                  vars=locals())
1547
1548 bld.SAMBA3_BINARY('test_lp_load',
1549                  source=TEST_LP_LOAD_SRC,
1550                  deps='''
1551                  talloc
1552                  param
1553                  popt_samba3''',
1554                  vars=locals())
1555
1556 bld.SAMBA3_BINARY('dbwrap_tool',
1557                  source=DBWRAP_TOOL_SRC,
1558                  deps='''
1559                  talloc
1560                  popt_samba3''',
1561                  vars=locals())
1562
1563 bld.SAMBA3_BINARY('dbwrap_torture',
1564                  source=DBWRAP_TORTURE_SRC,
1565                  deps='''
1566                  talloc
1567                  popt_samba3''',
1568                  vars=locals())
1569
1570 bld.SAMBA3_BINARY('split_tokens',
1571                  source=SPLIT_TOKENS_SRC,
1572                  deps='''
1573                  talloc
1574                  popt_samba3''',
1575                  vars=locals())
1576
1577 bld.SAMBA3_BINARY('vlp',
1578                  source=VLP_SRC,
1579                  deps='''
1580                  talloc
1581                  param''',
1582                  vars=locals())
1583
1584 swat_dir = os.path.join(bld.curdir, '../swat')
1585 swat_files = recursive_dirlist(swat_dir, swat_dir, '*')
1586 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
1587
1588 ########################## INCLUDES #################################
1589
1590 bld.RECURSE('auth')
1591 bld.RECURSE('libgpo/gpext')
1592 bld.RECURSE('lib/pthreadpool')
1593 bld.RECURSE('librpc')
1594 bld.RECURSE('librpc/idl')
1595 bld.RECURSE('libsmb')
1596 bld.RECURSE('modules')
1597 bld.RECURSE('pam_smbpass')
1598 bld.RECURSE('passdb')
1599 bld.RECURSE('rpc_server')
1600 bld.RECURSE('winbindd')
1601 bld.RECURSE('../examples/auth')
1602 bld.RECURSE('../examples/libsmbclient')
1603 bld.RECURSE('../examples/pdb')
1604 bld.RECURSE('../examples/VFS')
1605 bld.RECURSE('lib/netapi/tests')
1606 bld.RECURSE('lib/netapi/examples')
1607
1608 bld.ENFORCE_GROUP_ORDERING()
1609 bld.CHECK_PROJECT_RULES()
1610
1611 bld.SYMBOL_CHECK()