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