mount.cifs: don't prompt for password on krb5 mounts
[Samba.git] / source / Makefile.in
blob938d711827c49e4e04e27ec7382c4c94e5c631ba
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@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
29 DSO_EXPORTS=@DSO_EXPORTS@
30 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
32 # The MODULE_EXPORTS variable contains the platform-specific linker flags
33 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
34 MODULE_EXPORTS=@MODULE_EXPORTS@
36 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
37 # (GCC) warnings. This is done automtically for --enable-developer,
38 # --enable-picky-developer and --enable-krb5developer.
39 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
40 CFLAGS=@CFLAGS@
41 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
43 EXEEXT=@EXEEXT@
44 AR=@AR@
45 LDSHFLAGS=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
46 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
48 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
49 AWK=@AWK@
50 PICFLAG=@PICFLAG@
51 DYNEXP=@DYNEXP@
52 PERL=@PERL@
54 PIDL_ARGS=@PIDL_ARGS@
56 TERMLDFLAGS=@TERMLDFLAGS@
57 TERMLIBS=@TERMLIBS@
58 PRINT_LIBS=@PRINT_LIBS@
59 AUTH_LIBS=@AUTH_LIBS@
60 ACL_LIBS=@ACL_LIBS@
61 PASSDB_LIBS=@PASSDB_LIBS@
62 IDMAP_LIBS=@IDMAP_LIBS@
63 KRB5LIBS=@KRB5_LIBS@
64 LDAP_LIBS=@LDAP_LIBS@
65 NSCD_LIBS=@NSCD_LIBS@
66 UUID_LIBS=@UUID_LIBS@
67 WINBIND_LIBS=@WINBIND_LIBS@
68 WINBIND_NSS_EXTRA_LIBS=@WINBIND_NSS_EXTRA_LIBS@
69 WINBIND_NSS_PTHREAD=@WINBIND_NSS_PTHREAD@
70 PAM_WINBIND_EXTRA_LIBS=@PAM_WINBIND_EXTRA_LIBS@
71 DNSSD_LIBS=@DNSSD_LIBS@
72 POPT_LIBS=@POPTLIBS@
73 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
74 LIBTDB_LIBS=@LIBTDB_LIBS@
75 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
77 INSTALLCMD=@INSTALL@
78 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
79 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
80 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
81 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
83 VPATH=@srcdir@
84 srcdir=@abs_srcdir@
85 builddir=@abs_builddir@
86 SHELL=/bin/sh
87 DESTDIR=/
89 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
90 # will search for a POSIX-compliant shell, and that might not be
91 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
93 # See the autoconf manual "Installation Directory Variables" for a
94 # discussion of the subtle use of these variables.
96 BASEDIR= @prefix@
97 BINDIR = @bindir@
98 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
99 SBINDIR = @sbindir@
100 ROOTSBINDIR = @rootsbindir@
101 LIBDIR = @libdir@
102 INCLUDEDIR=@includedir@
103 PAMMODULESDIR = @pammodulesdir@
104 VFSLIBDIR = $(LIBDIR)/vfs
105 PDBLIBDIR = $(LIBDIR)/pdb
106 RPCLIBDIR = $(LIBDIR)/rpc
107 IDMAPLIBDIR = $(LIBDIR)/idmap
108 NSSINFOLIBDIR = $(LIBDIR)/nss_info
109 CHARSETLIBDIR = $(LIBDIR)/charset
110 AUTHLIBDIR = $(LIBDIR)/auth
111 CONFIGLIBDIR = $(LIBDIR)/config
112 GPEXTLIBDIR = $(LIBDIR)/gpext
113 CONFIGDIR = @configdir@
114 VARDIR = @localstatedir@
115 MANDIR = @mandir@
116 DATADIR = @datadir@
118 # The permissions to give the executables and other data
119 INSTALLPERMS_BIN = 0755
120 INSTALLPERMS_DATA = 0644
122 # set these to where to find various files
123 # These can be overridden by command line switches (see smbd(8))
124 # or in smb.conf (see smb.conf(5))
125 LOGFILEBASE = @logfilebase@
126 CONFIGFILE = $(CONFIGDIR)/smb.conf
127 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
128 CTDBDIR = @ctdbdir@
130 # This is where smbpasswd et al go
131 PRIVATEDIR = @privatedir@
133 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
134 PRIVATE_DIR = $(PRIVATEDIR)
136 # This is where SWAT images and help files go
137 SWATDIR = @swatdir@
139 # the directory where lock files go
140 LOCKDIR = @lockdir@
142 # FHS directories; equal to LOCKDIR if not using --with-fhs
143 CACHEDIR = @cachedir@
144 STATEDIR = @statedir@
146 # Where to look for (and install) codepage databases.
147 CODEPAGEDIR = @codepagedir@
149 # the directory where pid files go
150 PIDDIR = @piddir@
152 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
153 FLAGS2 =
154 FLAGS3 =
155 FLAGS4 = -I$(CTDBDIR)/include
156 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
157 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
159 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
160 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
161 -DCONFIGFILE=\"$(CONFIGFILE)\" \
162 -DSBINDIR=\"$(SBINDIR)\" \
163 -DBINDIR=\"$(BINDIR)\" \
164 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
165 -DSWATDIR=\"$(SWATDIR)\" \
166 -DLOCKDIR=\"$(LOCKDIR)\" \
167 -DPIDDIR=\"$(PIDDIR)\" \
168 -DLIBDIR=\"$(LIBDIR)\" \
169 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
170 -DSHLIBEXT=\"@SHLIBEXT@\" \
171 -DCTDBDIR=\"$(CTDBDIR)\" \
172 -DCONFIGDIR=\"$(CONFIGDIR)\" \
173 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
174 -DCACHEDIR=\"$(CACHEDIR)\" \
175 -DSTATEDIR=\"$(STATEDIR)\"
177 # Note that all executable programs now provide for an optional executable suffix.
179 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
181 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@ @CIFSUPCALL_PROGS@
183 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
184 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
185 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
186 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
187 bin/tdbtool@EXEEXT@
188 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
189 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
190 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
191 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
192 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
194 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
195 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
196 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
197 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
198 bin/tdbtorture@EXEEXT@ \
199 bin/smbconftort@EXEEXT@
201 BIN_PROGS = @EXTRA_BIN_PROGS@ \
202 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
204 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
205 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
206 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
207 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@
209 PAM_MODULES = @PAM_MODULES@
211 NSS_MODULES = @NSS_MODULES@
213 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
215 VFS_MODULES = @VFS_MODULES@
216 PDB_MODULES = @PDB_MODULES@
217 RPC_MODULES = @RPC_MODULES@
218 IDMAP_MODULES = @IDMAP_MODULES@
219 CHARSET_MODULES = @CHARSET_MODULES@
220 AUTH_MODULES = @AUTH_MODULES@
221 NSS_INFO_MODULES = @NSS_INFO_MODULES@
222 GPEXT_MODULES = @GPEXT_MODULES@
223 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
224 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
225 $(GPEXT_MODULES)
227 ######################################################################
228 # object file lists
229 ######################################################################
231 TDB_OBJ = lib/util_tdb.o \
232 lib/dbwrap.o lib/dbwrap_tdb.o \
233 lib/dbwrap_ctdb.o \
234 lib/dbwrap_rbt.o @LIBTDB_STATIC@
236 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
238 VERSION_OBJ = lib/version.o
240 WBCOMMON_OBJ = nsswitch/wb_common.o
242 AFS_OBJ = lib/afs.o
244 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
246 SERVER_MUTEX_OBJ = lib/server_mutex.o
248 PASSCHANGE_OBJ = libsmb/passchange.o
250 LIBNDR_DRSUAPI_OBJ = librpc/ndr/ndr_drsuapi.o \
251 librpc/ndr/ndr_compression.o \
252 librpc/gen_ndr/ndr_drsuapi.o \
253 librpc/gen_ndr/ndr_drsblobs.o
255 COMPRESSION_OBJ = lib/compression/mszip.o
257 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
258 $(COMPRESSION_OBJ)
260 LIBNDR_OBJ = librpc/ndr/ndr_basic.o \
261 librpc/ndr/ndr.o \
262 librpc/ndr/ndr_misc.o \
263 librpc/gen_ndr/ndr_misc.o \
264 librpc/gen_ndr/ndr_security.o \
265 librpc/ndr/ndr_sec_helper.o \
266 librpc/ndr/ndr_string.o \
267 librpc/ndr/sid.o \
268 librpc/ndr/uuid.o
270 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
272 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
273 librpc/gen_ndr/ndr_lsa.o
275 LIBNDR_GEN_OBJ1 = librpc/gen_ndr/ndr_netlogon.o
277 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
278 $(LIBNDR_GEN_OBJ0) \
279 librpc/gen_ndr/ndr_dfs.o \
280 librpc/gen_ndr/ndr_echo.o \
281 librpc/gen_ndr/ndr_winreg.o \
282 librpc/gen_ndr/ndr_initshutdown.o \
283 librpc/gen_ndr/ndr_srvsvc.o \
284 librpc/gen_ndr/ndr_eventlog.o \
285 $(LIBNDR_GEN_OBJ1) \
286 librpc/gen_ndr/ndr_dssetup.o \
287 librpc/gen_ndr/ndr_notify.o \
288 librpc/gen_ndr/ndr_xattr.o \
289 librpc/gen_ndr/ndr_epmapper.o \
290 librpc/gen_ndr/ndr_ntsvcs.o
292 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
294 # this includes only the low level parse code, not stuff
295 # that requires knowledge of security contexts
296 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
298 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
299 rpc_client/init_netlogon.o \
300 rpc_client/init_lsa.o \
301 rpc_client/init_srvsvc.o
303 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
305 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
306 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
308 LIBSAMBAUTIL_OBJ = @LIBTALLOC_STATIC@ \
309 $(LIBREPLACE_OBJ) \
310 $(SOCKET_WRAPPER_OBJ) \
311 $(NSS_WRAPPER_OBJ)
313 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) \
314 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
315 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
316 lib/interfaces.o lib/rbtree.o lib/memcache.o \
317 lib/util_transfer_file.o lib/async_req.o \
318 lib/async_sock.o \
319 $(TDB_OBJ) \
320 $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
321 lib/interface.o lib/md4.o \
322 lib/pidfile.o \
323 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
324 lib/ufc.o lib/genrand.o lib/username.o \
325 lib/util_pw.o lib/access.o lib/smbrun.o \
326 lib/bitmap.o lib/crc32.o lib/dprintf.o \
327 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
328 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
329 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
330 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
331 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
332 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
333 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
334 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
335 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
336 lib/adt_tree.o lib/gencache.o \
337 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
338 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
339 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
340 lib/file_id.o
342 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
343 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
345 READLINE_OBJ = lib/readline.o
347 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
348 # Be sure to include them into your application
349 POPT_LIB_OBJ = lib/popt_common.o
351 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
352 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
353 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
355 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
357 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
358 libaddns/dnsgss.o libaddns/dnsmarshall.o
359 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ) @LIBTALLOC_STATIC@
361 GPEXT_OBJ = libgpo/gpext/gpext.o @GPEXT_STATIC@
363 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
364 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o \
365 libgpo/gpo_reg.o \
366 $(GPEXT_OBJ)
367 LIBGPO_OBJ = $(LIBGPO_OBJ0)
369 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
370 libads/sasl.o libads/sasl_wrapping.o \
371 libads/krb5_setpw.o libads/ldap_user.o \
372 libads/ads_struct.o libads/kerberos_keytab.o \
373 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
374 libads/ldap_schema.o libads/util.o libads/ndr.o
376 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
377 librpc/ndr/ndr_krb5pac.o \
378 librpc/gen_ndr/ndr_krb5pac.o
380 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
382 LIBNBT_OBJ = libcli/nbt/nbtname.o \
383 librpc/gen_ndr/ndr_nbt.o \
384 librpc/gen_ndr/ndr_svcctl.o
386 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
387 libsmb/namequery.o libsmb/conncache.o libads/dns.o
389 NTERR_OBJ = libsmb/nterr.o
390 DOSERR_OBJ = libsmb/doserr.o
391 ERRORMAP_OBJ = libsmb/errormap.o
392 DCE_RPC_ERR_OBJ = libsmb/dcerpc_err.o
394 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ) \
395 libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ntlmssp_parse.o
397 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) \
398 $(RPC_PARSE_OBJ1) \
399 $(SECRETS_OBJ)
401 LIBSMB_OBJ0 = \
402 libsmb/ntlm_check.o \
403 libsmb/ntlmssp.o \
404 libsmb/ntlmssp_sign.o
406 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
407 $(LIBSMB_ERR_OBJ)
409 CLDAP_OBJ = libads/cldap.o
411 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
412 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
413 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
414 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
415 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
416 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
417 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
418 libsmb/clioplock.o libsmb/clirap2.o \
419 libsmb/smb_seal.o libsmb/async_smb.o \
420 $(LIBSAMBA_OBJ) \
421 $(LIBNMB_OBJ) \
422 $(LIBNBT_OBJ) \
423 $(CLDAP_OBJ) \
424 $(DRSUAPI_OBJ)
426 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
428 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
429 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
430 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
431 rpc_client/cli_svcctl.o \
432 rpc_client/init_samr.o \
433 librpc/rpc/dcerpc.o \
434 librpc/rpc/binding.o
436 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
437 librpc/gen_ndr/cli_dfs.o \
438 librpc/gen_ndr/cli_echo.o \
439 librpc/gen_ndr/cli_srvsvc.o \
440 librpc/gen_ndr/cli_svcctl.o \
441 librpc/gen_ndr/cli_winreg.o \
442 librpc/gen_ndr/cli_initshutdown.o \
443 librpc/gen_ndr/cli_eventlog.o \
444 librpc/gen_ndr/cli_wkssvc.o \
445 librpc/gen_ndr/cli_netlogon.o \
446 librpc/gen_ndr/cli_samr.o \
447 librpc/gen_ndr/cli_dssetup.o \
448 librpc/gen_ndr/cli_ntsvcs.o \
449 librpc/gen_ndr/cli_epmapper.o \
450 librpc/gen_ndr/cli_drsuapi.o \
451 $(LIBNDR_GEN_OBJ) \
452 $(RPCCLIENT_NDR_OBJ)
455 # registry-related objects
457 UTIL_REG_OBJ = lib/util_reg.o
458 UTIL_REG_API_OBJ = lib/util_reg_api.o
460 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
461 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
462 REG_INIT_FULL_OBJ = registry/reg_init_full.o
464 REGFIO_OBJ = registry/regfio.o
466 REGOBJS_OBJ = registry/reg_objects.o
468 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
470 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
472 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
473 registry/reg_backend_shares.o \
474 registry/reg_backend_netlogon_params.o \
475 registry/reg_backend_prod_options.o \
476 registry/reg_backend_tcpip_params.o \
477 registry/reg_backend_hkpt_params.o \
478 registry/reg_backend_current_version.o \
479 registry/reg_backend_perflib.o
481 REG_BASE_OBJ = registry/reg_api.o \
482 registry/reg_dispatcher.o \
483 registry/reg_cachehook.o \
484 $(REGFIO_OBJ) \
485 $(REGOBJS_OBJ) \
486 registry/reg_util.o \
487 $(UTIL_REG_API_OBJ) \
488 lib/util_nttoken.o \
489 $(REG_BACKENDS_BASE_OBJ) \
490 $(REG_INIT_BASIC_OBJ)
492 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
493 $(REG_BACKENDS_SMBCONF_OBJ) \
494 $(REG_INIT_SMBCONF_OBJ)
496 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
497 $(REG_BACKENDS_EXTRA_OBJ) \
498 $(REG_INIT_FULL_OBJ) \
499 registry/reg_eventlog.o \
500 registry/reg_perfcount.o \
501 registry/reg_util_legacy.o
504 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
506 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
507 librpc/gen_ndr/srv_netlogon.o
509 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
510 rpc_server/srv_samr_util.o \
511 librpc/gen_ndr/srv_samr.o
513 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
515 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
516 librpc/gen_ndr/srv_winreg.o
518 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
520 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
521 librpc/gen_ndr/srv_srvsvc.o
523 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
525 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
526 librpc/gen_ndr/srv_svcctl.o \
527 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
528 services/svc_netlogon.o services/svc_winreg.o \
529 services/svc_wins.o
531 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o \
532 librpc/gen_ndr/srv_ntsvcs.o
534 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
536 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
538 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
539 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
541 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
542 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
544 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
546 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
548 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \
549 rpc_parse/parse_spoolss.o \
550 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
551 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o
553 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
555 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
557 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
559 PRIVILEGES_OBJ = lib/privileges.o
561 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
563 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
564 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
565 passdb/util_unixsids.o passdb/lookup_sid.o \
566 passdb/login_cache.o @PDB_STATIC@ \
567 lib/account_pol.o $(PRIVILEGES_OBJ) \
568 lib/util_nscd.o lib/winbind_util.o
570 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
571 CP850_OBJ = modules/CP850.o
572 CP437_OBJ = modules/CP437.o
573 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
575 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
577 PROFILE_OBJ = profile/profile.o
578 PROFILES_OBJ = utils/profiles.o \
579 $(LIBSAMBA_OBJ) \
580 $(PARAM_OBJ) \
581 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
582 $(POPT_LIB_OBJ)
584 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
586 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
588 VFS_DEFAULT_OBJ = modules/vfs_default.o
589 VFS_AUDIT_OBJ = modules/vfs_audit.o
590 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
591 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
592 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
593 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
594 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
595 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
596 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
597 VFS_CAP_OBJ = modules/vfs_cap.o
598 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
599 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
600 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
601 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
602 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
603 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
604 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
605 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
606 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
607 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
608 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
609 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
610 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
611 VFS_CATIA_OBJ = modules/vfs_catia.o
612 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
613 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
614 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
615 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
616 VFS_COMMIT_OBJ = modules/vfs_commit.o
617 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
618 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
619 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
620 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
621 VFS_FILEID_OBJ = modules/vfs_fileid.o
622 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
623 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
625 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
627 SLCACHE_OBJ = libsmb/samlogon_cache.o
629 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
631 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
632 AUTH_DOMAIN_OBJ = auth/auth_domain.o
633 AUTH_SAM_OBJ = auth/auth_sam.o
634 AUTH_SERVER_OBJ = auth/auth_server.o
635 AUTH_UNIX_OBJ = auth/auth_unix.o
636 AUTH_WINBIND_OBJ = auth/auth_winbind.o
637 AUTH_SCRIPT_OBJ = auth/auth_script.o
639 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
640 auth/auth_compat.o auth/auth_ntlmssp.o \
641 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
643 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
645 SMBD_OBJ_MAIN = smbd/server.o
647 BUILDOPT_OBJ = smbd/build_options.o
649 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
650 smbd/utmp.o smbd/session.o smbd/map_username.o \
651 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
652 smbd/share_access.o smbd/fileio.o \
653 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
654 smbd/message.o smbd/nttrans.o smbd/pipes.o \
655 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
656 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
657 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
658 smbd/vfs.o smbd/statcache.o smbd/seal.o \
659 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
660 smbd/process.o smbd/service.o smbd/error.o \
661 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
662 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
663 smbd/change_trust_pw.o smbd/fake_file.o \
664 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
665 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
666 smbd/dmapi.o \
667 smbd/file_access.o \
668 smbd/dnsregister.o \
669 $(MANGLE_OBJ) @VFS_STATIC@
671 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
672 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
673 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
674 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
675 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
676 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
677 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
678 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
679 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
680 $(LIBSMBCONF_OBJ) \
681 $(PRIVILEGES_BASIC_OBJ)
683 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
684 printing/print_cups.o printing/print_generic.o \
685 printing/lpq_parse.o printing/load.o \
686 printing/print_iprint.o
688 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
689 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
691 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
693 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
694 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
695 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
696 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
697 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
698 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
699 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
700 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
701 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
702 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
703 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
704 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
706 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
707 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
708 $(LIBNDR_GEN_OBJ0)
710 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
711 web/swat.o web/neg_lang.o
713 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
714 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(KRBCLIENT_OBJ) \
715 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
716 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
717 $(PASSCHANGE_OBJ) $(LDB_OBJ)
719 STATUS_OBJ = utils/status.o utils/status_profile.o \
720 $(LOCKING_OBJ) $(PARAM_OBJ) \
721 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
722 $(LIBSAMBA_OBJ)
724 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
725 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
726 $(LIBSAMBA_OBJ) \
727 $(PRINTBASE_OBJ)
729 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
730 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
731 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
732 rpc_client/cli_pipe.o librpc/rpc/binding.o $(RPC_PARSE_OBJ2) \
733 $(RPC_CLIENT_OBJ1) \
734 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
735 $(LIBMSRPC_GEN_OBJ)
737 TESTPARM_OBJ = utils/testparm.o \
738 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
739 $(LIBSAMBA_OBJ)
741 PASSWD_UTIL_OBJ = utils/passwd_util.o
743 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
744 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
745 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
746 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
747 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
749 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
750 $(LIBSAMBA_OBJ) \
751 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
752 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
753 $(LDB_OBJ)
755 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
757 DISPLAY_SEC_OBJ= lib/display_sec.o
759 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
760 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
761 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
762 rpcclient/cmd_dfs.o \
763 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
764 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
765 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
766 rpcclient/cmd_drsuapi.o \
767 $(DISPLAY_SEC_OBJ)
769 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
770 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
771 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
772 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
773 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
774 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
776 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
777 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
779 LIBSMBCLIENT_OBJ0 = \
780 libsmb/libsmb_cache.o \
781 libsmb/libsmb_compat.o \
782 libsmb/libsmb_context.o \
783 libsmb/libsmb_dir.o \
784 libsmb/libsmb_file.o \
785 libsmb/libsmb_misc.o \
786 libsmb/libsmb_path.o \
787 libsmb/libsmb_printjob.o \
788 libsmb/libsmb_server.o \
789 libsmb/libsmb_stat.o \
790 libsmb/libsmb_xattr.o \
791 libsmb/libsmb_setget.o
793 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
794 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
795 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
796 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
797 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
799 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
801 # This shared library is intended for linking with unit test programs
802 # to test Samba internals. It's called libbigballofmud.so to
803 # discourage casual usage.
805 LIBBIGBALLOFMUD_MAJOR = 0
807 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
808 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
809 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
811 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
812 librpc/rpc/binding.o \
813 client/dnsbrowse.o \
814 $(RPC_CLIENT_OBJ1) \
815 $(RPC_PARSE_OBJ2)
817 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
818 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
819 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
820 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
821 $(DISPLAY_SEC_OBJ)
823 LIBSMBCONF_OBJ = lib/smbconf/smbconf.o lib/smbconf/smbconf_util.o \
824 lib/smbconf/smbconf_reg.o \
825 lib/smbconf/smbconf_txt.o \
826 lib/smbconf/smbconf_init.o
828 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
830 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
831 $(LIB_NONSMBD_OBJ) \
832 $(PARAM_OBJ) \
833 $(LIBSMB_ERR_OBJ) \
834 $(POPT_LIB_OBJ)
836 LIBNET_OBJ = libnet/libnet_join.o \
837 libnet/libnet_keytab.o \
838 libnet/libnet_samsync.o \
839 libnet/libnet_samsync_ldif.o \
840 libnet/libnet_samsync_passdb.o \
841 libnet/libnet_samsync_display.o \
842 libnet/libnet_samsync_keytab.o \
843 libnet/libnet_dssync.o \
844 libnet/libnet_dssync_keytab.o \
845 librpc/gen_ndr/ndr_libnet_join.o
847 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
848 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
849 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
850 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
851 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
852 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
853 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
854 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
855 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
856 utils/net_conf.o utils/net_join.o utils/net_user.o \
857 utils/net_group.o utils/net_file.o utils/net_registry.o \
858 auth/token_util.o utils/net_dom.o utils/net_share.o
860 # these are not processed by make proto
861 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
863 NET_OBJ = $(NET_OBJ1) \
864 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
865 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
866 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
867 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
868 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
869 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
870 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
871 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
872 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
873 $(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
874 $(LIBSMBCONF_OBJ) \
875 @LIBWBCLIENT_STATIC@ \
876 $(PRIVILEGES_BASIC_OBJ)
878 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
879 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
880 $(LIBNDR_GEN_OBJ0)
882 CIFS_MOUNT_OBJ = client/mount.cifs.o
884 CIFS_UMOUNT_OBJ = client/umount.cifs.o
886 CIFS_UPCALL_OBJ = client/cifs.upcall.o
888 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
889 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
891 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
892 torture/denytest.o torture/mangle_test.o
894 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
895 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
896 $(LIBNDR_GEN_OBJ0)
898 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
899 $(LIB_NONSMBD_OBJ) \
900 $(LIBNDR_GEN_OBJ0)
902 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
903 $(LIB_NONSMBD_OBJ) \
904 $(LIBNDR_GEN_OBJ0)
906 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
907 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
908 $(LIBNDR_GEN_OBJ0)
910 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
911 $(LIB_NONSMBD_OBJ) \
912 $(LIBNDR_GEN_OBJ0)
914 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
915 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
916 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
917 $(LIBNDR_GEN_OBJ0)
919 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
921 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
923 LOG2PCAP_OBJ = utils/log2pcaphex.o
925 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
926 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
927 $(LIBNDR_GEN_OBJ0)
929 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
930 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
931 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
932 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
934 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
935 $(PARAM_OBJ) \
936 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
937 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
938 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
940 EVTLOGADM_OBJ0 = utils/eventlogadm.o
942 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
943 $(LIBSAMBA_OBJ) \
944 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
946 SHARESEC_OBJ0 = utils/sharesec.o
947 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
948 $(LIBSAMBA_OBJ) \
949 $(POPT_LIB_OBJ)
951 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
952 $(LIBSAMBA_OBJ)
954 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
955 lib/replace/test/getifaddrs.o \
956 lib/replace/test/os2_delete.o \
957 lib/replace/test/strptime.o \
958 $(LIBREPLACE_OBJ)
960 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
961 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
962 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
963 librpc/gen_ndr/ndr_svcctl.o
965 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
967 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
968 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
969 $(LIBNDR_GEN_OBJ0)
971 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
972 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
973 $(LIBNDR_GEN_OBJ0)
975 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
976 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
977 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
978 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
979 $(LDB_OBJ)
981 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
983 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
985 WINBINDD_OBJ1 = \
986 winbindd/winbindd.o \
987 winbindd/winbindd_user.o \
988 winbindd/winbindd_group.o \
989 winbindd/winbindd_util.o \
990 winbindd/winbindd_cache.o \
991 winbindd/winbindd_pam.o \
992 winbindd/winbindd_sid.o \
993 winbindd/winbindd_misc.o \
994 winbindd/winbindd_cm.o \
995 winbindd/winbindd_wins.o \
996 winbindd/winbindd_rpc.o \
997 winbindd/winbindd_reconnect.o \
998 winbindd/winbindd_ads.o \
999 winbindd/winbindd_passdb.o \
1000 winbindd/winbindd_dual.o \
1001 winbindd/winbindd_async.o \
1002 winbindd/winbindd_creds.o \
1003 winbindd/winbindd_cred_cache.o \
1004 winbindd/winbindd_ccache_access.o \
1005 winbindd/winbindd_domain.o \
1006 winbindd/winbindd_idmap.o \
1007 winbindd/winbindd_locator.o \
1008 winbindd/winbindd_ndr.o \
1009 auth/token_util.o \
1010 smbd/connection.o
1012 WINBINDD_OBJ = \
1013 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1014 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1015 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1016 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1017 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1018 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1019 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1020 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
1022 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1023 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1024 lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@
1026 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1028 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1029 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1030 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1031 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1032 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1034 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1035 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1036 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1038 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1039 lib/ldb/modules/objectclass.o \
1040 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1042 # enabled in configure.in
1043 LDB_LDAP_OBJ=@LDBLDAP@
1045 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1047 LDB_CMDLINE_OBJ = $(PARAM_OBJ) \
1048 $(POPT_LIB_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) $(LIBSMB_ERR_OBJ0) \
1049 $(RPC_PARSE_OBJ1) $(SECRETS_OBJ) \
1050 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1053 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1054 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1055 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1056 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1057 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1059 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1060 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
1062 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1063 popt/popthelp.o popt/poptparse.o
1065 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1066 iniparser_build/strlib.o
1068 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1069 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1071 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1072 $(SOCKET_WRAPPER_OBJ)
1074 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1075 $(SOCKET_WRAPPER_OBJ)
1077 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1078 $(SOCKET_WRAPPER_OBJ)
1081 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1083 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1084 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1085 $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1086 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1087 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1088 $(LDB_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1089 $(LIBNDR_GEN_OBJ0) $(LIBNDR_GEN_OBJ1)
1092 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ) librpc/rpc/binding.o
1094 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1095 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1096 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1097 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1098 $(DISPLAY_SEC_OBJ)
1100 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1101 $(LIBSMB_OBJ) \
1102 $(PARAM_OBJ) \
1103 $(PASSDB_OBJ) \
1104 @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
1105 $(LIB_NONSMBD_OBJ) \
1106 $(KRBCLIENT_OBJ) \
1107 $(RPC_PARSE_OBJ2) \
1108 $(RPC_CLIENT_OBJ1) \
1109 rpc_client/cli_pipe.o \
1110 librpc/rpc/binding.o \
1111 $(LIBMSRPC_GEN_OBJ)
1114 ######################################################################
1115 # now the rules...
1116 ######################################################################
1117 all:: SHOWFLAGS libs $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1118 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1120 nss_modules:: $(NSS_MODULES)
1122 pam_modules:: $(PAM_MODULES)
1124 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1126 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1128 torture:: SHOWFLAGS $(TORTURE_PROGS)
1130 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1132 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1134 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1136 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1138 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1140 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1142 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1144 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1146 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1148 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1150 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1152 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1154 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1156 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1158 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1160 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1161 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1162 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1164 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1166 modules:: SHOWFLAGS $(MODULES)
1168 #####################################################################
1169 ## Perl IDL Compiler
1170 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1171 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1172 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1173 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl drsuapi.idl drsblobs.idl \
1174 nbt.idl
1176 idl::
1177 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1178 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1181 #####################################################################
1184 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1185 $(EVERYTHING_PROGS)
1187 .SUFFIXES:
1188 .SUFFIXES: .c .o .lo
1190 SHOWFLAGS::
1191 @echo "Using FLAGS = $(FLAGS)"
1192 @echo " PICFLAG = $(PICFLAG)"
1193 @echo " LIBS = $(LIBS)"
1194 @echo " LDFLAGS = $(LDFLAGS)"
1195 @echo " DYNEXP = $(DYNEXP)"
1196 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1197 @echo " SHLIBEXT = @SHLIBEXT@"
1198 @echo " SONAMEFLAG = @SONAMEFLAG@"
1200 MAKEDIR = || exec false; \
1201 if test -d "$$dir"; then :; else \
1202 echo mkdir "$$dir"; \
1203 mkdir -p "$$dir" >/dev/null 2>&1 || \
1204 test -d "$$dir" || \
1205 mkdir "$$dir" || \
1206 exec false; fi || exec false
1208 # Run a static checker.
1209 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1210 # Compile a source file.
1211 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1212 # Compile a source file with the installation paths defined.
1213 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1215 COMPILE = $(COMPILE_CC)
1217 .c.o:
1218 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1219 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1220 @if test -n "$(CC_CHECKER)"; then \
1221 echo "Checking $*.c with '$(CC_CHECKER)'";\
1222 $(CHECK_CC); \
1224 @echo Compiling $*.c
1225 @$(COMPILE) && exit 0;\
1226 echo "The following command failed:" 1>&2;\
1227 echo "$(COMPILE_CC)" 1>&2;\
1228 $(COMPILE_CC) >/dev/null 2>&1
1229 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1231 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1233 # this adds support for precompiled headers. To use it, install a snapshot
1234 # of gcc-3.4 and run 'make pch' before you do the main build.
1235 pch::
1236 rm -f $(PRECOMPILED_HEADER)
1237 $(MAKE) $(PRECOMPILED_HEADER)
1239 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1240 $(COMPILE)
1242 BINARY_PREREQS = bin/.dummy
1244 # These dependencies are only approximately correct: we want to make
1245 # sure Samba's paths are updated if ./configure is re-run. Really it
1246 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1247 # but since we also require "make install prefix=/opt/samba" *not* to
1248 # rebuild it's a bit hard.
1250 dynconfig.o: dynconfig.c Makefile
1251 @echo Compiling $*.c
1252 @$(COMPILE_CC_PATH) && exit 0;\
1253 echo "The following command failed:" 1>&2;\
1254 echo "$(COMPILE_CC_PATH)" 1>&2;\
1255 $(COMPILE_CC_PATH) >/dev/null 2>&1
1257 lib/pidfile.o: lib/pidfile.c
1258 @echo Compiling $*.c
1259 @$(COMPILE_CC_PATH) && exit 0;\
1260 echo "The following command failed:" 1>&2;\
1261 echo "$(COMPILE_CC_PATH)" 1>&2;\
1262 $(COMPILE_CC_PATH) >/dev/null 2>&1
1264 lib/version.o: lib/version.c include/version.h
1265 @echo Compiling $*.c
1266 @$(COMPILE_CC_PATH) && exit 0;\
1267 echo "The following command failed:" 1>&2;\
1268 echo "$(COMPILE_CC_PATH)" 1>&2;\
1269 $(COMPILE_CC_PATH) >/dev/null 2>&1
1271 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1272 @echo Compiling $*.c
1273 @$(COMPILE_CC_PATH) && exit 0;\
1274 echo "The following command failed:" 1>&2;\
1275 echo "$(COMPILE_CC_PATH)" 1>&2;\
1276 $(COMPILE_CC_PATH) >/dev/null 2>&1
1278 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1279 @echo Generating $@
1280 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1282 bin/.dummy:
1283 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1284 dir=bin $(MAKEDIR); fi
1285 @: >> $@ || : > $@ # what a fancy emoticon!
1287 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1288 @echo Linking $@
1289 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1290 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1291 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1292 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1293 $(WINBIND_LIBS)
1295 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1296 @echo Linking $@
1297 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1298 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1299 $(KRB5LIBS) $(LDAP_LIBS)
1301 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1302 @echo Linking $@
1303 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1304 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1305 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1307 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1308 @echo Linking $@
1309 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1310 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1311 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1312 $(WINBIND_LIBS)
1314 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1315 @echo Linking $@
1316 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1317 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1318 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1319 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1321 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1322 @echo Linking $@
1323 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1324 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1325 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1326 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBNETAPI_LIBS)
1328 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1329 @echo Linking $@
1330 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1331 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1333 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1334 @echo Linking $@
1335 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1336 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1338 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1339 @echo Linking $@
1340 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1342 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1343 @echo Linking $@
1344 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1346 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1347 @echo Linking $@
1348 @$(CC) $(FLAGS) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1349 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ1) $(KRB5LIBS) \
1350 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(WINBIND_LIBS) \
1351 $(LIBTDB_LIBS)
1353 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1354 @echo Linking $@
1355 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1356 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1358 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1359 @echo Linking $@
1360 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1361 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1363 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1364 @echo Linking $@
1365 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1366 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1367 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1368 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1370 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1371 @echo Linking $@
1372 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1373 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1374 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1376 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1377 @echo Linking $@
1378 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1379 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1380 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1382 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1383 @echo Linking $@
1384 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1385 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1386 $(LIBTDB_LIBS) $(WINBIND_LIBS)
1388 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1389 @echo Linking $@
1390 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1391 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1392 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1394 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1395 @echo Linking $@
1396 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1397 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1399 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1400 @echo Linking $@
1401 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1402 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1403 $(LIBTDB_LIBS)
1405 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1406 @echo Linking $@
1407 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1408 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1409 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1411 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1412 @echo Linking $@
1413 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1414 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1416 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1417 @echo Linking $@
1418 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1419 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1420 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1422 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1423 @echo Linking $@
1424 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1425 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1426 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1428 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1429 @echo Linking $@
1430 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1431 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1432 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1434 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1435 @echo Linking $@
1436 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1437 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1438 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1440 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1441 @echo Linking $@
1442 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1443 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1444 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1446 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1447 @echo Linking $@
1448 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1449 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1451 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1452 @echo Linking $@
1453 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1454 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1456 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1457 @echo Linking $@
1458 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1459 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1460 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1462 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1463 @echo Linking $@
1464 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1465 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1466 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1468 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1469 @echo Linking $@
1470 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1471 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1472 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1474 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1475 @echo Linking $@
1476 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1477 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1478 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1479 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1480 $(WINBIND_LIBS)
1482 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1483 @echo Linking $@
1484 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1485 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1486 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1488 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1489 @echo Linking $@
1490 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1491 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1493 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1494 @echo Linking $@
1495 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1496 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1497 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1499 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1500 @echo Linking $@
1501 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1502 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1504 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1505 @echo Linking $@
1506 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1507 $(LIBS) $(LIBTALLOC_LIBS)
1509 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1510 @echo Linking $@
1511 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1512 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1513 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1515 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1516 @echo Linking $@
1517 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1518 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1519 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1521 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1522 @echo Linking $@
1523 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1524 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1525 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1527 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1528 @echo Linking $@
1529 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1530 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1531 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1533 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1534 @echo Linking $@
1535 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1536 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1537 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1539 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1540 @echo Linking $@
1541 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1542 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1543 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1546 #####################################################################
1548 # libraries
1550 #####################################################################
1552 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1555 #-------------------------------------------------------------------
1557 # libtalloc
1559 #-------------------------------------------------------------------
1561 TALLOC_OBJ = @TALLOC_OBJS@
1563 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
1564 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1566 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1567 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1568 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1569 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1570 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
1571 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1572 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1574 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1575 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1577 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1578 @echo Linking shared library $@
1579 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1581 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1582 @rm -f $@
1583 @ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1585 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1586 @echo Linking non-shared library $@
1587 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1589 libtalloc: $(LIBTALLOC)
1591 cleanlibtalloc::
1592 -rm -f \
1593 $(LIBTALLOC_SYMS) \
1594 $(LIBTALLOC_STATIC_TARGET) \
1595 $(LIBTALLOC_SHARED_TARGET) \
1596 $(LIBTALLOC_SHARED_TARGET_SONAME)
1598 installlibtalloc:: installdirs libtalloc
1599 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1600 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1601 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1602 -if test -e $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1603 ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1604 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1606 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1607 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1608 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1610 uninstalllibtalloc::
1611 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1612 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1613 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1614 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1616 libs:: libtalloc
1617 installlibs:: @INSTALL_LIBTALLOC@
1618 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1619 cleanlibs:: cleanlibtalloc
1620 shlibs test_shlibs: @LIBTALLOC_SHARED@
1622 #-------------------------------------------------------------------
1624 # libtdb
1626 #-------------------------------------------------------------------
1628 LIBTDB_OBJ0 = @TDB_OBJS@
1629 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1631 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1632 LIBTDB_SOVER=@LIBTDB_SOVER@
1633 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1634 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1635 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
1636 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1637 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1639 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1640 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1642 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1643 @echo Linking shared library $@
1644 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1645 @SONAMEFLAG@`basename $@`
1647 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1648 @rm -f $@
1649 @ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1651 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1652 @echo Linking non-shared library $@
1653 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1655 libtdb: $(LIBTDB)
1657 cleanlibtdb::
1658 -rm -f \
1659 $(LIBTDB_SYMS) \
1660 $(LIBTDB_STATIC_TARGET) \
1661 $(LIBTDB_SHARED_TARGET) \
1662 $(LIBTDB_SHARED_TARGET_SONAME)
1665 installlibtdb:: installdirs libtdb
1666 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1667 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1668 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1669 -if test -e $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1670 ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1671 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1673 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1674 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1675 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1677 uninstalllibtdb::
1678 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1679 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1680 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1681 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1683 libs:: libtdb
1684 installlibs:: @INSTALL_LIBTDB@
1685 uninstalllibs:: @UNINSTALL_LIBTDB@
1686 cleanlibs:: cleanlibtdb
1687 shlibs test_shlibs: @LIBTDB_SHARED@
1689 #-------------------------------------------------------------------
1691 # libwbclient
1693 #-------------------------------------------------------------------
1695 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
1696 nsswitch/libwbclient/wbc_util.o \
1697 nsswitch/libwbclient/wbc_pwd.o \
1698 nsswitch/libwbclient/wbc_idmap.o \
1699 nsswitch/libwbclient/wbc_sid.o \
1700 nsswitch/libwbclient/wbc_pam.o
1701 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1702 $(WBCOMMON_OBJ) \
1703 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
1705 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1706 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1707 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1708 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1709 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1710 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1711 LIBWBCLIENT_HEADERS=$(srcdir)/nsswitch/libwbclient/wbclient.h
1713 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1714 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1716 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_SHARED@
1717 @echo Linking shared library $@
1718 @$(SHLD_DSO) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_OBJ) \
1719 @SONAMEFLAG@`basename $@`
1721 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1722 @rm -f $@
1723 @ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1725 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1726 @echo Linking non-shared library $@
1727 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1729 libwbclient: $(LIBWBCLIENT)
1731 cleanlibwbclient::
1732 -rm -f \
1733 $(LIBWBCLIENT_SYMS) \
1734 $(LIBWBCLIENT_STATIC_TARGET) \
1735 $(LIBWBCLIENT_SHARED_TARGET) \
1736 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1738 installlibwbclient:: installdirs libwbclient
1739 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1740 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1741 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1742 -if test -e $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1743 ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1744 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1746 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1747 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1749 uninstalllibwbclient::
1750 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1751 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1752 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1754 libs:: libwbclient
1755 installlibs:: @INSTALL_LIBWBCLIENT@
1756 uninstalllibs:: uninstalllibwbclient
1757 cleanlibs:: cleanlibwbclient
1758 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1761 #-------------------------------------------------------------------
1763 # libaddns
1765 #-------------------------------------------------------------------
1768 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1769 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1770 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1771 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1772 LIBADDNS=$(LIBADDNS_STATIC_TARGET) @LIBADDNS_SHARED@
1773 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1774 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1776 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1777 @echo Linking shared library $@
1778 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1779 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1780 @SONAMEFLAG@`basename $@`
1782 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1783 @rm -f $@
1784 @ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1786 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1787 @echo Linking non-shared library $@
1788 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1790 libaddns: $(LIBADDNS)
1792 cleanlibaddns::
1793 -rm -f \
1794 $(LIBADDNS_SHARED_TARGET) \
1795 $(LIBADDNS_SHARED_TARGET_SONAME) \
1796 $(LIBADDNS_STATIC_TARGET)
1798 installlibaddns:: installdirs libaddns
1799 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1800 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1801 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1802 -if test -e $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1803 ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1804 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1806 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1808 uninstalllibaddns::
1809 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1810 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1811 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
1813 libs:: libaddns
1814 installlibs:: @INSTALL_LIBADDNS@
1815 uninstalllibs:: @UNINSTALL_LIBADDNS@
1816 cleanlibs:: cleanlibaddns
1817 shlibs test_shlibs: @LIBADDNS_SHARED@
1819 #-------------------------------------------------------------------
1821 # libnetapi
1823 #-------------------------------------------------------------------
1825 LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
1826 lib/netapi/cm.o \
1827 librpc/gen_ndr/ndr_libnetapi.o \
1828 lib/netapi/libnetapi.o \
1829 lib/netapi/joindomain.o \
1830 lib/netapi/serverinfo.o \
1831 lib/netapi/getdc.o \
1832 lib/netapi/user.o \
1833 lib/netapi/group.o \
1834 lib/netapi/localgroup.o \
1835 lib/netapi/samr.o \
1836 lib/netapi/sid.o
1838 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
1839 $(LIBSMBCONF_OBJ) \
1840 $(REG_SMBCONF_OBJ) \
1841 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
1842 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1843 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1844 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1845 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
1846 auth/token_util.o
1848 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
1849 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
1850 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
1851 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
1852 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
1853 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
1854 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
1856 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
1857 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
1859 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1860 @echo Linking shared library $@
1861 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1862 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1863 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1864 @SONAMEFLAG@`basename $@`
1866 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
1867 @rm -f $@
1868 @ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
1870 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ1)
1871 @echo Linking non-shared library $@
1872 @-$(AR) -rc $@ $(LIBNETAPI_OBJ1)
1874 libnetapi: $(LIBNETAPI)
1876 cleanlibnetapi::
1877 -rm -f \
1878 $(LIBNETAPI_SYMS) \
1879 $(LIBNETAPI_STATIC_TARGET) \
1880 $(LIBNETAPI_SHARED_TARGET) \
1881 $(LIBNETAPI_SHARED_TARGET_SONAME)
1883 installlibnetapi:: installdirs libnetapi
1884 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1885 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1886 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1887 -if test -e $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
1888 ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
1889 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
1891 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1892 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1893 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
1895 uninstalllibnetapi::
1896 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1897 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
1898 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
1899 -rm -f $(DESTDIR)${prefix}/include/netapi.h
1901 libs:: libnetapi
1902 installlibs:: @INSTALL_LIBNETAPI@
1903 uninstalllibs:: @UNINSTALL_LIBNETAPI@
1904 cleanlibs:: cleanlibnetapi
1905 shlibs test_shlibs: @LIBNETAPI_SHARED@
1907 #-------------------------------------------------------------------
1909 # libsmbclient
1911 #-------------------------------------------------------------------
1913 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
1914 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
1915 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
1916 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
1917 LIBSMBCLIENT=$(LIBSMBCLIENT_STATIC_TARGET) @LIBSMBCLIENT_SHARED@
1918 #LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
1919 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
1921 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1922 @echo Linking shared library $@
1923 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
1924 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1925 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1926 @SONAMEFLAG@`basename $@`
1928 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
1929 @rm -f $@
1930 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
1932 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
1933 @echo Linking non-shared library $@
1934 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
1936 libsmbclient: $(LIBSMBCLIENT)
1938 cleanlibsmbclient::
1939 -rm -f \
1940 $(LIBSMBCLIENT_SHARED_TARGET) \
1941 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
1942 $(LIBSMBCLIENT_STATIC_TARGET)
1944 installlibsmbclient:: installdirs libsmbclient
1945 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1946 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1947 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1948 -if test -e $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
1949 ln -s -f `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
1950 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
1952 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1953 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1954 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1956 installclientlib:: installlibsmbclient
1958 uninstalllibsmbclient::
1959 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1960 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
1961 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
1962 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
1964 uninstallclientlib:: uninstalllibsmbclient
1966 libs:: libsmbclient
1967 installlibs:: @INSTALL_LIBSMBCLIENT@
1968 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
1969 cleanlibs:: cleanlibsmbclient
1970 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
1972 #-------------------------------------------------------------------
1974 # libsmbsharemodes
1976 #-------------------------------------------------------------------
1978 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
1980 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0) @LIBTDB_STATIC@
1982 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
1983 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
1984 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
1985 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
1986 LIBSMBSHAREMODES=$(LIBSMBSHAREMODES_STATIC_TARGET) @LIBSMBSHAREMODES_SHARED@
1987 #LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
1988 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
1990 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
1992 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1993 @echo Linking shared library $@
1994 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
1995 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1996 $(KRB5LIBS) $(LDAP_LIBS) \
1997 @SONAMEFLAG@`basename $@`
1999 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2000 @rm -f $@
2001 @ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2003 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2004 @echo Linking non-shared library $@
2005 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2007 libsmbsharemodes: $(LIBSMBSHAREMODES)
2009 cleanlibsmbsharemodes::
2010 -rm -f \
2011 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2012 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2013 $(LIBSMBSHAREMODES_STATIC_TARGET)
2015 installlibsmbsharemodes:: installdirs libsmbsharemodes
2016 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2017 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2018 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2019 -if test -e $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2020 ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2021 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2023 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2024 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2025 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2027 uninstalllibsmbsharemodes::
2028 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2029 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2030 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2031 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2033 libs:: libsmbsharemodes
2034 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2035 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2036 cleanlibs:: cleanlibsmbsharemodes
2037 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2039 #-------------------------------------------------------------------
2041 # libbigballofmud
2043 #-------------------------------------------------------------------
2045 # This is probably wrong for anything other than the GNU linker.
2046 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
2047 @echo Linking shared library $@
2048 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2049 $(LIBS) $(LIBTALLOC_LIBS) \
2050 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2051 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2052 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2054 # It would be nice to build a static bigballofmud too, but when I try
2055 # I get linker errors about dl_open and similar things. I'm not sure if
2056 # it can be fixed or if they just can't be called from a static
2057 # library.
2061 #####################################################################
2063 # shared modules
2065 #####################################################################
2067 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2068 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2069 -o $@ @SONAMEFLAG@`basename $@`
2071 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2072 @echo "Linking $@"
2073 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2075 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2076 @echo "Linking $@"
2077 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2079 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2080 @echo "Linking $@"
2081 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2083 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2084 @echo "Linking $@"
2085 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2087 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2088 @echo "Linking $@"
2089 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2091 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2092 @echo "Linking $@"
2093 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2095 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2096 @echo "Linking $@"
2097 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2099 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2100 @echo "Linking $@"
2101 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2103 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2104 @echo "Linking $@"
2105 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2107 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2108 @echo "Linking $@"
2109 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2111 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2112 @echo "Linking $@"
2113 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2115 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2116 @echo "Linking $@"
2117 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2119 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2120 @echo "Linking $@"
2121 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2123 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2124 @echo "Linking $@"
2125 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2127 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2128 @echo "Linking $@"
2129 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2130 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2131 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2133 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2134 @echo "Linking $@"
2135 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2136 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2137 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2138 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2140 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2141 @echo "Linking $@"
2142 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2143 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2144 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2146 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2147 @echo "Linking $@"
2148 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2149 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2150 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2152 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
2153 @echo "Linking $@"
2154 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
2155 @SONAMEFLAG@`basename $@`
2157 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
2158 @echo "Linking shared library $@"
2159 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2160 $(PAM_WINBIND_EXTRA_LIBS) @SONAMEFLAG@`basename $@`
2162 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2163 @echo "Building plugin $@"
2164 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2166 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2167 @echo "Building plugin $@"
2168 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2170 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2171 @echo "Building plugin $@"
2172 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2174 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2175 @echo "Building plugin $@"
2176 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2178 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2179 @echo "Building plugin $@"
2180 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2182 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2183 @echo "Building plugin $@"
2184 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2186 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2187 @echo "Building plugin $@"
2188 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2190 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2191 @echo "Building plugin $@"
2192 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2194 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2195 @echo "Building plugin $@"
2196 @$(SHLD_MODULE) passdb/pdb_tdb.o
2198 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2199 @echo "Building plugin $@"
2200 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2202 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2203 @echo "Building plugin $@"
2204 @$(SHLD_MODULE) winbindd/idmap_rid.o
2206 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2207 @echo "Building plugin $@"
2208 @$(SHLD_MODULE) winbindd/idmap_ad.o
2210 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2211 @echo "Building plugin $@"
2212 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2214 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2215 @echo "Building plugin $@"
2216 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2218 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2219 @echo "Building plugin $@"
2220 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2222 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2223 @echo "Building plugin $@"
2224 @$(SHLD_MODULE) $(CP850_OBJ)
2226 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2227 @echo "Building plugin $@"
2228 @$(SHLD_MODULE) $(CP437_OBJ)
2230 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2231 @echo "Building plugin $@"
2232 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2234 # NOTE, there is no build rule for a dynamic default VFS module because
2235 # this one MUST MUST MUST be built statically.
2237 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2238 @echo "Building plugin $@"
2239 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2241 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2242 @echo "Building plugin $@"
2243 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2245 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2246 @echo "Building plugin $@"
2247 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2249 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2250 @echo "Building plugin $@"
2251 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2253 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2254 @echo "Building plugin $@"
2255 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2257 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2258 @echo "Building plugin $@"
2259 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2261 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2262 @echo "Building plugin $@"
2263 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2265 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2266 @echo "Building plugin $@"
2267 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2269 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2270 @echo "Building plugin $@"
2271 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2273 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2274 @echo "Building plugin $@"
2275 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2277 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2278 @echo "Building plugin $@"
2279 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2281 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2282 @echo "Building plugin $@"
2283 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2285 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2286 @echo "Building plugin $@"
2287 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2289 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2290 @echo "Building plugin $@"
2291 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2293 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2294 @echo "Building plugin $@"
2295 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2297 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2298 @echo "Building plugin $@"
2299 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2301 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2302 @echo "Building plugin $@"
2303 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2305 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2306 @echo "Building plugin $@"
2307 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2309 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2310 @echo "Building plugin $@"
2311 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2313 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2314 @echo "Building plugin $@"
2315 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2317 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2318 @echo "Building plugin $@"
2319 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2321 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2322 @echo "Building plugin $@"
2323 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2325 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2326 @echo "Building plugin $@"
2327 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2329 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2330 @echo "Building plugin $@"
2331 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2333 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2334 @echo "Building plugin $@"
2335 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2337 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2338 @echo "Building plugin $@"
2339 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2341 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2342 @echo "Building plugin $@"
2343 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2345 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2346 @echo "Building plugin $@"
2347 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2349 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2350 @echo "Building plugin $@"
2351 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2353 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2354 @echo "Building plugin $@"
2355 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2357 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2358 @echo "Building plugin $@"
2359 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2361 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2362 @echo "Building plugin $@"
2363 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2365 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2366 @echo "Building plugin $@"
2367 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2369 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2370 @echo "Building plugin $@"
2371 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2373 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2374 @echo "Building plugin $@"
2375 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2377 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2378 @echo "Building plugin $@"
2379 @$(SHLD_MODULE) libgpo/gpext/registry.o
2381 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2382 @echo "Building plugin $@"
2383 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2385 #########################################################
2386 ## IdMap NSS plugins
2388 ## None here right now
2389 #########################################################
2391 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2392 @echo Linking $@
2393 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2394 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2395 $(WINBIND_LIBS)
2397 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2398 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2399 @echo Linking $@
2400 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2401 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2402 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2403 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2405 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2406 @echo "Linking shared library $@"
2407 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2408 $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
2409 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2411 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2412 @echo Linking $@
2413 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2414 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2416 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2417 @echo Linking $@
2418 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2419 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2421 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2422 @echo Linking $@
2423 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2424 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2426 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2427 @echo Linking $@
2428 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2429 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2431 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2432 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2433 torture/t_strcmp.o -L ./bin -lbigballofmud
2435 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2436 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2437 torture/t_strstr.o -L ./bin -lbigballofmud
2439 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2440 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2441 torture/t_strappend.o -L ./bin -lbigballofmud
2443 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2444 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2445 -L./bin -lbigballofmud
2447 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2448 @echo Linking $@
2449 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
2451 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2452 @echo "Linking $@"
2453 @$(CC) $(FLAGS) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2454 $(LIBS) $(LIBTALLOC_LIBS) @LIBTDB_SHARED@ $(WINBIND_LIBS) \
2455 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2457 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2458 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2459 @INSTALL_PAM_MODULES@ installlibs
2461 install-everything:: install installmodules
2463 # DESTDIR is used here to prevent packagers wasting their time
2464 # duplicating the Makefile. Remove it and you will have the privelege
2465 # of package each samba release for muliple versions of multiple
2466 # distributions and operating systems, or at least supplying patches
2467 # to all the packaging files required for this, prior to committing
2468 # the removal of DESTDIR. Do not remove it even though you think it
2469 # is not used
2471 installdirs::
2472 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
2474 installservers:: all installdirs
2475 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2477 installbin:: all installdirs
2478 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2480 installcifsmount:: @CIFSMOUNT_PROGS@
2481 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2482 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2484 installcifsupcall:: @CIFSUPCALL_PROGS@
2485 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2486 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2488 # Some symlinks are required for the 'probing' of modules.
2489 # This mechanism should go at some point..
2490 installmodules:: modules installdirs
2491 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2492 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2493 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2494 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2495 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2496 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2497 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2498 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2499 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2500 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2501 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2502 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2503 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2504 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2505 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2506 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2508 installscripts:: installdirs
2509 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2511 installdat:: installdirs
2512 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2514 installmsg:: installdirs
2515 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2517 installswat:: installdirs installmsg
2518 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2520 installpammodules:: $(PAM_MODULES)
2521 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2522 @for module in $(PAM_MODULES); do \
2523 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2524 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2525 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2526 done
2528 # revert to the previously installed version
2529 revert::
2530 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2531 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2533 installman:: installdirs
2534 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2536 .PHONY: showlayout
2538 showlayout::
2539 @echo "Samba will be installed into:"
2540 @echo " prefix: $(prefix)"
2541 @echo " bindir: $(BINDIR)"
2542 @echo " sbindir: $(SBINDIR)"
2543 @echo " libdir: $(LIBDIR)"
2544 @echo " vardir: $(VARDIR)"
2545 @echo " mandir: $(MANDIR)"
2546 @echo " privatedir: $(PRIVATE_DIR)"
2547 @echo " configdir: $(CONFIGDIR)"
2548 @echo " lockdir: $(LOCKDIR)"
2549 @echo " piddir: $(PIDDIR)"
2550 @echo " swatdir: $(SWATDIR)"
2553 uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2555 uninstallman::
2556 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2558 uninstallservers::
2559 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2561 uninstallbin::
2562 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2564 uninstallcifsmount::
2565 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2567 uninstallcifsupcall::
2568 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2570 uninstallmodules::
2571 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2572 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2573 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2574 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2575 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2576 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2577 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2579 uninstallscripts::
2580 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2582 uninstalldat::
2583 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2585 uninstallmsg::
2586 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2588 uninstallswat:: uninstallmsg
2589 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2591 uninstallpammodules::
2592 @for module in $(PAM_MODULES); do \
2593 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2594 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2595 done
2597 # Toplevel clean files
2598 TOPFILES=dynconfig.o
2600 clean:: cleanlibs
2601 -rm -f include/build_env.h
2602 -rm -f smbd/build_options.c
2603 -rm -f $(PRECOMPILED_HEADER)
2604 -rm -f core */*~ *~ \
2605 */*.o */*/*.o */*/*/*.o \
2606 ../testsuite/*/*.o \
2607 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2608 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2609 $(MODULES) $(TORTURE_PROGS) \
2610 $(EVERYTHING_PROGS) \
2611 bin/timelimit \
2612 .headers.stamp */src/*.o
2613 -rm -rf t_dir
2615 include/build_env.h: script/build_env.sh
2616 @echo Building include/build_env.h
2617 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2618 > $(builddir)/include/build_env.h
2620 proto::
2621 @echo
2622 @echo "NOTE: 'proto' is no longer a valid make target as proto.h"
2623 @echo "and other prototype headers are not generated anymore."
2624 @echo
2626 .PHONY: proto
2628 etags:
2629 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2631 ctags:
2632 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2634 realclean:: clean
2635 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2636 -rm -f script/installbin.sh script/uninstallbin.sh
2638 distclean:: realclean
2639 -rm -f smbadduser
2640 -rm -f include/config.h Makefile
2641 -rm -f config.status config.cache so_locations
2642 -rm -rf .deps TAGS
2644 realdistclean:: distclean
2645 -rm -f include/config.h.in
2646 -rm -f include/version.h
2647 -rm -f configure
2649 # this target is really just for my use. It only works on a limited
2650 # range of machines and is used to produce a list of potentially
2651 # dead (ie. unused) functions in the code. (tridge)
2652 finddead::
2653 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2654 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2655 comm -13 nmused.txt nmfns.txt
2658 # when configure.in is updated, reconfigure
2659 $(srcdir)/configure: $(srcdir)/configure.in
2660 @echo "WARNING: you need to rerun ./autogen.sh"
2662 config.status: $(srcdir)/configure
2663 @echo "WARNING: you need to run ./configure"
2665 Makefile: $(srcdir)/Makefile.in config.status
2666 @echo "WARNING: you need to run ./config.status"
2668 ######################################################################
2669 # Samba Testing Framework
2671 # Check shared libs for unresolved symbols
2672 test_shlibs:
2673 @echo "Testing $? "
2674 @export $(LIB_PATH_VAR)=./bin && \
2675 for module in $?; do \
2676 ./script/tests/dlopen.sh $${module} \
2677 || exit 1; \
2678 done
2680 # Check for NSS module problems.
2681 test_nss_modules:: nss_modules
2682 @echo "Testing $(NSS_MODULES) "
2683 @export $(LIB_PATH_VAR)=./bin && \
2684 for module in $(NSS_MODULES); do \
2685 ./script/tests/dlopen.sh $${module} \
2686 || exit 1; \
2687 done
2689 # Check for PAM module problems. Specifically, check that every module we
2690 # built can actually be loaded by a minimal PAM-aware application.
2691 test_pam_modules:: pam_modules
2692 @echo "Testing $(PAM_MODULES) "
2693 @export $(LIB_PATH_VAR)=./bin && \
2694 for module in $(PAM_MODULES); do \
2695 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2696 || exit 1; \
2697 done
2701 ## Targets for 'make test'
2703 test:: all torture timelimit
2704 @echo Running Test suite
2705 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2707 valgrindtest:: all torture timelimit
2708 @echo Running Test suite with valgrind
2709 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2710 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2711 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2712 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2713 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2714 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"