Insert space inside this very long string. It is arguable how to fix it properly...
[Samba.git] / source3 / Makefile.in
blobf438fbd542ecbf22d9efa8c2b8f203f79e5d85d2
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 smbtorture4_path=@smbtorture4_path@
22 LIBS=@LIBS@
23 CC=@CC@
24 SHLD=@SHLD@
25 LIB_PATH_VAR=@LIB_PATH_VAR@
27 ## Dynamic shared libraries build settings
28 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@$$/syms/'`
29 DSO_EXPORTS=@DSO_EXPORTS@
30 SONAME_VER=`grep \^$@ $(builddir)/library-versions | cut -d: -f2`
31 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
33 # The MODULE_EXPORTS variable contains the platform-specific linker flags
34 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
35 MODULE_EXPORTS=@MODULE_EXPORTS@
37 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
38 # (GCC) warnings. This is done automtically for --enable-developer
39 # and --enable-krb5developer.
40 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
41 CFLAGS=@CFLAGS@
42 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
44 EXEEXT=@EXEEXT@
45 AR=@AR@
46 LDSHFLAGS=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
47 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
49 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
50 AWK=@AWK@
51 PICFLAG=@PICFLAG@
52 DYNEXP=@DYNEXP@
53 PERL=@PERL@
55 PIDL_ARGS=@PIDL_ARGS@
57 TERMLDFLAGS=@TERMLDFLAGS@
58 TERMLIBS=@TERMLIBS@
59 PRINT_LIBS=@PRINT_LIBS@
60 AUTH_LIBS=@AUTH_LIBS@
61 ACL_LIBS=@ACL_LIBS@
62 PASSDB_LIBS=@PASSDB_LIBS@
63 IDMAP_LIBS=@IDMAP_LIBS@
64 KRB5LIBS=@KRB5_LIBS@
65 LDAP_LIBS=@LDAP_LIBS@
66 NSCD_LIBS=@NSCD_LIBS@
67 UUID_LIBS=@UUID_LIBS@
68 WINBIND_LIBS=@WINBIND_LIBS@
69 DNSSD_LIBS=@DNSSD_LIBS@
71 INSTALLCMD=@INSTALL@
72 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
73 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
74 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
75 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
77 VPATH=@srcdir@
78 srcdir=@abs_srcdir@
79 builddir=@abs_builddir@
80 SHELL=/bin/sh
81 DESTDIR=/
83 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
84 # will search for a POSIX-compliant shell, and that might not be
85 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
87 # See the autoconf manual "Installation Directory Variables" for a
88 # discussion of the subtle use of these variables.
90 BASEDIR= @prefix@
91 BINDIR = @bindir@
92 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
93 SBINDIR = @sbindir@
94 ROOTSBINDIR = @rootsbindir@
95 LIBDIR = @libdir@
96 INCLUDEDIR=@includedir@
97 PAMMODULESDIR = @pammodulesdir@
98 VFSLIBDIR = $(LIBDIR)/vfs
99 PDBLIBDIR = $(LIBDIR)/pdb
100 RPCLIBDIR = $(LIBDIR)/rpc
101 IDMAPLIBDIR = $(LIBDIR)/idmap
102 NSSINFOLIBDIR = $(LIBDIR)/nss_info
103 CHARSETLIBDIR = $(LIBDIR)/charset
104 AUTHLIBDIR = $(LIBDIR)/auth
105 CONFIGLIBDIR = $(LIBDIR)/config
106 GPEXTLIBDIR = $(LIBDIR)/gpext
107 CONFIGDIR = @configdir@
108 VARDIR = @localstatedir@
109 MANDIR = @mandir@
110 DATADIR = @datadir@
112 # The permissions to give the executables and other data
113 INSTALLPERMS_BIN = 0755
114 INSTALLPERMS_DATA = 0644
116 # set these to where to find various files
117 # These can be overridden by command line switches (see smbd(8))
118 # or in smb.conf (see smb.conf(5))
119 LOGFILEBASE = @logfilebase@
120 CONFIGFILE = $(CONFIGDIR)/smb.conf
121 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
122 CTDBDIR = @ctdbdir@
124 # This is where smbpasswd et al go
125 PRIVATEDIR = @privatedir@
127 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
128 PRIVATE_DIR = $(PRIVATEDIR)
130 # This is where SWAT images and help files go
131 SWATDIR = @swatdir@
133 # the directory where lock files go
134 LOCKDIR = @lockdir@
136 # FHS directories; equal to LOCKDIR if not using --with-fhs
137 CACHEDIR = @cachedir@
138 STATEDIR = @statedir@
140 # Where to look for (and install) codepage databases.
141 CODEPAGEDIR = @codepagedir@
143 # the directory where pid files go
144 PIDDIR = @piddir@
146 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
147 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
148 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
150 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
151 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
152 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
153 LIBTDB_SYMS=$(srcdir)/exports/libtdb.syms
154 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
156 LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
157 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
158 LIBADDNS=bin/libaddns.a @LIBADDNS_SHARED@
159 LIBWBCLIENT=@LIBWBCLIENT_SHARED@
161 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
162 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
163 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
165 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
166 FLAGS2 =
167 FLAGS3 =
168 FLAGS4 = -I$(CTDBDIR)/include
169 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
170 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
172 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
173 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
174 -DCONFIGFILE=\"$(CONFIGFILE)\" \
175 -DSBINDIR=\"$(SBINDIR)\" \
176 -DBINDIR=\"$(BINDIR)\" \
177 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
178 -DSWATDIR=\"$(SWATDIR)\" \
179 -DLOCKDIR=\"$(LOCKDIR)\" \
180 -DPIDDIR=\"$(PIDDIR)\" \
181 -DLIBDIR=\"$(LIBDIR)\" \
182 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
183 -DSHLIBEXT=\"@SHLIBEXT@\" \
184 -DCTDBDIR=\"$(CTDBDIR)\" \
185 -DCONFIGDIR=\"$(CONFIGDIR)\" \
186 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
187 -DCACHEDIR=\"$(CACHEDIR)\" \
188 -DSTATEDIR=\"$(STATEDIR)\"
190 # Note that all executable programs now provide for an optional executable suffix.
192 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
194 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@ @CIFSSPNEGO_PROGS@
196 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
197 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
198 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
199 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
200 bin/tdbtool@EXEEXT@
201 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
202 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
203 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
204 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
205 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
207 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
208 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
209 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
210 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
211 bin/tdbtorture@EXEEXT@ \
212 bin/smbconftort@EXEEXT@
214 BIN_PROGS = @EXTRA_BIN_PROGS@ \
215 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
217 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
218 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
219 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
220 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@
222 SHLIBS = libtalloc libtdb @LIBWBCLIENT@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBADDNS@ libnetapi
224 PAM_MODULES = @PAM_MODULES@
226 NSS_MODULES = @NSS_MODULES@
228 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
230 VFS_MODULES = @VFS_MODULES@
231 PDB_MODULES = @PDB_MODULES@
232 RPC_MODULES = @RPC_MODULES@
233 IDMAP_MODULES = @IDMAP_MODULES@
234 CHARSET_MODULES = @CHARSET_MODULES@
235 AUTH_MODULES = @AUTH_MODULES@
236 NSS_INFO_MODULES = @NSS_INFO_MODULES@
237 GPEXT_MODULES = @GPEXT_MODULES@
238 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
239 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
240 $(GPEXT_MODULES)
242 ######################################################################
243 # object file lists
244 ######################################################################
246 LIBTDB_OBJ0 = @TDB_OBJS@
247 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
249 TDB_OBJ = lib/util_tdb.o \
250 lib/dbwrap.o lib/dbwrap_tdb.o \
251 lib/dbwrap_tdb2.o lib/dbwrap_ctdb.o \
252 lib/dbwrap_rbt.o @LIBTDB_STATIC@
254 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
256 VERSION_OBJ = lib/version.o
258 WBCOMMON_OBJ = nsswitch/wb_common.o
260 AFS_OBJ = lib/afs.o
262 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
264 SERVER_MUTEX_OBJ = lib/server_mutex.o
266 PASSCHANGE_OBJ = libsmb/passchange.o
269 LIBNDR_OBJ = librpc/ndr/ndr_basic.o \
270 librpc/ndr/ndr.o \
271 librpc/ndr/ndr_misc.o \
272 librpc/gen_ndr/ndr_misc.o \
273 librpc/gen_ndr/ndr_security.o \
274 librpc/ndr/ndr_sec_helper.o \
275 librpc/ndr/ndr_string.o \
276 librpc/ndr/sid.o \
277 librpc/ndr/uuid.o
279 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
281 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
282 librpc/gen_ndr/ndr_lsa.o \
283 librpc/gen_ndr/ndr_dfs.o \
284 librpc/gen_ndr/ndr_echo.o \
285 librpc/gen_ndr/ndr_winreg.o \
286 librpc/gen_ndr/ndr_initshutdown.o \
287 librpc/gen_ndr/ndr_srvsvc.o \
288 librpc/gen_ndr/ndr_eventlog.o \
289 librpc/gen_ndr/ndr_netlogon.o \
290 librpc/gen_ndr/ndr_samr.o \
291 librpc/gen_ndr/ndr_dssetup.o \
292 librpc/gen_ndr/ndr_notify.o \
293 librpc/gen_ndr/ndr_xattr.o \
294 librpc/gen_ndr/ndr_ntsvcs.o
296 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
298 # this includes only the low level parse code, not stuff
299 # that requires knowledge of security contexts
300 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
302 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
303 rpc_client/init_netlogon.o \
304 rpc_client/init_lsa.o \
305 rpc_client/init_srvsvc.o
307 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
309 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
310 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
312 TALLOC_OBJ = @TALLOC_OBJS@
315 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
316 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
318 LIBSAMBAUTIL_OBJ = @LIBTALLOC_STATIC@ \
319 $(LIBREPLACE_OBJ) \
320 $(SOCKET_WRAPPER_OBJ) \
321 $(NSS_WRAPPER_OBJ)
323 LIB_WITHOUT_PROTO_OBJ = $(LIBSAMBAUTIL_OBJ) \
324 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
325 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
326 lib/interfaces.o lib/rbtree.o lib/memcache.o \
327 lib/util_transfer_file.o lib/async_req.o \
328 $(TDB_OBJ)
330 LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
331 lib/interface.o lib/md4.o \
332 lib/pidfile.o \
333 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
334 lib/ufc.o lib/genrand.o lib/username.o \
335 lib/util_pw.o lib/access.o lib/smbrun.o \
336 lib/bitmap.o lib/crc32.o lib/dprintf.o \
337 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
338 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
339 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
340 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
341 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
342 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
343 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
344 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
345 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
346 lib/adt_tree.o lib/gencache.o \
347 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
348 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
349 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
350 lib/file_id.o
352 LIB_OBJ = $(LIB_WITHOUT_PROTO_OBJ) $(LIB_WITH_PROTO_OBJ)
354 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
355 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
357 READLINE_OBJ = lib/readline.o
359 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
360 # Be sure to include them into your application
361 POPT_LIB_OBJ = lib/popt_common.o
363 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
364 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
365 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
367 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
369 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
370 libaddns/dnsgss.o libaddns/dnsmarshall.o
371 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) @LIBTALLOC_STATIC@
373 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
374 nsswitch/libwbclient/wbc_util.o \
375 nsswitch/libwbclient/wbc_pwd.o \
376 nsswitch/libwbclient/wbc_idmap.o \
377 nsswitch/libwbclient/wbc_sid.o \
378 nsswitch/libwbclient/wbc_pam.o
379 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
380 $(WBCOMMON_OBJ) \
381 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
383 GPEXT_OBJ = libgpo/gpext/gpext.o @GPEXT_STATIC@
385 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
386 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o \
387 libgpo/gpo_reg.o \
388 $(GPEXT_OBJ)
389 LIBGPO_OBJ = $(LIBGPO_OBJ0)
391 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
392 libads/sasl.o libads/sasl_wrapping.o \
393 libads/krb5_setpw.o libads/ldap_user.o \
394 libads/ads_struct.o libads/kerberos_keytab.o \
395 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
396 libads/cldap.o libads/ldap_schema.o libads/util.o libads/ndr.o
398 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
399 librpc/ndr/ndr_krb5pac.o \
400 librpc/gen_ndr/ndr_krb5pac.o
402 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
404 LIBNBT_OBJ = libcli/nbt/nbtname.o \
405 librpc/gen_ndr/ndr_nbt.o \
406 librpc/gen_ndr/ndr_svcctl.o
408 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
409 libsmb/namequery.o libsmb/conncache.o libads/dns.o
411 NTERR_OBJ = libsmb/nterr.o
412 DOSERR_OBJ = libsmb/doserr.o
413 ERRORMAP_OBJ = libsmb/errormap.o
414 DCE_RPC_ERR_OBJ = libsmb/dcerpc_err.o
416 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ) \
417 libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ntlmssp_parse.o
419 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) \
420 $(RPC_PARSE_OBJ1) \
421 $(SECRETS_OBJ)
423 LIBSMB_OBJ0 = \
424 libsmb/ntlm_check.o \
425 libsmb/ntlmssp.o \
426 libsmb/ntlmssp_sign.o
428 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
429 $(LIBSMB_ERR_OBJ)
431 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
432 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
433 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
434 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
435 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
436 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
437 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
438 libsmb/clioplock.o libsmb/clirap2.o \
439 libsmb/smb_seal.o libsmb/async_smb.o \
440 $(LIBSAMBA_OBJ) \
441 $(LIBNMB_OBJ) \
442 $(LIBNBT_OBJ)
444 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
446 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
447 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
448 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
449 rpc_client/cli_svcctl.o \
450 rpc_client/init_samr.o \
451 librpc/rpc/dcerpc.o \
452 librpc/rpc/binding.o
454 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
455 librpc/gen_ndr/cli_dfs.o \
456 librpc/gen_ndr/cli_echo.o \
457 librpc/gen_ndr/cli_srvsvc.o \
458 librpc/gen_ndr/cli_svcctl.o \
459 librpc/gen_ndr/cli_winreg.o \
460 librpc/gen_ndr/cli_initshutdown.o \
461 librpc/gen_ndr/cli_eventlog.o \
462 librpc/gen_ndr/cli_wkssvc.o \
463 librpc/gen_ndr/cli_netlogon.o \
464 librpc/gen_ndr/cli_samr.o \
465 librpc/gen_ndr/cli_dssetup.o \
466 librpc/gen_ndr/cli_ntsvcs.o \
467 $(LIBNDR_GEN_OBJ) \
468 $(RPCCLIENT_NDR_OBJ)
471 # registry-related objects
473 UTIL_REG_OBJ = lib/util_reg.o
474 UTIL_REG_API_OBJ = lib/util_reg_api.o
476 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
477 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
478 REG_INIT_FULL_OBJ = registry/reg_init_full.o
480 REGFIO_OBJ = registry/regfio.o
482 REGOBJS_OBJ = registry/reg_objects.o
484 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
486 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
488 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
489 registry/reg_backend_shares.o \
490 registry/reg_backend_netlogon_params.o \
491 registry/reg_backend_prod_options.o \
492 registry/reg_backend_tcpip_params.o \
493 registry/reg_backend_hkpt_params.o \
494 registry/reg_backend_current_version.o \
495 registry/reg_backend_perflib.o
497 REG_BASE_OBJ = registry/reg_api.o \
498 registry/reg_dispatcher.o \
499 registry/reg_cachehook.o \
500 $(REGFIO_OBJ) \
501 $(REGOBJS_OBJ) \
502 registry/reg_util.o \
503 $(UTIL_REG_API_OBJ) \
504 lib/util_nttoken.o \
505 $(REG_BACKENDS_BASE_OBJ) \
506 $(REG_INIT_BASIC_OBJ)
508 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
509 $(REG_BACKENDS_SMBCONF_OBJ) \
510 $(REG_INIT_SMBCONF_OBJ)
512 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
513 $(REG_BACKENDS_EXTRA_OBJ) \
514 $(REG_INIT_FULL_OBJ) \
515 registry/reg_eventlog.o \
516 registry/reg_perfcount.o \
517 registry/reg_util_legacy.o
520 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
522 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
523 librpc/gen_ndr/srv_netlogon.o
525 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
526 rpc_server/srv_samr_util.o \
527 librpc/gen_ndr/srv_samr.o
529 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
531 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
532 librpc/gen_ndr/srv_winreg.o
534 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
536 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
537 librpc/gen_ndr/srv_srvsvc.o
539 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
541 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
542 librpc/gen_ndr/srv_svcctl.o \
543 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
544 services/svc_netlogon.o services/svc_winreg.o \
545 services/svc_wins.o
547 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o \
548 librpc/gen_ndr/srv_ntsvcs.o
550 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
552 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
554 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
555 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
557 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
558 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
560 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
562 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
564 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \
565 rpc_parse/parse_spoolss.o \
566 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
567 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o
569 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
571 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
573 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
575 PRIVILEGES_OBJ = lib/privileges.o
577 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
579 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
580 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
581 passdb/util_unixsids.o passdb/lookup_sid.o \
582 passdb/login_cache.o @PDB_STATIC@ \
583 lib/account_pol.o $(PRIVILEGES_OBJ) \
584 lib/util_nscd.o lib/winbind_util.o
586 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
587 CP850_OBJ = modules/CP850.o
588 CP437_OBJ = modules/CP437.o
589 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
591 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
593 PROFILE_OBJ = profile/profile.o
594 PROFILES_OBJ = utils/profiles.o \
595 $(LIBSAMBA_OBJ) \
596 $(PARAM_OBJ) \
597 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
598 $(POPT_LIB_OBJ)
600 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
602 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
604 VFS_DEFAULT_OBJ = modules/vfs_default.o
605 VFS_AUDIT_OBJ = modules/vfs_audit.o
606 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
607 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
608 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
609 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
610 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
611 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
612 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
613 VFS_CAP_OBJ = modules/vfs_cap.o
614 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
615 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
616 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
617 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
618 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
619 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
620 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
621 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
622 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
623 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
624 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
625 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
626 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
627 VFS_CATIA_OBJ = modules/vfs_catia.o
628 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
629 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
630 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
631 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
632 VFS_COMMIT_OBJ = modules/vfs_commit.o
633 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
634 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
635 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
636 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
637 VFS_FILEID_OBJ = modules/vfs_fileid.o
638 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
639 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
641 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
643 SLCACHE_OBJ = libsmb/samlogon_cache.o
645 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
647 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
648 AUTH_DOMAIN_OBJ = auth/auth_domain.o
649 AUTH_SAM_OBJ = auth/auth_sam.o
650 AUTH_SERVER_OBJ = auth/auth_server.o
651 AUTH_UNIX_OBJ = auth/auth_unix.o
652 AUTH_WINBIND_OBJ = auth/auth_winbind.o
653 AUTH_SCRIPT_OBJ = auth/auth_script.o
655 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
656 auth/auth_compat.o auth/auth_ntlmssp.o \
657 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
659 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
661 SMBD_OBJ_MAIN = smbd/server.o
663 BUILDOPT_OBJ = smbd/build_options.o
665 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
666 smbd/utmp.o smbd/session.o smbd/map_username.o \
667 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
668 smbd/share_access.o smbd/fileio.o \
669 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
670 smbd/message.o smbd/nttrans.o smbd/pipes.o \
671 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
672 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
673 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
674 smbd/vfs.o smbd/statcache.o smbd/seal.o \
675 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
676 smbd/process.o smbd/service.o smbd/error.o \
677 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
678 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
679 smbd/change_trust_pw.o smbd/fake_file.o \
680 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
681 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
682 smbd/dmapi.o \
683 smbd/file_access.o \
684 smbd/dnsregister.o \
685 $(MANGLE_OBJ) @VFS_STATIC@
687 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
688 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
689 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
690 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
691 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
692 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
693 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
694 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
695 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
696 $(LIBSMBCONF_OBJ) \
697 $(PRIVILEGES_BASIC_OBJ)
699 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
700 printing/print_cups.o printing/print_generic.o \
701 printing/lpq_parse.o printing/load.o \
702 printing/print_iprint.o
704 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
705 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
707 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
709 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
710 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
711 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
712 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
713 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
714 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
715 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
716 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
717 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
718 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
719 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
720 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
722 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
723 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ)
725 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
726 web/swat.o web/neg_lang.o
728 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
729 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(KRBCLIENT_OBJ) \
730 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
731 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
732 $(PASSCHANGE_OBJ) $(LDB_OBJ)
734 STATUS_OBJ = utils/status.o utils/status_profile.o \
735 $(LOCKING_OBJ) $(PARAM_OBJ) \
736 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
737 $(LIBSAMBA_OBJ)
739 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
740 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
741 $(LIBSAMBA_OBJ) \
742 $(PRINTBASE_OBJ)
744 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
745 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
746 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
747 rpc_client/cli_pipe.o $(RPC_PARSE_OBJ2) \
748 $(RPC_CLIENT_OBJ1) \
749 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
750 $(LIBMSRPC_GEN_OBJ)
752 TESTPARM_OBJ = utils/testparm.o \
753 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
754 $(LIBSAMBA_OBJ)
756 PASSWD_UTIL_OBJ = utils/passwd_util.o
758 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
759 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
760 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
761 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
762 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
764 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
765 $(LIBSAMBA_OBJ) \
766 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
767 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
768 $(LDB_OBJ)
770 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ0) @LIBWBCLIENT_STATIC@
772 DISPLAY_SEC_OBJ= lib/display_sec.o
774 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
775 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
776 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
777 rpcclient/cmd_dfs.o \
778 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
779 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
780 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
781 $(DISPLAY_SEC_OBJ)
783 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
784 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
785 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
786 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
787 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
788 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
790 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
791 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
793 LIBSMBCLIENT_OBJ0 = \
794 libsmb/libsmb_cache.o \
795 libsmb/libsmb_compat.o \
796 libsmb/libsmb_context.o \
797 libsmb/libsmb_dir.o \
798 libsmb/libsmb_file.o \
799 libsmb/libsmb_misc.o \
800 libsmb/libsmb_path.o \
801 libsmb/libsmb_printjob.o \
802 libsmb/libsmb_server.o \
803 libsmb/libsmb_stat.o \
804 libsmb/libsmb_xattr.o \
805 libsmb/libsmb_setget.o \
806 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
807 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
808 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
809 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
811 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ0) @LIBWBCLIENT_STATIC@
813 LIBSMBSHAREMODES_OBJ = libsmb/smb_share_modes.o @LIBTDB_STATIC@
815 # This shared library is intended for linking with unit test programs
816 # to test Samba internals. It's called libbigballofmud.so to
817 # discourage casual usage.
819 LIBBIGBALLOFMUD_MAJOR = 0
821 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
822 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
823 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
825 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
826 client/dnsbrowse.o \
827 $(RPC_CLIENT_OBJ1) \
828 $(RPC_PARSE_OBJ2)
830 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
831 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
832 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
833 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
834 $(DISPLAY_SEC_OBJ)
836 LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
837 lib/netapi/cm.o \
838 librpc/gen_ndr/ndr_libnetapi.o \
839 lib/netapi/libnetapi.o \
840 lib/netapi/joindomain.o \
841 lib/netapi/serverinfo.o \
842 lib/netapi/getdc.o \
843 lib/netapi/user.o
845 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
846 $(LIBSMBCONF_OBJ) \
847 $(REG_SMBCONF_OBJ) \
848 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
849 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
850 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
851 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
852 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ)
854 LIBSMBCONF_OBJ = lib/smbconf/smbconf.o lib/smbconf/smbconf_util.o \
855 lib/smbconf/smbconf_reg.o \
856 lib/smbconf/smbconf_txt.o \
857 lib/smbconf/smbconf_init.o
859 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
861 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
862 $(LIB_NONSMBD_OBJ) \
863 $(PARAM_OBJ) \
864 $(LIBSMB_ERR_OBJ) \
865 $(POPT_LIB_OBJ)
867 LIBNET_OBJ = libnet/libnet_join.o \
868 librpc/gen_ndr/ndr_libnet_join.o
870 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
871 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
872 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
873 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
874 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
875 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
876 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
877 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
878 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
879 utils/net_conf.o \
880 utils/net_registry.o \
881 auth/token_util.o utils/net_dom.o
883 # these are not processed by make proto
884 NET_OBJ2 = utils/net_registry_util.o
886 NET_OBJ = $(NET_OBJ1) \
887 $(NET_OBJ2) \
888 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
889 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
890 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
891 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
892 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
893 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
894 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
895 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
896 $(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
897 $(LIBSMBCONF_OBJ) \
898 @LIBWBCLIENT_STATIC@ \
899 $(PRIVILEGES_BASIC_OBJ)
901 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
902 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ)
904 CIFS_MOUNT_OBJ = client/mount.cifs.o
906 CIFS_UMOUNT_OBJ = client/umount.cifs.o
908 CIFS_SPNEGO_OBJ = client/cifs.spnego.o
910 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
911 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
913 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
914 torture/denytest.o torture/mangle_test.o
916 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
917 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ)
919 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
920 $(LIB_NONSMBD_OBJ)
922 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
923 $(LIB_NONSMBD_OBJ)
925 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
926 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ)
928 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
929 $(LIB_NONSMBD_OBJ)
931 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
932 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
933 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ)
936 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
938 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
940 LOG2PCAP_OBJ = utils/log2pcaphex.o
942 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
943 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ)
945 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
946 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
947 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
948 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
950 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
951 $(PARAM_OBJ) \
952 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
953 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
954 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
956 EVTLOGADM_OBJ0 = utils/eventlogadm.o
958 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
959 $(LIBSAMBA_OBJ) \
960 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
962 SHARESEC_OBJ0 = utils/sharesec.o
963 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
964 $(LIBSAMBA_OBJ) \
965 $(POPT_LIB_OBJ)
967 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
968 $(LIBSAMBA_OBJ)
970 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
971 lib/replace/test/getifaddrs.o \
972 lib/replace/test/os2_delete.o \
973 lib/replace/test/strptime.o \
974 $(LIBREPLACE_OBJ)
976 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
977 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
978 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
979 librpc/gen_ndr/ndr_svcctl.o
981 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
983 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
984 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ)
986 PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
987 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(LIBSMB_OBJ) \
988 $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
989 $(LIBMSRPC_OBJ) \
990 $(LIB_WITH_PROTO_OBJ) \
991 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
992 $(AUTH_OBJ) $(PARAM_WITHOUT_REG_OBJ) $(LOCKING_OBJ) \
993 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
994 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
995 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
996 $(AUTH_SAM_OBJ) $(REG_FULL_OBJ) $(POPT_LIB_OBJ) \
997 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_DSSETUP_OBJ) \
998 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
999 $(RPC_ECHO_OBJ) $(RPC_SVCCTL_OBJ) $(RPC_EVENTLOG_OBJ) $(SMBLDAP_OBJ) \
1000 $(IDMAP_OBJ) libsmb/spnego.o $(PASSCHANGE_OBJ) \
1001 $(RPC_NTSVCS_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
1002 utils/passwd_util.o $(LIBGPO_OBJ) $(NSS_INFO_OBJ) \
1003 $(RPCCLIENT_NDR_OBJ) \
1004 $(PRIVILEGES_BASIC_OBJ)
1006 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
1007 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ)
1009 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1010 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
1011 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1012 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1013 $(LDB_OBJ)
1015 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
1017 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1019 WINBINDD_OBJ1 = \
1020 winbindd/winbindd.o \
1021 winbindd/winbindd_user.o \
1022 winbindd/winbindd_group.o \
1023 winbindd/winbindd_util.o \
1024 winbindd/winbindd_cache.o \
1025 winbindd/winbindd_pam.o \
1026 winbindd/winbindd_sid.o \
1027 winbindd/winbindd_misc.o \
1028 winbindd/winbindd_cm.o \
1029 winbindd/winbindd_wins.o \
1030 winbindd/winbindd_rpc.o \
1031 winbindd/winbindd_reconnect.o \
1032 winbindd/winbindd_ads.o \
1033 winbindd/winbindd_passdb.o \
1034 winbindd/winbindd_dual.o \
1035 winbindd/winbindd_async.o \
1036 winbindd/winbindd_creds.o \
1037 winbindd/winbindd_cred_cache.o \
1038 winbindd/winbindd_ccache_access.o \
1039 winbindd/winbindd_domain.o \
1040 winbindd/winbindd_idmap.o \
1041 winbindd/winbindd_locator.o \
1042 winbindd/winbindd_ndr.o \
1043 auth/token_util.o \
1044 smbd/connection.o
1046 WINBINDD_OBJ = \
1047 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1048 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1049 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1050 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1051 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1052 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1053 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1054 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
1056 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1057 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1058 lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@
1060 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1062 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1063 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1064 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1065 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1066 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1068 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1069 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1070 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1072 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1073 lib/ldb/modules/objectclass.o \
1074 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1076 # enabled in configure.in
1077 LDB_LDAP_OBJ=@LDBLDAP@
1079 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1081 LDB_CMDLINE_OBJ = $(PARAM_OBJ) $(LIBSMB_OBJ) \
1082 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1083 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1084 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1085 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
1086 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
1087 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1088 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1091 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1092 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1093 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1094 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1095 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1097 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1098 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
1100 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1101 popt/popthelp.o popt/poptparse.o
1103 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1104 iniparser_build/strlib.o
1106 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1107 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1109 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1110 $(SOCKET_WRAPPER_OBJ)
1112 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1113 $(SOCKET_WRAPPER_OBJ)
1115 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1116 $(SOCKET_WRAPPER_OBJ)
1119 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1121 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1122 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1123 $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1124 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1125 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1126 $(LDB_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1127 librpc/gen_ndr/ndr_samr.o \
1128 librpc/gen_ndr/ndr_lsa.o \
1129 librpc/gen_ndr/ndr_netlogon.o
1132 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ)
1134 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1135 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1136 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1137 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1138 $(DISPLAY_SEC_OBJ)
1140 ######################################################################
1141 # now the rules...
1142 ######################################################################
1143 all : SHOWFLAGS $(SHLIBS) $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1144 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1146 nss_modules : $(NSS_MODULES)
1148 pam_modules : $(PAM_MODULES)
1150 gpext_modules : SHOWFLAGS $(GPEXT_MODULES)
1152 pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1154 pam_winbind : SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1156 torture : SHOWFLAGS $(TORTURE_PROGS)
1158 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1160 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1162 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1164 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1166 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1168 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1170 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1172 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1174 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1176 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1178 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1180 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1182 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1184 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1186 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1188 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1189 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1190 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1192 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1194 modules: SHOWFLAGS $(MODULES)
1196 #####################################################################
1197 ## Perl IDL Compiler
1198 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1199 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1200 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1201 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl drsuapi.idl nbt.idl
1203 idl:
1204 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1205 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1208 #####################################################################
1211 everything: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1212 $(EVERYTHING_PROGS)
1214 .SUFFIXES:
1215 .SUFFIXES: .c .o .lo
1217 SHOWFLAGS:
1218 @echo "Using FLAGS = $(FLAGS)"
1219 @echo " PICFLAG = $(PICFLAG)"
1220 @echo " LIBS = $(LIBS)"
1221 @echo " LDFLAGS = $(LDFLAGS)"
1222 @echo " DYNEXP = $(DYNEXP)"
1223 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1224 @echo " SHLIBEXT = @SHLIBEXT@"
1225 @echo " SONAMEFLAG = @SONAMEFLAG@"
1227 MAKEDIR = || exec false; \
1228 if test -d "$$dir"; then :; else \
1229 echo mkdir "$$dir"; \
1230 mkdir -p "$$dir" >/dev/null 2>&1 || \
1231 test -d "$$dir" || \
1232 mkdir "$$dir" || \
1233 exec false; fi || exec false
1235 # Run a static checker.
1236 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1237 # Compile a source file.
1238 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1239 # Compile a source file with the installation paths defined.
1240 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1242 COMPILE = $(COMPILE_CC)
1244 .c.o:
1245 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1246 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1247 @if test -n "$(CC_CHECKER)"; then \
1248 echo "Checking $*.c with '$(CC_CHECKER)'";\
1249 $(CHECK_CC); \
1251 @echo Compiling $*.c
1252 @$(COMPILE) && exit 0;\
1253 echo "The following command failed:" 1>&2;\
1254 echo "$(COMPILE_CC)" 1>&2;\
1255 $(COMPILE_CC) >/dev/null 2>&1
1256 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1258 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1260 # this adds support for precompiled headers. To use it, install a snapshot
1261 # of gcc-3.4 and run 'make pch' before you do the main build.
1262 pch: proto_exists
1263 rm -f $(PRECOMPILED_HEADER)
1264 $(MAKE) $(PRECOMPILED_HEADER)
1266 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1267 $(COMPILE)
1269 BINARY_PREREQS = proto_exists bin/.dummy
1271 # These dependencies are only approximately correct: we want to make
1272 # sure Samba's paths are updated if ./configure is re-run. Really it
1273 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1274 # but since we also require "make install prefix=/opt/samba" *not* to
1275 # rebuild it's a bit hard.
1277 dynconfig.o: dynconfig.c Makefile
1278 @echo Compiling $*.c
1279 @$(COMPILE_CC_PATH) && exit 0;\
1280 echo "The following command failed:" 1>&2;\
1281 echo "$(COMPILE_CC_PATH)" 1>&2;\
1282 $(COMPILE_CC_PATH) >/dev/null 2>&1
1284 lib/pidfile.o: lib/pidfile.c
1285 @echo Compiling $*.c
1286 @$(COMPILE_CC_PATH) && exit 0;\
1287 echo "The following command failed:" 1>&2;\
1288 echo "$(COMPILE_CC_PATH)" 1>&2;\
1289 $(COMPILE_CC_PATH) >/dev/null 2>&1
1291 lib/version.o: lib/version.c include/version.h
1292 @echo Compiling $*.c
1293 @$(COMPILE_CC_PATH) && exit 0;\
1294 echo "The following command failed:" 1>&2;\
1295 echo "$(COMPILE_CC_PATH)" 1>&2;\
1296 $(COMPILE_CC_PATH) >/dev/null 2>&1
1298 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1299 @echo Compiling $*.c
1300 @$(COMPILE_CC_PATH) && exit 0;\
1301 echo "The following command failed:" 1>&2;\
1302 echo "$(COMPILE_CC_PATH)" 1>&2;\
1303 $(COMPILE_CC_PATH) >/dev/null 2>&1
1305 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1306 @echo Generating $@
1307 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1309 bin/.dummy:
1310 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1311 dir=bin $(MAKEDIR); fi
1312 @: >> $@ || : > $@ # what a fancy emoticon!
1314 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1315 @echo Linking $@
1316 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1317 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1318 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1319 @POPTLIBS@ @SMBD_LIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1320 @WINBIND_LIBS@
1322 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1323 @echo Linking $@
1324 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1325 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @POPTLIBS@ \
1326 $(KRB5LIBS) $(LDAP_LIBS)
1328 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1329 @echo Linking $@
1330 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1331 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) @POPTLIBS@ $(KRB5LIBS) \
1332 $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1334 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1335 @echo Linking $@
1336 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1337 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1338 $(KRB5LIBS) $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1339 @WINBIND_LIBS@
1341 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1342 @echo Linking $@
1343 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1344 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1345 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1346 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1348 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1349 @echo Linking $@
1350 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1351 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1352 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1353 @INIPARSERLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@ \
1354 @LIBNETAPI_LIBS@
1356 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1357 @echo Linking $@
1358 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1359 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1361 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1362 @echo Linking $@
1363 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1364 $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1366 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1367 @echo Linking $@
1368 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1370 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1371 @echo Linking $@
1372 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1374 bin/cifs.spnego@EXEEXT@: $(BINARY_PREREQS) $(CIFS_SPNEGO_OBJ) $(LIBSMBCLIENT_OBJ0) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1375 @echo Linking $@
1376 @$(CC) $(FLAGS) -o $@ $(CIFS_SPNEGO_OBJ) $(DYNEXP) $(LDFLAGS) \
1377 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ0) $(KRB5LIBS) \
1378 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBWBCLIENT_SHARED@ \
1379 @LIBTDB_LIBS@
1381 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1382 @echo Linking $@
1383 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1384 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1386 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1387 @echo Linking $@
1388 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1389 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1391 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1392 @echo Linking $@
1393 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1394 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1395 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ @POPTLIBS@ \
1396 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1398 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1399 @echo Linking $@
1400 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1401 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1402 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1404 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1405 @echo Linking $@
1406 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1407 $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1408 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1410 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1411 @echo Linking $@
1412 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1413 @POPTLIBS@ $(PASSDB_LIBS) $(LDAP_LIBS) @LIBTALLOC_LIBS@ \
1414 @LIBTDB_LIBS@ @WINBIND_LIBS@
1416 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1417 @echo Linking $@
1418 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1419 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1420 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1422 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1423 @echo Linking $@
1424 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1425 @POPTLIBS@ $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1427 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1428 @echo Linking $@
1429 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1430 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ \
1431 @LIBTDB_LIBS@
1433 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1434 @echo Linking $@
1435 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1436 $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1437 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1439 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1440 @echo Linking $@
1441 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1442 $(DYNEXP) $(LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@
1444 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1445 @echo Linking $@
1446 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1447 $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1448 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1450 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1451 @echo Linking $@
1452 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1453 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1454 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1456 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1457 @echo Linking $@
1458 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1459 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1460 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1462 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1463 @echo Linking $@
1464 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1465 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1466 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1468 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1469 @echo Linking $@
1470 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1471 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1472 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1474 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1475 @echo Linking $@
1476 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1477 $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1479 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1480 @echo Linking $@
1481 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1482 $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1484 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1485 @echo Linking $@
1486 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1487 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1488 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1490 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1491 @echo Linking $@
1492 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1493 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1494 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1496 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1497 @echo Linking $@
1498 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1499 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1500 @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1502 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1503 @echo Linking $@
1504 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1505 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1506 $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1507 @SMBD_LIBS@ $(NSCD_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1508 @LIBWBCLIENT_SHARED@
1510 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1511 @echo Linking $@
1512 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1513 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1514 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1516 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1517 @echo Linking $@
1518 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1519 @POPTLIBS@ $(LIBS) @LIBTALLOC_LIBS@
1521 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1522 @echo Linking $@
1523 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1524 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1525 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1527 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1528 @echo Linking $@
1529 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1530 @POPTLIBS@ @LDAP_LIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1532 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1533 @echo Linking $@
1534 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1535 $(LIBS) @LIBTALLOC_LIBS@
1537 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1538 @echo Linking $@
1539 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1540 $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1541 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1543 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1544 @echo Linking $@
1545 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1546 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1547 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1548 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1550 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1551 @echo Linking $@
1552 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1553 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1554 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1555 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1557 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1558 @echo Linking $@
1559 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1560 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1561 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1562 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1564 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1565 @echo Linking $@
1566 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1567 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1568 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1569 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1571 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1572 @echo Linking $@
1573 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1574 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1575 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1576 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1578 $(LIBTALLOC_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ)
1579 @echo Linking shared library $@
1580 @$(SHLD_DSO) $(LIBTALLOC_OBJ) \
1581 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1582 @ln -s -f `basename $@` $@.$(SONAME_VER)
1584 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1585 @echo Linking non-shared library $@
1586 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1588 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1590 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1591 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1593 $(LIBTDB_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1594 @echo Linking shared library $@
1595 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1596 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1597 @ln -s -f `basename $@` $@.$(SONAME_VER)
1599 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1600 @echo Linking non-shared library $@
1601 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1603 bin/libwbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) @LIBTALLOC_SHARED@
1604 @echo Linking shared library $@
1605 @$(SHLD_DSO) @LIBTALLOC_LIBS@ $(LIBWBCLIENT_OBJ) \
1606 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1607 @ln -s -f `basename $@` $@.$(SONAME_VER)
1609 bin/libwbclient.a: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1610 @echo Linking non-shared library $@
1611 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1613 bin/libaddns.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1614 @echo Linking shared library $@
1615 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1616 $(KRB5LIBS) $(UUID_LIBS) @LIBTALLOC_LIBS@ \
1617 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1619 bin/libaddns.a: $(BINARY_PREREQS) $(LIBADDNS_OBJ)
1620 @echo Linking non-shared library $@
1621 @-$(AR) -rc $@ $(LIBADDNS_OBJ)
1623 $(LIBNETAPI_SHARED_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1624 @echo Linking shared library $@
1625 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1626 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@ $(LIBS) \
1627 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1628 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1629 @ln -s -f `basename $@` $@.$(SONAME_VER)
1631 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ1)
1632 @echo Linking non-shared library $@
1633 @-$(AR) -rc $@ $(LIBNETAPI_OBJ1)
1635 bin/libsmbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1636 @echo Linking shared library $@
1637 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
1638 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@ $(LIBS) \
1639 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1640 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1642 bin/libsmbclient.a: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ0)
1643 @echo Linking non-shared library $@
1644 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ0)
1646 bin/libsmbsharemodes.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1647 @echo Linking shared library $@
1648 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
1649 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1650 $(KRB5LIBS) $(LDAP_LIBS) \
1651 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1653 bin/libsmbsharemodes.a: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ)
1654 @echo Linking non-shared library $@
1655 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ)
1657 # This is probably wrong for anything other than the GNU linker.
1658 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
1659 @echo Linking shared library $@
1660 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
1661 $(LIBS) @LIBTALLOC_LIBS@ \
1662 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1663 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
1664 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
1666 # It would be nice to build a static bigballofmud too, but when I try
1667 # I get linker errors about dl_open and similar things. I'm not sure if
1668 # it can be fixed or if they just can't be called from a static
1669 # library.
1671 libtalloc: $(LIBTALLOC)
1672 libtdb: $(LIBTDB)
1673 libsmbclient: $(LIBSMBCLIENT)
1674 libsmbsharemodes: $(LIBSMBSHAREMODES)
1675 libaddns: $(LIBADDNS)
1676 libwbclient: $(LIBWBCLIENT)
1677 libnetapi: $(LIBNETAPI)
1679 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1680 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
1681 -o $@ @SONAMEFLAG@`basename $@`
1683 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
1684 @echo "Linking $@"
1685 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
1687 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
1688 @echo "Linking $@"
1689 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
1691 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
1692 @echo "Linking $@"
1693 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
1695 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
1696 @echo "Linking $@"
1697 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
1699 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
1700 @echo "Linking $@"
1701 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
1703 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
1704 @echo "Linking $@"
1705 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
1707 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
1708 @echo "Linking $@"
1709 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
1711 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
1712 @echo "Linking $@"
1713 @$(SHLD_MODULE) $(RPC_REG_OBJ)
1715 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
1716 @echo "Linking $@"
1717 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
1719 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
1720 @echo "Linking $@"
1721 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
1723 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
1724 @echo "Linking $@"
1725 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
1727 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
1728 @echo "Linking $@"
1729 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
1731 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
1732 @echo "Linking $@"
1733 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
1735 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
1736 @echo "Linking $@"
1737 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
1739 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1740 @echo "Linking $@"
1741 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1742 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1743 $(PASSDB_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1745 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1746 @echo "Linking $@"
1747 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
1748 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1749 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1750 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1752 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
1753 @echo "Linking $@"
1754 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
1755 @WINBIND_NSS_EXTRA_LIBS@ @WINBIND_NSS_PTHREAD@ \
1756 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1758 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1759 @echo "Linking $@"
1760 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
1761 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1762 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1764 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
1765 @echo "Linking $@"
1766 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
1767 @SONAMEFLAG@`basename $@`
1769 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
1770 @echo "Linking shared library $@"
1771 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
1772 @SONAMEFLAG@`basename $@`
1774 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
1775 @echo "Building plugin $@"
1776 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
1778 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
1779 @echo "Building plugin $@"
1780 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
1782 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
1783 @echo "Building plugin $@"
1784 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
1786 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
1787 @echo "Building plugin $@"
1788 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
1790 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
1791 @echo "Building plugin $@"
1792 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
1794 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
1795 @echo "Building plugin $@"
1796 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
1798 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
1799 @echo "Building plugin $@"
1800 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
1802 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
1803 @echo "Building plugin $@"
1804 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
1806 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
1807 @echo "Building plugin $@"
1808 @$(SHLD_MODULE) passdb/pdb_tdb.o
1810 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
1811 @echo "Building plugin $@"
1812 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
1814 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
1815 @echo "Building plugin $@"
1816 @$(SHLD_MODULE) winbindd/idmap_rid.o
1818 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
1819 @echo "Building plugin $@"
1820 @$(SHLD_MODULE) winbindd/idmap_ad.o
1822 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
1823 @echo "Building plugin $@"
1824 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
1826 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
1827 @echo "Building plugin $@"
1828 @$(SHLD_MODULE) winbindd/idmap_ldap.o
1830 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
1831 @echo "Building plugin $@"
1832 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
1834 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
1835 @echo "Building plugin $@"
1836 @$(SHLD_MODULE) $(CP850_OBJ)
1838 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
1839 @echo "Building plugin $@"
1840 @$(SHLD_MODULE) $(CP437_OBJ)
1842 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
1843 @echo "Building plugin $@"
1844 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
1846 # NOTE, there is no build rule for a dynamic default VFS module because
1847 # this one MUST MUST MUST be built statically.
1849 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
1850 @echo "Building plugin $@"
1851 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
1853 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
1854 @echo "Building plugin $@"
1855 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
1857 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
1858 @echo "Building plugin $@"
1859 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
1861 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
1862 @echo "Building plugin $@"
1863 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
1865 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
1866 @echo "Building plugin $@"
1867 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
1869 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
1870 @echo "Building plugin $@"
1871 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
1873 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
1874 @echo "Building plugin $@"
1875 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
1877 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
1878 @echo "Building plugin $@"
1879 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
1881 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
1882 @echo "Building plugin $@"
1883 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
1885 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
1886 @echo "Building plugin $@"
1887 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
1889 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
1890 @echo "Building plugin $@"
1891 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
1893 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
1894 @echo "Building plugin $@"
1895 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
1897 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
1898 @echo "Building plugin $@"
1899 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
1901 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
1902 @echo "Building plugin $@"
1903 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
1905 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
1906 @echo "Building plugin $@"
1907 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
1909 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
1910 @echo "Building plugin $@"
1911 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
1913 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
1914 @echo "Building plugin $@"
1915 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
1917 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
1918 @echo "Building plugin $@"
1919 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
1921 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
1922 @echo "Building plugin $@"
1923 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
1925 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
1926 @echo "Building plugin $@"
1927 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
1929 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
1930 @echo "Building plugin $@"
1931 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
1933 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
1934 @echo "Building plugin $@"
1935 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
1937 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
1938 @echo "Building plugin $@"
1939 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
1941 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
1942 @echo "Building plugin $@"
1943 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
1945 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
1946 @echo "Building plugin $@"
1947 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
1949 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
1950 @echo "Building plugin $@"
1951 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
1953 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
1954 @echo "Building plugin $@"
1955 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
1957 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
1958 @echo "Building plugin $@"
1959 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
1961 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
1962 @echo "Building plugin $@"
1963 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
1965 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
1966 @echo "Building plugin $@"
1967 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
1969 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
1970 @echo "Building plugin $@"
1971 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
1973 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
1974 @echo "Building plugin $@"
1975 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
1977 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
1978 @echo "Building plugin $@"
1979 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
1981 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
1982 @echo "Building plugin $@"
1983 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
1985 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
1986 @echo "Building plugin $@"
1987 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
1989 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
1990 @echo "Building plugin $@"
1991 @$(SHLD_MODULE) libgpo/gpext/registry.o
1993 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
1994 @echo "Building plugin $@"
1995 @$(SHLD_MODULE) libgpo/gpext/scripts.o
1997 #########################################################
1998 ## IdMap NSS plugins
2000 ## None here right now
2001 #########################################################
2003 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2004 @echo Linking $@
2005 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2006 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
2007 @WINBIND_LIBS@
2009 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2010 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2011 @echo Linking $@
2012 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2013 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2014 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2015 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
2017 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2018 @echo "Linking shared library $@"
2019 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2020 $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
2021 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
2023 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2024 @echo Linking $@
2025 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2026 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
2028 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2029 @echo Linking $@
2030 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2031 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
2033 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2034 @echo Linking $@
2035 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2036 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
2038 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2039 @echo Linking $@
2040 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2041 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
2043 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2044 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
2045 torture/t_strcmp.o -L ./bin -lbigballofmud
2047 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2048 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
2049 torture/t_strstr.o -L ./bin -lbigballofmud
2051 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2052 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
2053 torture/t_strappend.o -L ./bin -lbigballofmud
2055 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2056 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2057 -L./bin -lbigballofmud
2059 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2060 @echo Linking $@
2061 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
2063 install: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSSPNEGO@ installman \
2064 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2065 installlibtalloc \
2066 installlibtdb \
2067 @INSTALL_LIBSMBCLIENT@ @INSTALL_PAM_MODULES@ \
2068 @INSTALL_LIBSMBSHAREMODES@ @INSTALL_LIBWBCLIENT@ installlibnetapi
2070 install-everything: install installmodules
2072 # DESTDIR is used here to prevent packagers wasting their time
2073 # duplicating the Makefile. Remove it and you will have the privelege
2074 # of package each samba release for muliple versions of multiple
2075 # distributions and operating systems, or at least supplying patches
2076 # to all the packaging files required for this, prior to committing
2077 # the removal of DESTDIR. Do not remove it even though you think it
2078 # is not used
2080 installdirs:
2081 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
2083 installservers: all installdirs
2084 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2086 installbin: all installdirs
2087 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2089 installcifsmount: @CIFSMOUNT_PROGS@
2090 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2091 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2093 installcifsspnego: @CIFSSPNEGO_PROGS@
2094 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2095 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
2097 # Some symlinks are required for the 'probing' of modules.
2098 # This mechanism should go at some point..
2099 installmodules: modules installdirs
2100 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2101 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2102 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2103 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2104 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2105 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2106 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2107 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2108 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2109 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2110 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2111 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2112 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2113 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2114 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2115 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2117 installscripts: installdirs
2118 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2120 installdat: installdirs
2121 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2123 installmsg: installdirs
2124 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2126 installswat: installdirs installmsg
2127 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2129 installclientlib: installdirs libsmbclient
2130 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2131 -$(INSTALLLIBCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2132 -$(INSTALLLIBCMD_A) bin/libsmbclient.a $(DESTDIR)$(LIBDIR)
2133 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2134 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include
2136 installlibtalloc: installdirs libtalloc
2137 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2138 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2139 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2140 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2141 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/@tallocdir@/talloc.h $(DESTDIR)${prefix}/include
2143 installlibtdb: installdirs libtdb
2144 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2145 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2146 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2147 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2148 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2150 installlibsmbsharemodes: installdirs libsmbsharemodes
2151 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2152 -$(INSTALLLIBCMD_SH) bin/libsmbsharemodes.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2153 -$(INSTALLLIBCMD_A) bin/libsmbsharemodes.a $(DESTDIR)$(LIBDIR)
2154 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/smb_share_modes.h $(DESTDIR)${prefix}/include
2156 installlibaddns: installdirs libaddns
2157 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2158 -$(INSTALLLIBCMD_SH) bin/libaddns.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2159 -$(INSTALLLIBCMD_A) bin/libaddns.a $(DESTDIR)$(LIBDIR)
2161 installlibwbclient: installdirs libwbclient
2162 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2163 -$(INSTALLLIBCMD_SH) bin/libwbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2164 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2165 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/nsswitch/libwbclient/wbclient.h $(DESTDIR)${prefix}/include
2167 installlibnetapi: installdirs libnetapi
2168 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2169 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2170 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2171 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2173 installpammodules: $(PAM_MODULES)
2174 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2175 @for module in $(PAM_MODULES); do \
2176 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2177 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2178 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2179 done
2181 # revert to the previously installed version
2182 revert:
2183 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2184 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2186 installman: installdirs
2187 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2189 .PHONY: showlayout
2191 showlayout:
2192 @echo "Samba will be installed into:"
2193 @echo " prefix: $(prefix)"
2194 @echo " bindir: $(BINDIR)"
2195 @echo " sbindir: $(SBINDIR)"
2196 @echo " libdir: $(LIBDIR)"
2197 @echo " vardir: $(VARDIR)"
2198 @echo " mandir: $(MANDIR)"
2199 @echo " privatedir: $(PRIVATE_DIR)"
2200 @echo " configdir: $(CONFIGDIR)"
2201 @echo " lockdir: $(LOCKDIR)"
2202 @echo " piddir: $(PIDDIR)"
2203 @echo " swatdir: $(SWATDIR)"
2206 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSSPNEGO@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibtalloc uninstalllibtdb @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@ uninstalllibnetapi
2208 uninstallman:
2209 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2211 uninstallservers:
2212 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2214 uninstallbin:
2215 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2217 uninstallcifsmount:
2218 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2220 uninstallcifsspnego:
2221 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
2223 uninstallmodules:
2224 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2225 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2226 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2227 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2228 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2229 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2230 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2232 uninstallscripts:
2233 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2235 uninstalldat:
2236 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2238 uninstallmsg:
2239 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2241 uninstallswat: uninstallmsg
2242 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2244 uninstallclientlib:
2245 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbclient.@SHLIBEXT@
2246 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbclient.a
2247 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2249 uninstalllibsmbsharemodes:
2250 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.@SHLIBEXT@
2251 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.a
2253 uninstalllibaddns:
2254 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libaddns.@SHLIBEXT@
2255 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libaddns.a
2257 uninstalllibnetapi:
2258 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libnetapi.@SHLIBEXT@
2259 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libnetapi.a
2260 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2262 uninstallpammodules:
2263 @for module in $(PAM_MODULES); do \
2264 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2265 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2266 done
2268 # Toplevel clean files
2269 TOPFILES=dynconfig.o
2271 clean: delheaders
2272 -rm -f $(PRECOMPILED_HEADER)
2273 -rm -f core */*~ *~ \
2274 */*.o */*/*.o */*/*/*.o \
2275 ../testsuite/*/*.o \
2276 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2277 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2278 $(MODULES) $(TORTURE_PROGS) \
2279 $(LIBTALLOC) $(LIBSMBCLIENT) $(LIBADDNS) \
2280 $(LIBSMBSHAREMODES) $(EVERYTHING_PROGS) $(LIBNETAPI) \
2281 bin/libwbclient.so.0 bin/timelimit \
2282 .headers.stamp */src/*.o proto_exists \
2283 $(LIBTDB_SYMS)
2284 -rm -rf t_dir
2286 # Making this target will just make sure that the prototype files
2287 # exist, not necessarily that they are up to date. Since they're
2288 # removed by "make clean" this will always be run when you do anything
2289 # afterwards.
2290 proto_exists: include/proto.h include/build_env.h \
2291 winbindd/winbindd_proto.h web/swat_proto.h \
2292 libnet/libnet_proto.h \
2293 client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
2294 @touch proto_exists
2296 delheaders:
2297 @echo Removing prototype headers
2298 @rm -f include/proto.h include/build_env.h \
2299 winbindd/winbindd_proto.h web/swat_proto.h \
2300 client/client_proto.h utils/net_proto.h \
2301 smbd/build_options.c utils/ntlm_auth_proto.h \
2302 utils/passwd_proto.h libnet/libnet_proto.h
2304 MKPROTO_SH = $(srcdir)/script/mkproto.sh
2306 include/proto.h: smbd/build_options.c
2307 @echo Building include/proto.h
2308 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2309 -h _PROTO_H_ $(builddir)/include/proto.h \
2310 $(PROTO_OBJ)
2312 include/build_env.h: script/build_env.sh
2313 @echo Building include/build_env.h
2314 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2315 > $(builddir)/include/build_env.h
2317 winbindd/winbindd_proto.h:
2318 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2319 -h _WINBINDD_PROTO_H_ $(builddir)/winbindd/winbindd_proto.h \
2320 $(WINBINDD_OBJ1)
2322 web/swat_proto.h:
2323 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2324 -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
2325 $(SWAT_OBJ1)
2327 client/client_proto.h:
2328 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2329 -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
2330 $(CLIENT_OBJ1)
2332 utils/net_proto.h:
2333 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2334 -h _NET_PROTO_H_ $(builddir)/utils/net_proto.h \
2335 $(NET_OBJ1)
2337 utils/passwd_proto.h:
2338 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2339 -h _PASSWD_PROTO_H_ $(builddir)/utils/passwd_proto.h \
2340 $(PASSWD_UTIL_OBJ)
2342 utils/ntlm_auth_proto.h:
2343 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2344 -h _NTLM_AUTH_PROTO_H_ $(builddir)/utils/ntlm_auth_proto.h \
2345 $(NTLM_AUTH_OBJ1)
2347 libnet/libnet_proto.h:
2348 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2349 -h _LIBNET_PROTO_H_ $(builddir)/libnet/libnet_proto.h \
2350 $(LIBNET_OBJ)
2352 # "make headers" or "make proto" calls a subshell because we need to
2353 # make sure these commands are executed in sequence even for a
2354 # parallel make.
2355 headers:
2356 $(MAKE) delheaders; \
2357 $(MAKE) smbd/build_options.c; \
2358 $(MAKE) include/proto.h; \
2359 $(MAKE) include/build_env.h; \
2360 $(MAKE) winbindd/winbindd_proto.h; \
2361 $(MAKE) web/swat_proto.h; \
2362 $(MAKE) client/client_proto.h; \
2363 $(MAKE) utils/ntlm_auth_proto.h; \
2364 $(MAKE) utils/net_proto.h; \
2365 $(MAKE) utils/passwd_proto.h; \
2366 $(MAKE) libnet/libnet_proto.h;
2368 proto: headers
2370 .PHONY: headers proto
2372 etags:
2373 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2375 ctags:
2376 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2378 realclean: clean delheaders
2379 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2380 -rm -f script/installbin.sh script/uninstallbin.sh
2382 distclean: realclean
2383 -rm -f smbadduser
2384 -rm -f include/config.h Makefile
2385 -rm -f config.status config.cache so_locations
2386 -rm -rf .deps TAGS
2388 realdistclean: distclean
2389 -rm -f include/config.h.in
2390 -rm -f include/version.h
2391 -rm -f configure
2393 # this target is really just for my use. It only works on a limited
2394 # range of machines and is used to produce a list of potentially
2395 # dead (ie. unused) functions in the code. (tridge)
2396 finddead:
2397 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2398 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2399 comm -13 nmused.txt nmfns.txt
2402 # when configure.in is updated, reconfigure
2403 $(srcdir)/configure: $(srcdir)/configure.in
2404 @echo "WARNING: you need to rerun ./autogen.sh"
2406 config.status: $(srcdir)/configure
2407 @echo "WARNING: you need to run ./configure"
2409 Makefile: $(srcdir)/Makefile.in config.status
2410 @echo "WARNING: you need to run ./config.status"
2412 ######################################################################
2413 # Samba Testing Framework
2415 # Check shared libs for unresolved symbols
2416 test_shlibs: $(SHLIBS)
2417 @echo "Testing $(SHLIBS) "
2418 @export $(LIB_PATH_VAR)=./bin && \
2419 for module in $(SHLIBS); do \
2420 ./script/tests/dlopen.sh bin/$${module}.@SHLIBEXT@ \
2421 || exit 1; \
2422 done
2424 # Check for NSS module problems.
2425 test_nss_modules: nss_modules
2426 @echo "Testing $(NSS_MODULES) "
2427 @export $(LIB_PATH_VAR)=./bin && \
2428 for module in $(NSS_MODULES); do \
2429 ./script/tests/dlopen.sh $${module} \
2430 || exit 1; \
2431 done
2433 # Check for PAM module problems. Specifically, check that every module we
2434 # built can actually be loaded by a minimal PAM-aware application.
2435 test_pam_modules: pam_modules
2436 @echo "Testing $(PAM_MODULES) "
2437 @export $(LIB_PATH_VAR)=./bin && \
2438 for module in $(PAM_MODULES); do \
2439 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2440 || exit 1; \
2441 done
2445 ## Targets for 'make test'
2447 test: all torture timelimit
2448 @echo Running Test suite
2449 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2451 valgrindtest: all torture timelimit
2452 @echo Running Test suite with valgrind
2453 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2454 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2455 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2456 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2457 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2458 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"