net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()
[Samba.git] / source / Makefile.in
blobb5bc696f336b96e55dd73327c9bf9afd3ddcd98b
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 smbtorture4_path=@smbtorture4_path@
22 LIBS=@LIBS@
23 CC=@CC@
24 SHLD=@SHLD@
25 LIB_PATH_VAR=@LIB_PATH_VAR@
27 ## Dynamic shared libraries build settings
28 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@$$/syms/'`
29 DSO_EXPORTS=@DSO_EXPORTS@
30 SONAME_VER=`grep \^$@ $(builddir)/library-versions | cut -d: -f2`
31 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
33 # The MODULE_EXPORTS variable contains the platform-specific linker flags
34 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
35 MODULE_EXPORTS=@MODULE_EXPORTS@
37 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
38 # (GCC) warnings. This is done automtically for --enable-developer
39 # and --enable-krb5developer.
40 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
41 CFLAGS=@CFLAGS@
42 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
44 EXEEXT=@EXEEXT@
45 AR=@AR@
46 LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@
47 LDFLAGS=@PIE_LDFLAGS@ @LDFLAGS@
49 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
50 AWK=@AWK@
51 PICFLAG=@PICFLAG@
52 DYNEXP=@DYNEXP@
53 PERL=@PERL@
55 PIDL_ARGS=@PIDL_ARGS@
57 TERMLDFLAGS=@TERMLDFLAGS@
58 TERMLIBS=@TERMLIBS@
59 PRINT_LIBS=@PRINT_LIBS@
60 AUTH_LIBS=@AUTH_LIBS@
61 ACL_LIBS=@ACL_LIBS@
62 PASSDB_LIBS=@PASSDB_LIBS@
63 IDMAP_LIBS=@IDMAP_LIBS@
64 KRB5LIBS=@KRB5_LIBS@
65 LDAP_LIBS=@LDAP_LIBS@
66 NSCD_LIBS=@NSCD_LIBS@
67 UUID_LIBS=@UUID_LIBS@
68 WINBIND_LIBS=@WINBIND_LIBS@
69 DNSSD_LIBS=@DNSSD_LIBS@
71 INSTALLCMD=@INSTALL@
72 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
73 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
74 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
75 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
77 VPATH=@srcdir@
78 srcdir=@abs_srcdir@
79 builddir=@abs_builddir@
80 SHELL=/bin/sh
81 DESTDIR=/
83 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
84 # will search for a POSIX-compliant shell, and that might not be
85 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
87 # See the autoconf manual "Installation Directory Variables" for a
88 # discussion of the subtle use of these variables.
90 BASEDIR= @prefix@
91 BINDIR = @bindir@
92 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
93 SBINDIR = @sbindir@
94 ROOTSBINDIR = @rootsbindir@
95 LIBDIR = @libdir@
96 INCLUDEDIR=@includedir@
97 PAMMODULESDIR = @pammodulesdir@
98 VFSLIBDIR = $(LIBDIR)/vfs
99 PDBLIBDIR = $(LIBDIR)/pdb
100 RPCLIBDIR = $(LIBDIR)/rpc
101 IDMAPLIBDIR = $(LIBDIR)/idmap
102 NSSINFOLIBDIR = $(LIBDIR)/nss_info
103 CHARSETLIBDIR = $(LIBDIR)/charset
104 AUTHLIBDIR = $(LIBDIR)/auth
105 CONFIGLIBDIR = $(LIBDIR)/config
106 CONFIGDIR = @configdir@
107 VARDIR = @localstatedir@
108 MANDIR = @mandir@
109 DATADIR = @datadir@
111 # The permissions to give the executables and other data
112 INSTALLPERMS_BIN = 0755
113 INSTALLPERMS_DATA = 0644
115 # set these to where to find various files
116 # These can be overridden by command line switches (see smbd(8))
117 # or in smb.conf (see smb.conf(5))
118 LOGFILEBASE = @logfilebase@
119 CONFIGFILE = $(CONFIGDIR)/smb.conf
120 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
121 CTDBDIR = @ctdbdir@
123 # This is where smbpasswd et al go
124 PRIVATEDIR = @privatedir@
126 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
127 PRIVATE_DIR = $(PRIVATEDIR)
129 # This is where SWAT images and help files go
130 SWATDIR = @swatdir@
132 # the directory where lock files go
133 LOCKDIR = @lockdir@
135 # FHS directories; equal to LOCKDIR if not using --with-fhs
136 CACHEDIR = @cachedir@
137 STATEDIR = @statedir@
139 # Where to look for (and install) codepage databases.
140 CODEPAGEDIR = @codepagedir@
142 # the directory where pid files go
143 PIDDIR = @piddir@
145 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
146 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
147 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
149 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
150 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
151 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
152 LIBTDB_SYMS=$(srcdir)/exports/libtdb.syms
153 LIBTDB_HEADERS=@tdbdir@/include/tdb.h
155 LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
156 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
157 LIBADDNS=bin/libaddns.a @LIBADDNS_SHARED@
158 LIBWBCLIENT=@LIBWBCLIENT_SHARED@
160 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
161 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
162 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
164 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
165 FLAGS2 =
166 FLAGS3 =
167 FLAGS4 = -I$(CTDBDIR)/include
168 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
169 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
171 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
172 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
173 -DCONFIGFILE=\"$(CONFIGFILE)\" \
174 -DSBINDIR=\"$(SBINDIR)\" \
175 -DBINDIR=\"$(BINDIR)\" \
176 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
177 -DSWATDIR=\"$(SWATDIR)\" \
178 -DLOCKDIR=\"$(LOCKDIR)\" \
179 -DPIDDIR=\"$(PIDDIR)\" \
180 -DLIBDIR=\"$(LIBDIR)\" \
181 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
182 -DSHLIBEXT=\"@SHLIBEXT@\" \
183 -DCTDBDIR=\"$(CTDBDIR)\" \
184 -DCONFIGDIR=\"$(CONFIGDIR)\" \
185 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
186 -DCACHEDIR=\"$(CACHEDIR)\" \
187 -DSTATEDIR=\"$(STATEDIR)\"
189 # Note that all executable programs now provide for an optional executable suffix.
191 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
193 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@ @CIFSSPNEGO_PROGS@
195 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
196 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
197 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
198 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
199 bin/tdbtool@EXEEXT@
200 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
201 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
202 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
203 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
204 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
206 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
207 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
208 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
209 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
210 bin/tdbtorture@EXEEXT@
212 BIN_PROGS = @EXTRA_BIN_PROGS@ \
213 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
215 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
216 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
217 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
218 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@
220 SHLIBS = libtalloc libtdb @LIBWBCLIENT@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBADDNS@ libnetapi
222 PAM_MODULES = @PAM_MODULES@
224 NSS_MODULES = @NSS_MODULES@
226 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
228 VFS_MODULES = @VFS_MODULES@
229 PDB_MODULES = @PDB_MODULES@
230 RPC_MODULES = @RPC_MODULES@
231 IDMAP_MODULES = @IDMAP_MODULES@
232 CHARSET_MODULES = @CHARSET_MODULES@
233 AUTH_MODULES = @AUTH_MODULES@
234 NSS_INFO_MODULES = @NSS_INFO_MODULES@
235 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
236 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES)
238 ######################################################################
239 # object file lists
240 ######################################################################
242 LIBTDB_OBJ0 = @TDB_OBJS@
243 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
245 TDB_OBJ = lib/util_tdb.o \
246 lib/dbwrap.o lib/dbwrap_tdb.o lib/dbwrap_ctdb.o \
247 lib/dbwrap_rbt.o @LIBTDB_STATIC@
249 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
251 VERSION_OBJ = lib/version.o
253 DOSERR_OBJ = libsmb/doserr.o
255 WBCOMMON_OBJ = nsswitch/wb_common.o
257 AFS_OBJ = lib/afs.o
259 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
261 SERVER_MUTEX_OBJ = lib/server_mutex.o
263 ERRORMAP_OBJ = libsmb/errormap.o
265 PASSCHANGE_OBJ = libsmb/passchange.o
268 LIBNDR_OBJ = librpc/ndr/ndr_basic.o \
269 librpc/ndr/ndr.o \
270 librpc/ndr/ndr_misc.o \
271 librpc/gen_ndr/ndr_misc.o \
272 librpc/gen_ndr/ndr_security.o \
273 librpc/ndr/ndr_sec_helper.o \
274 librpc/ndr/ndr_string.o \
275 librpc/ndr/sid.o \
276 librpc/ndr/uuid.o
278 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
280 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
281 librpc/gen_ndr/ndr_lsa.o \
282 librpc/gen_ndr/ndr_dfs.o \
283 librpc/gen_ndr/ndr_echo.o \
284 librpc/gen_ndr/ndr_winreg.o \
285 librpc/gen_ndr/ndr_initshutdown.o \
286 librpc/gen_ndr/ndr_srvsvc.o \
287 librpc/gen_ndr/ndr_svcctl.o \
288 librpc/gen_ndr/ndr_eventlog.o \
289 librpc/gen_ndr/ndr_netlogon.o \
290 librpc/gen_ndr/ndr_samr.o \
291 librpc/gen_ndr/ndr_dssetup.o \
292 librpc/gen_ndr/ndr_notify.o \
293 librpc/gen_ndr/ndr_xattr.o \
294 librpc/gen_ndr/ndr_ntsvcs.o
296 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
298 # this includes only the low level parse code, not stuff
299 # that requires knowledge of security contexts
300 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
302 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
303 rpc_client/init_netlogon.o \
304 rpc_client/init_lsa.o \
305 rpc_client/init_srvsvc.o
307 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
309 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
310 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
312 TALLOC_OBJ = @TALLOC_OBJS@
315 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
316 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
318 LIBSAMBAUTIL_OBJ = @LIBTALLOC_STATIC@ \
319 $(LIBREPLACE_OBJ) \
320 $(SOCKET_WRAPPER_OBJ) \
321 $(NSS_WRAPPER_OBJ)
323 LIB_WITHOUT_PROTO_OBJ = $(LIBSAMBAUTIL_OBJ) \
324 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
325 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
326 lib/interfaces.o lib/rbtree.o lib/memcache.o \
327 lib/util_transfer_file.o lib/async_req.o \
328 $(TDB_OBJ)
330 LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
331 lib/interface.o lib/md4.o \
332 lib/pidfile.o \
333 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
334 lib/ufc.o lib/genrand.o lib/username.o \
335 lib/util_pw.o lib/access.o lib/smbrun.o \
336 lib/bitmap.o lib/crc32.o lib/dprintf.o \
337 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
338 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
339 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
340 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
341 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
342 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
343 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
344 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
345 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
346 lib/adt_tree.o lib/gencache.o \
347 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
348 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
349 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
350 lib/file_id.o
352 LIB_OBJ = $(LIB_WITHOUT_PROTO_OBJ) $(LIB_WITH_PROTO_OBJ)
354 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
355 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
357 READLINE_OBJ = lib/readline.o
359 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
360 # Be sure to include them into your application
361 POPT_LIB_OBJ = lib/popt_common.o
363 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
364 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
365 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
367 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
369 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
370 libaddns/dnsgss.o libaddns/dnsmarshall.o
371 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) @LIBTALLOC_STATIC@
373 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
374 nsswitch/libwbclient/wbc_util.o \
375 nsswitch/libwbclient/wbc_pwd.o \
376 nsswitch/libwbclient/wbc_idmap.o \
377 nsswitch/libwbclient/wbc_sid.o \
378 nsswitch/libwbclient/wbc_pam.o
379 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
380 $(WBCOMMON_OBJ) \
381 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
383 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
384 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o
385 LIBGPO_OBJ = $(LIBGPO_OBJ0)
387 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
388 libads/sasl.o libads/sasl_wrapping.o \
389 libads/krb5_setpw.o libads/ldap_user.o \
390 libads/ads_struct.o libads/kerberos_keytab.o \
391 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
392 libads/cldap.o libads/ldap_schema.o libads/util.o libads/ndr.o
394 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
395 librpc/ndr/ndr_krb5pac.o \
396 librpc/gen_ndr/ndr_krb5pac.o
398 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
400 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
401 libsmb/namequery.o libsmb/conncache.o libads/dns.o
403 LIBSAMBA_OBJ = libsmb/nterr.o libsmb/dcerpc_err.o libsmb/smbdes.o \
404 libsmb/smbencrypt.o libsmb/ntlm_check.o \
405 libsmb/ntlmssp.o libsmb/ntlmssp_parse.o libsmb/ntlmssp_sign.o
407 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
408 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
409 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
410 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
411 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
412 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
413 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
414 libsmb/clioplock.o $(ERRORMAP_OBJ) libsmb/clirap2.o \
415 libsmb/smb_seal.o $(DOSERR_OBJ) libsmb/async_smb.o \
416 $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(LIBNMB_OBJ)
418 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
420 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
421 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
422 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
423 rpc_client/cli_svcctl.o \
424 rpc_client/init_samr.o
426 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
427 librpc/gen_ndr/cli_dfs.o \
428 librpc/gen_ndr/cli_echo.o \
429 librpc/gen_ndr/cli_srvsvc.o \
430 librpc/gen_ndr/cli_svcctl.o \
431 librpc/gen_ndr/cli_winreg.o \
432 librpc/gen_ndr/cli_initshutdown.o \
433 librpc/gen_ndr/cli_eventlog.o \
434 librpc/gen_ndr/cli_wkssvc.o \
435 librpc/gen_ndr/cli_netlogon.o \
436 librpc/gen_ndr/cli_samr.o \
437 librpc/gen_ndr/cli_dssetup.o \
438 librpc/gen_ndr/cli_ntsvcs.o \
439 $(LIBNDR_GEN_OBJ) \
440 $(RPCCLIENT_NDR_OBJ)
443 # registry-related objects
445 UTIL_REG_OBJ = lib/util_reg.o
446 UTIL_REG_API_OBJ = lib/util_reg_api.o
448 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
449 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
450 REG_INIT_FULL_OBJ = registry/reg_init_full.o
452 REGFIO_OBJ = registry/regfio.o
454 REGOBJS_OBJ = registry/reg_objects.o
456 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
458 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
460 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
461 registry/reg_backend_shares.o \
462 registry/reg_backend_netlogon_params.o \
463 registry/reg_backend_prod_options.o \
464 registry/reg_backend_tcpip_params.o \
465 registry/reg_backend_hkpt_params.o \
466 registry/reg_backend_current_version.o \
467 registry/reg_backend_perflib.o
469 REG_BASE_OBJ = registry/reg_api.o \
470 registry/reg_dispatcher.o \
471 registry/reg_cachehook.o \
472 $(REGFIO_OBJ) \
473 $(REGOBJS_OBJ) \
474 registry/reg_util.o \
475 $(UTIL_REG_API_OBJ) \
476 lib/util_nttoken.o \
477 $(REG_BACKENDS_BASE_OBJ) \
478 $(REG_INIT_BASIC_OBJ)
480 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
481 $(REG_BACKENDS_SMBCONF_OBJ) \
482 $(REG_INIT_SMBCONF_OBJ)
484 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
485 $(REG_BACKENDS_EXTRA_OBJ) \
486 $(REG_INIT_FULL_OBJ) \
487 registry/reg_eventlog.o \
488 registry/reg_perfcount.o \
489 registry/reg_util_legacy.o
492 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
494 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
495 librpc/gen_ndr/srv_netlogon.o
497 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
498 rpc_server/srv_samr_util.o \
499 librpc/gen_ndr/srv_samr.o
501 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
503 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
504 librpc/gen_ndr/srv_winreg.o
506 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
508 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
509 librpc/gen_ndr/srv_srvsvc.o
511 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
513 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
514 librpc/gen_ndr/srv_svcctl.o \
515 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
516 services/svc_netlogon.o services/svc_winreg.o \
517 services/svc_wins.o
519 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o \
520 librpc/gen_ndr/srv_ntsvcs.o
522 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
524 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
526 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
527 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
529 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
530 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
532 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
534 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
536 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \
537 rpc_parse/parse_spoolss.o \
538 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
539 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o
541 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
543 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
545 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
547 PRIVILEGES_OBJ = lib/privileges.o
549 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
551 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
552 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
553 passdb/util_unixsids.o passdb/lookup_sid.o \
554 passdb/login_cache.o @PDB_STATIC@ \
555 lib/account_pol.o $(PRIVILEGES_OBJ) \
556 lib/util_nscd.o lib/winbind_util.o
558 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
559 CP850_OBJ = modules/CP850.o
560 CP437_OBJ = modules/CP437.o
561 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
563 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
565 PROFILE_OBJ = profile/profile.o
566 PROFILES_OBJ = utils/profiles.o \
567 $(ERRORMAP_OBJ) \
568 $(RPC_PARSE_OBJ1) $(PARAM_OBJ) $(LIBSAMBA_OBJ) \
569 $(DOSERR_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
570 $(POPT_LIB_OBJ) $(SECRETS_OBJ)
572 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
574 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
576 VFS_DEFAULT_OBJ = modules/vfs_default.o
577 VFS_AUDIT_OBJ = modules/vfs_audit.o
578 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
579 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
580 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
581 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
582 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
583 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
584 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
585 VFS_CAP_OBJ = modules/vfs_cap.o
586 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
587 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
588 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
589 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
590 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
591 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
592 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
593 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
594 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
595 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
596 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
597 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
598 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
599 VFS_CATIA_OBJ = modules/vfs_catia.o
600 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
601 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
602 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
603 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
604 VFS_COMMIT_OBJ = modules/vfs_commit.o
605 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
606 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
607 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
608 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
609 VFS_FILEID_OBJ = modules/vfs_fileid.o
610 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
611 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
613 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
615 SLCACHE_OBJ = libsmb/samlogon_cache.o
617 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
619 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
620 AUTH_DOMAIN_OBJ = auth/auth_domain.o
621 AUTH_SAM_OBJ = auth/auth_sam.o
622 AUTH_SERVER_OBJ = auth/auth_server.o
623 AUTH_UNIX_OBJ = auth/auth_unix.o
624 AUTH_WINBIND_OBJ = auth/auth_winbind.o
625 AUTH_SCRIPT_OBJ = auth/auth_script.o
627 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
628 auth/auth_compat.o auth/auth_ntlmssp.o \
629 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
631 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
633 SMBD_OBJ_MAIN = smbd/server.o
635 BUILDOPT_OBJ = smbd/build_options.o
637 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
638 smbd/utmp.o smbd/session.o smbd/map_username.o \
639 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
640 smbd/share_access.o smbd/fileio.o \
641 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
642 smbd/message.o smbd/nttrans.o smbd/pipes.o \
643 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
644 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
645 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
646 smbd/vfs.o smbd/statcache.o smbd/seal.o \
647 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
648 smbd/process.o smbd/service.o smbd/error.o \
649 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
650 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
651 smbd/change_trust_pw.o smbd/fake_file.o \
652 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
653 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
654 smbd/dmapi.o \
655 smbd/file_access.o \
656 smbd/dnsregister.o \
657 $(MANGLE_OBJ) @VFS_STATIC@
659 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
660 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) $(SECRETS_OBJ) \
661 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
662 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
663 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
664 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
665 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
666 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
667 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
668 $(LIBSMBCONF_OBJ) \
669 $(PRIVILEGES_BASIC_OBJ)
671 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
672 printing/print_cups.o printing/print_generic.o \
673 printing/lpq_parse.o printing/load.o \
674 printing/print_iprint.o
676 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
677 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
679 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
681 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
682 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
683 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
684 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
685 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
686 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
687 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
688 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
689 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
690 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
691 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
692 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
694 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
695 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
697 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
698 web/swat.o web/neg_lang.o
700 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
701 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SECRETS_OBJ) $(KRBCLIENT_OBJ) \
702 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
703 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
704 $(PASSCHANGE_OBJ) $(LDB_OBJ)
706 STATUS_OBJ = utils/status.o utils/status_profile.o \
707 $(LOCKING_OBJ) $(PARAM_OBJ) \
708 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
709 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) \
710 $(DOSERR_OBJ)
712 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
713 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
714 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
715 $(PRINTBASE_OBJ) $(ERRORMAP_OBJ)
717 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
718 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
719 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
720 rpc_client/cli_pipe.o $(RPC_PARSE_OBJ2) \
721 $(RPC_CLIENT_OBJ1) \
722 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
723 $(LIBMSRPC_GEN_OBJ)
725 TESTPARM_OBJ = utils/testparm.o \
726 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
727 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
728 $(ERRORMAP_OBJ)
730 PASSWD_UTIL_OBJ = utils/passwd_util.o
732 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
733 $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
734 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
735 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
736 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
738 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
739 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
740 $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
741 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) $(ERRORMAP_OBJ)
743 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ0) @LIBWBCLIENT_STATIC@
745 DISPLAY_SEC_OBJ= lib/display_sec.o
747 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
748 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
749 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
750 rpcclient/cmd_dfs.o \
751 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
752 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
753 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
754 $(DISPLAY_SEC_OBJ)
756 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
757 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
758 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
759 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
760 $(LIBADS_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
761 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
763 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
764 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
766 LIBSMBCLIENT_OBJ0 = \
767 libsmb/libsmb_cache.o \
768 libsmb/libsmb_compat.o \
769 libsmb/libsmb_context.o \
770 libsmb/libsmb_dir.o \
771 libsmb/libsmb_file.o \
772 libsmb/libsmb_misc.o \
773 libsmb/libsmb_path.o \
774 libsmb/libsmb_printjob.o \
775 libsmb/libsmb_server.o \
776 libsmb/libsmb_stat.o \
777 libsmb/libsmb_xattr.o \
778 libsmb/libsmb_setget.o \
779 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
780 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
781 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
782 $(SECRETS_OBJ) $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
784 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ0) @LIBWBCLIENT_STATIC@
786 LIBSMBSHAREMODES_OBJ = libsmb/smb_share_modes.o @LIBTDB_STATIC@
788 # This shared library is intended for linking with unit test programs
789 # to test Samba internals. It's called libbigballofmud.so to
790 # discourage casual usage.
792 LIBBIGBALLOFMUD_MAJOR = 0
794 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) \
795 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
796 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
798 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
799 client/dnsbrowse.o \
800 $(RPC_CLIENT_OBJ1) \
801 $(RPC_PARSE_OBJ2)
803 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
804 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
805 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
806 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
807 $(DISPLAY_SEC_OBJ)
809 LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
810 lib/netapi/joindomain.o \
811 lib/netapi/serverinfo.o \
812 lib/netapi/getdc.o
814 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
815 $(LIBSMBCONF_OBJ) \
816 $(REG_SMBCONF_OBJ) \
817 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
818 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
819 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
820 $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
821 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ)
823 LIBSMBCONF_OBJ = lib/smbconf/smbconf.o lib/smbconf/smbconf_reg.o \
824 lib/smbconf/smbconf_txt_simple.o
826 LIBNET_OBJ = libnet/libnet_join.o \
827 librpc/gen_ndr/ndr_libnet_join.o
829 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
830 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
831 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
832 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
833 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
834 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
835 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
836 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
837 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
838 utils/net_conf.o \
839 utils/net_registry.o \
840 utils/net_registry_util.o \
841 auth/token_util.o utils/net_dom.o nsswitch/wb_client.o
843 NET_OBJ = $(NET_OBJ1) $(PARAM_WITHOUT_REG_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
844 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
845 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
846 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
847 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
848 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
849 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
850 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
851 $(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
852 $(LIBSMBCONF_OBJ) \
853 $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
854 $(PRIVILEGES_BASIC_OBJ)
856 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
857 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
859 CIFS_MOUNT_OBJ = client/mount.cifs.o
861 CIFS_UMOUNT_OBJ = client/umount.cifs.o
863 CIFS_SPNEGO_OBJ = client/cifs.spnego.o
865 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
866 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ) \
867 $(ERRORMAP_OBJ)
869 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
870 torture/denytest.o torture/mangle_test.o
872 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
873 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
875 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
876 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
878 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
879 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
881 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
882 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
884 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
885 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
887 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
888 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
889 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ)
892 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
894 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) $(RPC_PARSE_OBJ1) $(ERRORMAP_OBJ)
896 LOG2PCAP_OBJ = utils/log2pcaphex.o
898 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
899 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
901 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
902 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
903 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
904 $(SECRETS_OBJ) \
905 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
907 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
908 $(PARAM_OBJ) \
909 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
910 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
911 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
913 EVTLOGADM_OBJ0 = utils/eventlogadm.o
915 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
916 $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
917 $(SECRETS_OBJ) \
918 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
920 SHARESEC_OBJ0 = utils/sharesec.o
921 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
922 $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
923 $(POPT_LIB_OBJ) $(SECRETS_OBJ)
925 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
926 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LIBSAMBA_OBJ) $(SECRETS_OBJ) \
927 $(ERRORMAP_OBJ)
929 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
930 lib/replace/test/getifaddrs.o \
931 lib/replace/test/os2_delete.o \
932 lib/replace/test/strptime.o \
933 $(LIBREPLACE_OBJ)
935 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
936 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
937 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
938 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(SECRETS_OBJ) \
939 $(ERRORMAP_OBJ)
941 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
943 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(SECRETS_OBJ) \
944 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ)
946 PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
947 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(LIBSMB_OBJ) \
948 $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
949 $(LIBMSRPC_OBJ) \
950 $(LIB_WITH_PROTO_OBJ) \
951 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
952 $(AUTH_OBJ) $(PARAM_WITHOUT_REG_OBJ) $(LOCKING_OBJ) $(SECRETS_OBJ) \
953 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
954 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
955 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
956 $(AUTH_SAM_OBJ) $(REG_FULL_OBJ) $(POPT_LIB_OBJ) \
957 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_DSSETUP_OBJ) \
958 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
959 $(RPC_ECHO_OBJ) $(RPC_SVCCTL_OBJ) $(RPC_EVENTLOG_OBJ) $(SMBLDAP_OBJ) \
960 $(IDMAP_OBJ) libsmb/spnego.o $(PASSCHANGE_OBJ) \
961 $(RPC_NTSVCS_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
962 utils/passwd_util.o $(LIBGPO_OBJ) $(NSS_INFO_OBJ) \
963 $(RPCCLIENT_NDR_OBJ) \
964 $(PRIVILEGES_BASIC_OBJ)
966 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
967 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ)
969 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
970 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
971 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
972 $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
973 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) $(ERRORMAP_OBJ)
975 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
977 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
979 WINBINDD_OBJ1 = \
980 winbindd/winbindd.o \
981 winbindd/winbindd_user.o \
982 winbindd/winbindd_group.o \
983 winbindd/winbindd_util.o \
984 winbindd/winbindd_cache.o \
985 winbindd/winbindd_pam.o \
986 winbindd/winbindd_sid.o \
987 winbindd/winbindd_misc.o \
988 winbindd/winbindd_cm.o \
989 winbindd/winbindd_wins.o \
990 winbindd/winbindd_rpc.o \
991 winbindd/winbindd_reconnect.o \
992 winbindd/winbindd_ads.o \
993 winbindd/winbindd_passdb.o \
994 winbindd/winbindd_dual.o \
995 winbindd/winbindd_async.o \
996 winbindd/winbindd_creds.o \
997 winbindd/winbindd_cred_cache.o \
998 winbindd/winbindd_ccache_access.o \
999 winbindd/winbindd_domain.o \
1000 winbindd/winbindd_idmap.o \
1001 winbindd/winbindd_locator.o \
1002 winbindd/winbindd_ndr.o \
1003 auth/token_util.o
1005 WINBINDD_OBJ = \
1006 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1007 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1008 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1009 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1010 $(SECRETS_OBJ) $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1011 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1012 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1013 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
1015 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1016 $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) $(RPC_PARSE_OBJ1) \
1017 $(DOSERR_OBJ) lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1018 $(ERRORMAP_OBJ)
1020 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1022 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1023 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1024 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1025 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1026 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1028 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1029 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1030 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1032 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1033 lib/ldb/modules/objectclass.o \
1034 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1036 # enabled in configure.in
1037 LDB_LDAP_OBJ=@LDBLDAP@
1039 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1041 LDB_CMDLINE_OBJ = $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
1042 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1043 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1044 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1045 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
1046 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
1047 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1048 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1051 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1052 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1053 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1054 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1055 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1057 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1058 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
1060 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1061 popt/popthelp.o popt/poptparse.o
1063 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1064 iniparser_build/strlib.o
1066 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1067 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1069 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1070 $(SOCKET_WRAPPER_OBJ)
1072 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1073 $(SOCKET_WRAPPER_OBJ)
1075 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1076 $(SOCKET_WRAPPER_OBJ)
1079 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1081 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1082 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1083 $(SECRETS_OBJ) $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1084 $(RPC_PARSE_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1085 $(SMBLDAP_OBJ) $(DOSERR_OBJ) $(LIBNMB_OBJ) \
1086 $(LDB_OBJ) $(ERRORMAP_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1087 librpc/gen_ndr/ndr_samr.o \
1088 librpc/gen_ndr/ndr_lsa.o \
1089 librpc/gen_ndr/ndr_netlogon.o
1092 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ)
1094 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1095 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1096 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
1097 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1098 $(DISPLAY_SEC_OBJ)
1100 ######################################################################
1101 # now the rules...
1102 ######################################################################
1103 all : SHOWFLAGS $(SHLIBS) $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1104 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1106 nss_modules : $(NSS_MODULES)
1108 pam_modules : $(PAM_MODULES)
1110 pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1112 pam_winbind : SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1114 torture : SHOWFLAGS $(TORTURE_PROGS)
1116 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1118 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1120 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1122 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1124 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1126 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1128 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1130 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1132 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1134 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1136 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1138 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1140 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1142 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1144 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1145 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1146 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1148 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1150 modules: SHOWFLAGS $(MODULES)
1152 #####################################################################
1153 ## Perl IDL Compiler
1154 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1155 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1156 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1157 dssetup.idl krb5pac.idl ntsvcs.idl
1159 idl:
1160 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1161 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1164 #####################################################################
1167 everything: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort modules torture \
1168 $(EVERYTHING_PROGS)
1170 .SUFFIXES:
1171 .SUFFIXES: .c .o .lo
1173 SHOWFLAGS:
1174 @echo "Using FLAGS = $(FLAGS)"
1175 @echo " PICFLAG = $(PICFLAG)"
1176 @echo " LIBS = $(LIBS)"
1177 @echo " LDFLAGS = $(LDFLAGS)"
1178 @echo " DYNEXP = $(DYNEXP)"
1179 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1180 @echo " SHLIBEXT = @SHLIBEXT@"
1181 @echo " SONAMEFLAG = @SONAMEFLAG@"
1183 MAKEDIR = || exec false; \
1184 if test -d "$$dir"; then :; else \
1185 echo mkdir "$$dir"; \
1186 mkdir -p "$$dir" >/dev/null 2>&1 || \
1187 test -d "$$dir" || \
1188 mkdir "$$dir" || \
1189 exec false; fi || exec false
1191 # Run a static checker.
1192 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1193 # Compile a source file.
1194 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1195 # Compile a source file with the installation paths defined.
1196 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1198 COMPILE = $(COMPILE_CC)
1200 .c.o:
1201 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1202 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1203 @if test -n "$(CC_CHECKER)"; then \
1204 echo "Checking $*.c with '$(CC_CHECKER)'";\
1205 $(CHECK_CC); \
1207 @echo Compiling $*.c
1208 @$(COMPILE) && exit 0;\
1209 echo "The following command failed:" 1>&2;\
1210 echo "$(COMPILE_CC)" 1>&2;\
1211 $(COMPILE_CC) >/dev/null 2>&1
1212 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1214 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1216 # this adds support for precompiled headers. To use it, install a snapshot
1217 # of gcc-3.4 and run 'make pch' before you do the main build.
1218 pch: proto_exists
1219 rm -f $(PRECOMPILED_HEADER)
1220 $(MAKE) $(PRECOMPILED_HEADER)
1222 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1223 $(COMPILE)
1225 BINARY_PREREQS = proto_exists bin/.dummy
1227 # These dependencies are only approximately correct: we want to make
1228 # sure Samba's paths are updated if ./configure is re-run. Really it
1229 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1230 # but since we also require "make install prefix=/opt/samba" *not* to
1231 # rebuild it's a bit hard.
1233 dynconfig.o: dynconfig.c Makefile
1234 @echo Compiling $*.c
1235 @$(COMPILE_CC_PATH) && exit 0;\
1236 echo "The following command failed:" 1>&2;\
1237 echo "$(COMPILE_CC_PATH)" 1>&2;\
1238 $(COMPILE_CC_PATH) >/dev/null 2>&1
1240 lib/pidfile.o: lib/pidfile.c
1241 @echo Compiling $*.c
1242 @$(COMPILE_CC_PATH) && exit 0;\
1243 echo "The following command failed:" 1>&2;\
1244 echo "$(COMPILE_CC_PATH)" 1>&2;\
1245 $(COMPILE_CC_PATH) >/dev/null 2>&1
1247 lib/version.o: lib/version.c include/version.h
1248 @echo Compiling $*.c
1249 @$(COMPILE_CC_PATH) && exit 0;\
1250 echo "The following command failed:" 1>&2;\
1251 echo "$(COMPILE_CC_PATH)" 1>&2;\
1252 $(COMPILE_CC_PATH) >/dev/null 2>&1
1254 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1255 @echo Compiling $*.c
1256 @$(COMPILE_CC_PATH) && exit 0;\
1257 echo "The following command failed:" 1>&2;\
1258 echo "$(COMPILE_CC_PATH)" 1>&2;\
1259 $(COMPILE_CC_PATH) >/dev/null 2>&1
1261 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1262 @echo Generating $@
1263 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1265 bin/.dummy:
1266 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1267 dir=bin $(MAKEDIR); fi
1268 @: >> $@ || : > $@ # what a fancy emoticon!
1270 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1271 @echo Linking $@
1272 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1273 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1274 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1275 @POPTLIBS@ @SMBD_LIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1276 @WINBIND_LIBS@
1278 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1279 @echo Linking $@
1280 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1281 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @POPTLIBS@ \
1282 $(KRB5LIBS) $(LDAP_LIBS)
1284 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1285 @echo Linking $@
1286 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1287 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) @POPTLIBS@ $(KRB5LIBS) \
1288 $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1290 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1291 @echo Linking $@
1292 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1293 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1294 $(KRB5LIBS) $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1295 @WINBIND_LIBS@
1297 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1298 @echo Linking $@
1299 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1300 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1301 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1302 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1304 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1305 @echo Linking $@
1306 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1307 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1308 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1309 @INIPARSERLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@ \
1310 @LIBNETAPI_LIBS@
1312 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1313 @echo Linking $@
1314 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1315 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1317 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1318 @echo Linking $@
1319 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1320 $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1322 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1323 @echo Linking $@
1324 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1326 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1327 @echo Linking $@
1328 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1330 bin/cifs.spnego@EXEEXT@: $(BINARY_PREREQS) $(CIFS_SPNEGO_OBJ) $(LIBSMBCLIENT_OBJ0) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1331 @echo Linking $@
1332 @$(CC) $(FLAGS) -o $@ $(CIFS_SPNEGO_OBJ) $(DYNEXP) $(LDFLAGS) \
1333 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ0) $(KRB5LIBS) \
1334 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBWBCLIENT_SHARED@ \
1335 @LIBTDB_LIBS@
1337 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1338 @echo Linking $@
1339 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1340 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1342 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1343 @echo Linking $@
1344 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1345 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1347 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1348 @echo Linking $@
1349 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1350 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1351 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ @POPTLIBS@ \
1352 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1354 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1355 @echo Linking $@
1356 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1357 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1358 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1360 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1361 @echo Linking $@
1362 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1363 $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1364 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1366 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1367 @echo Linking $@
1368 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1369 @POPTLIBS@ $(PASSDB_LIBS) $(LDAP_LIBS) @LIBTALLOC_LIBS@ \
1370 @LIBTDB_LIBS@ @WINBIND_LIBS@
1372 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1373 @echo Linking $@
1374 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1375 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1376 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1378 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1379 @echo Linking $@
1380 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1381 @POPTLIBS@ $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1383 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1384 @echo Linking $@
1385 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1386 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ \
1387 @LIBTDB_LIBS@
1389 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1390 @echo Linking $@
1391 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1392 $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1393 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1395 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1396 @echo Linking $@
1397 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1398 $(DYNEXP) $(LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@
1400 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1401 @echo Linking $@
1402 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1403 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1404 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1406 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1407 @echo Linking $@
1408 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1409 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1410 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1412 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1413 @echo Linking $@
1414 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1415 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1416 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1418 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1419 @echo Linking $@
1420 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1421 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1422 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1424 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1425 @echo Linking $@
1426 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1427 $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1429 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1430 @echo Linking $@
1431 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1432 $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1434 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1435 @echo Linking $@
1436 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1437 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1438 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1440 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1441 @echo Linking $@
1442 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1443 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1444 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1446 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1447 @echo Linking $@
1448 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1449 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1450 @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1452 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1453 @echo Linking $@
1454 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1455 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1456 $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1457 @SMBD_LIBS@ $(NSCD_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1458 @LIBWBCLIENT_SHARED@
1460 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1461 @echo Linking $@
1462 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1463 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1464 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1466 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1467 @echo Linking $@
1468 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1469 @POPTLIBS@ $(LIBS) @LIBTALLOC_LIBS@
1471 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1472 @echo Linking $@
1473 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1474 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1475 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1477 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1478 @echo Linking $@
1479 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1480 @POPTLIBS@ @LDAP_LIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1482 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1483 @echo Linking $@
1484 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1485 $(LIBS) @LIBTALLOC_LIBS@
1487 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1488 @echo Linking $@
1489 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1490 $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1491 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1493 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1494 @echo Linking $@
1495 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1496 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1497 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1498 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1500 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1501 @echo Linking $@
1502 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1503 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1504 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1505 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1507 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1508 @echo Linking $@
1509 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1510 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1511 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1512 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1514 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1515 @echo Linking $@
1516 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1517 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1518 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1519 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1521 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1522 @echo Linking $@
1523 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1524 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1525 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1526 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1528 $(LIBTALLOC_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ)
1529 @echo Linking shared library $@
1530 @$(SHLD_DSO) $(LIBTALLOC_OBJ) \
1531 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1532 @ln -s -f `basename $@` $@.$(SONAME_VER)
1534 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1535 @echo Linking non-shared library $@
1536 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1538 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1540 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1541 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1543 $(LIBTDB_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1544 @echo Linking shared library $@
1545 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1546 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1547 @ln -s -f `basename $@` $@.$(SONAME_VER)
1549 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1550 @echo Linking non-shared library $@
1551 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1553 bin/libwbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) @LIBTALLOC_SHARED@
1554 @echo Linking shared library $@
1555 @$(SHLD_DSO) @LIBTALLOC_LIBS@ $(LIBWBCLIENT_OBJ) \
1556 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1557 @ln -s -f `basename $@` $@.$(SONAME_VER)
1559 bin/libwbclient.a: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1560 @echo Linking non-shared library $@
1561 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1563 bin/libaddns.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1564 @echo Linking shared library $@
1565 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1566 $(KRB5LIBS) $(UUID_LIBS) @LIBTALLOC_LIBS@ \
1567 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1569 bin/libaddns.a: $(BINARY_PREREQS) $(LIBADDNS_OBJ)
1570 @echo Linking non-shared library $@
1571 @-$(AR) -rc $@ $(LIBADDNS_OBJ)
1573 $(LIBNETAPI_SHARED_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1574 @echo Linking shared library $@
1575 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1576 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@ $(LIBS) \
1577 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1578 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1579 @ln -s -f `basename $@` $@.$(SONAME_VER)
1581 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ1)
1582 @echo Linking non-shared library $@
1583 @-$(AR) -rc $@ $(LIBNETAPI_OBJ1)
1585 bin/libsmbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1586 @echo Linking shared library $@
1587 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
1588 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@ $(LIBS) \
1589 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1590 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1592 bin/libsmbclient.a: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ0)
1593 @echo Linking non-shared library $@
1594 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ0)
1596 bin/libsmbsharemodes.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1597 @echo Linking shared library $@
1598 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
1599 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1600 $(KRB5LIBS) $(LDAP_LIBS) \
1601 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1603 bin/libsmbsharemodes.a: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ)
1604 @echo Linking non-shared library $@
1605 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ)
1607 # This is probably wrong for anything other than the GNU linker.
1608 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
1609 @echo Linking shared library $@
1610 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
1611 $(LIBS) @LIBTALLOC_LIBS@ \
1612 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1613 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
1614 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
1616 # It would be nice to build a static bigballofmud too, but when I try
1617 # I get linker errors about dl_open and similar things. I'm not sure if
1618 # it can be fixed or if they just can't be called from a static
1619 # library.
1621 libtalloc: $(LIBTALLOC)
1622 libtdb: $(LIBTDB)
1623 libsmbclient: $(LIBSMBCLIENT)
1624 libsmbsharemodes: $(LIBSMBSHAREMODES)
1625 libaddns: $(LIBADDNS)
1626 libwbclient: $(LIBWBCLIENT)
1627 libnetapi: $(LIBNETAPI)
1629 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1630 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
1631 -o $@ @SONAMEFLAG@`basename $@`
1633 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
1634 @echo "Linking $@"
1635 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
1637 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
1638 @echo "Linking $@"
1639 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
1641 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
1642 @echo "Linking $@"
1643 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
1645 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
1646 @echo "Linking $@"
1647 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
1649 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
1650 @echo "Linking $@"
1651 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
1653 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
1654 @echo "Linking $@"
1655 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
1657 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
1658 @echo "Linking $@"
1659 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
1661 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
1662 @echo "Linking $@"
1663 @$(SHLD_MODULE) $(RPC_REG_OBJ)
1665 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
1666 @echo "Linking $@"
1667 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
1669 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
1670 @echo "Linking $@"
1671 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
1673 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
1674 @echo "Linking $@"
1675 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
1677 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
1678 @echo "Linking $@"
1679 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
1681 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
1682 @echo "Linking $@"
1683 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
1685 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
1686 @echo "Linking $@"
1687 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
1689 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1690 @echo "Linking $@"
1691 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1692 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1693 $(PASSDB_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1695 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1696 @echo "Linking $@"
1697 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
1698 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1699 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1700 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1702 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
1703 @echo "Linking $@"
1704 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
1705 @WINBIND_NSS_EXTRA_LIBS@ @WINBIND_NSS_PTHREAD@ \
1706 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1708 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1709 @echo "Linking $@"
1710 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
1711 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1712 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1714 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
1715 @echo "Linking $@"
1716 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
1717 @SONAMEFLAG@`basename $@`
1719 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
1720 @echo "Linking shared library $@"
1721 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
1722 @SONAMEFLAG@`basename $@`
1724 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
1725 @echo "Building plugin $@"
1726 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
1728 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
1729 @echo "Building plugin $@"
1730 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
1732 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
1733 @echo "Building plugin $@"
1734 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
1736 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
1737 @echo "Building plugin $@"
1738 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
1740 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
1741 @echo "Building plugin $@"
1742 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
1744 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
1745 @echo "Building plugin $@"
1746 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
1748 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
1749 @echo "Building plugin $@"
1750 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
1752 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
1753 @echo "Building plugin $@"
1754 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
1756 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
1757 @echo "Building plugin $@"
1758 @$(SHLD_MODULE) passdb/pdb_tdb.o
1760 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
1761 @echo "Building plugin $@"
1762 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
1764 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
1765 @echo "Building plugin $@"
1766 @$(SHLD_MODULE) winbindd/idmap_rid.o
1768 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
1769 @echo "Building plugin $@"
1770 @$(SHLD_MODULE) winbindd/idmap_ad.o
1772 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
1773 @echo "Building plugin $@"
1774 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
1776 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
1777 @echo "Building plugin $@"
1778 @$(SHLD_MODULE) winbindd/idmap_ldap.o
1780 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
1781 @echo "Building plugin $@"
1782 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
1784 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
1785 @echo "Building plugin $@"
1786 @$(SHLD_MODULE) $(CP850_OBJ)
1788 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
1789 @echo "Building plugin $@"
1790 @$(SHLD_MODULE) $(CP437_OBJ)
1792 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
1793 @echo "Building plugin $@"
1794 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
1796 # NOTE, there is no build rule for a dynamic default VFS module because
1797 # this one MUST MUST MUST be built statically.
1799 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
1800 @echo "Building plugin $@"
1801 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
1803 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
1804 @echo "Building plugin $@"
1805 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
1807 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
1808 @echo "Building plugin $@"
1809 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
1811 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
1812 @echo "Building plugin $@"
1813 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
1815 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
1816 @echo "Building plugin $@"
1817 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
1819 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
1820 @echo "Building plugin $@"
1821 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
1823 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
1824 @echo "Building plugin $@"
1825 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
1827 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
1828 @echo "Building plugin $@"
1829 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
1831 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
1832 @echo "Building plugin $@"
1833 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
1835 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
1836 @echo "Building plugin $@"
1837 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
1839 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
1840 @echo "Building plugin $@"
1841 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
1843 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
1844 @echo "Building plugin $@"
1845 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
1847 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
1848 @echo "Building plugin $@"
1849 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
1851 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
1852 @echo "Building plugin $@"
1853 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
1855 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
1856 @echo "Building plugin $@"
1857 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
1859 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
1860 @echo "Building plugin $@"
1861 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
1863 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
1864 @echo "Building plugin $@"
1865 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
1867 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
1868 @echo "Building plugin $@"
1869 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
1871 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
1872 @echo "Building plugin $@"
1873 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
1875 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
1876 @echo "Building plugin $@"
1877 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
1879 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
1880 @echo "Building plugin $@"
1881 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
1883 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
1884 @echo "Building plugin $@"
1885 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
1887 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
1888 @echo "Building plugin $@"
1889 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
1891 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
1892 @echo "Building plugin $@"
1893 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
1895 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
1896 @echo "Building plugin $@"
1897 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
1899 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
1900 @echo "Building plugin $@"
1901 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
1903 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
1904 @echo "Building plugin $@"
1905 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
1907 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
1908 @echo "Building plugin $@"
1909 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
1911 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
1912 @echo "Building plugin $@"
1913 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
1915 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
1916 @echo "Building plugin $@"
1917 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
1919 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
1920 @echo "Building plugin $@"
1921 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
1923 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
1924 @echo "Building plugin $@"
1925 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
1927 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
1928 @echo "Building plugin $@"
1929 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
1931 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
1932 @echo "Building plugin $@"
1933 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
1935 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
1936 @echo "Building plugin $@"
1937 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
1939 #########################################################
1940 ## IdMap NSS plugins
1942 ## None here right now
1943 #########################################################
1945 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1946 @echo Linking $@
1947 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
1948 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1949 @WINBIND_LIBS@
1951 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
1952 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1953 @echo Linking $@
1954 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
1955 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
1956 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1957 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1959 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@
1960 @echo "Linking shared library $@"
1961 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
1962 $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1963 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1965 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1966 @echo Linking $@
1967 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
1968 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1970 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1971 @echo Linking $@
1972 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
1973 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1975 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1976 @echo Linking $@
1977 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
1978 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1980 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1981 @echo Linking $@
1982 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
1983 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1985 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
1986 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
1987 torture/t_strcmp.o -L ./bin -lbigballofmud
1989 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
1990 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
1991 torture/t_strstr.o -L ./bin -lbigballofmud
1993 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
1994 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
1995 torture/t_strappend.o -L ./bin -lbigballofmud
1997 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
1998 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
1999 -L./bin -lbigballofmud
2001 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2002 @echo Linking $@
2003 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
2005 install: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSSPNEGO@ installman \
2006 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2007 installlibtalloc \
2008 installlibtdb \
2009 @INSTALL_LIBSMBCLIENT@ @INSTALL_PAM_MODULES@ \
2010 @INSTALL_LIBSMBSHAREMODES@ @INSTALL_LIBWBCLIENT@ installlibnetapi
2012 install-everything: install installmodules
2014 # DESTDIR is used here to prevent packagers wasting their time
2015 # duplicating the Makefile. Remove it and you will have the privelege
2016 # of package each samba release for muliple versions of multiple
2017 # distributions and operating systems, or at least supplying patches
2018 # to all the packaging files required for this, prior to committing
2019 # the removal of DESTDIR. Do not remove it even though you think it
2020 # is not used
2022 installdirs:
2023 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
2025 installservers: all installdirs
2026 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2028 installbin: all installdirs
2029 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2031 installcifsmount: @CIFSMOUNT_PROGS@
2032 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2033 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2035 installcifsspnego: @CIFSSPNEGO_PROGS@
2036 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2037 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
2039 # Some symlinks are required for the 'probing' of modules.
2040 # This mechanism should go at some point..
2041 installmodules: modules installdirs
2042 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2043 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2044 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2045 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2046 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2047 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2048 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2049 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2050 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2051 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2052 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2053 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2054 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2055 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2056 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2058 installscripts: installdirs
2059 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2061 installdat: installdirs
2062 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2064 installmsg: installdirs
2065 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2067 installswat: installdirs installmsg
2068 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2070 installclientlib: installdirs libsmbclient
2071 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2072 -$(INSTALLLIBCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2073 -$(INSTALLLIBCMD_A) bin/libsmbclient.a $(DESTDIR)$(LIBDIR)
2074 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2075 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include
2077 installlibtalloc: installdirs libtalloc
2078 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2079 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2080 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2081 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2082 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) @tallocdir@/talloc.h $(DESTDIR)${prefix}/include
2084 installlibtdb: installdirs libtdb
2085 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2086 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2087 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2088 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2089 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2091 installlibsmbsharemodes: installdirs libsmbsharemodes
2092 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2093 -$(INSTALLLIBCMD_SH) bin/libsmbsharemodes.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2094 -$(INSTALLLIBCMD_A) bin/libsmbsharemodes.a $(DESTDIR)$(LIBDIR)
2095 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/smb_share_modes.h $(DESTDIR)${prefix}/include
2097 installlibaddns: installdirs libaddns
2098 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2099 -$(INSTALLLIBCMD_SH) bin/libaddns.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2100 -$(INSTALLLIBCMD_A) bin/libaddns.a $(DESTDIR)$(LIBDIR)
2102 installlibwbclient: installdirs libwbclient
2103 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2104 -$(INSTALLLIBCMD_SH) bin/libwbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2105 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2106 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/nsswitch/libwbclient/wbclient.h $(DESTDIR)${prefix}/include
2108 installlibnetapi: installdirs libnetapi
2109 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2110 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2111 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2112 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2114 installpammodules: $(PAM_MODULES)
2115 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2116 @for module in $(PAM_MODULES); do \
2117 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2118 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2119 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2120 done
2122 # revert to the previously installed version
2123 revert:
2124 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2125 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2127 installman: installdirs
2128 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2130 .PHONY: showlayout
2132 showlayout:
2133 @echo "Samba will be installed into:"
2134 @echo " prefix: $(prefix)"
2135 @echo " bindir: $(BINDIR)"
2136 @echo " sbindir: $(SBINDIR)"
2137 @echo " libdir: $(LIBDIR)"
2138 @echo " vardir: $(VARDIR)"
2139 @echo " mandir: $(MANDIR)"
2140 @echo " privatedir: $(PRIVATE_DIR)"
2141 @echo " configdir: $(CONFIGDIR)"
2142 @echo " lockdir: $(LOCKDIR)"
2143 @echo " piddir: $(PIDDIR)"
2144 @echo " swatdir: $(SWATDIR)"
2147 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSSPNEGO@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibtalloc uninstalllibtdb @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@ uninstalllibnetapi
2149 uninstallman:
2150 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2152 uninstallservers:
2153 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2155 uninstallbin:
2156 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2158 uninstallcifsmount:
2159 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2161 uninstallcifsspnego:
2162 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
2164 uninstallmodules:
2165 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2166 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2167 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2168 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2169 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2170 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2172 uninstallscripts:
2173 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2175 uninstalldat:
2176 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2178 uninstallmsg:
2179 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2181 uninstallswat: uninstallmsg
2182 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2184 uninstallclientlib:
2185 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbclient.@SHLIBEXT@
2186 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbclient.a
2187 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2189 uninstalllibsmbsharemodes:
2190 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.@SHLIBEXT@
2191 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.a
2193 uninstalllibaddns:
2194 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libaddns.@SHLIBEXT@
2195 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libaddns.a
2197 uninstalllibnetapi:
2198 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libnetapi.@SHLIBEXT@
2199 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libnetapi.a
2200 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2202 uninstallpammodules:
2203 @for module in $(PAM_MODULES); do \
2204 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2205 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2206 done
2208 # Toplevel clean files
2209 TOPFILES=dynconfig.o
2211 clean: delheaders
2212 -rm -f $(PRECOMPILED_HEADER)
2213 -rm -f core */*~ *~ \
2214 */*.o */*/*.o */*/*/*.o \
2215 ../testsuite/*/*.o \
2216 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2217 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2218 $(MODULES) $(TORTURE_PROGS) \
2219 $(LIBTALLOC) $(LIBSMBCLIENT) $(LIBADDNS) \
2220 $(LIBSMBSHAREMODES) $(EVERYTHING_PROGS) $(LIBNETAPI) \
2221 bin/libwbclient.so.0 bin/timelimit \
2222 .headers.stamp */src/*.o proto_exists \
2223 $(LIBTDB_SYMS)
2224 -rm -rf t_dir
2226 # Making this target will just make sure that the prototype files
2227 # exist, not necessarily that they are up to date. Since they're
2228 # removed by "make clean" this will always be run when you do anything
2229 # afterwards.
2230 proto_exists: include/proto.h include/build_env.h \
2231 winbindd/winbindd_proto.h web/swat_proto.h \
2232 libnet/libnet_proto.h \
2233 client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
2234 @touch proto_exists
2236 delheaders:
2237 @echo Removing prototype headers
2238 @rm -f include/proto.h include/build_env.h \
2239 winbindd/winbindd_proto.h web/swat_proto.h \
2240 client/client_proto.h utils/net_proto.h \
2241 smbd/build_options.c utils/ntlm_auth_proto.h \
2242 utils/passwd_proto.h libnet/libnet_proto.h
2244 MKPROTO_SH = $(srcdir)/script/mkproto.sh
2246 include/proto.h: smbd/build_options.c
2247 @echo Building include/proto.h
2248 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2249 -h _PROTO_H_ $(builddir)/include/proto.h \
2250 $(PROTO_OBJ)
2252 include/build_env.h: script/build_env.sh
2253 @echo Building include/build_env.h
2254 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2255 > $(builddir)/include/build_env.h
2257 winbindd/winbindd_proto.h:
2258 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2259 -h _WINBINDD_PROTO_H_ $(builddir)/winbindd/winbindd_proto.h \
2260 $(WINBINDD_OBJ1)
2262 web/swat_proto.h:
2263 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2264 -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
2265 $(SWAT_OBJ1)
2267 client/client_proto.h:
2268 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2269 -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
2270 $(CLIENT_OBJ1)
2272 utils/net_proto.h:
2273 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2274 -h _NET_PROTO_H_ $(builddir)/utils/net_proto.h \
2275 $(NET_OBJ1)
2277 utils/passwd_proto.h:
2278 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2279 -h _PASSWD_PROTO_H_ $(builddir)/utils/passwd_proto.h \
2280 $(PASSWD_UTIL_OBJ)
2282 utils/ntlm_auth_proto.h:
2283 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2284 -h _NTLM_AUTH_PROTO_H_ $(builddir)/utils/ntlm_auth_proto.h \
2285 $(NTLM_AUTH_OBJ1)
2287 libnet/libnet_proto.h:
2288 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2289 -h _LIBNET_PROTO_H_ $(builddir)/libnet/libnet_proto.h \
2290 $(LIBNET_OBJ)
2292 # "make headers" or "make proto" calls a subshell because we need to
2293 # make sure these commands are executed in sequence even for a
2294 # parallel make.
2295 headers:
2296 $(MAKE) delheaders; \
2297 $(MAKE) smbd/build_options.c; \
2298 $(MAKE) include/proto.h; \
2299 $(MAKE) include/build_env.h; \
2300 $(MAKE) winbindd/winbindd_proto.h; \
2301 $(MAKE) web/swat_proto.h; \
2302 $(MAKE) client/client_proto.h; \
2303 $(MAKE) utils/ntlm_auth_proto.h; \
2304 $(MAKE) utils/net_proto.h; \
2305 $(MAKE) utils/passwd_proto.h; \
2306 $(MAKE) libnet/libnet_proto.h;
2308 proto: headers
2310 .PHONY: headers proto
2312 etags:
2313 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2315 ctags:
2316 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2318 realclean: clean delheaders
2319 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2320 -rm -f script/installbin.sh script/uninstallbin.sh
2322 distclean: realclean
2323 -rm -f smbadduser
2324 -rm -f include/config.h Makefile
2325 -rm -f config.status config.cache so_locations
2326 -rm -rf .deps TAGS
2328 realdistclean: distclean
2329 -rm -f include/config.h.in
2330 -rm -f include/version.h
2331 -rm -f configure
2333 # this target is really just for my use. It only works on a limited
2334 # range of machines and is used to produce a list of potentially
2335 # dead (ie. unused) functions in the code. (tridge)
2336 finddead:
2337 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2338 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2339 comm -13 nmused.txt nmfns.txt
2342 # when configure.in is updated, reconfigure
2343 $(srcdir)/configure: $(srcdir)/configure.in
2344 @echo "WARNING: you need to rerun ./autogen.sh"
2346 config.status: $(srcdir)/configure
2347 @echo "WARNING: you need to run ./configure"
2349 Makefile: $(srcdir)/Makefile.in config.status
2350 @echo "WARNING: you need to run ./config.status"
2352 ######################################################################
2353 # Samba Testing Framework
2355 # Check shared libs for unresolved symbols
2356 test_shlibs: $(SHLIBS)
2357 @echo "Testing $(SHLIBS) "
2358 @export $(LIB_PATH_VAR)=./bin && \
2359 for module in $(SHLIBS); do \
2360 ./script/tests/dlopen.sh bin/$${module}.@SHLIBEXT@ \
2361 || exit 1; \
2362 done
2364 # Check for NSS module problems.
2365 test_nss_modules: nss_modules
2366 @echo "Testing $(NSS_MODULES) "
2367 @export $(LIB_PATH_VAR)=./bin && \
2368 for module in $(NSS_MODULES); do \
2369 ./script/tests/dlopen.sh $${module} \
2370 || exit 1; \
2371 done
2373 # Check for PAM module problems. Specifically, check that every module we
2374 # built can actually be loaded by a minimal PAM-aware application.
2375 test_pam_modules: pam_modules
2376 @echo "Testing $(PAM_MODULES) "
2377 @export $(LIB_PATH_VAR)=./bin && \
2378 for module in $(PAM_MODULES); do \
2379 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2380 || exit 1; \
2381 done
2385 ## Targets for 'make test'
2387 test: all torture timelimit
2388 @echo Running Test suite
2389 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2391 valgrindtest: all torture timelimit
2392 @echo Running Test suite with valgrind
2393 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2394 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2395 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2396 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2397 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2398 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"