Fix debug %lu message.
[Samba/nascimento.git] / source3 / Makefile.in
blob599e7a9e1ffd2e45b7ca03d68d9fd0c1e17e93fb
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 ###########################################################################
12 prefix=@prefix@
13 exec_prefix=@exec_prefix@
14 sysconfdir=@sysconfdir@
15 localstatedir=@localstatedir@
16 datarootdir=@datarootdir@
18 selftest_prefix=@selftest_prefix@
19 smbtorture4_path=@smbtorture4_path@
21 LIBS=@LIBS@ @LIBTALLOC_LIBS@
22 CC=@CC@
23 SHLD=@SHLD@
24 LIB_PATH_VAR=@LIB_PATH_VAR@
26 ## Dynamic shared libraries build settings
27 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@$$/syms/'`
28 DSO_EXPORTS=@DSO_EXPORTS@
29 SONAME_VER=`grep \^$@ $(builddir)/library-versions | cut -d: -f2`
30 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
32 # The MODULE_EXPORTS variable contains the platform-specific linker flags
33 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
34 MODULE_EXPORTS=@MODULE_EXPORTS@
36 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
37 # (GCC) warnings. This is done automtically for --enable-developer
38 # and --enable-krb5developer.
39 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
40 CFLAGS=@CFLAGS@
41 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
43 EXEEXT=@EXEEXT@
44 AR=@AR@
45 LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@
46 LDFLAGS=@PIE_LDFLAGS@ @LDFLAGS@
48 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
49 AWK=@AWK@
50 PICFLAG=@PICFLAG@
51 DYNEXP=@DYNEXP@
52 PERL=@PERL@
54 PIDL_ARGS=@PIDL_ARGS@
56 TERMLDFLAGS=@TERMLDFLAGS@
57 TERMLIBS=@TERMLIBS@
58 PRINT_LIBS=@PRINT_LIBS@
59 AUTH_LIBS=@AUTH_LIBS@
60 ACL_LIBS=@ACL_LIBS@
61 PASSDB_LIBS=@PASSDB_LIBS@
62 IDMAP_LIBS=@IDMAP_LIBS@
63 KRB5LIBS=@KRB5_LIBS@
64 LDAP_LIBS=@LDAP_LIBS@
65 NSCD_LIBS=@NSCD_LIBS@
66 UUID_LIBS=@UUID_LIBS@
67 WINBIND_LIBS=@WINBIND_LIBS@
68 DNSSD_LIBS=@DNSSD_LIBS@
70 INSTALLCMD=@INSTALL@
71 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
72 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
73 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
74 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
76 VPATH=@srcdir@
77 srcdir=@abs_srcdir@
78 builddir=@abs_builddir@
79 SHELL=/bin/sh
80 DESTDIR=/
82 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
83 # will search for a POSIX-compliant shell, and that might not be
84 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
86 # See the autoconf manual "Installation Directory Variables" for a
87 # discussion of the subtle use of these variables.
89 BASEDIR= @prefix@
90 BINDIR = @bindir@
91 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
92 SBINDIR = @sbindir@
93 ROOTSBINDIR = @rootsbindir@
94 LIBDIR = @libdir@
95 INCLUDEDIR=@includedir@
96 PAMMODULESDIR = @pammodulesdir@
97 VFSLIBDIR = $(LIBDIR)/vfs
98 PDBLIBDIR = $(LIBDIR)/pdb
99 RPCLIBDIR = $(LIBDIR)/rpc
100 IDMAPLIBDIR = $(LIBDIR)/idmap
101 NSSINFOLIBDIR = $(LIBDIR)/nss_info
102 CHARSETLIBDIR = $(LIBDIR)/charset
103 AUTHLIBDIR = $(LIBDIR)/auth
104 CONFIGLIBDIR = $(LIBDIR)/config
105 CONFIGDIR = @configdir@
106 VARDIR = @localstatedir@
107 MANDIR = @mandir@
108 DATADIR = @datadir@
110 # The permissions to give the executables and other data
111 INSTALLPERMS_BIN = 0755
112 INSTALLPERMS_DATA = 0644
114 # set these to where to find various files
115 # These can be overridden by command line switches (see smbd(8))
116 # or in smb.conf (see smb.conf(5))
117 LOGFILEBASE = @logfilebase@
118 CONFIGFILE = $(CONFIGDIR)/smb.conf
119 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
120 CTDBDIR = @ctdbdir@
122 # This is where smbpasswd et al go
123 PRIVATEDIR = @privatedir@
125 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
126 PRIVATE_DIR = $(PRIVATEDIR)
128 # This is where SWAT images and help files go
129 SWATDIR = @swatdir@
131 # the directory where lock files go
132 LOCKDIR = @lockdir@
134 # FHS directories; equal to LOCKDIR if not using --with-fhs
135 CACHEDIR = @cachedir@
136 STATEDIR = @statedir@
138 # Where to look for (and install) codepage databases.
139 CODEPAGEDIR = @codepagedir@
141 # the directory where pid files go
142 PIDDIR = @piddir@
144 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
145 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
146 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
148 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
149 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
150 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
151 LIBTDB_SYMS=exports/libtdb.syms
152 LIBTDB_HEADERS=@tdbdir@/include/tdb.h
154 LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
155 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
156 LIBADDNS=bin/libaddns.a @LIBADDNS_SHARED@
157 LIBWBCLIENT=@LIBWBCLIENT_SHARED@
159 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
160 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
161 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
163 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
164 FLAGS2 =
165 FLAGS3 =
166 FLAGS4 = -I$(CTDBDIR)/include
167 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
168 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
170 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
171 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
172 -DCONFIGFILE=\"$(CONFIGFILE)\" \
173 -DSBINDIR=\"$(SBINDIR)\" \
174 -DBINDIR=\"$(BINDIR)\" \
175 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
176 -DSWATDIR=\"$(SWATDIR)\" \
177 -DLOCKDIR=\"$(LOCKDIR)\" \
178 -DPIDDIR=\"$(PIDDIR)\" \
179 -DLIBDIR=\"$(LIBDIR)\" \
180 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
181 -DSHLIBEXT=\"@SHLIBEXT@\" \
182 -DCTDBDIR=\"$(CTDBDIR)\" \
183 -DCONFIGDIR=\"$(CONFIGDIR)\" \
184 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
185 -DCACHEDIR=\"$(CACHEDIR)\" \
186 -DSTATEDIR=\"$(STATEDIR)\"
188 # Note that all executable programs now provide for an optional executable suffix.
190 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
192 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@ @CIFSSPNEGO_PROGS@
194 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
195 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
196 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
197 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
198 bin/tdbtool@EXEEXT@
199 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
200 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
201 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
202 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
203 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
205 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
206 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
207 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
208 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
209 bin/tdbtorture@EXEEXT@
211 BIN_PROGS = @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@ \
212 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
214 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
215 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
216 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
217 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@
219 SHLIBS = libtalloc libtdb @LIBWBCLIENT@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBADDNS@ libnetapi
221 PAM_MODULES = @PAM_MODULES@
223 NSS_MODULES = @NSS_MODULES@
225 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
227 VFS_MODULES = @VFS_MODULES@
228 PDB_MODULES = @PDB_MODULES@
229 RPC_MODULES = @RPC_MODULES@
230 IDMAP_MODULES = @IDMAP_MODULES@
231 CHARSET_MODULES = @CHARSET_MODULES@
232 AUTH_MODULES = @AUTH_MODULES@
233 NSS_INFO_MODULES = @NSS_INFO_MODULES@
234 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
235 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES)
237 ######################################################################
238 # object file lists
239 ######################################################################
241 LIBTDB_OBJ0 = @TDB_OBJS@
242 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
244 TDB_OBJ = lib/util_tdb.o \
245 lib/dbwrap.o lib/dbwrap_tdb.o lib/dbwrap_ctdb.o \
246 lib/dbwrap_rbt.o @LIBTDB_STATIC@
248 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
250 VERSION_OBJ = lib/version.o
252 DOSERR_OBJ = libsmb/doserr.o
254 WBCOMMON_OBJ = nsswitch/wb_common.o
256 AFS_OBJ = lib/afs.o
258 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
260 SERVER_MUTEX_OBJ = lib/server_mutex.o
262 ERRORMAP_OBJ = libsmb/errormap.o
264 PASSCHANGE_OBJ = libsmb/passchange.o
267 LIBNDR_OBJ = librpc/ndr/ndr_basic.o \
268 librpc/ndr/ndr.o \
269 librpc/ndr/ndr_misc.o \
270 librpc/gen_ndr/ndr_misc.o \
271 librpc/gen_ndr/ndr_security.o \
272 librpc/ndr/ndr_sec_helper.o \
273 librpc/ndr/ndr_string.o \
274 librpc/ndr/sid.o \
275 librpc/ndr/uuid.o
277 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
279 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
280 librpc/gen_ndr/ndr_lsa.o \
281 librpc/gen_ndr/ndr_dfs.o \
282 librpc/gen_ndr/ndr_echo.o \
283 librpc/gen_ndr/ndr_winreg.o \
284 librpc/gen_ndr/ndr_initshutdown.o \
285 librpc/gen_ndr/ndr_srvsvc.o \
286 librpc/gen_ndr/ndr_svcctl.o \
287 librpc/gen_ndr/ndr_eventlog.o \
288 librpc/gen_ndr/ndr_netlogon.o \
289 librpc/gen_ndr/ndr_samr.o \
290 librpc/gen_ndr/ndr_dssetup.o \
291 librpc/gen_ndr/ndr_notify.o \
292 librpc/gen_ndr/ndr_xattr.o \
293 librpc/gen_ndr/ndr_ntsvcs.o
295 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
297 # this includes only the low level parse code, not stuff
298 # that requires knowledge of security contexts
299 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
301 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o rpc_parse/parse_srv.o
302 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o rpc_parse/parse_srv.o \
303 rpc_client/init_netlogon.o \
304 rpc_client/init_lsa.o
306 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
308 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
309 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
311 TALLOC_OBJ = @TALLOC_OBJS@
314 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
315 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
317 LIBSAMBAUTIL_OBJ = @LIBTALLOC_STATIC@ \
318 $(LIBREPLACE_OBJ) \
319 $(SOCKET_WRAPPER_OBJ) \
320 $(NSS_WRAPPER_OBJ)
322 LIB_WITHOUT_PROTO_OBJ = $(LIBSAMBAUTIL_OBJ) \
323 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
324 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
325 lib/interfaces.o lib/rbtree.o lib/memcache.o \
326 lib/util_transfer_file.o
328 LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
329 lib/interface.o lib/md4.o \
330 lib/pidfile.o \
331 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
332 lib/ufc.o lib/genrand.o lib/username.o \
333 lib/util_pw.o lib/access.o lib/smbrun.o \
334 lib/bitmap.o lib/crc32.o lib/dprintf.o \
335 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
336 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
337 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
338 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
339 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
340 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
341 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
342 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
343 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
344 lib/adt_tree.o lib/gencache.o $(TDB_OBJ) \
345 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
346 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
347 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
348 lib/file_id.o
350 LIB_OBJ = $(LIB_WITHOUT_PROTO_OBJ) $(LIB_WITH_PROTO_OBJ)
352 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
353 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
355 READLINE_OBJ = lib/readline.o
357 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
358 # Be sure to include them into your application
359 POPT_LIB_OBJ = lib/popt_common.o
361 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
362 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBNET_CONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
363 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
365 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
367 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
368 libaddns/dnsgss.o libaddns/dnsmarshall.o
369 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) @LIBTALLOC_STATIC@
371 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
372 nsswitch/libwbclient/wbc_util.o \
373 nsswitch/libwbclient/wbc_pwd.o \
374 nsswitch/libwbclient/wbc_idmap.o \
375 nsswitch/libwbclient/wbc_sid.o \
376 nsswitch/libwbclient/wbc_pam.o
377 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ) @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
379 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
380 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o
381 LIBGPO_OBJ = $(LIBGPO_OBJ0)
383 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
384 libads/sasl.o libads/sasl_wrapping.o \
385 libads/krb5_setpw.o libads/ldap_user.o \
386 libads/ads_struct.o libads/kerberos_keytab.o \
387 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
388 libads/cldap.o libads/ldap_schema.o libads/util.o libads/ndr.o
390 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
391 librpc/ndr/ndr_krb5pac.o \
392 librpc/gen_ndr/ndr_krb5pac.o
394 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
396 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
397 libsmb/namequery.o libsmb/conncache.o libads/dns.o
399 LIBSAMBA_OBJ = libsmb/nterr.o libsmb/dcerpc_err.o libsmb/smbdes.o \
400 libsmb/smbencrypt.o libsmb/ntlm_check.o \
401 libsmb/ntlmssp.o libsmb/ntlmssp_parse.o libsmb/ntlmssp_sign.o
403 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
404 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
405 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
406 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
407 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
408 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
409 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
410 libsmb/clioplock.o $(ERRORMAP_OBJ) libsmb/clirap2.o \
411 libsmb/smb_seal.o $(DOSERR_OBJ) \
412 $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(LIBNMB_OBJ)
414 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o rpc_client/cli_srvsvc.o
416 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
417 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
418 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
419 rpc_client/cli_svcctl.o \
420 rpc_client/init_samr.o
422 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
423 librpc/gen_ndr/cli_dfs.o \
424 librpc/gen_ndr/cli_echo.o \
425 librpc/gen_ndr/cli_srvsvc.o \
426 librpc/gen_ndr/cli_svcctl.o \
427 librpc/gen_ndr/cli_winreg.o \
428 librpc/gen_ndr/cli_initshutdown.o \
429 librpc/gen_ndr/cli_eventlog.o \
430 librpc/gen_ndr/cli_wkssvc.o \
431 librpc/gen_ndr/cli_netlogon.o \
432 librpc/gen_ndr/cli_samr.o \
433 librpc/gen_ndr/cli_dssetup.o \
434 librpc/gen_ndr/cli_ntsvcs.o \
435 $(LIBNDR_GEN_OBJ) \
436 $(RPCCLIENT_NDR_OBJ)
439 # registry-related objects
441 UTIL_REG_OBJ = lib/util_reg.o
442 UTIL_REG_API_OBJ = lib/util_reg_api.o
444 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
445 REG_INIT_FULL_OBJ = registry/reg_init_full.o
447 REGFIO_OBJ = registry/regfio.o
449 REGOBJS_OBJ = registry/reg_objects.o
451 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
453 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
455 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
456 registry/reg_backend_shares.o \
457 registry/reg_backend_netlogon_params.o \
458 registry/reg_backend_prod_options.o \
459 registry/reg_backend_tcpip_params.o \
460 registry/reg_backend_hkpt_params.o \
461 registry/reg_backend_current_version.o \
462 registry/reg_backend_perflib.o
464 REG_BASE_OBJ = registry/reg_api.o \
465 registry/reg_dispatcher.o \
466 registry/reg_cachehook.o \
467 $(REGFIO_OBJ) \
468 $(REGOBJS_OBJ) \
469 registry/reg_util.o \
470 $(UTIL_REG_API_OBJ) \
471 lib/util_nttoken.o \
472 $(REG_BACKENDS_BASE_OBJ)
474 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
475 $(REG_BACKENDS_SMBCONF_OBJ) \
476 $(REG_INIT_SMBCONF_OBJ)
478 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
479 $(REG_BACKENDS_EXTRA_OBJ) \
480 $(REG_INIT_FULL_OBJ) \
481 registry/reg_eventlog.o \
482 registry/reg_perfcount.o \
483 registry/reg_util_legacy.o
486 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
488 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
489 librpc/gen_ndr/srv_netlogon.o
491 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
492 rpc_server/srv_samr_util.o \
493 librpc/gen_ndr/srv_samr.o
495 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
497 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
498 librpc/gen_ndr/srv_winreg.o
500 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
502 RPC_SVC_OBJ = rpc_server/srv_srvsvc.o rpc_server/srv_srvsvc_nt.o \
503 librpc/gen_ndr/srv_srvsvc.o
505 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
507 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
508 librpc/gen_ndr/srv_svcctl.o \
509 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
510 services/svc_netlogon.o services/svc_winreg.o \
511 services/svc_wins.o
513 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o \
514 librpc/gen_ndr/srv_ntsvcs.o
516 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
518 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
520 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
521 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
523 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
524 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
526 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
528 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
530 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \
531 rpc_parse/parse_spoolss.o \
532 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
533 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o
535 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
537 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
539 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
541 PRIVILEGES_OBJ = lib/privileges.o
543 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
545 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
546 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
547 passdb/util_unixsids.o passdb/lookup_sid.o \
548 passdb/login_cache.o @PDB_STATIC@ \
549 lib/account_pol.o $(PRIVILEGES_OBJ) \
550 lib/util_nscd.o lib/winbind_util.o
552 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
553 CP850_OBJ = modules/CP850.o
554 CP437_OBJ = modules/CP437.o
555 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
557 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
559 PROFILE_OBJ = profile/profile.o
560 PROFILES_OBJ = utils/profiles.o \
561 $(ERRORMAP_OBJ) \
562 $(RPC_PARSE_OBJ1) $(PARAM_OBJ) $(LIBSAMBA_OBJ) \
563 $(DOSERR_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
564 $(POPT_LIB_OBJ) $(SECRETS_OBJ)
566 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
568 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
570 VFS_DEFAULT_OBJ = modules/vfs_default.o
571 VFS_AUDIT_OBJ = modules/vfs_audit.o
572 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
573 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
574 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
575 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
576 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
577 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
578 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
579 VFS_CAP_OBJ = modules/vfs_cap.o
580 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
581 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
582 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
583 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
584 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
585 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
586 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
587 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
588 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
589 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
590 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
591 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
592 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
593 VFS_CATIA_OBJ = modules/vfs_catia.o
594 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
595 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
596 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
597 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
598 VFS_COMMIT_OBJ = modules/vfs_commit.o
599 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
600 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
601 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
602 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
603 VFS_FILEID_OBJ = modules/vfs_fileid.o
604 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
606 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
608 SLCACHE_OBJ = libsmb/samlogon_cache.o
610 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
612 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
613 AUTH_DOMAIN_OBJ = auth/auth_domain.o
614 AUTH_SAM_OBJ = auth/auth_sam.o
615 AUTH_SERVER_OBJ = auth/auth_server.o
616 AUTH_UNIX_OBJ = auth/auth_unix.o
617 AUTH_WINBIND_OBJ = auth/auth_winbind.o
618 AUTH_SCRIPT_OBJ = auth/auth_script.o
620 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
621 auth/auth_compat.o auth/auth_ntlmssp.o \
622 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
624 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
626 SMBD_OBJ_MAIN = smbd/server.o
628 BUILDOPT_OBJ = smbd/build_options.o
630 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
631 smbd/utmp.o smbd/session.o smbd/map_username.o \
632 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
633 smbd/share_access.o smbd/fileio.o \
634 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
635 smbd/message.o smbd/nttrans.o smbd/pipes.o \
636 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
637 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
638 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
639 smbd/vfs.o smbd/statcache.o smbd/seal.o \
640 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
641 smbd/process.o smbd/service.o smbd/error.o \
642 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
643 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
644 smbd/change_trust_pw.o smbd/fake_file.o \
645 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
646 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
647 smbd/dmapi.o \
648 smbd/file_access.o \
649 smbd/dnsregister.o \
650 $(MANGLE_OBJ) @VFS_STATIC@
652 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
653 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) $(SECRETS_OBJ) \
654 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
655 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
656 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
657 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
658 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
659 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
660 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
661 $(PRIVILEGES_BASIC_OBJ)
663 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
664 printing/print_cups.o printing/print_generic.o \
665 printing/lpq_parse.o printing/load.o \
666 printing/print_iprint.o
668 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
669 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
671 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
673 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
674 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
675 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
676 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
677 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
678 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
679 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
680 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
681 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
682 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
683 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
684 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
686 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
687 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
689 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
690 web/swat.o web/neg_lang.o
692 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
693 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SECRETS_OBJ) $(KRBCLIENT_OBJ) \
694 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
695 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
696 $(PASSCHANGE_OBJ) $(LDB_OBJ)
698 STATUS_OBJ = utils/status.o utils/status_profile.o \
699 $(LOCKING_OBJ) $(PARAM_OBJ) \
700 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
701 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) \
702 $(DOSERR_OBJ)
704 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
705 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
706 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
707 $(PRINTBASE_OBJ) $(ERRORMAP_OBJ)
709 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
710 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
711 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
712 rpc_client/cli_pipe.o $(RPC_PARSE_OBJ2) \
713 $(RPC_CLIENT_OBJ1) \
714 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
715 $(LIBMSRPC_GEN_OBJ)
717 TESTPARM_OBJ = utils/testparm.o \
718 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
719 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
720 $(ERRORMAP_OBJ)
722 PASSWD_UTIL_OBJ = utils/passwd_util.o
724 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
725 $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
726 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
727 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
728 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
730 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
731 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
732 $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
733 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) $(ERRORMAP_OBJ)
735 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ0)
737 DISPLAY_SEC_OBJ= lib/display_sec.o
738 DISPLAY_DSDCINFO_OBJ= lib/display_dsdcinfo.o
740 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
741 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
742 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
743 rpcclient/cmd_dfs.o \
744 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
745 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
746 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
747 $(DISPLAY_SEC_OBJ)
749 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
750 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
751 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
752 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
753 $(LIBADS_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
754 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
756 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
757 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
759 LIBSMBCLIENT_OBJ0 = libsmb/libsmbclient.o libsmb/libsmb_compat.o \
760 libsmb/libsmb_cache.o \
761 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
762 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
763 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
764 $(SECRETS_OBJ) $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
766 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ0) @LIBWBCLIENT_STATIC@
768 LIBSMBSHAREMODES_OBJ = libsmb/smb_share_modes.o @LIBTDB_STATIC@
770 # This shared library is intended for linking with unit test programs
771 # to test Samba internals. It's called libbigballofmud.so to
772 # discourage casual usage.
774 LIBBIGBALLOFMUD_MAJOR = 0
776 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) \
777 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
778 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
780 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
781 client/dnsbrowse.o \
782 $(RPC_CLIENT_OBJ1) \
783 $(RPC_PARSE_OBJ2)
785 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
786 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
787 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
788 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
789 $(DISPLAY_SEC_OBJ)
791 LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
792 lib/netapi/joindomain.o \
793 lib/netapi/serverinfo.o \
794 lib/netapi/getdc.o
796 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
797 $(REG_SMBCONF_OBJ) \
798 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
799 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
800 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
801 $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
802 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ)
804 LIBNET_CONF_OBJ = libnet/libnet_conf.o
806 LIBNET_OBJ = $(LIBNET_CONF_OBJ) libnet/libnet_join.o \
807 librpc/gen_ndr/ndr_libnet_join.o
809 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_domain.o utils/net_help.o \
810 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
811 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
812 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
813 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
814 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
815 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
816 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
817 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
818 utils/net_conf.o auth/token_util.o utils/net_dom.o nsswitch/wb_client.o
820 NET_OBJ = $(NET_OBJ1) $(PARAM_WITHOUT_REG_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
821 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
822 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
823 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
824 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
825 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
826 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
827 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
828 $(REG_SMBCONF_OBJ) $(DISPLAY_DSDCINFO_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
829 $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
830 $(PRIVILEGES_BASIC_OBJ)
832 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
833 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
835 MOUNT_OBJ = client/smbmount.o \
836 $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
838 MNT_OBJ = client/smbmnt.o $(VERSION_OBJ) $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
840 UMOUNT_OBJ = client/smbumount.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
841 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
843 CIFS_MOUNT_OBJ = client/mount.cifs.o
845 CIFS_UMOUNT_OBJ = client/umount.cifs.o
847 CIFS_SPNEGO_OBJ = client/cifs.spnego.o
849 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
850 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ) \
851 $(ERRORMAP_OBJ)
853 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
854 torture/denytest.o torture/mangle_test.o
856 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
857 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
859 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
860 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
862 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
863 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
865 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
866 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
868 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
869 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
871 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
872 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
873 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ)
876 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
878 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) $(RPC_PARSE_OBJ1) $(ERRORMAP_OBJ)
880 LOG2PCAP_OBJ = utils/log2pcaphex.o
882 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
883 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
885 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
886 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
887 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
888 $(SECRETS_OBJ) \
889 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
891 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
892 $(PARAM_OBJ) \
893 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
894 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
895 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
897 EVTLOGADM_OBJ0 = utils/eventlogadm.o
899 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
900 $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
901 $(SECRETS_OBJ) \
902 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
904 SHARESEC_OBJ0 = utils/sharesec.o
905 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
906 $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
907 $(POPT_LIB_OBJ) $(SECRETS_OBJ)
909 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
910 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LIBSAMBA_OBJ) $(SECRETS_OBJ) \
911 $(ERRORMAP_OBJ)
913 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
914 lib/replace/test/os2_delete.o \
915 lib/replace/test/strptime.o \
916 $(LIBREPLACE_OBJ)
918 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
919 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
920 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
921 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(SECRETS_OBJ) \
922 $(ERRORMAP_OBJ)
924 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
926 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(SECRETS_OBJ) \
927 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ)
929 PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
930 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(LIBSMB_OBJ) \
931 $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
932 $(LIBMSRPC_OBJ) \
933 $(LIB_WITH_PROTO_OBJ) \
934 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
935 $(AUTH_OBJ) $(PARAM_WITHOUT_REG_OBJ) $(LOCKING_OBJ) $(SECRETS_OBJ) \
936 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
937 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
938 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
939 $(AUTH_SAM_OBJ) $(REG_FULL_OBJ) $(POPT_LIB_OBJ) \
940 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_DSSETUP_OBJ) \
941 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
942 $(RPC_ECHO_OBJ) $(RPC_SVCCTL_OBJ) $(RPC_EVENTLOG_OBJ) $(SMBLDAP_OBJ) \
943 $(IDMAP_OBJ) libsmb/spnego.o $(PASSCHANGE_OBJ) \
944 $(RPC_NTSVCS_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
945 utils/passwd_util.o $(LIBGPO_OBJ) $(NSS_INFO_OBJ) \
946 $(RPCCLIENT_NDR_OBJ) $(DISPLAY_DSDCINFO_OBJ) \
947 $(PRIVILEGES_BASIC_OBJ)
949 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
950 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ)
952 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
953 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
954 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
955 $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
956 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) $(ERRORMAP_OBJ)
958 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
960 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
962 WINBINDD_OBJ1 = \
963 winbindd/winbindd.o \
964 winbindd/winbindd_user.o \
965 winbindd/winbindd_group.o \
966 winbindd/winbindd_util.o \
967 winbindd/winbindd_cache.o \
968 winbindd/winbindd_pam.o \
969 winbindd/winbindd_sid.o \
970 winbindd/winbindd_misc.o \
971 winbindd/winbindd_cm.o \
972 winbindd/winbindd_wins.o \
973 winbindd/winbindd_rpc.o \
974 winbindd/winbindd_reconnect.o \
975 winbindd/winbindd_ads.o \
976 winbindd/winbindd_passdb.o \
977 winbindd/winbindd_dual.o \
978 winbindd/winbindd_async.o \
979 winbindd/winbindd_creds.o \
980 winbindd/winbindd_cred_cache.o \
981 winbindd/winbindd_ccache_access.o \
982 winbindd/winbindd_domain.o \
983 winbindd/winbindd_idmap.o \
984 winbindd/winbindd_locator.o \
985 winbindd/winbindd_ndr.o \
986 auth/token_util.o
988 WINBINDD_OBJ = \
989 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
990 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
991 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
992 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
993 $(SECRETS_OBJ) $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
994 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
995 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
996 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
998 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
999 $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) $(RPC_PARSE_OBJ1) \
1000 $(DOSERR_OBJ) lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1001 $(ERRORMAP_OBJ)
1003 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1005 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1006 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1007 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1008 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1009 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1011 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1012 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1013 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1015 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1016 lib/ldb/modules/objectclass.o \
1017 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1019 # enabled in configure.in
1020 LDB_LDAP_OBJ=@LDBLDAP@
1022 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1024 LDB_CMDLINE_OBJ = $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
1025 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1026 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1027 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1028 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
1029 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
1030 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1031 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1034 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1035 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1036 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1037 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1038 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1040 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1041 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
1043 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1044 popt/popthelp.o popt/poptparse.o
1046 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1047 iniparser_build/strlib.o
1049 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1050 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1052 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1053 $(SOCKET_WRAPPER_OBJ)
1055 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1056 $(SOCKET_WRAPPER_OBJ)
1058 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1059 $(SOCKET_WRAPPER_OBJ)
1062 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1064 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1065 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1066 $(SECRETS_OBJ) $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1067 $(RPC_PARSE_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1068 $(SMBLDAP_OBJ) $(DOSERR_OBJ) $(LIBNMB_OBJ) \
1069 $(LDB_OBJ) $(ERRORMAP_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1070 librpc/gen_ndr/ndr_samr.o \
1071 librpc/gen_ndr/ndr_lsa.o \
1072 librpc/gen_ndr/ndr_netlogon.o
1075 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ)
1077 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1078 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1079 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
1080 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1081 $(DISPLAY_SEC_OBJ)
1083 ######################################################################
1084 # now the rules...
1085 ######################################################################
1086 all : SHOWFLAGS $(SHLIBS) $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1087 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1089 nss_modules : $(NSS_MODULES)
1091 pam_modules : $(PAM_MODULES)
1093 pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1095 pam_winbind : SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1097 torture : SHOWFLAGS $(TORTURE_PROGS)
1099 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1101 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1103 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1105 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1107 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1109 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1111 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1113 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1115 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1117 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1119 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1121 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1123 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1125 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1127 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1128 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1129 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1131 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1133 modules: SHOWFLAGS $(MODULES)
1135 #####################################################################
1136 ## Perl IDL Compiler
1137 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1138 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1139 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1140 dssetup.idl krb5pac.idl ntsvcs.idl libnet_join.idl
1142 idl:
1143 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1144 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1147 #####################################################################
1150 everything: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort modules torture \
1151 $(EVERYTHING_PROGS)
1153 .SUFFIXES:
1154 .SUFFIXES: .c .o .lo
1156 SHOWFLAGS:
1157 @echo "Using FLAGS = $(FLAGS)"
1158 @echo " PICFLAG = $(PICFLAG)"
1159 @echo " LIBS = $(LIBS)"
1160 @echo " LDFLAGS = $(LDFLAGS)"
1161 @echo " DYNEXP = $(DYNEXP)"
1162 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1163 @echo " SHLIBEXT = @SHLIBEXT@"
1164 @echo " SONAMEFLAG = @SONAMEFLAG@"
1166 MAKEDIR = || exec false; \
1167 if test -d "$$dir"; then :; else \
1168 echo mkdir "$$dir"; \
1169 mkdir -p "$$dir" >/dev/null 2>&1 || \
1170 test -d "$$dir" || \
1171 mkdir "$$dir" || \
1172 exec false; fi || exec false
1174 # Run a static checker.
1175 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1176 # Compile a source file.
1177 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1178 # Compile a source file with the installation paths defined.
1179 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1181 COMPILE = $(COMPILE_CC)
1183 .c.o:
1184 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1185 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1186 @if test -n "$(CC_CHECKER)"; then \
1187 echo "Checking $*.c with '$(CC_CHECKER)'";\
1188 $(CHECK_CC); \
1190 @echo Compiling $*.c
1191 @$(COMPILE) && exit 0;\
1192 echo "The following command failed:" 1>&2;\
1193 echo "$(COMPILE_CC)" 1>&2;\
1194 $(COMPILE_CC) >/dev/null 2>&1
1195 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1197 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1199 # this adds support for precompiled headers. To use it, install a snapshot
1200 # of gcc-3.4 and run 'make pch' before you do the main build.
1201 pch: proto_exists
1202 rm -f $(PRECOMPILED_HEADER)
1203 $(MAKE) $(PRECOMPILED_HEADER)
1205 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1206 $(COMPILE)
1208 BINARY_PREREQS = proto_exists bin/.dummy
1210 # These dependencies are only approximately correct: we want to make
1211 # sure Samba's paths are updated if ./configure is re-run. Really it
1212 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1213 # but since we also require "make install prefix=/opt/samba" *not* to
1214 # rebuild it's a bit hard.
1216 dynconfig.o: dynconfig.c Makefile
1217 @echo Compiling $*.c
1218 @$(COMPILE_CC_PATH) && exit 0;\
1219 echo "The following command failed:" 1>&2;\
1220 echo "$(COMPILE_CC_PATH)" 1>&2;\
1221 $(COMPILE_CC_PATH) >/dev/null 2>&1
1223 lib/pidfile.o: lib/pidfile.c
1224 @echo Compiling $*.c
1225 @$(COMPILE_CC_PATH) && exit 0;\
1226 echo "The following command failed:" 1>&2;\
1227 echo "$(COMPILE_CC_PATH)" 1>&2;\
1228 $(COMPILE_CC_PATH) >/dev/null 2>&1
1230 lib/version.o: lib/version.c include/version.h
1231 @echo Compiling $*.c
1232 @$(COMPILE_CC_PATH) && exit 0;\
1233 echo "The following command failed:" 1>&2;\
1234 echo "$(COMPILE_CC_PATH)" 1>&2;\
1235 $(COMPILE_CC_PATH) >/dev/null 2>&1
1237 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1238 @echo Compiling $*.c
1239 @$(COMPILE_CC_PATH) && exit 0;\
1240 echo "The following command failed:" 1>&2;\
1241 echo "$(COMPILE_CC_PATH)" 1>&2;\
1242 $(COMPILE_CC_PATH) >/dev/null 2>&1
1244 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1245 @echo Generating $@
1246 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1248 bin/.dummy:
1249 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1250 dir=bin $(MAKEDIR); fi
1251 @: >> $@ || : > $@ # what a fancy emoticon!
1253 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1254 @echo Linking $@
1255 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1256 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1257 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1258 @POPTLIBS@ @SMBD_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1260 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1261 @echo Linking $@
1262 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1263 @LIBTDB_LIBS@ @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
1265 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1266 @echo Linking $@
1267 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1268 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) @POPTLIBS@ $(KRB5LIBS) \
1269 $(LDAP_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1271 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1272 @echo Linking $@
1273 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1274 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1275 $(KRB5LIBS) $(LDAP_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1277 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1278 @echo Linking $@
1279 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1280 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1281 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1282 @LIBTDB_LIBS@ @WINBIND_LIBS@
1284 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1285 @echo Linking $@
1286 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1287 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1288 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @INIPARSERLIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@ @LIBNETAPI_LIBS@
1290 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1291 @echo Linking $@
1292 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1294 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1295 @echo Linking $@
1296 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1298 bin/smbmount@EXEEXT@: $(BINARY_PREREQS) $(MOUNT_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1299 @echo Linking $@
1300 @$(CC) $(FLAGS) -o $@ $(MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1302 bin/smbmnt@EXEEXT@: $(BINARY_PREREQS) $(MNT_OBJ) @BUILD_POPT@
1303 @echo Linking $@
1304 @$(CC) $(FLAGS) -o $@ $(MNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1306 bin/smbumount@EXEEXT@: $(BINARY_PREREQS) $(UMOUNT_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1307 @echo Linking $@
1308 @$(CC) $(FLAGS) -o $@ $(UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1310 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1311 @echo Linking $@
1312 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1314 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1315 @echo Linking $@
1316 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1318 bin/cifs.spnego@EXEEXT@: $(BINARY_PREREQS) $(CIFS_SPNEGO_OBJ) $(LIBSMBCLIENT_OBJ0) @BUILD_POPT@ @LIBTDB_SHARED@
1319 @echo Linking $@
1320 @$(CC) $(FLAGS) -o $@ $(CIFS_SPNEGO_OBJ) $(DYNEXP) $(LDFLAGS) -lkeyutils $(LIBS) \
1321 $(LIBSMBCLIENT_OBJ0) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBWBCLIENT_SHARED@ @LIBTDB_LIBS@
1323 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1324 @echo Linking $@
1325 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1327 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1328 @echo Linking $@
1329 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) \
1330 @POPTLIBS@ @LIBTDB_LIBS@
1332 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1333 @echo Linking $@
1334 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1335 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1336 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ @POPTLIBS@ @LIBTDB_LIBS@
1338 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1339 @echo Linking $@
1340 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1341 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1342 @LIBTDB_LIBS@ @WINBIND_LIBS@
1344 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1345 @echo Linking $@
1346 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1347 $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1348 @LIBTDB_LIBS@ @WINBIND_LIBS@
1350 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1351 @echo Linking $@
1352 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1353 @POPTLIBS@ $(PASSDB_LIBS) $(LDAP_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1355 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1356 @echo Linking $@
1357 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1358 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1359 @LIBTDB_LIBS@ @WINBIND_LIBS@
1361 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1362 @echo Linking $@
1363 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1364 @POPTLIBS@ $(LDAP_LIBS) @LIBTDB_LIBS@
1366 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1367 @echo Linking $@
1368 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1370 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1371 @echo Linking $@
1372 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1373 $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1375 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@
1376 @echo Linking $@
1377 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1378 $(DYNEXP) $(LIBS) @POPTLIBS@
1380 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1381 @echo Linking $@
1382 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1384 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1385 @echo Linking $@
1386 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1388 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1389 @echo Linking $@
1390 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \
1391 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1393 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1394 @echo Linking $@
1395 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \
1396 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1398 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1399 @echo Linking $@
1400 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1402 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1403 @echo Linking $@
1404 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1406 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1407 @echo Linking $@
1408 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1410 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1411 @echo Linking $@
1412 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1414 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1415 @echo Linking $@
1416 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1418 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1419 @echo Linking $@
1420 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) @SMBD_LIBS@ $(NSCD_LIBS) @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1422 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1423 @echo Linking $@
1424 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1426 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@
1427 @echo Linking $@
1428 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) @POPTLIBS@ $(LIBS)
1430 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1431 @echo Linking $@
1432 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1434 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1435 @echo Linking $@
1436 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1437 @POPTLIBS@ @LDAP_LIBS@ @LIBTDB_LIBS@
1439 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@
1440 @echo Linking $@
1441 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1443 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@
1444 @echo Linking $@
1445 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@
1447 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1448 @echo Linking $@
1449 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1450 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1451 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1453 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1454 @echo Linking $@
1455 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1456 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1457 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1459 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1460 @echo Linking $@
1461 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1462 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1463 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1465 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1466 @echo Linking $@
1467 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1468 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1469 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1471 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1472 @echo Linking $@
1473 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1474 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1475 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1477 $(LIBTALLOC_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ)
1478 @echo Linking shared library $@
1479 @$(SHLD_DSO) $(LIBTALLOC_OBJ) \
1480 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1481 @ln -s -f `basename $@` $@.$(SONAME_VER)
1483 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1484 @echo Linking non-shared library $@
1485 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1487 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1489 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1490 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1492 $(LIBTDB_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1493 @echo Linking shared library $@
1494 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1495 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1496 @ln -s -f `basename $@` $@.$(SONAME_VER)
1498 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1499 @echo Linking non-shared library $@
1500 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1502 bin/libwbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) @LIBTALLOC_SHARED@
1503 @echo Linking shared library $@
1504 @$(SHLD_DSO) @LIBTALLOC_LIBS@ $(LIBWBCLIENT_OBJ) \
1505 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1506 @ln -s -f `basename $@` $@.$(SONAME_VER)
1508 bin/libwbclient.a: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1509 @echo Linking non-shared library $@
1510 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1512 bin/libaddns.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBADDNS_OBJ)
1513 @echo Linking shared library $@
1514 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1515 $(KRB5LIBS) $(UUID_LIBS)\
1516 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1518 bin/libaddns.a: $(BINARY_PREREQS) $(LIBADDNS_OBJ)
1519 @echo Linking non-shared library $@
1520 @-$(AR) -rc $@ $(LIBADDNS_OBJ)
1522 $(LIBNETAPI_SHARED_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1523 @echo Linking shared library $@
1524 @$(SHLD_DSO) $(LIBNETAPI_OBJ) @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ $(LIBS) \
1525 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1526 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1527 @ln -s -f `basename $@` $@.$(SONAME_VER)
1529 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ1)
1530 @echo Linking non-shared library $@
1531 @-$(AR) -rc $@ $(LIBNETAPI_OBJ1)
1533 bin/libsmbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1534 @echo Linking shared library $@
1535 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@ $(LIBS) \
1536 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1537 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1539 bin/libsmbclient.a: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ0)
1540 @echo Linking non-shared library $@
1541 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ0)
1543 bin/libsmbsharemodes.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) @LIBTDB_SHARED@
1544 @echo Linking shared library $@
1545 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) $(LIBS) @LIBTDB_LIBS@ \
1546 $(KRB5LIBS) $(LDAP_LIBS) \
1547 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1549 bin/libsmbsharemodes.a: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ)
1550 @echo Linking non-shared library $@
1551 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ)
1553 # This is probably wrong for anything other than the GNU linker.
1554 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ)
1555 @echo Linking shared library $@
1556 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) $(LIBS) \
1557 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1558 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
1559 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
1561 # It would be nice to build a static bigballofmud too, but when I try
1562 # I get linker errors about dl_open and similar things. I'm not sure if
1563 # it can be fixed or if they just can't be called from a static
1564 # library.
1566 libtalloc: $(LIBTALLOC)
1567 libtdb: $(LIBTDB)
1568 libsmbclient: $(LIBSMBCLIENT)
1569 libsmbsharemodes: $(LIBSMBSHAREMODES)
1570 libaddns: $(LIBADDNS)
1571 libwbclient: $(LIBWBCLIENT)
1572 libnetapi: $(LIBNETAPI)
1574 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1575 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
1576 -o $@ @SONAMEFLAG@`basename $@`
1578 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
1579 @echo "Linking $@"
1580 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
1582 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
1583 @echo "Linking $@"
1584 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
1586 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
1587 @echo "Linking $@"
1588 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
1590 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
1591 @echo "Linking $@"
1592 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
1594 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
1595 @echo "Linking $@"
1596 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
1598 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
1599 @echo "Linking $@"
1600 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
1602 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
1603 @echo "Linking $@"
1604 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
1606 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
1607 @echo "Linking $@"
1608 @$(SHLD_MODULE) $(RPC_REG_OBJ)
1610 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
1611 @echo "Linking $@"
1612 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
1614 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
1615 @echo "Linking $@"
1616 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
1618 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
1619 @echo "Linking $@"
1620 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
1622 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
1623 @echo "Linking $@"
1624 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
1626 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
1627 @echo "Linking $@"
1628 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
1630 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
1631 @echo "Linking $@"
1632 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
1634 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1635 @echo "Linking $@"
1636 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1637 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1638 $(PASSDB_LIBS) @LIBTDB_LIBS@ @WINBIND_LIBS@
1640 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1641 @echo "Linking $@"
1642 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1643 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1645 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
1646 @echo "Linking $@"
1647 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
1648 @WINBIND_NSS_EXTRA_LIBS@ @WINBIND_NSS_PTHREAD@ @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1650 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTDB_SHARED@
1651 @echo "Linking $@"
1652 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
1653 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) @LIBTDB_LIBS@ \
1654 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1656 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
1657 @echo "Linking $@"
1658 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
1659 @SONAMEFLAG@`basename $@`
1661 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
1662 @echo "Linking shared library $@"
1663 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
1664 @SONAMEFLAG@`basename $@`
1666 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
1667 @echo "Building plugin $@"
1668 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
1670 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
1671 @echo "Building plugin $@"
1672 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
1674 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
1675 @echo "Building plugin $@"
1676 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
1678 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
1679 @echo "Building plugin $@"
1680 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
1682 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
1683 @echo "Building plugin $@"
1684 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
1686 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
1687 @echo "Building plugin $@"
1688 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
1690 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
1691 @echo "Building plugin $@"
1692 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
1694 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
1695 @echo "Building plugin $@"
1696 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
1698 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
1699 @echo "Building plugin $@"
1700 @$(SHLD_MODULE) passdb/pdb_tdb.o
1702 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
1703 @echo "Building plugin $@"
1704 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
1706 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
1707 @echo "Building plugin $@"
1708 @$(SHLD_MODULE) winbindd/idmap_rid.o
1710 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
1711 @echo "Building plugin $@"
1712 @$(SHLD_MODULE) winbindd/idmap_ad.o
1714 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
1715 @echo "Building plugin $@"
1716 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
1718 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
1719 @echo "Building plugin $@"
1720 @$(SHLD_MODULE) winbindd/idmap_ldap.o
1722 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
1723 @echo "Building plugin $@"
1724 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
1726 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
1727 @echo "Building plugin $@"
1728 @$(SHLD_MODULE) $(CP850_OBJ)
1730 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
1731 @echo "Building plugin $@"
1732 @$(SHLD_MODULE) $(CP437_OBJ)
1734 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
1735 @echo "Building plugin $@"
1736 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
1738 # NOTE, there is no build rule for a dynamic default VFS module because
1739 # this one MUST MUST MUST be built statically.
1741 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
1742 @echo "Building plugin $@"
1743 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
1745 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
1746 @echo "Building plugin $@"
1747 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
1749 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
1750 @echo "Building plugin $@"
1751 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
1753 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
1754 @echo "Building plugin $@"
1755 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
1757 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
1758 @echo "Building plugin $@"
1759 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
1761 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
1762 @echo "Building plugin $@"
1763 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
1765 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
1766 @echo "Building plugin $@"
1767 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
1769 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
1770 @echo "Building plugin $@"
1771 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
1773 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
1774 @echo "Building plugin $@"
1775 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
1777 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
1778 @echo "Building plugin $@"
1779 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
1781 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
1782 @echo "Building plugin $@"
1783 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
1785 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
1786 @echo "Building plugin $@"
1787 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
1789 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
1790 @echo "Building plugin $@"
1791 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
1793 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
1794 @echo "Building plugin $@"
1795 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
1797 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
1798 @echo "Building plugin $@"
1799 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
1801 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
1802 @echo "Building plugin $@"
1803 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
1805 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
1806 @echo "Building plugin $@"
1807 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
1809 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
1810 @echo "Building plugin $@"
1811 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
1813 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
1814 @echo "Building plugin $@"
1815 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
1817 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
1818 @echo "Building plugin $@"
1819 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
1821 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
1822 @echo "Building plugin $@"
1823 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
1825 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
1826 @echo "Building plugin $@"
1827 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
1829 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
1830 @echo "Building plugin $@"
1831 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
1833 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
1834 @echo "Building plugin $@"
1835 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
1837 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
1838 @echo "Building plugin $@"
1839 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
1841 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
1842 @echo "Building plugin $@"
1843 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
1845 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
1846 @echo "Building plugin $@"
1847 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
1849 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
1850 @echo "Building plugin $@"
1851 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
1853 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
1854 @echo "Building plugin $@"
1855 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
1857 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
1858 @echo "Building plugin $@"
1859 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
1861 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
1862 @echo "Building plugin $@"
1863 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
1865 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
1866 @echo "Building plugin $@"
1867 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
1869 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
1870 @echo "Building plugin $@"
1871 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
1873 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
1874 @echo "Building plugin $@"
1875 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
1877 #########################################################
1878 ## IdMap NSS plugins
1880 ## None here right now
1881 #########################################################
1883 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1884 @echo Linking $@
1885 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
1886 $(LDAP_LIBS) @POPTLIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1888 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
1889 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1890 @echo Linking $@
1891 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
1892 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
1893 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1894 @LIBTDB_LIBS@ @WINBIND_LIBS@
1896 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ)
1897 @echo "Linking shared library $@"
1898 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
1900 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTDB_SHARED@
1901 @echo Linking $@
1902 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) $(LIBS) @LIBTDB_LIBS@
1904 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTDB_SHARED@
1905 @echo Linking $@
1906 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) $(LIBS) @LIBTDB_LIBS@
1908 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTDB_SHARED@
1909 @echo Linking $@
1910 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBS) @LIBTDB_LIBS@
1912 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTDB_SHARED@
1913 @echo Linking $@
1914 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) $(LIBS) @LIBTDB_LIBS@
1916 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
1917 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strcmp.o -L ./bin -lbigballofmud
1919 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
1920 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strstr.o -L ./bin -lbigballofmud
1922 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
1923 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strappend.o -L ./bin -lbigballofmud
1925 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
1926 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o -L./bin -lbigballofmud
1928 bin/timelimit@EXEEXT@: script/tests/timelimit.o
1929 @echo Linking $@
1930 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
1932 install: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSSPNEGO@ installman \
1933 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
1934 installlibtalloc \
1935 installlibtdb \
1936 @INSTALL_LIBSMBCLIENT@ @INSTALL_PAM_MODULES@ \
1937 @INSTALL_LIBSMBSHAREMODES@ @INSTALL_LIBWBCLIENT@ installlibnetapi
1939 install-everything: install installmodules
1941 # DESTDIR is used here to prevent packagers wasting their time
1942 # duplicating the Makefile. Remove it and you will have the privelege
1943 # of package each samba release for muliple versions of multiple
1944 # distributions and operating systems, or at least supplying patches
1945 # to all the packaging files required for this, prior to committing
1946 # the removal of DESTDIR. Do not remove it even though you think it
1947 # is not used
1949 installdirs:
1950 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
1952 installservers: all installdirs
1953 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
1955 installbin: all installdirs
1956 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
1958 installcifsmount: @CIFSMOUNT_PROGS@
1959 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
1960 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
1962 installcifsspnego: @CIFSSPNEGO_PROGS@
1963 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
1964 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
1966 # Some symlinks are required for the 'probing' of modules.
1967 # This mechanism should go at some point..
1968 installmodules: modules installdirs
1969 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
1970 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
1971 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
1972 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
1973 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
1974 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
1975 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
1976 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
1977 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
1978 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1979 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1980 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1981 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1982 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1983 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
1985 installscripts: installdirs
1986 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
1988 installdat: installdirs
1989 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
1991 installmsg: installdirs
1992 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
1994 installswat: installdirs installmsg
1995 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
1997 installclientlib: installdirs libsmbclient
1998 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1999 -$(INSTALLLIBCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2000 -$(INSTALLLIBCMD_A) bin/libsmbclient.a $(DESTDIR)$(LIBDIR)
2001 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2002 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include
2004 installlibtalloc: installdirs libtalloc
2005 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2006 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2007 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2008 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2009 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) @tallocdir@/talloc.h $(DESTDIR)${prefix}/include
2011 installlibtdb: installdirs libtdb
2012 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2013 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2014 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2015 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2016 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2018 installlibsmbsharemodes: installdirs libsmbsharemodes
2019 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2020 -$(INSTALLLIBCMD_SH) bin/libsmbsharemodes.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2021 -$(INSTALLLIBCMD_A) bin/libsmbsharemodes.a $(DESTDIR)$(LIBDIR)
2022 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/smb_share_modes.h $(DESTDIR)${prefix}/include
2024 installlibaddns: installdirs libaddns
2025 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2026 -$(INSTALLLIBCMD_SH) bin/libaddns.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2027 -$(INSTALLLIBCMD_A) bin/libaddns.a $(DESTDIR)$(LIBDIR)
2029 installlibwbclient: installdirs libwbclient
2030 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2031 -$(INSTALLLIBCMD_SH) bin/libwbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2032 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2033 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/nsswitch/libwbclient/wbclient.h $(DESTDIR)${prefix}/include
2035 installlibnetapi: installdirs libnetapi
2036 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2037 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2038 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2039 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2041 installpammodules: $(PAM_MODULES)
2042 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2043 @for module in $(PAM_MODULES); do \
2044 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2045 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2046 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2047 done
2049 # revert to the previously installed version
2050 revert:
2051 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2052 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2054 installman: installdirs
2055 @SMBMOUNT_PROGS="@SMBMOUNT_PROGS@" $(SHELL) \
2056 $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2058 .PHONY: showlayout
2060 showlayout:
2061 @echo "Samba will be installed into:"
2062 @echo " prefix: $(prefix)"
2063 @echo " bindir: $(BINDIR)"
2064 @echo " sbindir: $(SBINDIR)"
2065 @echo " libdir: $(LIBDIR)"
2066 @echo " vardir: $(VARDIR)"
2067 @echo " mandir: $(MANDIR)"
2068 @echo " privatedir: $(PRIVATE_DIR)"
2069 @echo " configdir: $(CONFIGDIR)"
2070 @echo " lockdir: $(LOCKDIR)"
2071 @echo " piddir: $(PIDDIR)"
2072 @echo " swatdir: $(SWATDIR)"
2075 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSSPNEGO@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibtalloc uninstalllibtdb @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@ uninstalllibnetapi
2077 uninstallman:
2078 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2080 uninstallservers:
2081 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2083 uninstallbin:
2084 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2086 uninstallcifsmount:
2087 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2089 uninstallcifsspnego:
2090 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
2092 uninstallmodules:
2093 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2094 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2095 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2096 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2097 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2098 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2100 uninstallscripts:
2101 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2103 uninstalldat:
2104 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2106 uninstallmsg:
2107 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2109 uninstallswat: uninstallmsg
2110 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2112 uninstallclientlib:
2113 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbclient.@SHLIBEXT@
2114 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbclient.a
2115 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2117 uninstalllibsmbsharemodes:
2118 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.@SHLIBEXT@
2119 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.a
2121 uninstalllibaddns:
2122 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libaddns.@SHLIBEXT@
2123 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libaddns.a
2125 uninstalllibnetapi:
2126 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libnetapi.@SHLIBEXT@
2127 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libnetapi.a
2128 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2130 uninstallpammodules:
2131 @for module in $(PAM_MODULES); do \
2132 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2133 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2134 done
2136 # Toplevel clean files
2137 TOPFILES=dynconfig.o
2139 clean: delheaders
2140 -rm -f $(PRECOMPILED_HEADER)
2141 -rm -f core */*~ *~ \
2142 */*.o */*/*.o */*/*/*.o \
2143 ../testsuite/*/*.o \
2144 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2145 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2146 $(MODULES) $(TORTURE_PROGS) \
2147 $(LIBTALLOC) $(LIBSMBCLIENT) $(LIBADDNS) \
2148 $(LIBSMBSHAREMODES) $(EVERYTHING_PROGS) $(LIBNETAPI) \
2149 bin/libwbclient.so.0 bin/timelimit \
2150 .headers.stamp */src/*.o proto_exists \
2151 $(LIBTDB_SYMS)
2152 -rm -rf t_dir
2154 # Making this target will just make sure that the prototype files
2155 # exist, not necessarily that they are up to date. Since they're
2156 # removed by "make clean" this will always be run when you do anything
2157 # afterwards.
2158 proto_exists: include/proto.h include/build_env.h \
2159 winbindd/winbindd_proto.h web/swat_proto.h \
2160 libnet/libnet_proto.h \
2161 client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
2162 @touch proto_exists
2164 delheaders:
2165 @echo Removing prototype headers
2166 @rm -f include/proto.h include/build_env.h \
2167 winbindd/winbindd_proto.h web/swat_proto.h \
2168 client/client_proto.h utils/net_proto.h \
2169 smbd/build_options.c utils/ntlm_auth_proto.h \
2170 utils/passwd_proto.h libnet/libnet_proto.h
2172 MKPROTO_SH = $(srcdir)/script/mkproto.sh
2174 include/proto.h: smbd/build_options.c
2175 @echo Building include/proto.h
2176 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2177 -h _PROTO_H_ $(builddir)/include/proto.h \
2178 $(PROTO_OBJ)
2180 include/build_env.h: script/build_env.sh
2181 @echo Building include/build_env.h
2182 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2183 > $(builddir)/include/build_env.h
2185 winbindd/winbindd_proto.h:
2186 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2187 -h _WINBINDD_PROTO_H_ $(builddir)/winbindd/winbindd_proto.h \
2188 $(WINBINDD_OBJ1)
2190 web/swat_proto.h:
2191 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2192 -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
2193 $(SWAT_OBJ1)
2195 client/client_proto.h:
2196 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2197 -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
2198 $(CLIENT_OBJ1)
2200 utils/net_proto.h:
2201 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2202 -h _NET_PROTO_H_ $(builddir)/utils/net_proto.h \
2203 $(NET_OBJ1)
2205 utils/passwd_proto.h:
2206 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2207 -h _PASSWD_PROTO_H_ $(builddir)/utils/passwd_proto.h \
2208 $(PASSWD_UTIL_OBJ)
2210 utils/ntlm_auth_proto.h:
2211 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2212 -h _NTLM_AUTH_PROTO_H_ $(builddir)/utils/ntlm_auth_proto.h \
2213 $(NTLM_AUTH_OBJ1)
2215 libnet/libnet_proto.h:
2216 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2217 -h _LIBNET_PROTO_H_ $(builddir)/libnet/libnet_proto.h \
2218 $(LIBNET_OBJ)
2220 # "make headers" or "make proto" calls a subshell because we need to
2221 # make sure these commands are executed in sequence even for a
2222 # parallel make.
2223 headers:
2224 $(MAKE) delheaders; \
2225 $(MAKE) smbd/build_options.c; \
2226 $(MAKE) include/proto.h; \
2227 $(MAKE) include/build_env.h; \
2228 $(MAKE) winbindd/winbindd_proto.h; \
2229 $(MAKE) web/swat_proto.h; \
2230 $(MAKE) client/client_proto.h; \
2231 $(MAKE) utils/ntlm_auth_proto.h; \
2232 $(MAKE) utils/net_proto.h; \
2233 $(MAKE) utils/passwd_proto.h; \
2234 $(MAKE) libnet/libnet_proto.h;
2236 proto: headers
2238 .PHONY: headers proto
2240 etags:
2241 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2243 ctags:
2244 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2246 realclean: clean delheaders
2247 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2248 -rm -f script/installbin.sh script/uninstallbin.sh
2250 distclean: realclean
2251 -rm -f smbadduser
2252 -rm -f include/config.h Makefile
2253 -rm -f config.status config.cache so_locations
2254 -rm -rf .deps TAGS
2256 realdistclean: distclean
2257 -rm -f include/config.h.in
2258 -rm -f include/version.h
2259 -rm -f configure
2261 # this target is really just for my use. It only works on a limited
2262 # range of machines and is used to produce a list of potentially
2263 # dead (ie. unused) functions in the code. (tridge)
2264 finddead:
2265 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2266 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2267 comm -13 nmused.txt nmfns.txt
2270 # when configure.in is updated, reconfigure
2271 $(srcdir)/configure: $(srcdir)/configure.in
2272 @echo "WARNING: you need to rerun ./autogen.sh"
2274 config.status: $(srcdir)/configure
2275 @echo "WARNING: you need to run ./configure"
2277 Makefile: $(srcdir)/Makefile.in config.status
2278 @echo "WARNING: you need to run ./config.status"
2280 ######################################################################
2281 # Samba Testing Framework
2283 # Check shared libs for unresolved symbols
2284 test_shlibs: $(SHLIBS)
2285 @echo "Testing $(SHLIBS) "
2286 @for module in $(SHLIBS); do \
2287 ./script/tests/dlopen.sh bin/$${module}.@SHLIBEXT@ \
2288 || exit 1; \
2289 done
2291 # Check for NSS module problems.
2292 test_nss_modules: nss_modules
2293 @echo "Testing $(NSS_MODULES) "
2294 @for module in $(NSS_MODULES); do \
2295 ./script/tests/dlopen.sh $${module} \
2296 || exit 1; \
2297 done
2299 # Check for PAM module problems. Specifically, check that every module we
2300 # built can actually be loaded by a minimal PAM-aware application.
2301 test_pam_modules: pam_modules
2302 @echo "Testing $(PAM_MODULES) "
2303 @for module in $(PAM_MODULES); do \
2304 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2305 || exit 1; \
2306 done
2310 ## Targets for 'make test'
2312 test: all torture timelimit
2313 @echo Running Test suite
2314 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2316 valgrindtest: all torture timelimit
2317 @echo Running Test suite with valgrind
2318 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2319 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2320 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2321 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2322 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2323 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"