s3:rpc_client: remove unused cli_do_rpc_ndr* functions
[Samba/ita.git] / source3 / Makefile.in
blobfac4e0be5e74006aa9cba57c05bb8153a6512a2d
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 selftest_shrdir=@selftest_shrdir@
21 smbtorture4_path=@smbtorture4_path@
22 smbtorture4_option=@smbtorture4_option@
23 selftest_custom_conf=@selftest_custom_conf@
25 LIBS=@LIBS@
26 CC=@CC@
27 SHLD=@SHLD@
28 LIB_PATH_VAR=@LIB_PATH_VAR@
30 ## Dynamic shared libraries build settings
31 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
32 DSO_EXPORTS=@DSO_EXPORTS@
33 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
35 # The MODULE_EXPORTS variable contains the platform-specific linker flags
36 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
37 MODULE_EXPORTS=@MODULE_EXPORTS@
39 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
40 # (GCC) warnings. This is done automatically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
43 CFLAGS=@CFLAGS@
44 CPP=@CPP@
45 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
46 PICFLAG=@PICFLAG@
48 EXEEXT=@EXEEXT@
49 AR=@AR@
50 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
51 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
52 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
54 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
55 AWK=@AWK@
56 DYNEXP=@DYNEXP@
57 PERL=@PERL@
58 PYTHON=@PYTHON@
59 LIBDL=@LIBDL@
61 PIDL_ARGS=@PIDL_ARGS@
63 TERMLDFLAGS=@TERMLDFLAGS@
64 TERMLIBS=@TERMLIBS@
65 PRINT_LIBS=@PRINT_LIBS@
66 ZLIB_LIBS=@ZLIB_LIBS@
67 AUTH_LIBS=@AUTH_LIBS@
68 ACL_LIBS=@ACL_LIBS@
69 PASSDB_LIBS=@PASSDB_LIBS@
70 IDMAP_LIBS=@IDMAP_LIBS@
71 KRB5LIBS=@KRB5_LIBS@
72 LDAP_LIBS=@LDAP_LIBS@
73 NSCD_LIBS=@NSCD_LIBS@
74 UUID_LIBS=@UUID_LIBS@
75 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
76 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
77 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
78 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
79 DNSSD_LIBS=@DNSSD_LIBS@
80 AVAHI_LIBS=@AVAHI_LIBS@
81 POPT_LIBS=@POPTLIBS@
82 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
83 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
84 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
85 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
86 LIBTDB_LIBS=@LIBTDB_LIBS@
87 TDB_DEPS=@TDB_DEPS@
88 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
89 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
90 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
91 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
93 TALLOCTORT = @TALLOCTORT@
95 TDBBACKUP = @TDBBACKUP@
96 TDBTOOL = @TDBTOOL@
97 TDBDUMP = @TDBDUMP@
98 TDBTORTURE = @TDBTORTURE@
100 INSTALLCMD=@INSTALL@
101 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
102 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
103 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
104 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
106 VPATH=@srcdir@
107 srcdir=@abs_srcdir@
108 builddir=@abs_builddir@
109 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
110 # will search for a POSIX-compliant shell, and that might not be
111 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
112 SHELL=/bin/sh
113 DESTDIR=/
115 # See the autoconf manual "Installation Directory Variables" for a
116 # discussion of the subtle use of these variables.
118 BASEDIR= @prefix@
119 BINDIR = @bindir@
120 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
121 SBINDIR = @sbindir@
122 ROOTSBINDIR = @rootsbindir@
123 LIBDIR = @libdir@
124 MODULESDIR = @modulesdir@
125 INCLUDEDIR=@includedir@
126 PAMMODULESDIR = @pammodulesdir@
127 VFSLIBDIR = $(MODULESDIR)/vfs
128 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
129 PDBLIBDIR = $(MODULESDIR)/pdb
130 RPCLIBDIR = $(MODULESDIR)/rpc
131 IDMAPLIBDIR = $(MODULESDIR)/idmap
132 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
133 CHARSETLIBDIR = $(MODULESDIR)/charset
134 AUTHLIBDIR = $(MODULESDIR)/auth
135 CONFIGLIBDIR = $(MODULESDIR)/config
136 GPEXTLIBDIR = $(MODULESDIR)/gpext
137 CONFIGDIR = @configdir@
138 VARDIR = @localstatedir@
139 MANDIR = @mandir@
140 DATADIR = @datadir@
142 # The permissions to give the executables and other data
143 INSTALLPERMS_BIN = 0755
144 INSTALLPERMS_DATA = 0644
146 # set these to where to find various files
147 # These can be overridden by command line switches (see smbd(8))
148 # or in smb.conf (see smb.conf(5))
149 LOGFILEBASE = @logfilebase@
150 CONFIGFILE = $(CONFIGDIR)/smb.conf
151 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
152 NCALRPCDIR = @ncalrpcdir@
154 # This is where smbpasswd et al go
155 PRIVATEDIR = @privatedir@
157 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
158 PRIVATE_DIR = $(PRIVATEDIR)
160 # This is where SWAT images and help files go
161 SWATDIR = @swatdir@
163 # This is where locale(mo) files go
164 LOCALEDIR= @localedir@
166 # the directory where lock files go
167 LOCKDIR = @lockdir@
169 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
170 CACHEDIR = @cachedir@
171 STATEDIR = @statedir@
173 # Where to look for (and install) codepage databases.
174 CODEPAGEDIR = @codepagedir@
176 # the directory where pid files go
177 PIDDIR = @piddir@
179 FLAGS = -I. \
180 -I$(srcdir) \
181 @FLAGS1@ \
182 @SAMBA_CPPFLAGS@ \
183 $(CPPFLAGS) \
184 $(ISA) \
185 -I$(srcdir)/lib \
186 -I.. \
187 -I../source4 \
188 -D_SAMBA_BUILD_=3
190 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
191 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
192 -DCONFIGFILE=\"$(CONFIGFILE)\" \
193 -DSBINDIR=\"$(SBINDIR)\" \
194 -DBINDIR=\"$(BINDIR)\" \
195 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
196 -DSWATDIR=\"$(SWATDIR)\" \
197 -DLOCKDIR=\"$(LOCKDIR)\" \
198 -DPIDDIR=\"$(PIDDIR)\" \
199 -DLIBDIR=\"$(LIBDIR)\" \
200 -DMODULESDIR=\"$(MODULESDIR)\" \
201 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
202 -DSHLIBEXT=\"@SHLIBEXT@\" \
203 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
204 -DCONFIGDIR=\"$(CONFIGDIR)\" \
205 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
206 -DCACHEDIR=\"$(CACHEDIR)\" \
207 -DSTATEDIR=\"$(STATEDIR)\" \
208 -DLOCALEDIR=\"$(LOCALEDIR)\"
210 # Note that all executable programs now provide for an optional executable suffix.
212 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
214 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
215 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
216 bin/smbta-util@EXEEXT@
217 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
218 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
219 $(TDBTOOL)
220 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
221 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
222 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
224 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
225 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
226 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
227 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
228 $(TDBTORTURE) \
229 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
231 BIN_PROGS = @EXTRA_BIN_PROGS@ \
232 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
234 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
235 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
236 bin/log2pcap@EXEEXT@ \
237 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
238 bin/dbwrap_tool@EXEEXT@ \
239 bin/dbwrap_torture@EXEEXT@
241 PAM_MODULES = @PAM_MODULES@
243 NSS_MODULES = @NSS_MODULES@
245 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
247 VFS_MODULES = @VFS_MODULES@
248 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
249 PDB_MODULES = @PDB_MODULES@
250 RPC_MODULES = @RPC_MODULES@
251 IDMAP_MODULES = @IDMAP_MODULES@
252 CHARSET_MODULES = @CHARSET_MODULES@
253 AUTH_MODULES = @AUTH_MODULES@
254 NSS_INFO_MODULES = @NSS_INFO_MODULES@
255 GPEXT_MODULES = @GPEXT_MODULES@
256 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
257 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
258 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
260 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
262 ######################################################################
263 # object file lists
264 ######################################################################
266 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
267 lib/dbwrap.o lib/dbwrap_tdb.o \
268 lib/dbwrap_ctdb.o \
269 lib/g_lock.o \
270 lib/dbwrap_rbt.o
272 TDB_VALIDATE_OBJ = lib/tdb_validate.o
274 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
276 VERSION_OBJ = lib/version.o
278 WBCOMMON_OBJ = ../nsswitch/wb_common.o
280 AFS_OBJ = lib/afs.o
282 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
284 AVAHI_OBJ = @AVAHI_OBJ@
286 SERVER_MUTEX_OBJ = lib/server_mutex.o
288 PASSCHANGE_OBJ = libsmb/passchange.o
290 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
291 ../librpc/ndr/ndr_compression.o \
292 librpc/gen_ndr/ndr_drsuapi.o \
293 ../librpc/ndr/ndr_drsblobs.o \
294 librpc/gen_ndr/ndr_drsblobs.o
296 ZLIB_OBJ = @ZLIB_OBJS@
298 COMPRESSION_OBJ = ../lib/compression/mszip.o \
299 ../lib/compression/lzxpress.o \
300 $(ZLIB_OBJ)
302 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
303 $(COMPRESSION_OBJ)
305 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
306 ../librpc/ndr/ndr_ntlmssp.o
308 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
309 ../librpc/ndr/ndr.o \
310 ../librpc/ndr/ndr_misc.o \
311 librpc/gen_ndr/ndr_misc.o \
312 librpc/gen_ndr/ndr_security.o \
313 ../librpc/ndr/ndr_sec_helper.o \
314 ../librpc/ndr/ndr_string.o \
315 ../librpc/ndr/uuid.o \
316 librpc/ndr/util.o \
317 librpc/gen_ndr/ndr_dcerpc.o
319 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
320 librpc/gen_ndr/ndr_lsa.o
322 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
323 ../librpc/ndr/ndr_netlogon.o
325 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
326 ../librpc/ndr/ndr_schannel.o
328 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
329 ../librpc/ndr/ndr_spoolss_buf.o
331 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
332 ../librpc/ndr/ndr_ntprinting.o \
334 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
335 librpc/ndr/ndr_preg.o
337 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
338 ../librpc/ndr/ndr_xattr.o
340 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
341 $(LIBNDR_GEN_OBJ0) \
342 librpc/gen_ndr/ndr_dfs.o \
343 librpc/gen_ndr/ndr_echo.o \
344 librpc/gen_ndr/ndr_winreg.o \
345 librpc/gen_ndr/ndr_initshutdown.o \
346 librpc/gen_ndr/ndr_srvsvc.o \
347 librpc/gen_ndr/ndr_eventlog.o \
348 $(LIBNDR_NETLOGON_OBJ) \
349 librpc/gen_ndr/ndr_dssetup.o \
350 librpc/gen_ndr/ndr_notify.o \
351 $(LIBNDR_XATTR_OBJ) \
352 librpc/gen_ndr/ndr_epmapper.o \
353 librpc/gen_ndr/ndr_named_pipe_auth.o \
354 librpc/gen_ndr/ndr_ntsvcs.o \
355 $(LIBNDR_SPOOLSS_OBJ)
357 # this includes only the low level parse code, not stuff
358 # that requires knowledge of security contexts
359 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
361 RPC_PARSE_OBJ = rpc_client/init_netlogon.o \
362 rpc_client/init_lsa.o
364 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
366 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
367 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
369 LIBSAMBAUTIL_OBJ = \
370 $(LIBREPLACE_OBJ) \
371 $(SOCKET_WRAPPER_OBJ) \
372 $(NSS_WRAPPER_OBJ)
374 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
375 ../lib/util/xfile.o ../lib/util/util_strlist.o \
376 ../lib/util/util_file.o ../lib/util/data_blob.o \
377 ../lib/util/util.o ../lib/util/fsusage.o \
378 ../lib/util/params.o ../lib/util/talloc_stack.o \
379 ../lib/util/genrand.o ../lib/util/util_net.o \
380 ../lib/util/become_daemon.o ../lib/util/system.o \
381 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
382 ../lib/util/smb_threads.o ../lib/util/util_id.o \
383 ../lib/util/blocking.o ../lib/util/rfc1738.o
385 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
386 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
387 ../lib/crypto/md4.o \
388 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
389 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
391 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
392 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
393 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
394 lib/interfaces.o lib/memcache.o \
395 lib/talloc_dict.o \
396 lib/serverid.o \
397 lib/util_sconn.o \
398 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
399 $(TDB_LIB_OBJ) \
400 $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
401 lib/interface.o lib/pidfile.o \
402 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
403 lib/username.o \
404 ../libds/common/flag_mapping.o \
405 lib/util_pw.o lib/access.o lib/smbrun.o \
406 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
407 lib/wins_srv.o \
408 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
409 lib/util_unistr.o lib/util_file.o \
410 lib/util.o lib/util_names.o \
411 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
412 lib/substitute.o lib/dbwrap_util.o \
413 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
414 lib/tallocmsg.o lib/dmallocmsg.o \
415 libsmb/clisigning.o libsmb/smb_signing.o \
416 lib/iconv.o lib/pam_errors.o intl/lang_tdb.o \
417 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
418 lib/sessionid_tdb.o \
419 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
420 lib/server_contexts.o \
421 lib/ldap_escape.o @CHARSET_STATIC@ \
422 lib/secdesc.o lib/util_seaccess.o ../libcli/security/secace.o \
423 ../libcli/security/sddl.o \
424 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
425 lib/fncall.o \
426 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
427 lib/file_id.o lib/idmap_cache.o \
428 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o
430 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
431 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
433 READLINE_OBJ = lib/readline.o
435 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
436 # Be sure to include them into your application
437 POPT_LIB_OBJ = lib/popt_common.o
439 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
440 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
441 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
443 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
445 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
446 libaddns/dnsgss.o libaddns/dnsmarshall.o
447 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
449 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
451 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
452 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
453 libgpo/gpo_reg.o \
454 $(GPEXT_OBJ)
455 LIBGPO_OBJ = $(LIBGPO_OBJ0)
457 LIBADS_OBJ = libads/ldap.o \
458 libads/sasl.o libads/sasl_wrapping.o \
459 libads/krb5_setpw.o \
460 libads/kerberos_util.o \
461 libads/ldap_user.o \
462 libads/ads_struct.o libads/kerberos_keytab.o \
463 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
464 libads/ldap_schema.o libads/util.o libads/ndr.o
466 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
467 ../librpc/ndr/ndr_krb5pac.o \
468 librpc/gen_ndr/ndr_krb5pac.o
470 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
472 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
473 librpc/gen_ndr/ndr_secrets.o
475 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
476 ../libcli/netlogon.o \
477 ../libcli/ndr_netlogon.o \
478 librpc/gen_ndr/ndr_nbt.o \
479 librpc/gen_ndr/ndr_svcctl.o \
480 ../librpc/ndr/ndr_svcctl.o
482 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
483 libsmb/namequery.o ../libcli/nbt/lmhosts.o libsmb/conncache.o \
484 libads/dns.o libads/sitename_cache.o
486 NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
487 DOSERR_OBJ = ../libcli/util/doserr.o
488 ERRORMAP_OBJ = libsmb/errormap.o
489 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
491 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
493 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
495 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
496 $(REG_PARSE_PRS_OBJ) \
497 $(SECRETS_OBJ)
499 LIBSMB_OBJ0 = \
500 ../libcli/auth/ntlm_check.o \
501 libsmb/ntlmssp.o \
502 libsmb/ntlmssp_wrap.o \
503 ../libcli/auth/ntlmssp.o \
504 ../libcli/auth/ntlmssp_sign.o \
505 $(LIBNDR_NTLMSSP_OBJ) \
506 ../libcli/auth/ntlmssp_ndr.o \
507 ../libcli/auth/ntlmssp_server.o
509 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
510 $(LIBSMB_ERR_OBJ)
512 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
513 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o
515 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
516 ../lib/tsocket/tsocket_helpers.o \
517 ../lib/tsocket/tsocket_bsd.o
519 CLDAP_OBJ = libads/cldap.o \
520 ../libcli/cldap/cldap.o lib/ldb_compat.o \
521 ../lib/util/idtree.o \
522 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
524 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
526 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
527 ../libcli/auth/schannel_sign.o \
528 ../libcli/auth/schannel_state_tdb.o \
529 $(LIBNDR_SCHANNEL_OBJ)
531 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
532 libsmb/clikrb5.o libsmb/clispnego.o \
533 ../libcli/auth/spnego_parse.o \
534 ../lib/util/asn1.o \
535 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
536 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
537 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
538 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
539 libsmb/clioplock.o libsmb/clirap2.o \
540 libsmb/smb_seal.o libsmb/async_smb.o \
541 $(LIBSAMBA_OBJ) \
542 $(LIBNMB_OBJ) \
543 $(LIBNBT_OBJ) \
544 $(CLDAP_OBJ) \
545 $(DRSUAPI_OBJ)
547 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o \
548 $(SCHANNEL_OBJ)
550 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
551 $(RPC_CLIENT_OBJ1) \
552 $(RPC_CLIENT_OBJ) \
553 rpc_client/cli_spoolss.o \
554 rpc_client/init_spoolss.o \
555 rpc_client/init_samr.o \
556 ../librpc/rpc/binding.o
558 DCERPC_CLIENT_GEN_OBJ = \
559 librpc/gen_ndr/ndr_lsa_c.o \
560 librpc/gen_ndr/ndr_dfs_c.o \
561 librpc/gen_ndr/ndr_echo_c.o \
562 librpc/gen_ndr/ndr_srvsvc_c.o \
563 librpc/gen_ndr/ndr_svcctl_c.o \
564 librpc/gen_ndr/ndr_winreg_c.o \
565 librpc/gen_ndr/ndr_initshutdown_c.o \
566 librpc/gen_ndr/ndr_eventlog_c.o \
567 librpc/gen_ndr/ndr_wkssvc_c.o \
568 librpc/gen_ndr/ndr_netlogon_c.o \
569 librpc/gen_ndr/ndr_samr_c.o \
570 librpc/gen_ndr/ndr_dssetup_c.o \
571 librpc/gen_ndr/ndr_ntsvcs_c.o \
572 librpc/gen_ndr/ndr_epmapper_c.o \
573 librpc/gen_ndr/ndr_drsuapi_c.o \
574 librpc/gen_ndr/ndr_spoolss_c.o
576 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
577 librpc/gen_ndr/cli_dfs.o \
578 librpc/gen_ndr/cli_echo.o \
579 librpc/gen_ndr/cli_srvsvc.o \
580 librpc/gen_ndr/cli_svcctl.o \
581 librpc/gen_ndr/cli_winreg.o \
582 librpc/gen_ndr/cli_initshutdown.o \
583 librpc/gen_ndr/cli_eventlog.o \
584 librpc/gen_ndr/cli_wkssvc.o \
585 librpc/gen_ndr/cli_netlogon.o \
586 librpc/gen_ndr/cli_samr.o \
587 librpc/gen_ndr/cli_dssetup.o \
588 librpc/gen_ndr/cli_ntsvcs.o \
589 librpc/gen_ndr/cli_epmapper.o \
590 librpc/gen_ndr/cli_drsuapi.o \
591 librpc/gen_ndr/cli_spoolss.o \
592 $(DCERPC_CLIENT_GEN_OBJ) \
593 ../librpc/rpc/dcerpc_util.o \
594 ../librpc/rpc/binding_handle.o \
595 librpc/rpc/dcerpc_helpers.o \
596 $(LIBNDR_GEN_OBJ)
599 # registry-related objects
601 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
603 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
604 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
605 REG_INIT_FULL_OBJ = registry/reg_init_full.o
607 REGFIO_OBJ = registry/regfio.o
609 REGOBJS_OBJ = registry/reg_objects.o
611 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
613 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
615 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
616 registry/reg_backend_shares.o \
617 registry/reg_backend_netlogon_params.o \
618 registry/reg_backend_prod_options.o \
619 registry/reg_backend_tcpip_params.o \
620 registry/reg_backend_hkpt_params.o \
621 registry/reg_backend_current_version.o \
622 registry/reg_backend_perflib.o
624 REG_BASE_OBJ = registry/reg_api.o \
625 registry/reg_dispatcher.o \
626 registry/reg_cachehook.o \
627 $(REGFIO_OBJ) \
628 $(REGOBJS_OBJ) \
629 registry/reg_util_internal.o \
630 lib/util_nttoken.o \
631 $(REG_BACKENDS_BASE_OBJ) \
632 $(REG_INIT_BASIC_OBJ)
634 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
635 registry/reg_util_token.o \
636 $(REG_BACKENDS_SMBCONF_OBJ) \
637 $(REG_INIT_SMBCONF_OBJ)
639 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
640 $(REG_BACKENDS_EXTRA_OBJ) \
641 $(REG_INIT_FULL_OBJ) \
642 registry/reg_eventlog.o \
643 registry/reg_perfcount.o \
644 librpc/gen_ndr/ndr_perfcount.o \
645 registry/reg_util_legacy.o
647 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
649 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
651 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
652 librpc/gen_ndr/srv_netlogon.o
654 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
655 rpc_server/srv_samr_util.o \
656 rpc_server/srv_samr_chgpasswd.o \
657 librpc/gen_ndr/srv_samr.o
659 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
661 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
662 librpc/gen_ndr/srv_winreg.o
664 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
666 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
667 librpc/gen_ndr/srv_srvsvc.o
669 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
671 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl_nt.o \
672 librpc/gen_ndr/srv_svcctl.o \
673 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
674 services/svc_netlogon.o services/svc_winreg.o \
675 services/svc_wins.o
677 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs_nt.o \
678 librpc/gen_ndr/srv_ntsvcs.o
680 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
682 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss_nt.o \
683 rpc_server/srv_spoolss_util.o \
684 librpc/gen_ndr/srv_spoolss.o
686 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog_nt.o \
687 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
689 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o
691 RPC_NCACN_NP_INTERNAL = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np_internal.o \
692 rpc_server/rpc_handles.o
694 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
695 $(RPC_NCACN_NP_INTERNAL)
697 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
699 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ)
701 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o \
702 librpc/rpc/dcerpc_gssapi.o \
703 librpc/rpc/dcerpc_spnego.o \
704 librpc/rpc/rpc_common.o \
705 rpc_client/rpc_transport_np.o \
706 rpc_client/rpc_transport_sock.o
708 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
710 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
712 PRIVILEGES_OBJ = lib/privileges.o
714 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
716 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
717 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
718 passdb/util_unixsids.o passdb/lookup_sid.o \
719 passdb/login_cache.o @PDB_STATIC@ \
720 passdb/account_pol.o $(PRIVILEGES_OBJ) \
721 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ)
723 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
724 CP850_OBJ = modules/CP850.o
725 CP437_OBJ = modules/CP437.o
726 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
728 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
730 PROFILE_OBJ = profile/profile.o
731 PROFILES_OBJ = utils/profiles.o \
732 $(LIBSMB_ERR_OBJ) \
733 $(PARAM_OBJ) \
734 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
735 $(POPT_LIB_OBJ)
737 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
738 smbd/oplock_onefs.o
740 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
742 FNAME_UTIL_OBJ = smbd/filename_util.o
744 VFS_DEFAULT_OBJ = modules/vfs_default.o
745 VFS_AUDIT_OBJ = modules/vfs_audit.o
746 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
747 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
748 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
749 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
750 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
751 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
752 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
753 VFS_CAP_OBJ = modules/vfs_cap.o
754 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
755 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
756 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
757 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
758 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
759 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
760 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
761 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
762 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
763 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
764 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
765 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
766 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
767 VFS_CATIA_OBJ = modules/vfs_catia.o
768 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
769 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
770 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
771 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
772 VFS_COMMIT_OBJ = modules/vfs_commit.o
773 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
774 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
775 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
776 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
777 VFS_FILEID_OBJ = modules/vfs_fileid.o
778 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
779 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
780 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
781 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
782 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
783 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
784 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
785 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
786 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
787 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
788 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
789 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
790 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
791 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
792 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
793 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
795 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
797 SLCACHE_OBJ = libsmb/samlogon_cache.o
799 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
801 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
802 AUTH_DOMAIN_OBJ = auth/auth_domain.o
803 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
804 AUTH_SERVER_OBJ = auth/auth_server.o
805 AUTH_UNIX_OBJ = auth/auth_unix.o
806 AUTH_WINBIND_OBJ = auth/auth_winbind.o
807 AUTH_WBC_OBJ = auth/auth_wbc.o
808 AUTH_SCRIPT_OBJ = auth/auth_script.o
809 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
811 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
812 auth/server_info.o \
813 auth/server_info_sam.o \
814 auth/user_info.o \
815 auth/user_util.o \
816 auth/auth_compat.o auth/auth_ntlmssp.o \
817 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
819 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
821 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
823 BUILDOPT_OBJ = smbd/build_options.o
825 SMBD_OBJ_SRV = smbd/server_reload.o \
826 smbd/files.o smbd/connection.o \
827 smbd/utmp.o smbd/session.o \
828 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
829 smbd/share_access.o smbd/fileio.o \
830 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
831 smbd/message.o smbd/nttrans.o smbd/pipes.o \
832 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
833 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
834 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
835 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
836 smbd/posix_acls.o lib/sysacls.o \
837 smbd/process.o smbd/service.o smbd/error.o \
838 printing/printspoolss.o \
839 lib/sysquotas.o lib/sysquotas_linux.o \
840 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
841 smbd/fake_file.o \
842 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
843 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
844 smbd/dmapi.o smbd/signing.o \
845 smbd/file_access.o \
846 smbd/dnsregister.o smbd/globals.o \
847 smbd/smb2_server.o \
848 smbd/smb2_signing.o \
849 smbd/smb2_glue.o \
850 smbd/smb2_negprot.o \
851 smbd/smb2_sesssetup.o \
852 smbd/smb2_tcon.o \
853 smbd/smb2_create.o \
854 smbd/smb2_close.o \
855 smbd/smb2_flush.o \
856 smbd/smb2_read.o \
857 smbd/smb2_write.o \
858 smbd/smb2_lock.o \
859 smbd/smb2_ioctl.o \
860 smbd/smb2_keepalive.o \
861 smbd/smb2_find.o \
862 smbd/smb2_notify.o \
863 smbd/smb2_getinfo.o \
864 smbd/smb2_setinfo.o \
865 smbd/smb2_break.o \
866 ../libcli/smb/smb2_create_blob.o \
867 $(MANGLE_OBJ) @VFS_STATIC@
869 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
870 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
871 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
872 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
873 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
874 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
875 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
876 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
877 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
878 $(LIBSMBCONF_OBJ) \
879 $(PRIVILEGES_BASIC_OBJ)
881 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
882 printing/print_cups.o printing/print_generic.o \
883 printing/lpq_parse.o printing/load.o \
884 printing/print_iprint.o printing/print_standard.o
886 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
887 PRINTBACKEND_OBJ = printing/printing.o \
888 printing/nt_printing.o \
889 printing/nt_printing_tdb.o \
890 printing/nt_printing_migrate.o \
891 printing/nt_printing_ads.o \
892 librpc/gen_ndr/ndr_ntprinting.o \
893 ../librpc/ndr/ndr_ntprinting.o \
894 $(PRINTBASE_OBJ)
896 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
898 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
899 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
900 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
901 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
902 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
903 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
904 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
905 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
906 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
907 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
908 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
909 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
911 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
912 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
913 $(LIBNDR_GEN_OBJ0)
915 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
916 web/swat.o web/neg_lang.o
918 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
919 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
920 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
921 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
922 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ)
924 STATUS_OBJ = utils/status.o utils/status_profile.o \
925 $(LOCKING_OBJ) $(PARAM_OBJ) \
926 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
927 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
929 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
930 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
932 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
933 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
934 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
935 $(RPC_CLIENT_OBJ) ../librpc/rpc/binding.o $(RPC_PARSE_OBJ) \
936 $(RPC_CLIENT_OBJ1) \
937 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
938 $(LIBMSRPC_GEN_OBJ)
940 TESTPARM_OBJ = utils/testparm.o \
941 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
942 $(LIBSMB_ERR_OBJ)
944 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
945 $(LOCKING_OBJ) $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) \
946 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
948 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
949 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
950 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
952 PASSWD_UTIL_OBJ = utils/passwd_util.o
954 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
955 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
956 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
957 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
958 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ)
960 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
961 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
962 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
963 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
965 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
967 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
969 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
970 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
971 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
972 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
973 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
974 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
975 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
976 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
977 $(DISPLAY_SEC_OBJ)
979 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
980 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
981 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
982 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
983 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
984 $(SMBLDAP_OBJ) $(DCUTIL_OBJ)
986 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
987 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
989 LIBSMBCLIENT_THREAD_OBJ = \
990 libsmb/libsmb_thread_impl.o \
991 libsmb/libsmb_thread_posix.o
993 LIBSMBCLIENT_OBJ0 = \
994 libsmb/libsmb_cache.o \
995 libsmb/libsmb_compat.o \
996 libsmb/libsmb_context.o \
997 libsmb/libsmb_dir.o \
998 libsmb/libsmb_file.o \
999 libsmb/libsmb_misc.o \
1000 libsmb/libsmb_path.o \
1001 libsmb/libsmb_printjob.o \
1002 libsmb/libsmb_server.o \
1003 libsmb/libsmb_stat.o \
1004 libsmb/libsmb_xattr.o \
1005 libsmb/libsmb_setget.o
1007 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1008 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1009 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1010 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1011 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ)
1013 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1015 # This shared library is intended for linking with unit test programs
1016 # to test Samba internals. It's called libbigballofmud.so to
1017 # discourage casual usage.
1019 LIBBIGBALLOFMUD_MAJOR = 0
1021 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1022 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) \
1023 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1025 CLIENT_OBJ1 = client/client.o client/clitar.o $(RPC_CLIENT_OBJ) \
1026 ../librpc/rpc/binding.o \
1027 client/dnsbrowse.o \
1028 $(RPC_CLIENT_OBJ1) \
1029 $(RPC_PARSE_OBJ)
1031 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1032 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1033 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1034 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1035 $(DISPLAY_SEC_OBJ)
1037 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1038 ../lib/smbconf/smbconf_util.o \
1039 ../lib/smbconf/smbconf_txt.o \
1040 lib/smbconf/smbconf_reg.o \
1041 lib/smbconf/smbconf_init.o
1043 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1045 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1046 $(LIB_NONSMBD_OBJ) \
1047 $(PARAM_OBJ) \
1048 $(LIBSMB_ERR_OBJ) \
1049 $(POPT_LIB_OBJ)
1051 LIBNET_OBJ = libnet/libnet_join.o \
1052 libnet/libnet_keytab.o \
1053 librpc/gen_ndr/ndr_libnet_join.o
1055 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1056 libnet/libnet_dssync_keytab.o \
1057 ../libcli/drsuapi/repl_decrypt.o
1059 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1060 libnet/libnet_samsync_ldif.o \
1061 libnet/libnet_samsync_passdb.o \
1062 libnet/libnet_samsync_display.o \
1063 libnet/libnet_samsync_keytab.o \
1064 ../libcli/samsync/decrypt.o
1066 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1067 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1068 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1069 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
1070 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1071 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1072 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1073 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1074 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1075 utils/net_conf.o utils/net_join.o utils/net_user.o \
1076 utils/net_group.o utils/net_file.o utils/net_registry.o \
1077 auth/token_util.o utils/net_dom.o utils/net_share.o \
1078 utils/net_g_lock.o \
1079 utils/net_serverid.o \
1080 utils/net_eventlog.o \
1081 utils/net_printing.o \
1082 $(LIBNDR_NTPRINTING_OBJ) \
1083 $(LIBNDR_PREG_OBJ)
1086 # these are not processed by make proto
1087 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1089 NET_OBJ = $(NET_OBJ1) \
1090 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1091 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1092 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1093 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1094 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1095 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1096 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1097 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1098 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1099 $(REG_SMBCONF_OBJ) \
1100 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1101 $(LIBSMBCONF_OBJ) \
1102 $(PRIVILEGES_BASIC_OBJ) \
1103 $(LIB_EVENTLOG_OBJ) localedir.o
1105 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1106 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1107 $(LIBNDR_GEN_OBJ0)
1109 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1110 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1112 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1113 torture/denytest.o torture/mangle_test.o \
1114 torture/nbench.o \
1115 torture/test_posix_append.o
1117 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1118 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1119 @LIBWBCLIENT_STATIC@ \
1120 ../nsswitch/libwbclient/wbc_async.o \
1121 ../nsswitch/libwbclient/wb_reqtrans.o \
1122 $(LIBNDR_GEN_OBJ0)
1124 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1125 $(LIB_NONSMBD_OBJ) \
1126 $(LIBNDR_GEN_OBJ0)
1128 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1129 $(LIB_NONSMBD_OBJ) \
1130 $(LIBNDR_GEN_OBJ0)
1132 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1133 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1134 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1136 NSSTEST_OBJ = torture/nsstest.o $(LIBSAMBAUTIL_OBJ)
1138 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1139 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1140 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1141 $(LIBNDR_GEN_OBJ0)
1143 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1145 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1147 LOG2PCAP_OBJ = utils/log2pcaphex.o
1149 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1150 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1151 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1153 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1154 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
1155 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1156 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ)
1158 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1159 $(PARAM_OBJ) \
1160 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
1161 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1162 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ)
1164 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1166 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1167 $(LIBSMB_ERR_OBJ) \
1168 registry/reg_eventlog.o $(LIB_EVENTLOG_OBJ) \
1169 librpc/gen_ndr/ndr_eventlog.o \
1170 librpc/gen_ndr/ndr_lsa.o
1172 SHARESEC_OBJ0 = utils/sharesec.o
1173 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1174 $(LIBSMB_ERR_OBJ) \
1175 $(POPT_LIB_OBJ)
1177 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1178 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1180 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1181 @libreplacedir@/test/getifaddrs.o \
1182 @libreplacedir@/test/os2_delete.o \
1183 @libreplacedir@/test/strptime.o \
1184 @libreplacedir@/test/main.o \
1185 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1187 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1189 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1190 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1191 $(LIBNDR_GEN_OBJ0)
1193 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1194 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1196 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1197 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1198 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1199 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1200 $(LIBTSOCKET_OBJ)
1202 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1204 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1206 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1208 IDMAP_HASH_OBJ = \
1209 winbindd/idmap_hash/idmap_hash.o \
1210 winbindd/idmap_hash/mapfile.o
1212 IDMAP_ADEX_OBJ = \
1213 winbindd/idmap_adex/idmap_adex.o \
1214 winbindd/idmap_adex/cell_util.o \
1215 winbindd/idmap_adex/likewise_cell.o \
1216 winbindd/idmap_adex/provider_unified.o \
1217 winbindd/idmap_adex/gc_util.o \
1218 winbindd/idmap_adex/domain_util.o
1220 WINBINDD_OBJ1 = \
1221 winbindd/winbindd.o \
1222 winbindd/winbindd_group.o \
1223 winbindd/winbindd_util.o \
1224 winbindd/winbindd_cache.o \
1225 winbindd/winbindd_pam.o \
1226 winbindd/winbindd_misc.o \
1227 winbindd/winbindd_cm.o \
1228 winbindd/winbindd_wins.o \
1229 winbindd/winbindd_msrpc.o \
1230 winbindd/winbindd_rpc.o \
1231 winbindd/winbindd_reconnect.o \
1232 winbindd/winbindd_ads.o \
1233 winbindd/winbindd_samr.o \
1234 winbindd/winbindd_dual.o \
1235 winbindd/winbindd_dual_ndr.o \
1236 winbindd/winbindd_dual_srv.o \
1237 librpc/gen_ndr/cli_wbint.o \
1238 librpc/gen_ndr/ndr_wbint_c.o \
1239 librpc/gen_ndr/srv_wbint.o \
1240 librpc/gen_ndr/ndr_wbint.o \
1241 winbindd/winbindd_async.o \
1242 winbindd/winbindd_creds.o \
1243 winbindd/winbindd_cred_cache.o \
1244 winbindd/winbindd_ccache_access.o \
1245 winbindd/winbindd_domain.o \
1246 winbindd/winbindd_idmap.o \
1247 winbindd/winbindd_locator.o \
1248 winbindd/winbindd_ndr.o \
1249 winbindd/wb_ping.o \
1250 winbindd/wb_lookupsid.o \
1251 winbindd/wb_lookupname.o \
1252 winbindd/wb_sid2uid.o \
1253 winbindd/wb_sid2gid.o \
1254 winbindd/wb_uid2sid.o \
1255 winbindd/wb_gid2sid.o \
1256 winbindd/wb_queryuser.o \
1257 winbindd/wb_lookupuseraliases.o \
1258 winbindd/wb_lookupusergroups.o \
1259 winbindd/wb_getpwsid.o \
1260 winbindd/wb_gettoken.o \
1261 winbindd/wb_seqnum.o \
1262 winbindd/wb_seqnums.o \
1263 winbindd/wb_group_members.o \
1264 winbindd/wb_getgrsid.o \
1265 winbindd/wb_query_user_list.o \
1266 winbindd/wb_fill_pwent.o \
1267 winbindd/wb_next_pwent.o \
1268 winbindd/wb_next_grent.o \
1269 winbindd/wb_dsgetdcname.o \
1270 winbindd/winbindd_lookupsid.o \
1271 winbindd/winbindd_lookupname.o \
1272 winbindd/winbindd_sid_to_uid.o \
1273 winbindd/winbindd_sid_to_gid.o \
1274 winbindd/winbindd_uid_to_sid.o \
1275 winbindd/winbindd_gid_to_sid.o \
1276 winbindd/winbindd_allocate_uid.o \
1277 winbindd/winbindd_allocate_gid.o \
1278 winbindd/winbindd_getpwsid.o \
1279 winbindd/winbindd_getpwnam.o \
1280 winbindd/winbindd_getpwuid.o \
1281 winbindd/winbindd_getsidaliases.o \
1282 winbindd/winbindd_getuserdomgroups.o \
1283 winbindd/winbindd_getgroups.o \
1284 winbindd/winbindd_show_sequence.o \
1285 winbindd/winbindd_getgrgid.o \
1286 winbindd/winbindd_getgrnam.o \
1287 winbindd/winbindd_getusersids.o \
1288 winbindd/winbindd_lookuprids.o \
1289 winbindd/winbindd_setpwent.o \
1290 winbindd/winbindd_getpwent.o \
1291 winbindd/winbindd_endpwent.o \
1292 winbindd/winbindd_setgrent.o \
1293 winbindd/winbindd_getgrent.o \
1294 winbindd/winbindd_endgrent.o \
1295 winbindd/winbindd_dsgetdcname.o \
1296 winbindd/winbindd_getdcname.o \
1297 winbindd/winbindd_list_users.o \
1298 winbindd/winbindd_list_groups.o \
1299 winbindd/winbindd_check_machine_acct.o \
1300 winbindd/winbindd_change_machine_acct.o \
1301 winbindd/winbindd_ping_dc.o \
1302 winbindd/winbindd_pam_auth.o \
1303 winbindd/winbindd_pam_auth_crap.o \
1304 winbindd/winbindd_pam_chauthtok.o \
1305 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1306 winbindd/winbindd_pam_logoff.o \
1307 auth/auth_util.o \
1308 auth/token_util.o \
1309 auth/user_util.o \
1310 auth/check_samsec.o \
1311 auth/server_info.o \
1312 auth/server_info_sam.o \
1313 auth/user_info.o \
1314 auth/pampass.o \
1315 ../nsswitch/libwbclient/wb_reqtrans.o
1317 WINBINDD_OBJ = \
1318 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1319 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1320 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1321 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1322 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1323 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1324 $(RPC_NCACN_NP_INTERNAL) $(RPC_SAMR_OBJ) $(RPC_LSA_OBJ) \
1325 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1326 $(LIBADS_SERVER_OBJ) \
1327 $(TDB_VALIDATE_OBJ)
1329 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1330 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1331 lib/winbind_util.o $(WBCOMMON_OBJ)
1333 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1335 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1336 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1338 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1339 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1341 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1342 ../lib/iniparser_build/strlib.o
1344 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1345 $(SOCKET_WRAPPER_OBJ)
1347 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1348 $(SOCKET_WRAPPER_OBJ)
1350 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1351 $(SOCKET_WRAPPER_OBJ)
1353 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1354 $(SOCKET_WRAPPER_OBJ)
1357 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1359 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1360 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o libads/kerberos.o \
1361 $(LIBADS_SERVER_OBJ) \
1362 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1363 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1364 $(WBCOMMON_OBJ) \
1365 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1368 VLP_OBJ = printing/tests/vlp.o \
1369 ../lib/util/util_tdb.o \
1370 $(LIBSAMBAUTIL_OBJ) \
1371 param/util.o
1373 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1374 $(LIBSMB_OBJ) \
1375 $(PARAM_OBJ) \
1376 $(PASSDB_OBJ) \
1377 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1378 $(LIB_NONSMBD_OBJ) \
1379 $(KRBCLIENT_OBJ) \
1380 $(RPC_PARSE_OBJ) \
1381 $(RPC_CLIENT_OBJ1) \
1382 librpc/rpc/rpc_common.o \
1383 rpc_client/cli_pipe.o \
1384 librpc/rpc/dcerpc_gssapi.o \
1385 librpc/rpc/dcerpc_spnego.o \
1386 ../librpc/rpc/binding.o \
1387 $(LIBMSRPC_GEN_OBJ)
1389 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1390 $(PARAM_OBJ) \
1391 $(LIB_NONSMBD_OBJ) \
1392 $(LIBSMB_ERR_OBJ)
1394 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1395 $(PARAM_OBJ) \
1396 $(LIB_NONSMBD_OBJ) \
1397 $(LIBSMB_ERR_OBJ) \
1398 $(POPT_LIB_OBJ)
1400 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1401 $(PARAM_OBJ) \
1402 $(LIB_NONSMBD_OBJ) \
1403 $(POPT_LIB_OBJ) \
1404 $(LIBSAMBA_OBJ)
1406 ######################################################################
1407 # now the rules...
1408 ######################################################################
1409 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1410 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1411 $(EXTRA_ALL_TARGETS)
1413 basics:: samba3-idl
1415 nss_modules:: $(NSS_MODULES)
1417 pam_modules:: $(PAM_MODULES)
1419 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1421 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1423 gpext_modules:: $(GPEXT_MODULES)
1425 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1427 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1429 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1431 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1433 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1435 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1437 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1439 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1441 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1443 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1445 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1447 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1449 talloctort : SHOWFLAGS $(TALLOCTORT)
1451 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1453 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1455 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1457 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1458 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1459 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1461 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1463 modules:: SHOWFLAGS $(MODULES)
1466 #####################################################################
1467 ## Perl IDL Compiler
1469 IDL_FILES = librpc/idl/messaging.idl \
1470 librpc/idl/libnetapi.idl \
1471 librpc/idl/notify.idl \
1472 librpc/idl/wbint.idl \
1473 librpc/idl/perfcount.idl \
1474 librpc/idl/secrets.idl \
1475 librpc/idl/libnet_join.idl \
1476 librpc/idl/preg.idl
1478 samba3-idl::
1479 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1480 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1481 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1482 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1484 idl_full::
1485 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1486 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1487 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1488 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1490 #####################################################################
1493 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1494 $(EVERYTHING_PROGS)
1496 .SUFFIXES:
1497 .SUFFIXES: .c .o .lo
1499 .PHONY: showflags SHOWFLAGS
1501 showflags: SHOWFLAGS
1503 SHOWFLAGS::
1504 @echo "Using CFLAGS = $(CFLAGS)"
1505 @echo " PICFLAG = $(PICFLAG)"
1506 @echo " LIBS = $(LIBS)"
1507 @echo " LDFLAGS = $(LDFLAGS)"
1508 @echo " DYNEXP = $(DYNEXP)"
1509 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1510 @echo " SHLIBEXT = @SHLIBEXT@"
1511 @echo " SONAMEFLAG = @SONAMEFLAG@"
1513 # "showcflags" target for debuggin how CFLAGS are composed:
1515 .PHONY: showcflags SHOWCFLAGS
1517 showcflags: SHOWCFLAGS
1519 SHOWCFLAGS::
1520 @echo "CFLAGS = $(CFLAGS)"
1521 @echo "FLAGS = $(FLAGS)"
1522 @echo ""
1523 @echo "FLAGS1 = @FLAGS1@"
1524 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1525 @echo "CPPFLAGS = $(CPPFLAGS)"
1526 @echo "ISA = $(ISA)"
1528 MAKEDIR = || exec false; \
1529 if test -d "$$dir"; then :; else \
1530 echo mkdir "$$dir"; \
1531 mkdir -p "$$dir" >/dev/null 2>&1 || \
1532 test -d "$$dir" || \
1533 mkdir "$$dir" || \
1534 exec false; fi || exec false
1536 # Run a static checker.
1537 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1538 # Compile a source file.
1539 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1540 # Compile a source file with the installation paths defined.
1541 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1543 COMPILE = $(COMPILE_CC)
1545 .c.o:
1546 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1547 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1548 @if test -n "$(CC_CHECKER)"; then \
1549 echo "Checking $*.c with '$(CC_CHECKER)'";\
1550 $(CHECK_CC); \
1552 @echo Compiling $*.c
1553 @$(COMPILE) && exit 0;\
1554 echo "The following command failed:" 1>&2;\
1555 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1556 $(COMPILE_CC) >/dev/null 2>&1
1557 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1559 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1561 # this adds support for precompiled headers. To use it, install a snapshot
1562 # of gcc-3.4 and run 'make pch' before you do the main build.
1563 pch::
1564 rm -f $(PRECOMPILED_HEADER)
1565 $(MAKE) $(PRECOMPILED_HEADER)
1567 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1568 $(COMPILE)
1570 BINARY_PREREQS = bin/.dummy
1572 # These dependencies are only approximately correct: we want to make
1573 # sure Samba's paths are updated if ./configure is re-run. Really it
1574 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1575 # but since we also require "make install prefix=/opt/samba" *not* to
1576 # rebuild it's a bit hard.
1578 dynconfig.o: dynconfig.c Makefile
1579 @echo Compiling $*.c
1580 @$(COMPILE_CC_PATH) && exit 0;\
1581 echo "The following command failed:" 1>&2;\
1582 echo "$(COMPILE_CC_PATH)" 1>&2;\
1583 $(COMPILE_CC_PATH) >/dev/null 2>&1
1585 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1586 @echo Compiling $*.c
1587 @$(COMPILE_CC_PATH) && exit 0;\
1588 echo "The following command failed:" 1>&2;\
1589 echo "$(COMPILE_CC_PATH)" 1>&2;\
1590 $(COMPILE_CC_PATH) >/dev/null 2>&1
1592 ### Start section of object files that require PTHREAD_CFLAGS
1593 ../nsswitch/wins.o: ../nsswitch/wins.c
1594 @echo Compiling $*.c
1595 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1596 echo "The following command failed:" 1>&2;\
1597 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1598 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1600 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1601 @echo Compiling $*.c
1602 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1603 echo "The following command failed:" 1>&2;\
1604 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1605 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1607 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1608 @echo Compiling $*.c
1609 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1610 echo "The following command failed:" 1>&2;\
1611 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1612 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1614 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1615 @echo Compiling $*.c
1616 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1617 echo "The following command failed:" 1>&2;\
1618 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1619 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1620 ### End section of object files that require PTHREAD_CFLAGS
1622 localedir.o: localedir.c Makefile
1623 @echo Compiling $*.c
1624 @$(COMPILE_CC_PATH) && exit 0;\
1625 echo "The following command failed:" 1>&2;\
1626 echo "$(COMPILE_CC_PATH)" 1>&2;\
1627 $(COMPILE_CC_PATH) >/dev/null 2>&1
1629 lib/pidfile.o: lib/pidfile.c
1630 @echo Compiling $*.c
1631 @$(COMPILE_CC_PATH) && exit 0;\
1632 echo "The following command failed:" 1>&2;\
1633 echo "$(COMPILE_CC_PATH)" 1>&2;\
1634 $(COMPILE_CC_PATH) >/dev/null 2>&1
1636 lib/version.o: lib/version.c include/version.h
1637 @echo Compiling $*.c
1638 @$(COMPILE_CC_PATH) && exit 0;\
1639 echo "The following command failed:" 1>&2;\
1640 echo "$(COMPILE_CC_PATH)" 1>&2;\
1641 $(COMPILE_CC_PATH) >/dev/null 2>&1
1643 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1644 @echo Compiling $*.c
1645 @$(COMPILE_CC_PATH) && exit 0;\
1646 echo "The following command failed:" 1>&2;\
1647 echo "$(COMPILE_CC_PATH)" 1>&2;\
1648 $(COMPILE_CC_PATH) >/dev/null 2>&1
1650 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1651 @echo Generating $@
1652 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1654 bin/.dummy:
1655 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1656 dir=bin $(MAKEDIR); fi
1657 @: >> $@ || : > $@ # what a fancy emoticon!
1659 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1660 @echo Linking $@
1661 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1662 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1663 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1664 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1665 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1667 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1668 @echo Linking $@
1669 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1670 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1671 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1672 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1674 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1675 @echo Linking $@
1676 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1677 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1678 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1680 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1681 @echo Linking $@
1682 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1683 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1684 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1685 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1687 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1688 @echo Linking $@
1689 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1690 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1691 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1692 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1694 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1695 @echo Linking $@
1696 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1697 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1698 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1699 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1700 $(ZLIB_LIBS)
1702 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1703 @echo Linking $@
1704 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1705 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1707 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1708 @echo Linking $@
1709 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1710 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1711 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1713 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1714 @echo Linking $@
1715 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1716 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1718 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1719 @echo Linking $@
1720 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1721 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1723 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1724 @echo Linking $@
1725 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1726 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1728 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1729 @echo Linking $@
1730 @$(CC) -DUSING_SMBCONTROL -o $@ \
1731 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1732 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1733 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1735 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1736 @echo Linking $@
1737 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1738 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1739 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1741 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1742 @echo Linking $@
1743 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1744 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1745 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1747 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1748 @echo Linking $@
1749 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1750 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1751 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1753 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1754 @echo Linking $@
1755 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1756 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1757 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1759 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1760 @echo Linking $@
1761 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1762 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1764 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1765 @echo Linking $@
1766 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1767 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1768 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1770 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1771 @echo Linking $@
1772 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1773 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1774 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1776 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1777 @echo Linking $@
1778 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1779 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1781 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1782 @echo Linking $@
1783 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1784 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1785 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1787 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1788 @echo Linking $@
1789 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1790 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1791 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1792 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1794 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1795 @echo Linking $@
1796 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1797 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1798 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1800 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1801 @echo Linking $@
1802 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1803 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1804 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1806 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1807 @echo Linking $@
1808 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1809 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1810 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1812 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1813 @echo Linking $@
1814 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1815 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1817 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1818 @echo Linking $@
1819 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1820 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1822 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1823 @echo Linking $@
1824 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1825 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1826 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1827 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1829 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1830 @echo Linking $@
1831 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1833 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1834 @echo Linking $@
1835 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1836 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1837 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1839 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1840 @echo Linking $@
1841 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1842 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1843 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1844 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1845 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1847 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1848 @echo Linking $@
1849 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1850 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1851 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1853 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1854 @echo Linking $@
1855 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1856 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1858 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1859 @echo Linking $@
1860 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1861 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1862 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1863 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1865 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1866 @echo Linking $@
1867 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1868 $(LIBS) $(LIBTALLOC_LIBS)
1870 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1871 @echo Linking $@
1872 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1873 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1874 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1875 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1877 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1878 @echo Linking $@
1879 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1882 #####################################################################
1884 # libraries
1886 #####################################################################
1888 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1891 #-------------------------------------------------------------------
1893 # libtalloc
1895 #-------------------------------------------------------------------
1898 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1899 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1901 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1902 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1903 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1904 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1905 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1906 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1908 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1909 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1911 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1912 @echo Linking shared library $@
1913 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
1915 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1916 @rm -f $@
1917 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1919 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1920 @echo Linking non-shared library $@
1921 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1922 libtalloc: $(LIBTALLOC)
1924 cleanlibtalloc::
1925 -rm -f \
1926 $(LIBTALLOC_SYMS) \
1927 $(LIBTALLOC_STATIC_TARGET) \
1928 $(LIBTALLOC_SHARED_TARGET) \
1929 $(LIBTALLOC_SHARED_TARGET_SONAME)
1931 installlibtalloc:: installdirs libtalloc
1932 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1933 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1934 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1935 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1936 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1937 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1939 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1940 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1941 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1943 uninstalllibtalloc::
1944 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1945 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1946 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1947 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1949 libs:: libtalloc
1950 installlibs:: @INSTALL_LIBTALLOC@
1951 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1952 cleanlibs:: cleanlibtalloc
1953 shlibs test_shlibs: @LIBTALLOC_SHARED@
1955 showlibtalloc:
1956 @echo ""
1957 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
1958 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
1959 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
1960 @echo ""
1961 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
1962 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
1963 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
1964 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
1965 @echo "LIBTALLOC = $(LIBTALLOC)"
1967 showlibs:: showlibtalloc
1969 #-------------------------------------------------------------------
1971 # libtdb
1973 #-------------------------------------------------------------------
1975 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
1976 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1978 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1979 LIBTDB_SOVER=@LIBTDB_SOVER@
1980 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1981 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1982 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1983 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1985 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1986 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1988 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1989 @echo Linking shared library $@
1990 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
1991 @SONAMEFLAG@`basename $@`
1993 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1994 @rm -f $@
1995 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1997 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1998 @echo Linking non-shared library $@
1999 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2001 libtdb: $(LIBTDB)
2003 cleanlibtdb::
2004 -rm -f \
2005 $(LIBTDB_SYMS) \
2006 $(LIBTDB_STATIC_TARGET) \
2007 $(LIBTDB_SHARED_TARGET) \
2008 $(LIBTDB_SHARED_TARGET_SONAME)
2011 installlibtdb:: installdirs libtdb
2012 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2013 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2014 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2015 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2016 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2017 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2019 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2020 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2021 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2023 uninstalllibtdb::
2024 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2025 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2026 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2027 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2029 libs:: libtdb
2030 installlibs:: @INSTALL_LIBTDB@
2031 uninstalllibs:: @UNINSTALL_LIBTDB@
2032 cleanlibs:: cleanlibtdb
2033 shlibs test_shlibs: @LIBTDB_SHARED@
2035 showlibtdb:
2036 @echo ""
2037 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2038 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2039 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2040 @echo ""
2041 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2042 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2043 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2044 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2045 @echo "LIBTDB = $(LIBTDB)"
2047 showlibs:: showlibtdb
2049 #-------------------------------------------------------------------
2051 # libwbclient
2053 #-------------------------------------------------------------------
2055 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2056 ../nsswitch/libwbclient/wbc_util.o \
2057 ../nsswitch/libwbclient/wbc_pwd.o \
2058 ../nsswitch/libwbclient/wbc_idmap.o \
2059 ../nsswitch/libwbclient/wbc_sid.o \
2060 ../nsswitch/libwbclient/wbc_guid.o \
2061 ../nsswitch/libwbclient/wbc_pam.o
2063 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2064 $(WBCOMMON_OBJ) \
2065 $(LIBREPLACE_OBJ) \
2066 ../lib/util/blocking.o \
2067 $(SOCKET_WRAPPER_OBJ)
2069 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2070 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2071 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
2072 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2073 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2074 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2076 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2077 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2079 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2080 @echo Linking shared library $@
2081 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2082 @SONAMEFLAG@`basename $@`
2084 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2085 @rm -f $@
2086 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2088 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2089 @echo Linking non-shared library $@
2090 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2092 libwbclient: $(LIBWBCLIENT)
2094 cleanlibwbclient::
2095 -rm -f \
2096 $(LIBWBCLIENT_SYMS) \
2097 $(LIBWBCLIENT_STATIC_TARGET) \
2098 $(LIBWBCLIENT_SHARED_TARGET) \
2099 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2101 installlibwbclient:: installdirs libwbclient
2102 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2103 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2104 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2105 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2106 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2107 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2109 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2110 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2111 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2113 uninstalllibwbclient::
2114 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2115 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2116 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2117 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2119 libs:: libwbclient
2120 installlibs:: @INSTALL_LIBWBCLIENT@
2121 uninstalllibs:: uninstalllibwbclient
2122 cleanlibs:: cleanlibwbclient
2123 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2125 showlibwbclient:
2126 @echo ""
2127 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2128 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2129 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2130 @echo ""
2131 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2132 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2133 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2134 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2135 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2137 showlibs:: showlibwbclient
2140 #-------------------------------------------------------------------
2142 # libaddns
2144 #-------------------------------------------------------------------
2147 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2148 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2149 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2150 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2151 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2152 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2153 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
2155 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2156 @echo Linking shared library $@
2157 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2158 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2159 @SONAMEFLAG@`basename $@`
2161 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2162 @rm -f $@
2163 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2165 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2166 @echo Linking non-shared library $@
2167 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2169 libaddns: $(LIBADDNS)
2171 cleanlibaddns::
2172 -rm -f \
2173 $(LIBADDNS_SHARED_TARGET) \
2174 $(LIBADDNS_SHARED_TARGET_SONAME) \
2175 $(LIBADDNS_STATIC_TARGET)
2177 installlibaddns:: installdirs libaddns
2178 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2179 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2180 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2181 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2182 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2183 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2185 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2187 uninstalllibaddns::
2188 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2189 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2190 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2192 libs:: libaddns
2193 installlibs:: @INSTALL_LIBADDNS@
2194 uninstalllibs:: @UNINSTALL_LIBADDNS@
2195 cleanlibs:: cleanlibaddns
2196 shlibs test_shlibs: @LIBADDNS_SHARED@
2198 showlibaddns:
2199 @echo ""
2200 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2201 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2202 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2203 @echo ""
2204 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2205 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2206 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2207 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2208 @echo "LIBADDNS = $(LIBADDNS)"
2210 showlibs:: showlibaddns
2212 #-------------------------------------------------------------------
2214 # libnetapi
2216 #-------------------------------------------------------------------
2218 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2219 lib/netapi/cm.o \
2220 librpc/gen_ndr/ndr_libnetapi.o \
2221 lib/netapi/libnetapi.o \
2222 lib/netapi/joindomain.o \
2223 lib/netapi/serverinfo.o \
2224 lib/netapi/getdc.o \
2225 lib/netapi/user.o \
2226 lib/netapi/group.o \
2227 lib/netapi/localgroup.o \
2228 lib/netapi/samr.o \
2229 lib/netapi/sid.o \
2230 lib/netapi/share.o \
2231 lib/netapi/file.o \
2232 lib/netapi/shutdown.o \
2233 lib/netapi/netlogon.o
2235 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2236 $(LIBSMBCONF_OBJ) \
2237 $(REG_SMBCONF_OBJ) \
2238 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2239 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2240 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
2241 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2242 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2243 auth/token_util.o
2245 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2246 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2247 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2248 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2249 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2250 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2252 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2253 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2255 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2256 @echo Linking shared library $@
2257 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2258 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2259 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2260 @SONAMEFLAG@`basename $@`
2262 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2263 @rm -f $@
2264 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2266 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2267 @echo Linking non-shared library $@
2268 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2270 libnetapi: $(LIBNETAPI)
2272 cleanlibnetapi::
2273 -rm -f \
2274 $(LIBNETAPI_SYMS) \
2275 $(LIBNETAPI_STATIC_TARGET) \
2276 $(LIBNETAPI_SHARED_TARGET) \
2277 $(LIBNETAPI_SHARED_TARGET_SONAME)
2279 installlibnetapi:: installdirs libnetapi
2280 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2281 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2282 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2283 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2284 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2285 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2287 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2288 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2289 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2291 uninstalllibnetapi::
2292 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2293 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2294 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2295 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2297 libs:: libnetapi
2298 installlibs:: @INSTALL_LIBNETAPI@
2299 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2300 cleanlibs:: cleanlibnetapi
2301 shlibs test_shlibs: @LIBNETAPI_SHARED@
2303 showlibnetapi:
2304 @echo ""
2305 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2306 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2307 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2308 @echo ""
2309 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2310 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2311 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2312 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2313 @echo "LIBNETAPI = $(LIBNETAPI)"
2315 showlibs:: showlibnetapi
2317 #-------------------------------------------------------------------
2319 # libsmbclient
2321 #-------------------------------------------------------------------
2323 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2324 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2325 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2326 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2327 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2328 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2329 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2331 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2332 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2334 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2335 @echo Linking shared library $@
2336 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2337 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2338 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2339 @SONAMEFLAG@`basename $@`
2341 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2342 @rm -f $@
2343 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2345 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2346 @echo Linking non-shared library $@
2347 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2349 libsmbclient: $(LIBSMBCLIENT)
2351 cleanlibsmbclient::
2352 -rm -f \
2353 $(LIBSMBCLIENT_SHARED_TARGET) \
2354 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2355 $(LIBSMBCLIENT_STATIC_TARGET)
2357 installlibsmbclient:: installdirs libsmbclient
2358 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2359 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2360 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2361 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2362 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2363 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2365 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2366 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2367 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2369 installclientlib:: installlibsmbclient
2371 uninstalllibsmbclient::
2372 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2373 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2374 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2375 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2377 uninstallclientlib:: uninstalllibsmbclient
2379 libs:: libsmbclient
2380 installlibs:: @INSTALL_LIBSMBCLIENT@
2381 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2382 cleanlibs:: cleanlibsmbclient
2383 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2385 showlibsmbclient:
2386 @echo ""
2387 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2388 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2389 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2390 @echo ""
2391 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2392 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2393 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2394 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2395 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2397 showlibs:: showlibsmbclient
2399 #-------------------------------------------------------------------
2401 # libsmbsharemodes
2403 #-------------------------------------------------------------------
2405 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2407 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2409 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2410 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2411 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2412 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2413 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2414 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2415 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2417 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2418 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2420 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2421 @echo Linking shared library $@
2422 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2423 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2424 @SONAMEFLAG@`basename $@`
2426 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2427 @rm -f $@
2428 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2430 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2431 @echo Linking non-shared library $@
2432 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2434 libsmbsharemodes: $(LIBSMBSHAREMODES)
2436 cleanlibsmbsharemodes::
2437 -rm -f \
2438 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2439 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2440 $(LIBSMBSHAREMODES_STATIC_TARGET)
2442 installlibsmbsharemodes:: installdirs libsmbsharemodes
2443 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2444 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2445 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2446 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2447 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2448 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2450 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2451 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2452 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2454 uninstalllibsmbsharemodes::
2455 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2456 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2457 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2458 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2460 libs:: libsmbsharemodes
2461 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2462 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2463 cleanlibs:: cleanlibsmbsharemodes
2464 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2466 showlibsmbsharemodes:
2467 @echo ""
2468 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2469 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2470 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2471 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2472 @echo ""
2473 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2474 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2475 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2476 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2477 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2479 showlibs:: showlibsmbsharemodes
2481 #-------------------------------------------------------------------
2483 # libbigballofmud
2485 #-------------------------------------------------------------------
2487 # This is probably wrong for anything other than the GNU linker.
2488 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2489 @echo Linking shared library $@
2490 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2491 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2492 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2493 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2494 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2496 # It would be nice to build a static bigballofmud too, but when I try
2497 # I get linker errors about dl_open and similar things. I'm not sure if
2498 # it can be fixed or if they just can't be called from a static
2499 # library.
2501 #####################################################################
2503 # shared modules
2505 #####################################################################
2507 # Linker command to link our shared libraries:
2508 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2509 -o $@ @SONAMEFLAG@`basename $@`
2510 # Linker command to link samba internal plugin modules:
2511 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2512 -o $@ @SONAMEFLAG@`basename $@`
2514 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2515 @echo "Linking $@"
2516 @$(SHLD_LIBRARY) $(RPC_LSA_OBJ)
2518 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2519 @echo "Linking $@"
2520 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2522 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2523 @echo "Linking $@"
2524 @$(SHLD_LIBRARY) $(RPC_SVC_OBJ)
2526 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2527 @echo "Linking $@"
2528 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2530 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2531 @echo "Linking $@"
2532 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2534 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2535 @echo "Linking $@"
2536 @$(SHLD_LIBRARY) $(RPC_WKS_OBJ)
2538 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2539 @echo "Linking $@"
2540 @$(SHLD_LIBRARY) $(RPC_NETLOG_OBJ)
2542 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2543 @echo "Linking $@"
2544 @$(SHLD_LIBRARY) $(RPC_REG_OBJ)
2546 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2547 @echo "Linking $@"
2548 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2550 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2551 @echo "Linking $@"
2552 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2554 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2555 @echo "Linking $@"
2556 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2558 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2559 @echo "Linking $@"
2560 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2562 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2563 @echo "Linking $@"
2564 @$(SHLD_LIBRARY) $(RPC_DFS_OBJ)
2566 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2567 @echo "Linking $@"
2568 @$(SHLD_LIBRARY) $(RPC_ECHO_OBJ)
2570 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2571 @echo "Linking $@"
2572 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2573 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2574 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2575 $(ZLIB_LIBS)
2577 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2578 @echo "Linking $@"
2579 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2580 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2581 $(LIBTDB_LIBS)
2583 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2584 @echo "Linking $@"
2585 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2586 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2587 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2589 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2590 @echo "Linking $@"
2591 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2592 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2593 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2595 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2596 @echo "Linking $@"
2597 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2598 @SONAMEFLAG@`basename $@`
2600 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2601 @echo "Linking shared library $@"
2602 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2603 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2605 ##########
2606 # Plugins:
2607 ##########
2609 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2610 @echo "Building plugin $@"
2611 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2613 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2614 @echo "Building plugin $@"
2615 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2617 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2618 @echo "Building plugin $@"
2619 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2621 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2622 @echo "Building plugin $@"
2623 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2625 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2626 @echo "Building plugin $@"
2627 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2629 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2630 @echo "Building plugin $@"
2631 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2633 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2634 @echo "Building plugin $@"
2635 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2637 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2638 @echo "Building plugin $@"
2639 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2641 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2642 @echo "Building plugin $@"
2643 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2645 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2646 @echo "Building plugin $@"
2647 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2649 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2650 @echo "Building plugin $@"
2651 @$(SHLD_MODULE) passdb/pdb_ads.o
2653 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2654 @echo "Building plugin $@"
2655 @$(SHLD_MODULE) passdb/pdb_tdb.o
2657 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2658 @echo "Building plugin $@"
2659 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2661 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2662 @echo "Building plugin $@"
2663 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2665 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2666 @echo "Building plugin $@"
2667 @$(SHLD_MODULE) winbindd/idmap_rid.o
2669 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2670 @echo "Building plugin $@"
2671 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2673 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2674 @echo "Building plugin $@"
2675 @$(SHLD_MODULE) winbindd/idmap_ad.o
2677 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2678 @echo "Building plugin $@"
2679 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2681 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2682 @echo "Building plugin $@"
2683 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2685 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2686 @echo "Building plugin $@"
2687 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2689 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2690 @echo "Building plugin $@"
2691 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2693 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2694 @echo "Building plugin $@"
2695 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2697 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2698 @echo "Building plugin $@"
2699 @$(SHLD_MODULE) $(CP850_OBJ)
2701 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2702 @echo "Building plugin $@"
2703 @$(SHLD_MODULE) $(CP437_OBJ)
2705 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2706 @echo "Building plugin $@"
2707 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2709 # NOTE, there is no build rule for a dynamic default VFS module because
2710 # this one MUST MUST MUST be built statically.
2712 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2713 @echo "Building plugin $@"
2714 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2716 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2717 @echo "Building plugin $@"
2718 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2720 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2721 @echo "Building plugin $@"
2722 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2724 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2725 @echo "Building plugin $@"
2726 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2728 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2729 @echo "Building plugin $@"
2730 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2732 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2733 @echo "Building plugin $@"
2734 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2736 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2737 @echo "Building plugin $@"
2738 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2740 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2741 @echo "Building plugin $@"
2742 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2744 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2745 @echo "Building plugin $@"
2746 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2748 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2749 @echo "Building plugin $@"
2750 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2752 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2753 @echo "Building plugin $@"
2754 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2756 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2757 @echo "Building plugin $@"
2758 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2760 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2761 @echo "Building plugin $@"
2762 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2764 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2765 @echo "Building plugin $@"
2766 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2768 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2769 @echo "Building plugin $@"
2770 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2772 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2773 @echo "Building plugin $@"
2774 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2776 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2777 @echo "Building plugin $@"
2778 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2780 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2781 @echo "Building plugin $@"
2782 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2784 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2785 @echo "Building plugin $@"
2786 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2788 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2789 @echo "Building plugin $@"
2790 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2792 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2793 @echo "Building plugin $@"
2794 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2796 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2797 @echo "Building plugin $@"
2798 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2800 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2801 @echo "Building plugin $@"
2802 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2804 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2805 @echo "Building plugin $@"
2806 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2808 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2809 @echo "Building plugin $@"
2810 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2812 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2813 @echo "Building plugin $@"
2814 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2816 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2817 @echo "Building plugin $@"
2818 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2820 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2821 @echo "Building plugin $@"
2822 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2824 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2825 @echo "Building plugin $@"
2826 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2828 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2829 @echo "Building plugin $@"
2830 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2832 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2833 @echo "Building plugin $@"
2834 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2836 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2837 @echo "Building plugin $@"
2838 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2840 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2841 @echo "Building plugin $@"
2842 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2844 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2845 @echo "Building plugin $@"
2846 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2848 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2849 @echo "Building plugin $@"
2850 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2852 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2853 @echo "Building plugin $@"
2854 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2856 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2857 @echo "Building plugin $@"
2858 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2860 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2861 @echo "Building plugin $@"
2862 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2864 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2865 @echo "Building plugin $@"
2866 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2868 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2869 @echo "Building plugin $@"
2870 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2872 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2873 @echo "Building plugin $@"
2874 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2876 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2877 @echo "Building plugin $@"
2878 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2880 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2881 @echo "Building plugin $@"
2882 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2884 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2885 @echo "Building plugin $@"
2886 @$(SHLD_MODULE) libgpo/gpext/registry.o
2888 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2889 @echo "Building plugin $@"
2890 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2892 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2893 @echo "Building plugin $@"
2894 @$(SHLD_MODULE) libgpo/gpext/security.o
2896 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2897 @echo "Building plugin $@"
2898 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2900 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
2901 @echo "Building plugin $@"
2902 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
2904 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
2905 @echo "Building plugin $@"
2906 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
2908 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
2909 @echo "Building plugin $@"
2910 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
2912 #########################################################
2913 ## IdMap NSS plugins
2915 ## None here right now
2916 #########################################################
2918 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2919 @echo Linking $@
2920 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2921 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2922 $(LIBWBCLIENT_LIBS)
2924 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2925 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2926 @echo Linking $@
2927 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2928 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2929 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2930 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
2932 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
2933 @echo "Linking shared library $@"
2934 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2935 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2936 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2938 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
2939 @echo Linking $@
2940 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2941 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2943 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
2944 @echo Linking $@
2945 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2946 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2948 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTALLOC) $(LIBTDB)
2949 @echo Linking $@
2950 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2951 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2953 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
2954 @echo Linking $@
2955 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2956 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2958 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2959 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2960 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
2962 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2963 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2964 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
2966 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2967 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2968 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
2970 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2971 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2972 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
2974 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2975 @echo Linking $@
2976 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
2978 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2979 @echo "Linking $@"
2980 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2981 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
2982 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2984 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
2985 @echo "Linking $@"
2986 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
2987 $(LDFLAGS) $(DYNEXP) $(LIBS) \
2988 $(LDAP_LIBS) \
2989 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2991 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
2992 @echo "Linking $@"
2993 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
2994 $(LDFLAGS) $(DYNEXP) $(LIBS) \
2995 $(LDAP_LIBS) \
2996 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2998 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
2999 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3001 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3002 @echo "Linking $@"
3003 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3004 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3005 $(LDAP_LIBS) \
3006 $(POPT_LIBS) \
3007 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3009 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3010 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3012 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
3013 @echo "Linking $@"
3014 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3015 $(LDFLAGS) $(DYNEXP) \
3016 $(LIBS) $(POPT_LIBS) \
3017 $(LDAP_LIBS) \
3018 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3020 install:: installservers installbin installman \
3021 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3022 @INSTALL_PAM_MODULES@ installlibs installmo
3024 install-everything:: install installmodules
3026 # DESTDIR is used here to prevent packagers wasting their time
3027 # duplicating the Makefile. Remove it and you will have the privelege
3028 # of package each samba release for muliple versions of multiple
3029 # distributions and operating systems, or at least supplying patches
3030 # to all the packaging files required for this, prior to committing
3031 # the removal of DESTDIR. Do not remove it even though you think it
3032 # is not used
3034 installdirs::
3035 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3036 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3037 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3038 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3040 installservers:: all installdirs
3041 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3043 installbin:: all installdirs
3044 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3046 # Some symlinks are required for the 'probing' of modules.
3047 # This mechanism should go at some point..
3048 installmodules:: modules installdirs
3049 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3050 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3051 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3052 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3053 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3054 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3055 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3056 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3057 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3058 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3059 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3060 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3061 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3062 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3063 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3064 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3065 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3066 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3067 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3069 installscripts:: installdirs
3070 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3072 installdat:: installdirs
3073 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3075 installmsg:: installdirs
3076 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3078 installswat:: installdirs installmsg
3079 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3081 installpammodules:: $(PAM_MODULES)
3082 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3083 @for module in $(PAM_MODULES); do \
3084 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3085 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3086 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3087 done
3089 # revert to the previously installed version
3090 revert::
3091 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3092 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3094 installman:: installdirs
3095 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3097 installmo:: all installdirs
3098 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3100 .PHONY: showlayout
3102 showlayout::
3103 @echo "Samba will be installed into:"
3104 @echo " prefix: $(prefix)"
3105 @echo " bindir: $(BINDIR)"
3106 @echo " sbindir: $(SBINDIR)"
3107 @echo " libdir: $(LIBDIR)"
3108 @echo " modulesdir: $(MODULESDIR)"
3109 @echo " vardir: $(VARDIR)"
3110 @echo " mandir: $(MANDIR)"
3111 @echo " privatedir: $(PRIVATE_DIR)"
3112 @echo " configdir: $(CONFIGDIR)"
3113 @echo " lockdir: $(LOCKDIR)"
3114 @echo " statedir: $(STATEDIR)"
3115 @echo " cachedir: $(CACHEDIR)"
3116 @echo " piddir: $(PIDDIR)"
3117 @echo " swatdir: $(SWATDIR)"
3118 @echo " datadir: ${DATADIR}"
3119 @echo " codepagedir: $(CODEPAGEDIR)"
3122 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3124 uninstallmo::
3125 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3127 uninstallman::
3128 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3130 uninstallservers::
3131 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3133 uninstallbin::
3134 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3136 uninstallmodules::
3137 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3138 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3139 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3140 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3141 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3142 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3143 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3144 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3146 uninstallscripts::
3147 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3149 uninstalldat::
3150 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3152 uninstallmsg::
3153 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3155 uninstallswat:: uninstallmsg
3156 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3158 uninstallpammodules::
3159 @for module in $(PAM_MODULES); do \
3160 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3161 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3162 done
3164 # Toplevel clean files
3165 TOPFILES=dynconfig.o localedir.o
3167 cleanlibs::
3168 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3169 ../lib/*/*.ho \
3170 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3171 ../librpc/*/*.o \
3172 ../libgpo/*.o ../libgpo/*/*.o \
3173 ../libds/*.o ../libds/*/*.o
3175 clean:: cleanlibs
3176 -rm -f include/build_env.h
3177 -rm -f smbd/build_options.c
3178 -rm -f $(PRECOMPILED_HEADER)
3179 -rm -f core */*~ *~ \
3180 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3181 ../testsuite/*/*.o \
3182 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3183 ../client/*.o \
3184 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3185 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3186 $(MODULES) $(TORTURE_PROGS) \
3187 $(EVERYTHING_PROGS) \
3188 bin/timelimit \
3189 .headers.stamp */src/*.o
3190 -rm -rf t_dir
3192 include/build_env.h: script/build_env.sh
3193 @echo Building include/build_env.h
3194 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3195 > $(builddir)/include/build_env.h
3197 proto::
3199 etags::
3200 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3202 ctags::
3203 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3205 realclean:: clean
3206 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3207 -rm -f script/installbin.sh script/uninstallbin.sh
3209 distclean:: realclean
3210 -rm -f smbadduser
3211 -rm -f include/config.h Makefile
3212 -rm -f config.status config.cache so_locations
3213 -rm -rf .deps TAGS
3215 realdistclean:: distclean
3216 -rm -f include/config.h.in
3217 -rm -f include/version.h
3218 -rm -f configure
3220 # this target is really just for my use. It only works on a limited
3221 # range of machines and is used to produce a list of potentially
3222 # dead (ie. unused) functions in the code. (tridge)
3223 finddead::
3224 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3225 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3226 comm -13 nmused.txt nmfns.txt
3229 # when configure.in is updated, reconfigure
3230 $(srcdir)/configure: $(srcdir)/configure.in
3231 @echo "WARNING: you need to rerun ./autogen.sh"
3233 config.status: $(srcdir)/configure
3234 @echo "WARNING: you need to run ./configure"
3236 Makefile: $(srcdir)/Makefile.in config.status
3237 @echo "WARNING: you need to run ./config.status"
3239 ######################################################################
3240 # Samba Testing Framework
3242 # Check shared libs for unresolved symbols
3243 test_shlibs:
3244 @echo "Testing $? "
3245 @$(LIB_PATH_VAR)=./bin && \
3246 export $(LIB_PATH_VAR) && \
3247 for module in $?; do \
3248 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3249 || exit 1; \
3250 done
3252 # Check for NSS module problems.
3253 test_nss_modules:: nss_modules
3254 @echo "Testing $(NSS_MODULES) "
3255 @$(LIB_PATH_VAR)=./bin && \
3256 export $(LIB_PATH_VAR) && \
3257 for module in $(NSS_MODULES); do \
3258 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3259 || exit 1; \
3260 done
3262 # Check for PAM module problems. Specifically, check that every module we
3263 # built can actually be loaded by a minimal PAM-aware application.
3264 test_pam_modules:: pam_modules
3265 @echo "Testing $(PAM_MODULES) "
3266 @$(LIB_PATH_VAR)=./bin && \
3267 export $(LIB_PATH_VAR) && \
3268 for module in $(PAM_MODULES); do \
3269 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3270 || exit 1; \
3271 done
3275 ## Targets for 'make test'
3278 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3280 oldtest:: all torture timelimit
3281 @echo Running Test suite
3282 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/@WINBIND_NSS@" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3284 valgrindtest:: all torture timelimit
3285 @echo Running Test suite with valgrind
3286 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3287 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3288 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3289 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3290 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
3291 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3293 selftestdir = ../selftest
3295 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3297 FILTER_XFAIL = $(PYTHON) -u $(selftestdir)/filter-subunit --expected-failures=$(srcdir)/selftest/knownfail
3298 SUBUNIT_FORMATTER = $(PYTHON) $(selftestdir)/format-subunit --immediate
3299 FORMAT_TEST_OUTPUT = $(FILTER_XFAIL) | $(SUBUNIT_FORMATTER)
3301 ifeq ($(RUN_FROM_BUILD_FARM),yes)
3302 test:: all torture timelimit
3303 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3304 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3305 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3306 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/@WINBIND_NSS@" \
3307 $(PERL) $(selftestdir)/selftest.pl \
3308 --prefix=${selftest_prefix} --target=samba3 \
3309 --testlist="$(srcdir)/selftest/tests.sh|" \
3310 --exclude=$(srcdir)/selftest/skip \
3311 --socket-wrapper $(TESTS) | \
3312 $(FILTER_XFAIL) --strip-passed-output
3313 test -f ${selftest_prefix}/summary && cat ${selftest_prefix}/summary
3314 else
3315 test:: all torture timelimit
3316 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3317 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3318 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3319 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/@WINBIND_NSS@" \
3320 $(PERL) $(selftestdir)/selftest.pl \
3321 --prefix=${selftest_prefix} --target=samba3 \
3322 --testlist="$(srcdir)/selftest/tests.sh|" \
3323 --exclude=$(srcdir)/selftest/skip \
3324 --socket-wrapper $(TESTS) | \
3325 $(FORMAT_TEST_OUTPUT)
3326 endif
3328 test-%:
3329 $(MAKE) test TESTS=$*
3331 SELFTEST_TESTENV = dc
3333 testenv:
3334 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3336 gdbtestenv:
3337 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3338 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3339 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3340 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3341 TESTS="--testenv"
3343 valgrindtestenv:
3344 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3345 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3346 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3347 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3348 TESTS="--testenv"
3351 # Check for Winbind struct 32/64bit padding
3352 test_wbpad:
3353 @echo "Testing winbind request/response structure for 32/64bit padding"
3354 @./script/tests/wb_pad.sh || exit 1;
3357 ## Examples:
3360 libsmbclient_examples: libsmbclient
3361 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3363 clean_libsmbclient_examples:
3364 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3366 libnetapi_examples: libnetapi
3367 $(MAKE) -C lib/netapi/examples
3369 clean_libnetapi_examples:
3370 $(MAKE) -C lib/netapi/examples clean
3372 ../source4/configure: ../buildtools/scripts/configure.waf
3373 cd ../source4 && ./autogen.sh
3375 samba4-configure: ../source4/configure
3376 @$(MAKE) -C ../source4 reconfigure || ( cd ../source4 && \
3377 ./configure.developer --nonshared-binary=smbtorture --enable-auto-reconfigure )
3379 .PHONY: samba4-configure
3381 bin/smbtorture4: $(BINARY_PREREQS) samba4-configure
3382 cd ../source4 && ../buildtools/bin/waf build --targets=smbtorture
3383 cp ../source4/bin/smbtorture bin/smbtorture4
3385 bin/ndrdump4: $(BINARY_PREREQS) samba4-configure
3386 cd ../source4 && ../buildtools/bin/waf build --targets=ndrdump
3387 cp ../source4/bin/ndrdump bin/ndrdump4
3389 .PHONY: bin/smbtorture4