s3-libnet: fix build warning (missing prototype).
[Samba.git] / source / Makefile.in
blob5e1aed46f6a4f8f1675868731f0aad8fe7f78a69
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 MODULESDIR = @modulesdir@
103 INCLUDEDIR=@includedir@
104 PAMMODULESDIR = @pammodulesdir@
105 VFSLIBDIR = $(MODULESDIR)/vfs
106 PDBLIBDIR = $(MODULESDIR)/pdb
107 RPCLIBDIR = $(MODULESDIR)/rpc
108 IDMAPLIBDIR = $(MODULESDIR)/idmap
109 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
110 CHARSETLIBDIR = $(MODULESDIR)/charset
111 AUTHLIBDIR = $(MODULESDIR)/auth
112 CONFIGLIBDIR = $(MODULESDIR)/config
113 GPEXTLIBDIR = $(MODULESDIR)/gpext
114 CONFIGDIR = @configdir@
115 VARDIR = @localstatedir@
116 MANDIR = @mandir@
117 DATADIR = @datadir@
119 # The permissions to give the executables and other data
120 INSTALLPERMS_BIN = 0755
121 INSTALLPERMS_DATA = 0644
123 # set these to where to find various files
124 # These can be overridden by command line switches (see smbd(8))
125 # or in smb.conf (see smb.conf(5))
126 LOGFILEBASE = @logfilebase@
127 CONFIGFILE = $(CONFIGDIR)/smb.conf
128 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
129 CTDBDIR = @ctdbdir@
131 # This is where smbpasswd et al go
132 PRIVATEDIR = @privatedir@
134 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
135 PRIVATE_DIR = $(PRIVATEDIR)
137 # This is where SWAT images and help files go
138 SWATDIR = @swatdir@
140 # This is where locale(mo) files go
141 LOCALEDIR= @localedir@
143 # the directory where lock files go
144 LOCKDIR = @lockdir@
146 # FHS directories; equal to LOCKDIR if not using --with-fhs
147 CACHEDIR = @cachedir@
148 STATEDIR = @statedir@
150 # Where to look for (and install) codepage databases.
151 CODEPAGEDIR = @codepagedir@
153 # the directory where pid files go
154 PIDDIR = @piddir@
156 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
157 FLAGS2 =
158 FLAGS3 =
159 FLAGS4 = -I$(CTDBDIR)/include
160 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
161 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
163 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
164 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
165 -DCONFIGFILE=\"$(CONFIGFILE)\" \
166 -DSBINDIR=\"$(SBINDIR)\" \
167 -DBINDIR=\"$(BINDIR)\" \
168 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
169 -DSWATDIR=\"$(SWATDIR)\" \
170 -DLOCKDIR=\"$(LOCKDIR)\" \
171 -DPIDDIR=\"$(PIDDIR)\" \
172 -DLIBDIR=\"$(LIBDIR)\" \
173 -DMODULESDIR=\"$(MODULESDIR)\" \
174 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
175 -DSHLIBEXT=\"@SHLIBEXT@\" \
176 -DCTDBDIR=\"$(CTDBDIR)\" \
177 -DCONFIGDIR=\"$(CONFIGDIR)\" \
178 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
179 -DCACHEDIR=\"$(CACHEDIR)\" \
180 -DSTATEDIR=\"$(STATEDIR)\" \
181 -DLOCALEDIR=\"$(LOCALEDIR)\"
183 # Note that all executable programs now provide for an optional executable suffix.
185 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
187 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@
189 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
190 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
191 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
192 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
193 bin/tdbtool@EXEEXT@
194 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
195 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
196 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
197 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
198 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
200 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
201 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
202 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
203 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
204 bin/tdbtorture@EXEEXT@ \
205 bin/smbconftort@EXEEXT@
207 BIN_PROGS = @EXTRA_BIN_PROGS@ \
208 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
210 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
211 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
212 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
213 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@
215 PAM_MODULES = @PAM_MODULES@
217 NSS_MODULES = @NSS_MODULES@
219 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
221 VFS_MODULES = @VFS_MODULES@
222 PDB_MODULES = @PDB_MODULES@
223 RPC_MODULES = @RPC_MODULES@
224 IDMAP_MODULES = @IDMAP_MODULES@
225 CHARSET_MODULES = @CHARSET_MODULES@
226 AUTH_MODULES = @AUTH_MODULES@
227 NSS_INFO_MODULES = @NSS_INFO_MODULES@
228 GPEXT_MODULES = @GPEXT_MODULES@
229 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
230 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
231 $(GPEXT_MODULES)
233 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
235 #####################################################################
236 # object file lists
237 ######################################################################
239 TDB_OBJ = lib/util_tdb.o \
240 lib/dbwrap.o lib/dbwrap_tdb.o \
241 lib/dbwrap_ctdb.o \
242 lib/dbwrap_rbt.o @LIBTDB_STATIC@
244 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
246 VERSION_OBJ = lib/version.o
248 WBCOMMON_OBJ = nsswitch/wb_common.o
250 AFS_OBJ = lib/afs.o
252 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
254 SERVER_MUTEX_OBJ = lib/server_mutex.o
256 PASSCHANGE_OBJ = libsmb/passchange.o
258 LIBNDR_DRSUAPI_OBJ = librpc/ndr/ndr_drsuapi.o \
259 librpc/ndr/ndr_compression.o \
260 librpc/gen_ndr/ndr_drsuapi.o \
261 librpc/gen_ndr/ndr_drsblobs.o
263 COMPRESSION_OBJ = lib/compression/mszip.o
265 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
266 $(COMPRESSION_OBJ)
268 LIBNDR_OBJ = librpc/ndr/ndr_basic.o \
269 librpc/ndr/ndr.o \
270 librpc/ndr/ndr_misc.o \
271 librpc/gen_ndr/ndr_misc.o \
272 librpc/gen_ndr/ndr_security.o \
273 librpc/ndr/ndr_sec_helper.o \
274 librpc/ndr/ndr_string.o \
275 librpc/ndr/sid.o \
276 librpc/ndr/uuid.o
278 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
280 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
281 librpc/gen_ndr/ndr_lsa.o
283 LIBNDR_GEN_OBJ1 = librpc/gen_ndr/ndr_netlogon.o \
284 librpc/ndr/ndr_netlogon.o
286 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
287 $(LIBNDR_GEN_OBJ0) \
288 librpc/gen_ndr/ndr_dfs.o \
289 librpc/gen_ndr/ndr_echo.o \
290 librpc/gen_ndr/ndr_winreg.o \
291 librpc/gen_ndr/ndr_initshutdown.o \
292 librpc/gen_ndr/ndr_srvsvc.o \
293 librpc/gen_ndr/ndr_eventlog.o \
294 $(LIBNDR_GEN_OBJ1) \
295 librpc/gen_ndr/ndr_dssetup.o \
296 librpc/gen_ndr/ndr_notify.o \
297 librpc/gen_ndr/ndr_xattr.o \
298 librpc/gen_ndr/ndr_epmapper.o \
299 librpc/gen_ndr/ndr_ntsvcs.o
301 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
303 # this includes only the low level parse code, not stuff
304 # that requires knowledge of security contexts
305 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
307 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
308 rpc_client/init_netlogon.o \
309 rpc_client/init_lsa.o \
310 rpc_client/init_srvsvc.o
312 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
314 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
315 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
317 LIBSAMBAUTIL_OBJ = @LIBTALLOC_STATIC@ \
318 $(LIBREPLACE_OBJ) \
319 $(SOCKET_WRAPPER_OBJ) \
320 $(NSS_WRAPPER_OBJ)
322 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) \
323 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
324 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
325 lib/interfaces.o lib/rbtree.o lib/memcache.o \
326 lib/util_transfer_file.o lib/async_req.o \
327 lib/async_sock.o \
328 $(TDB_OBJ) \
329 $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
330 lib/interface.o lib/md4.o \
331 lib/pidfile.o \
332 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
333 lib/ufc.o lib/genrand.o lib/username.o \
334 lib/util_pw.o lib/access.o lib/smbrun.o \
335 lib/bitmap.o lib/crc32.o lib/dprintf.o \
336 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
337 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
338 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
339 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
340 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
341 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
342 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
343 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
344 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
345 lib/adt_tree.o lib/gencache.o \
346 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
347 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
348 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
349 lib/file_id.o lib/idmap_cache.o
351 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
352 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
354 READLINE_OBJ = lib/readline.o
356 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
357 # Be sure to include them into your application
358 POPT_LIB_OBJ = lib/popt_common.o
360 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
361 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
362 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
364 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
366 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
367 libaddns/dnsgss.o libaddns/dnsmarshall.o
368 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ) @LIBTALLOC_STATIC@
370 GPEXT_OBJ = libgpo/gpext/gpext.o @GPEXT_STATIC@
372 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
373 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o \
374 libgpo/gpo_reg.o \
375 $(GPEXT_OBJ)
376 LIBGPO_OBJ = $(LIBGPO_OBJ0)
378 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
379 libads/sasl.o libads/sasl_wrapping.o \
380 libads/krb5_setpw.o libads/ldap_user.o \
381 libads/ads_struct.o libads/kerberos_keytab.o \
382 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
383 libads/ldap_schema.o libads/util.o libads/ndr.o
385 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
386 librpc/ndr/ndr_krb5pac.o \
387 librpc/gen_ndr/ndr_krb5pac.o
389 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
391 LIBNBT_OBJ = libcli/nbt/nbtname.o \
392 libcli/ndr_netlogon.o \
393 libcli/netlogon.o \
394 librpc/gen_ndr/ndr_nbt.o \
395 librpc/gen_ndr/ndr_svcctl.o
397 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
398 libsmb/namequery.o libsmb/conncache.o libads/dns.o
400 NTERR_OBJ = libsmb/nterr.o
401 DOSERR_OBJ = libsmb/doserr.o
402 ERRORMAP_OBJ = libsmb/errormap.o
403 DCE_RPC_ERR_OBJ = libsmb/dcerpc_err.o
405 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ) \
406 libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ntlmssp_parse.o
408 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) \
409 $(RPC_PARSE_OBJ1) \
410 $(SECRETS_OBJ)
412 LIBSMB_OBJ0 = \
413 libsmb/ntlm_check.o \
414 libsmb/ntlmssp.o \
415 libsmb/ntlmssp_sign.o
417 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
418 $(LIBSMB_ERR_OBJ)
420 CLDAP_OBJ = libads/cldap.o
422 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
423 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
424 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
425 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
426 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
427 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
428 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
429 libsmb/clioplock.o libsmb/clirap2.o \
430 libsmb/smb_seal.o libsmb/async_smb.o \
431 $(LIBSAMBA_OBJ) \
432 $(LIBNMB_OBJ) \
433 $(LIBNBT_OBJ) \
434 $(CLDAP_OBJ) \
435 $(DRSUAPI_OBJ)
437 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
439 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
440 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
441 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
442 rpc_client/cli_svcctl.o \
443 rpc_client/init_samr.o \
444 librpc/rpc/dcerpc.o \
445 librpc/rpc/binding.o
447 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
448 librpc/gen_ndr/cli_dfs.o \
449 librpc/gen_ndr/cli_echo.o \
450 librpc/gen_ndr/cli_srvsvc.o \
451 librpc/gen_ndr/cli_svcctl.o \
452 librpc/gen_ndr/cli_winreg.o \
453 librpc/gen_ndr/cli_initshutdown.o \
454 librpc/gen_ndr/cli_eventlog.o \
455 librpc/gen_ndr/cli_wkssvc.o \
456 librpc/gen_ndr/cli_netlogon.o \
457 librpc/gen_ndr/cli_samr.o \
458 librpc/gen_ndr/cli_dssetup.o \
459 librpc/gen_ndr/cli_ntsvcs.o \
460 librpc/gen_ndr/cli_epmapper.o \
461 librpc/gen_ndr/cli_drsuapi.o \
462 $(LIBNDR_GEN_OBJ) \
463 $(RPCCLIENT_NDR_OBJ)
466 # registry-related objects
468 UTIL_REG_OBJ = lib/util_reg.o
469 UTIL_REG_API_OBJ = lib/util_reg_api.o
471 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
472 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
473 REG_INIT_FULL_OBJ = registry/reg_init_full.o
475 REGFIO_OBJ = registry/regfio.o
477 REGOBJS_OBJ = registry/reg_objects.o
479 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
481 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
483 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
484 registry/reg_backend_shares.o \
485 registry/reg_backend_netlogon_params.o \
486 registry/reg_backend_prod_options.o \
487 registry/reg_backend_tcpip_params.o \
488 registry/reg_backend_hkpt_params.o \
489 registry/reg_backend_current_version.o \
490 registry/reg_backend_perflib.o
492 REG_BASE_OBJ = registry/reg_api.o \
493 registry/reg_dispatcher.o \
494 registry/reg_cachehook.o \
495 $(REGFIO_OBJ) \
496 $(REGOBJS_OBJ) \
497 registry/reg_util.o \
498 $(UTIL_REG_API_OBJ) \
499 lib/util_nttoken.o \
500 $(REG_BACKENDS_BASE_OBJ) \
501 $(REG_INIT_BASIC_OBJ)
503 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
504 $(REG_BACKENDS_SMBCONF_OBJ) \
505 $(REG_INIT_SMBCONF_OBJ)
507 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
508 $(REG_BACKENDS_EXTRA_OBJ) \
509 $(REG_INIT_FULL_OBJ) \
510 registry/reg_eventlog.o \
511 registry/reg_perfcount.o \
512 registry/reg_util_legacy.o
515 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
517 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
518 librpc/gen_ndr/srv_netlogon.o
520 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
521 rpc_server/srv_samr_util.o \
522 librpc/gen_ndr/srv_samr.o
524 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
526 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
527 librpc/gen_ndr/srv_winreg.o
529 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
531 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
532 librpc/gen_ndr/srv_srvsvc.o
534 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
536 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
537 librpc/gen_ndr/srv_svcctl.o \
538 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
539 services/svc_netlogon.o services/svc_winreg.o \
540 services/svc_wins.o
542 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o \
543 librpc/gen_ndr/srv_ntsvcs.o
545 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
547 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
549 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
550 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
552 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
553 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
555 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
557 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
559 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \
560 rpc_parse/parse_spoolss.o \
561 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
562 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o
564 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
566 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
568 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
570 PRIVILEGES_OBJ = lib/privileges.o
572 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
574 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
575 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
576 passdb/util_unixsids.o passdb/lookup_sid.o \
577 passdb/login_cache.o @PDB_STATIC@ \
578 lib/account_pol.o $(PRIVILEGES_OBJ) \
579 lib/util_nscd.o lib/winbind_util.o
581 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
582 CP850_OBJ = modules/CP850.o
583 CP437_OBJ = modules/CP437.o
584 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
586 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
588 PROFILE_OBJ = profile/profile.o
589 PROFILES_OBJ = utils/profiles.o \
590 $(LIBSAMBA_OBJ) \
591 $(PARAM_OBJ) \
592 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
593 $(POPT_LIB_OBJ)
595 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
597 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
599 VFS_DEFAULT_OBJ = modules/vfs_default.o
600 VFS_AUDIT_OBJ = modules/vfs_audit.o
601 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
602 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
603 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
604 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
605 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
606 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
607 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
608 VFS_CAP_OBJ = modules/vfs_cap.o
609 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
610 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
611 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
612 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
613 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
614 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
615 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
616 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
617 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
618 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
619 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
620 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
621 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
622 VFS_CATIA_OBJ = modules/vfs_catia.o
623 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
624 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
625 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
626 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
627 VFS_COMMIT_OBJ = modules/vfs_commit.o
628 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
629 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
630 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
631 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
632 VFS_FILEID_OBJ = modules/vfs_fileid.o
633 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
634 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
635 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
636 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
637 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
639 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
641 SLCACHE_OBJ = libsmb/samlogon_cache.o
643 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
645 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
646 AUTH_DOMAIN_OBJ = auth/auth_domain.o
647 AUTH_SAM_OBJ = auth/auth_sam.o
648 AUTH_SERVER_OBJ = auth/auth_server.o
649 AUTH_UNIX_OBJ = auth/auth_unix.o
650 AUTH_WINBIND_OBJ = auth/auth_winbind.o
651 AUTH_SCRIPT_OBJ = auth/auth_script.o
653 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
654 auth/auth_compat.o auth/auth_ntlmssp.o \
655 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
657 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
659 SMBD_OBJ_MAIN = smbd/server.o
661 BUILDOPT_OBJ = smbd/build_options.o
663 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
664 smbd/utmp.o smbd/session.o smbd/map_username.o \
665 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
666 smbd/share_access.o smbd/fileio.o \
667 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
668 smbd/message.o smbd/nttrans.o smbd/pipes.o \
669 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
670 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
671 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
672 smbd/vfs.o smbd/statcache.o smbd/seal.o \
673 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
674 smbd/process.o smbd/service.o smbd/error.o \
675 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
676 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
677 smbd/change_trust_pw.o smbd/fake_file.o \
678 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
679 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
680 smbd/dmapi.o \
681 smbd/file_access.o \
682 smbd/dnsregister.o \
683 $(MANGLE_OBJ) @VFS_STATIC@
685 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
686 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
687 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
688 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
689 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
690 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
691 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
692 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
693 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
694 $(LIBSMBCONF_OBJ) \
695 $(PRIVILEGES_BASIC_OBJ)
697 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
698 printing/print_cups.o printing/print_generic.o \
699 printing/lpq_parse.o printing/load.o \
700 printing/print_iprint.o
702 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
703 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
705 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
707 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
708 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
709 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
710 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
711 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
712 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
713 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
714 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
715 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
716 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
717 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
718 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
720 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
721 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
722 $(LIBNDR_GEN_OBJ0)
724 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
725 web/swat.o web/neg_lang.o
727 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
728 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(KRBCLIENT_OBJ) \
729 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
730 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
731 $(PASSCHANGE_OBJ) $(LDB_OBJ)
733 STATUS_OBJ = utils/status.o utils/status_profile.o \
734 $(LOCKING_OBJ) $(PARAM_OBJ) \
735 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
736 $(LIBSAMBA_OBJ)
738 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
739 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
740 $(LIBSAMBA_OBJ) \
741 $(PRINTBASE_OBJ)
743 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
744 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
745 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
746 rpc_client/cli_pipe.o librpc/rpc/binding.o $(RPC_PARSE_OBJ2) \
747 $(RPC_CLIENT_OBJ1) \
748 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
749 $(LIBMSRPC_GEN_OBJ)
751 TESTPARM_OBJ = utils/testparm.o \
752 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
753 $(LIBSAMBA_OBJ)
755 PASSWD_UTIL_OBJ = utils/passwd_util.o
757 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
758 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
759 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
760 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
761 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
763 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
764 $(LIBSAMBA_OBJ) \
765 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
766 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
767 $(LDB_OBJ)
769 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
771 DISPLAY_SEC_OBJ= lib/display_sec.o
773 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
774 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
775 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
776 rpcclient/cmd_dfs.o \
777 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
778 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
779 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
780 rpcclient/cmd_drsuapi.o \
781 $(DISPLAY_SEC_OBJ)
783 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
784 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
785 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
786 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
787 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
788 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
790 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o localedir.o $(WBCOMMON_OBJ) \
791 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
793 LIBSMBCLIENT_OBJ0 = \
794 libsmb/libsmb_cache.o \
795 libsmb/libsmb_compat.o \
796 libsmb/libsmb_context.o \
797 libsmb/libsmb_dir.o \
798 libsmb/libsmb_file.o \
799 libsmb/libsmb_misc.o \
800 libsmb/libsmb_path.o \
801 libsmb/libsmb_printjob.o \
802 libsmb/libsmb_server.o \
803 libsmb/libsmb_stat.o \
804 libsmb/libsmb_xattr.o \
805 libsmb/libsmb_setget.o
807 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
808 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
809 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
810 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
811 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
813 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
815 # This shared library is intended for linking with unit test programs
816 # to test Samba internals. It's called libbigballofmud.so to
817 # discourage casual usage.
819 LIBBIGBALLOFMUD_MAJOR = 0
821 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
822 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
823 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
825 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
826 librpc/rpc/binding.o \
827 client/dnsbrowse.o \
828 $(RPC_CLIENT_OBJ1) \
829 $(RPC_PARSE_OBJ2)
831 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
832 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
833 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
834 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
835 $(DISPLAY_SEC_OBJ)
837 LIBSMBCONF_OBJ = lib/smbconf/smbconf.o lib/smbconf/smbconf_util.o \
838 lib/smbconf/smbconf_reg.o \
839 lib/smbconf/smbconf_txt.o \
840 lib/smbconf/smbconf_init.o
842 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
844 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
845 $(LIB_NONSMBD_OBJ) \
846 $(PARAM_OBJ) \
847 $(LIBSMB_ERR_OBJ) \
848 $(POPT_LIB_OBJ)
850 LIBNET_OBJ = libnet/libnet_join.o \
851 libnet/libnet_keytab.o \
852 libnet/libnet_samsync.o \
853 libnet/libnet_samsync_ldif.o \
854 libnet/libnet_samsync_passdb.o \
855 libnet/libnet_samsync_display.o \
856 libnet/libnet_samsync_keytab.o \
857 libnet/libnet_dssync.o \
858 libnet/libnet_dssync_keytab.o \
859 librpc/gen_ndr/ndr_libnet_join.o
861 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
862 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
863 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
864 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
865 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
866 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
867 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
868 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
869 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
870 utils/net_conf.o utils/net_join.o utils/net_user.o \
871 utils/net_group.o utils/net_file.o utils/net_registry.o \
872 auth/token_util.o utils/net_dom.o utils/net_share.o
874 # these are not processed by make proto
875 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
877 NET_OBJ = $(NET_OBJ1) \
878 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
879 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
880 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
881 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
882 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
883 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
884 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
885 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
886 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
887 $(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
888 $(LIBSMBCONF_OBJ) \
889 @LIBWBCLIENT_STATIC@ \
890 $(PRIVILEGES_BASIC_OBJ)
892 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
893 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
894 $(LIBNDR_GEN_OBJ0)
896 CIFS_MOUNT_OBJ = client/mount.cifs.o client/mtab.o
898 CIFS_UMOUNT_OBJ = client/umount.cifs.o client/mtab.o
900 CIFS_UPCALL_OBJ = client/cifs.upcall.o
902 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
903 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
905 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
906 torture/denytest.o torture/mangle_test.o
908 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
909 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
910 $(LIBNDR_GEN_OBJ0)
912 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
913 $(LIB_NONSMBD_OBJ) \
914 $(LIBNDR_GEN_OBJ0)
916 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
917 $(LIB_NONSMBD_OBJ) \
918 $(LIBNDR_GEN_OBJ0)
920 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
921 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
922 $(LIBNDR_GEN_OBJ0)
924 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
925 $(LIB_NONSMBD_OBJ) \
926 $(LIBNDR_GEN_OBJ0)
928 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
929 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
930 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
931 $(LIBNDR_GEN_OBJ0)
933 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
935 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
937 LOG2PCAP_OBJ = utils/log2pcaphex.o
939 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
940 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
941 $(LIBNDR_GEN_OBJ0)
943 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
944 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
945 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
946 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
948 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
949 $(PARAM_OBJ) \
950 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
951 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
952 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
954 EVTLOGADM_OBJ0 = utils/eventlogadm.o
956 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
957 $(LIBSAMBA_OBJ) \
958 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
960 SHARESEC_OBJ0 = utils/sharesec.o
961 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
962 $(LIBSAMBA_OBJ) \
963 $(POPT_LIB_OBJ)
965 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
966 $(LIBSAMBA_OBJ)
968 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
969 lib/replace/test/getifaddrs.o \
970 lib/replace/test/os2_delete.o \
971 lib/replace/test/strptime.o \
972 $(LIBREPLACE_OBJ)
974 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
975 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
976 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
977 librpc/gen_ndr/ndr_svcctl.o
979 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
981 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
982 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
983 $(LIBNDR_GEN_OBJ0)
985 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
986 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
987 $(LIBNDR_GEN_OBJ0)
989 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
990 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
991 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
992 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
993 $(LDB_OBJ)
995 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o @IDMAP_STATIC@
997 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
999 IDMAP_HASH_OBJ = \
1000 winbindd/idmap_hash/idmap_hash.o \
1001 winbindd/idmap_hash/mapfile.o
1003 IDMAP_ADEX_OBJ = \
1004 winbindd/idmap_adex/idmap_adex.o \
1005 winbindd/idmap_adex/cell_util.o \
1006 winbindd/idmap_adex/likewise_cell.o \
1007 winbindd/idmap_adex/provider_unified.o \
1008 winbindd/idmap_adex/gc_util.o \
1009 winbindd/idmap_adex/domain_util.o
1011 WINBINDD_OBJ1 = \
1012 winbindd/winbindd.o \
1013 winbindd/winbindd_user.o \
1014 winbindd/winbindd_group.o \
1015 winbindd/winbindd_util.o \
1016 winbindd/winbindd_cache.o \
1017 winbindd/winbindd_pam.o \
1018 winbindd/winbindd_sid.o \
1019 winbindd/winbindd_misc.o \
1020 winbindd/winbindd_cm.o \
1021 winbindd/winbindd_wins.o \
1022 winbindd/winbindd_rpc.o \
1023 winbindd/winbindd_reconnect.o \
1024 winbindd/winbindd_ads.o \
1025 winbindd/winbindd_passdb.o \
1026 winbindd/winbindd_dual.o \
1027 winbindd/winbindd_async.o \
1028 winbindd/winbindd_creds.o \
1029 winbindd/winbindd_cred_cache.o \
1030 winbindd/winbindd_ccache_access.o \
1031 winbindd/winbindd_domain.o \
1032 winbindd/winbindd_idmap.o \
1033 winbindd/winbindd_locator.o \
1034 winbindd/winbindd_ndr.o \
1035 auth/token_util.o \
1036 smbd/connection.o
1038 WINBINDD_OBJ = \
1039 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1040 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1041 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1042 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1043 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1044 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1045 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1046 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
1048 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1049 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1050 lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@
1052 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1054 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1055 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1056 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1057 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1058 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1060 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1061 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1062 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1064 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1065 lib/ldb/modules/objectclass.o \
1066 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1068 # enabled in configure.in
1069 LDB_LDAP_OBJ=@LDBLDAP@
1071 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1073 LDB_CMDLINE_OBJ = $(PARAM_OBJ) \
1074 $(POPT_LIB_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) $(LIBSMB_ERR_OBJ0) \
1075 $(RPC_PARSE_OBJ1) $(SECRETS_OBJ) \
1076 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1079 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1080 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1081 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1082 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1083 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1085 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1086 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1088 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1089 popt/popthelp.o popt/poptparse.o
1091 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1092 iniparser_build/strlib.o
1094 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1095 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1097 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1098 $(SOCKET_WRAPPER_OBJ)
1100 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1101 $(SOCKET_WRAPPER_OBJ)
1103 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1104 $(SOCKET_WRAPPER_OBJ)
1107 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1109 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1110 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1111 $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1112 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1113 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1114 $(LDB_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1115 $(LIBNDR_GEN_OBJ0) $(LIBNDR_GEN_OBJ1)
1118 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ) librpc/rpc/binding.o
1120 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1121 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1122 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1123 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1124 $(DISPLAY_SEC_OBJ)
1126 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1127 $(LIBSMB_OBJ) \
1128 $(PARAM_OBJ) \
1129 $(PASSDB_OBJ) \
1130 @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
1131 $(LIB_NONSMBD_OBJ) \
1132 $(KRBCLIENT_OBJ) \
1133 $(RPC_PARSE_OBJ2) \
1134 $(RPC_CLIENT_OBJ1) \
1135 rpc_client/cli_pipe.o \
1136 librpc/rpc/binding.o \
1137 $(LIBMSRPC_GEN_OBJ)
1140 ######################################################################
1141 # now the rules...
1142 ######################################################################
1143 all:: SHOWFLAGS libs $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1144 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @CIFSUPCALL_PROGS@ \
1145 $(EXTRA_ALL_TARGETS)
1147 nss_modules:: $(NSS_MODULES)
1149 pam_modules:: $(PAM_MODULES)
1151 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1153 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1155 gpext_modules:: $(GPEXT_MODULES)
1157 torture:: SHOWFLAGS $(TORTURE_PROGS)
1159 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1161 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1163 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1165 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1167 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1169 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1171 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1173 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1175 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1177 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1179 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1181 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1183 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1185 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1187 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1189 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1190 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1191 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1193 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1195 modules:: SHOWFLAGS $(MODULES)
1197 #####################################################################
1198 ## Perl IDL Compiler
1199 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1200 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1201 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1202 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl drsuapi.idl drsblobs.idl \
1203 nbt.idl
1205 idl::
1206 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1207 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1210 #####################################################################
1213 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1214 $(EVERYTHING_PROGS)
1216 .SUFFIXES:
1217 .SUFFIXES: .c .o .lo
1219 SHOWFLAGS::
1220 @echo "Using FLAGS = $(FLAGS)"
1221 @echo " PICFLAG = $(PICFLAG)"
1222 @echo " LIBS = $(LIBS)"
1223 @echo " LDFLAGS = $(LDFLAGS)"
1224 @echo " DYNEXP = $(DYNEXP)"
1225 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1226 @echo " SHLIBEXT = @SHLIBEXT@"
1227 @echo " SONAMEFLAG = @SONAMEFLAG@"
1229 MAKEDIR = || exec false; \
1230 if test -d "$$dir"; then :; else \
1231 echo mkdir "$$dir"; \
1232 mkdir -p "$$dir" >/dev/null 2>&1 || \
1233 test -d "$$dir" || \
1234 mkdir "$$dir" || \
1235 exec false; fi || exec false
1237 # Run a static checker.
1238 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1239 # Compile a source file.
1240 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1241 # Compile a source file with the installation paths defined.
1242 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1244 COMPILE = $(COMPILE_CC)
1246 .c.o:
1247 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1248 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1249 @if test -n "$(CC_CHECKER)"; then \
1250 echo "Checking $*.c with '$(CC_CHECKER)'";\
1251 $(CHECK_CC); \
1253 @echo Compiling $*.c
1254 @$(COMPILE) && exit 0;\
1255 echo "The following command failed:" 1>&2;\
1256 echo "$(COMPILE_CC)" 1>&2;\
1257 $(COMPILE_CC) >/dev/null 2>&1
1258 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1260 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1262 # this adds support for precompiled headers. To use it, install a snapshot
1263 # of gcc-3.4 and run 'make pch' before you do the main build.
1264 pch::
1265 rm -f $(PRECOMPILED_HEADER)
1266 $(MAKE) $(PRECOMPILED_HEADER)
1268 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1269 $(COMPILE)
1271 BINARY_PREREQS = bin/.dummy
1273 # These dependencies are only approximately correct: we want to make
1274 # sure Samba's paths are updated if ./configure is re-run. Really it
1275 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1276 # but since we also require "make install prefix=/opt/samba" *not* to
1277 # rebuild it's a bit hard.
1279 dynconfig.o: dynconfig.c Makefile
1280 @echo Compiling $*.c
1281 @$(COMPILE_CC_PATH) && exit 0;\
1282 echo "The following command failed:" 1>&2;\
1283 echo "$(COMPILE_CC_PATH)" 1>&2;\
1284 $(COMPILE_CC_PATH) >/dev/null 2>&1
1286 localedir.o: localedir.c Makefile
1287 @echo Compiling $*.c
1288 @$(COMPILE_CC_PATH) && exit 0;\
1289 echo "The following command failed:" 1>&2;\
1290 echo "$(COMPILE_CC_PATH)" 1>&2;\
1291 $(COMPILE_CC_PATH) >/dev/null 2>&1
1293 lib/pidfile.o: lib/pidfile.c
1294 @echo Compiling $*.c
1295 @$(COMPILE_CC_PATH) && exit 0;\
1296 echo "The following command failed:" 1>&2;\
1297 echo "$(COMPILE_CC_PATH)" 1>&2;\
1298 $(COMPILE_CC_PATH) >/dev/null 2>&1
1300 lib/version.o: lib/version.c include/version.h
1301 @echo Compiling $*.c
1302 @$(COMPILE_CC_PATH) && exit 0;\
1303 echo "The following command failed:" 1>&2;\
1304 echo "$(COMPILE_CC_PATH)" 1>&2;\
1305 $(COMPILE_CC_PATH) >/dev/null 2>&1
1307 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1308 @echo Compiling $*.c
1309 @$(COMPILE_CC_PATH) && exit 0;\
1310 echo "The following command failed:" 1>&2;\
1311 echo "$(COMPILE_CC_PATH)" 1>&2;\
1312 $(COMPILE_CC_PATH) >/dev/null 2>&1
1314 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1315 @echo Generating $@
1316 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1318 bin/.dummy:
1319 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1320 dir=bin $(MAKEDIR); fi
1321 @: >> $@ || : > $@ # what a fancy emoticon!
1323 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1324 @echo Linking $@
1325 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1326 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1327 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1328 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1329 $(WINBIND_LIBS)
1331 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1332 @echo Linking $@
1333 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1334 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1335 $(KRB5LIBS) $(LDAP_LIBS)
1337 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1338 @echo Linking $@
1339 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1340 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1341 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1343 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1344 @echo Linking $@
1345 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1346 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1347 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1348 $(WINBIND_LIBS)
1350 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1351 @echo Linking $@
1352 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1353 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1354 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1355 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1357 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1358 @echo Linking $@
1359 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1360 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1361 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1362 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBNETAPI_LIBS)
1364 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1365 @echo Linking $@
1366 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1367 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1369 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1370 @echo Linking $@
1371 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1372 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1374 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1375 @echo Linking $@
1376 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1378 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1379 @echo Linking $@
1380 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1382 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1383 @echo Linking $@
1384 @$(CC) $(FLAGS) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1385 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ1) $(KRB5LIBS) \
1386 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(WINBIND_LIBS) \
1387 $(LIBTDB_LIBS) $(NSCD_LIBS)
1389 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1390 @echo Linking $@
1391 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1392 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1394 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1395 @echo Linking $@
1396 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1397 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1399 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1400 @echo Linking $@
1401 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1402 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1403 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1404 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1406 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1407 @echo Linking $@
1408 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1409 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1410 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1412 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1413 @echo Linking $@
1414 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1415 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1416 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1418 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1419 @echo Linking $@
1420 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1421 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1422 $(LIBTDB_LIBS) $(WINBIND_LIBS)
1424 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1425 @echo Linking $@
1426 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1427 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1428 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1430 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1431 @echo Linking $@
1432 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1433 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1435 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1436 @echo Linking $@
1437 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1438 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1439 $(LIBTDB_LIBS)
1441 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1442 @echo Linking $@
1443 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1444 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1445 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1447 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1448 @echo Linking $@
1449 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1450 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1452 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1453 @echo Linking $@
1454 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1455 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1456 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1458 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1459 @echo Linking $@
1460 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1461 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1462 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1464 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1465 @echo Linking $@
1466 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1467 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1468 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1470 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1471 @echo Linking $@
1472 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1473 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1474 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1476 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1477 @echo Linking $@
1478 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1479 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1480 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1482 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1483 @echo Linking $@
1484 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1485 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1487 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1488 @echo Linking $@
1489 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1490 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1492 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1493 @echo Linking $@
1494 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1495 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1496 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1498 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1499 @echo Linking $@
1500 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1501 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1502 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1504 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1505 @echo Linking $@
1506 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1507 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1508 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1510 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1511 @echo Linking $@
1512 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1513 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1514 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1515 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1516 $(WINBIND_LIBS)
1518 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1519 @echo Linking $@
1520 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1521 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1522 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1524 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1525 @echo Linking $@
1526 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1527 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1529 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1530 @echo Linking $@
1531 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1532 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1533 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1535 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1536 @echo Linking $@
1537 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1538 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1540 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1541 @echo Linking $@
1542 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1543 $(LIBS) $(LIBTALLOC_LIBS)
1545 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1546 @echo Linking $@
1547 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1548 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1549 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1551 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1552 @echo Linking $@
1553 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1554 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1555 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1557 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1558 @echo Linking $@
1559 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1560 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1561 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1563 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1564 @echo Linking $@
1565 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1566 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1567 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1569 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1570 @echo Linking $@
1571 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1572 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1573 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1575 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1576 @echo Linking $@
1577 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1578 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1579 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1582 #####################################################################
1584 # libraries
1586 #####################################################################
1588 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1591 #-------------------------------------------------------------------
1593 # libtalloc
1595 #-------------------------------------------------------------------
1597 TALLOC_OBJ = @TALLOC_OBJS@
1599 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
1600 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1602 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1603 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1604 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1605 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1606 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
1607 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1608 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1610 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1611 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1613 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1614 @echo Linking shared library $@
1615 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1617 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1618 @rm -f $@
1619 @ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1621 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1622 @echo Linking non-shared library $@
1623 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1625 libtalloc: $(LIBTALLOC)
1627 cleanlibtalloc::
1628 -rm -f \
1629 $(LIBTALLOC_SYMS) \
1630 $(LIBTALLOC_STATIC_TARGET) \
1631 $(LIBTALLOC_SHARED_TARGET) \
1632 $(LIBTALLOC_SHARED_TARGET_SONAME)
1634 installlibtalloc:: installdirs libtalloc
1635 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1636 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1637 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1638 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1639 ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1640 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1642 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1643 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1644 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1646 uninstalllibtalloc::
1647 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1648 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1649 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1650 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1652 libs:: libtalloc
1653 installlibs:: @INSTALL_LIBTALLOC@
1654 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1655 cleanlibs:: cleanlibtalloc
1656 shlibs test_shlibs: @LIBTALLOC_SHARED@
1658 #-------------------------------------------------------------------
1660 # libtdb
1662 #-------------------------------------------------------------------
1664 LIBTDB_OBJ0 = @TDB_OBJS@
1665 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1667 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1668 LIBTDB_SOVER=@LIBTDB_SOVER@
1669 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1670 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1671 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
1672 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1673 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1675 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1676 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1678 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1679 @echo Linking shared library $@
1680 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1681 @SONAMEFLAG@`basename $@`
1683 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1684 @rm -f $@
1685 @ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1687 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1688 @echo Linking non-shared library $@
1689 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1691 libtdb: $(LIBTDB)
1693 cleanlibtdb::
1694 -rm -f \
1695 $(LIBTDB_SYMS) \
1696 $(LIBTDB_STATIC_TARGET) \
1697 $(LIBTDB_SHARED_TARGET) \
1698 $(LIBTDB_SHARED_TARGET_SONAME)
1701 installlibtdb:: installdirs libtdb
1702 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1703 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1704 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1705 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1706 ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1707 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1709 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1710 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1711 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1713 uninstalllibtdb::
1714 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1715 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1716 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1717 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1719 libs:: libtdb
1720 installlibs:: @INSTALL_LIBTDB@
1721 uninstalllibs:: @UNINSTALL_LIBTDB@
1722 cleanlibs:: cleanlibtdb
1723 shlibs test_shlibs: @LIBTDB_SHARED@
1725 #-------------------------------------------------------------------
1727 # libwbclient
1729 #-------------------------------------------------------------------
1731 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
1732 nsswitch/libwbclient/wbc_util.o \
1733 nsswitch/libwbclient/wbc_pwd.o \
1734 nsswitch/libwbclient/wbc_idmap.o \
1735 nsswitch/libwbclient/wbc_sid.o \
1736 nsswitch/libwbclient/wbc_guid.o \
1737 nsswitch/libwbclient/wbc_pam.o
1738 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1739 $(WBCOMMON_OBJ) \
1740 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
1742 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1743 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1744 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1745 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1746 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1747 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1748 LIBWBCLIENT_HEADERS=$(srcdir)/nsswitch/libwbclient/wbclient.h
1750 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1751 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1753 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_SHARED@
1754 @echo Linking shared library $@
1755 @$(SHLD_DSO) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_OBJ) \
1756 @SONAMEFLAG@`basename $@`
1758 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1759 @rm -f $@
1760 @ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1762 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1763 @echo Linking non-shared library $@
1764 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1766 libwbclient: $(LIBWBCLIENT)
1768 cleanlibwbclient::
1769 -rm -f \
1770 $(LIBWBCLIENT_SYMS) \
1771 $(LIBWBCLIENT_STATIC_TARGET) \
1772 $(LIBWBCLIENT_SHARED_TARGET) \
1773 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1775 installlibwbclient:: installdirs libwbclient
1776 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1777 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1778 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1779 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1780 ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1781 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1783 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1784 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1786 uninstalllibwbclient::
1787 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1788 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1789 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1791 libs:: libwbclient
1792 installlibs:: @INSTALL_LIBWBCLIENT@
1793 uninstalllibs:: uninstalllibwbclient
1794 cleanlibs:: cleanlibwbclient
1795 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1798 #-------------------------------------------------------------------
1800 # libaddns
1802 #-------------------------------------------------------------------
1805 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1806 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1807 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1808 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1809 LIBADDNS=$(LIBADDNS_STATIC_TARGET) @LIBADDNS_SHARED@
1810 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1811 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1813 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1814 @echo Linking shared library $@
1815 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1816 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1817 @SONAMEFLAG@`basename $@`
1819 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1820 @rm -f $@
1821 @ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1823 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1824 @echo Linking non-shared library $@
1825 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1827 libaddns: $(LIBADDNS)
1829 cleanlibaddns::
1830 -rm -f \
1831 $(LIBADDNS_SHARED_TARGET) \
1832 $(LIBADDNS_SHARED_TARGET_SONAME) \
1833 $(LIBADDNS_STATIC_TARGET)
1835 installlibaddns:: installdirs libaddns
1836 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1837 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1838 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1839 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1840 ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1841 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1843 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1845 uninstalllibaddns::
1846 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1847 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1848 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
1850 libs:: libaddns
1851 installlibs:: @INSTALL_LIBADDNS@
1852 uninstalllibs:: @UNINSTALL_LIBADDNS@
1853 cleanlibs:: cleanlibaddns
1854 shlibs test_shlibs: @LIBADDNS_SHARED@
1856 #-------------------------------------------------------------------
1858 # libnetapi
1860 #-------------------------------------------------------------------
1862 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
1863 lib/netapi/cm.o \
1864 librpc/gen_ndr/ndr_libnetapi.o \
1865 lib/netapi/libnetapi.o \
1866 lib/netapi/joindomain.o \
1867 lib/netapi/serverinfo.o \
1868 lib/netapi/getdc.o \
1869 lib/netapi/user.o \
1870 lib/netapi/group.o \
1871 lib/netapi/localgroup.o \
1872 lib/netapi/samr.o \
1873 lib/netapi/sid.o \
1874 lib/netapi/share.o \
1875 lib/netapi/file.o
1877 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
1878 $(LIBSMBCONF_OBJ) \
1879 $(REG_SMBCONF_OBJ) \
1880 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
1881 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1882 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1883 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1884 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
1885 auth/token_util.o
1887 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
1888 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
1889 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
1890 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
1891 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
1892 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
1893 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
1895 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
1896 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
1898 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1899 @echo Linking shared library $@
1900 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1901 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1902 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1903 @SONAMEFLAG@`basename $@`
1905 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
1906 @rm -f $@
1907 @ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
1909 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
1910 @echo Linking non-shared library $@
1911 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
1913 libnetapi: $(LIBNETAPI)
1915 cleanlibnetapi::
1916 -rm -f \
1917 $(LIBNETAPI_SYMS) \
1918 $(LIBNETAPI_STATIC_TARGET) \
1919 $(LIBNETAPI_SHARED_TARGET) \
1920 $(LIBNETAPI_SHARED_TARGET_SONAME)
1922 installlibnetapi:: installdirs libnetapi
1923 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1924 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1925 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1926 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
1927 ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
1928 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
1930 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1931 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1932 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
1934 uninstalllibnetapi::
1935 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1936 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
1937 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
1938 -rm -f $(DESTDIR)${prefix}/include/netapi.h
1940 libs:: libnetapi
1941 installlibs:: @INSTALL_LIBNETAPI@
1942 uninstalllibs:: @UNINSTALL_LIBNETAPI@
1943 cleanlibs:: cleanlibnetapi
1944 shlibs test_shlibs: @LIBNETAPI_SHARED@
1946 #-------------------------------------------------------------------
1948 # libsmbclient
1950 #-------------------------------------------------------------------
1952 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
1953 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
1954 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
1955 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
1956 LIBSMBCLIENT=$(LIBSMBCLIENT_STATIC_TARGET) @LIBSMBCLIENT_SHARED@
1957 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
1958 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
1960 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
1961 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
1963 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1964 @echo Linking shared library $@
1965 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
1966 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1967 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1968 @SONAMEFLAG@`basename $@`
1970 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
1971 @rm -f $@
1972 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
1974 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
1975 @echo Linking non-shared library $@
1976 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
1978 libsmbclient: $(LIBSMBCLIENT)
1980 cleanlibsmbclient::
1981 -rm -f \
1982 $(LIBSMBCLIENT_SHARED_TARGET) \
1983 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
1984 $(LIBSMBCLIENT_STATIC_TARGET)
1986 installlibsmbclient:: installdirs libsmbclient
1987 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1988 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1989 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1990 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
1991 ln -s -f `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
1992 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
1994 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1995 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1996 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1998 installclientlib:: installlibsmbclient
2000 uninstalllibsmbclient::
2001 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2002 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2003 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2004 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2006 uninstallclientlib:: uninstalllibsmbclient
2008 libs:: libsmbclient
2009 installlibs:: @INSTALL_LIBSMBCLIENT@
2010 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2011 cleanlibs:: cleanlibsmbclient
2012 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2014 #-------------------------------------------------------------------
2016 # libsmbsharemodes
2018 #-------------------------------------------------------------------
2020 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2022 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0) @LIBTDB_STATIC@
2024 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2025 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2026 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2027 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2028 LIBSMBSHAREMODES=$(LIBSMBSHAREMODES_STATIC_TARGET) @LIBSMBSHAREMODES_SHARED@
2029 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2030 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2032 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2033 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2035 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2036 @echo Linking shared library $@
2037 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2038 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2039 $(KRB5LIBS) $(LDAP_LIBS) \
2040 @SONAMEFLAG@`basename $@`
2042 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2043 @rm -f $@
2044 @ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2046 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2047 @echo Linking non-shared library $@
2048 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2050 libsmbsharemodes: $(LIBSMBSHAREMODES)
2052 cleanlibsmbsharemodes::
2053 -rm -f \
2054 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2055 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2056 $(LIBSMBSHAREMODES_STATIC_TARGET)
2058 installlibsmbsharemodes:: installdirs libsmbsharemodes
2059 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2060 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2061 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2062 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2063 ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2064 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2066 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2067 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2068 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2070 uninstalllibsmbsharemodes::
2071 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2072 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2073 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2074 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2076 libs:: libsmbsharemodes
2077 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2078 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2079 cleanlibs:: cleanlibsmbsharemodes
2080 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2082 #-------------------------------------------------------------------
2084 # libbigballofmud
2086 #-------------------------------------------------------------------
2088 # This is probably wrong for anything other than the GNU linker.
2089 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
2090 @echo Linking shared library $@
2091 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2092 $(LIBS) $(LIBTALLOC_LIBS) \
2093 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2094 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2095 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2097 # It would be nice to build a static bigballofmud too, but when I try
2098 # I get linker errors about dl_open and similar things. I'm not sure if
2099 # it can be fixed or if they just can't be called from a static
2100 # library.
2104 #####################################################################
2106 # shared modules
2108 #####################################################################
2110 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2111 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2112 -o $@ @SONAMEFLAG@`basename $@`
2114 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2115 @echo "Linking $@"
2116 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2118 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2119 @echo "Linking $@"
2120 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2122 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2123 @echo "Linking $@"
2124 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2126 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2127 @echo "Linking $@"
2128 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2130 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2131 @echo "Linking $@"
2132 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2134 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2135 @echo "Linking $@"
2136 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2138 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2139 @echo "Linking $@"
2140 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2142 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2143 @echo "Linking $@"
2144 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2146 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2147 @echo "Linking $@"
2148 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2150 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2151 @echo "Linking $@"
2152 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2154 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2155 @echo "Linking $@"
2156 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2158 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2159 @echo "Linking $@"
2160 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2162 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2163 @echo "Linking $@"
2164 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2166 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2167 @echo "Linking $@"
2168 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2170 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2171 @echo "Linking $@"
2172 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2173 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2174 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2176 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2177 @echo "Linking $@"
2178 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2179 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2180 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2181 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2183 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2184 @echo "Linking $@"
2185 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2186 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2187 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2189 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2190 @echo "Linking $@"
2191 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2192 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2193 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2195 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) @LIBWBCLIENT_SHARED@
2196 @echo "Linking $@"
2197 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(WINBIND_LIBS) \
2198 @SONAMEFLAG@`basename $@`
2200 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@
2201 @echo "Linking shared library $@"
2202 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2203 $(PAM_WINBIND_EXTRA_LIBS) $(LIBTALLOC_LIBS) $(WINBIND_LIBS) @SONAMEFLAG@`basename $@`
2205 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2206 @echo "Building plugin $@"
2207 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2209 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2210 @echo "Building plugin $@"
2211 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2213 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2214 @echo "Building plugin $@"
2215 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2217 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2218 @echo "Building plugin $@"
2219 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2221 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2222 @echo "Building plugin $@"
2223 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2225 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2226 @echo "Building plugin $@"
2227 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2229 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2230 @echo "Building plugin $@"
2231 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2233 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2234 @echo "Building plugin $@"
2235 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2237 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2238 @echo "Building plugin $@"
2239 @$(SHLD_MODULE) passdb/pdb_tdb.o
2241 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2242 @echo "Building plugin $@"
2243 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2245 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2246 @echo "Building plugin $@"
2247 @$(SHLD_MODULE) winbindd/idmap_rid.o
2249 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2250 @echo "Building plugin $@"
2251 @$(SHLD_MODULE) winbindd/idmap_ad.o
2253 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2254 @echo "Building plugin $@"
2255 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2257 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2258 @echo "Building plugin $@"
2259 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2261 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2262 @echo "Building plugin $@"
2263 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2265 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2266 @echo "Building plugin $@"
2267 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2269 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2270 @echo "Building plugin $@"
2271 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2273 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2274 @echo "Building plugin $@"
2275 @$(SHLD_MODULE) $(CP850_OBJ)
2277 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2278 @echo "Building plugin $@"
2279 @$(SHLD_MODULE) $(CP437_OBJ)
2281 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2282 @echo "Building plugin $@"
2283 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2285 # NOTE, there is no build rule for a dynamic default VFS module because
2286 # this one MUST MUST MUST be built statically.
2288 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2289 @echo "Building plugin $@"
2290 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2292 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2293 @echo "Building plugin $@"
2294 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2296 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2297 @echo "Building plugin $@"
2298 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2300 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2301 @echo "Building plugin $@"
2302 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2304 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2305 @echo "Building plugin $@"
2306 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2308 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2309 @echo "Building plugin $@"
2310 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2312 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2313 @echo "Building plugin $@"
2314 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2316 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2317 @echo "Building plugin $@"
2318 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2320 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2321 @echo "Building plugin $@"
2322 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2324 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2325 @echo "Building plugin $@"
2326 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2328 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2329 @echo "Building plugin $@"
2330 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2332 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2333 @echo "Building plugin $@"
2334 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2336 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2337 @echo "Building plugin $@"
2338 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2340 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2341 @echo "Building plugin $@"
2342 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2344 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2345 @echo "Building plugin $@"
2346 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2348 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2349 @echo "Building plugin $@"
2350 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2352 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2353 @echo "Building plugin $@"
2354 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2356 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2357 @echo "Building plugin $@"
2358 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2360 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2361 @echo "Building plugin $@"
2362 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2364 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2365 @echo "Building plugin $@"
2366 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2368 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2369 @echo "Building plugin $@"
2370 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2372 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2373 @echo "Building plugin $@"
2374 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2376 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2377 @echo "Building plugin $@"
2378 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2380 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2381 @echo "Building plugin $@"
2382 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2384 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2385 @echo "Building plugin $@"
2386 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2388 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2389 @echo "Building plugin $@"
2390 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2392 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2393 @echo "Building plugin $@"
2394 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2396 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2397 @echo "Building plugin $@"
2398 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2400 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2401 @echo "Building plugin $@"
2402 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2404 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2405 @echo "Building plugin $@"
2406 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2408 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2409 @echo "Building plugin $@"
2410 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2412 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2413 @echo "Building plugin $@"
2414 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2416 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2417 @echo "Building plugin $@"
2418 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2420 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2421 @echo "Building plugin $@"
2422 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2424 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2425 @echo "Building plugin $@"
2426 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2428 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2429 @echo "Building plugin $@"
2430 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2432 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2433 @echo "Building plugin $@"
2434 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2436 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2437 @echo "Building plugin $@"
2438 @$(SHLD_MODULE) libgpo/gpext/registry.o
2440 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2441 @echo "Building plugin $@"
2442 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2444 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2445 @echo "Building plugin $@"
2446 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2448 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2449 @echo "Building plugin $@"
2450 @$(SHLD_MODULE) libgpo/gpext/security.o
2452 #########################################################
2453 ## IdMap NSS plugins
2455 ## None here right now
2456 #########################################################
2458 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2459 @echo Linking $@
2460 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2461 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2462 $(WINBIND_LIBS)
2464 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2465 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2466 @echo Linking $@
2467 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2468 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2469 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2470 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2472 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2473 @echo "Linking shared library $@"
2474 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2475 $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
2476 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2478 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2479 @echo Linking $@
2480 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2481 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2483 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2484 @echo Linking $@
2485 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2486 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2488 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2489 @echo Linking $@
2490 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2491 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2493 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2494 @echo Linking $@
2495 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2496 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2498 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2499 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2500 torture/t_strcmp.o -L ./bin -lbigballofmud
2502 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2503 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2504 torture/t_strstr.o -L ./bin -lbigballofmud
2506 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2507 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2508 torture/t_strappend.o -L ./bin -lbigballofmud
2510 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2511 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2512 -L./bin -lbigballofmud
2514 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2515 @echo Linking $@
2516 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
2518 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2519 @echo "Linking $@"
2520 @$(CC) $(FLAGS) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2521 $(LIBS) $(LIBTALLOC_LIBS) @LIBTDB_SHARED@ $(WINBIND_LIBS) \
2522 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2524 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2525 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2526 @INSTALL_PAM_MODULES@ installlibs installmo
2528 install-everything:: install installmodules
2530 # DESTDIR is used here to prevent packagers wasting their time
2531 # duplicating the Makefile. Remove it and you will have the privelege
2532 # of package each samba release for muliple versions of multiple
2533 # distributions and operating systems, or at least supplying patches
2534 # to all the packaging files required for this, prior to committing
2535 # the removal of DESTDIR. Do not remove it even though you think it
2536 # is not used
2538 installdirs::
2539 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
2541 installservers:: all installdirs
2542 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2544 installbin:: all installdirs
2545 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2547 installcifsmount:: @CIFSMOUNT_PROGS@
2548 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2549 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2551 installcifsupcall:: @CIFSUPCALL_PROGS@
2552 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(SBINDIR)
2553 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) @CIFSUPCALL_PROGS@
2555 # Some symlinks are required for the 'probing' of modules.
2556 # This mechanism should go at some point..
2557 installmodules:: modules installdirs
2558 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2559 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2560 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2561 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2562 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2563 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2564 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2565 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2566 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2567 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2568 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2569 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2570 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2571 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2572 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2573 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2574 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
2575 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
2577 installscripts:: installdirs
2578 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2580 installdat:: installdirs
2581 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2583 installmsg:: installdirs
2584 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2586 installswat:: installdirs installmsg
2587 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2589 installpammodules:: $(PAM_MODULES)
2590 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2591 @for module in $(PAM_MODULES); do \
2592 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2593 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2594 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2595 done
2597 # revert to the previously installed version
2598 revert::
2599 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2600 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2602 installman:: installdirs
2603 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2605 installmo:: all installdirs
2606 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2608 .PHONY: showlayout
2610 showlayout::
2611 @echo "Samba will be installed into:"
2612 @echo " prefix: $(prefix)"
2613 @echo " bindir: $(BINDIR)"
2614 @echo " sbindir: $(SBINDIR)"
2615 @echo " libdir: $(LIBDIR)"
2616 @echo " modulesdir: $(MODULESDIR)"
2617 @echo " vardir: $(VARDIR)"
2618 @echo " mandir: $(MANDIR)"
2619 @echo " privatedir: $(PRIVATE_DIR)"
2620 @echo " configdir: $(CONFIGDIR)"
2621 @echo " lockdir: $(LOCKDIR)"
2622 @echo " piddir: $(PIDDIR)"
2623 @echo " swatdir: $(SWATDIR)"
2624 @echo " codepagedir: $(CODEPAGEDIR)"
2627 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2629 uninstallmo::
2630 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2632 uninstallman::
2633 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2635 uninstallservers::
2636 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2638 uninstallbin::
2639 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2641 uninstallcifsmount::
2642 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2644 uninstallcifsupcall::
2645 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2647 uninstallmodules::
2648 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2649 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2650 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2651 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2652 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2653 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2654 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2656 uninstallscripts::
2657 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2659 uninstalldat::
2660 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2662 uninstallmsg::
2663 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2665 uninstallswat:: uninstallmsg
2666 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2668 uninstallpammodules::
2669 @for module in $(PAM_MODULES); do \
2670 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2671 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2672 done
2674 # Toplevel clean files
2675 TOPFILES=dynconfig.o localedir.o
2677 clean:: cleanlibs
2678 -rm -f include/build_env.h
2679 -rm -f smbd/build_options.c
2680 -rm -f $(PRECOMPILED_HEADER)
2681 -rm -f core */*~ *~ \
2682 */*.o */*/*.o */*/*/*.o \
2683 ../testsuite/*/*.o \
2684 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2685 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2686 $(MODULES) $(TORTURE_PROGS) \
2687 $(EVERYTHING_PROGS) \
2688 bin/timelimit \
2689 .headers.stamp */src/*.o
2690 -rm -rf t_dir
2692 include/build_env.h: script/build_env.sh
2693 @echo Building include/build_env.h
2694 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2695 > $(builddir)/include/build_env.h
2697 proto::
2698 @echo
2699 @echo "NOTE: 'proto' is no longer a valid make target as proto.h"
2700 @echo "and other prototype headers are not generated anymore."
2701 @echo
2703 .PHONY: proto
2705 etags:
2706 etags `find $(srcdir) -name "*.[ch]" | grep -v include/proto\.h`
2708 ctags:
2709 ctags `find $(srcdir) -name "*.[ch]" | grep -v include/proto\.h`
2711 realclean:: clean
2712 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2713 -rm -f script/installbin.sh script/uninstallbin.sh
2715 distclean:: realclean
2716 -rm -f smbadduser
2717 -rm -f include/config.h Makefile
2718 -rm -f config.status config.cache so_locations
2719 -rm -rf .deps TAGS
2721 realdistclean:: distclean
2722 -rm -f include/config.h.in
2723 -rm -f include/version.h
2724 -rm -f configure
2726 # this target is really just for my use. It only works on a limited
2727 # range of machines and is used to produce a list of potentially
2728 # dead (ie. unused) functions in the code. (tridge)
2729 finddead::
2730 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2731 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2732 comm -13 nmused.txt nmfns.txt
2735 # when configure.in is updated, reconfigure
2736 $(srcdir)/configure: $(srcdir)/configure.in
2737 @echo "WARNING: you need to rerun ./autogen.sh"
2739 config.status: $(srcdir)/configure
2740 @echo "WARNING: you need to run ./configure"
2742 Makefile: $(srcdir)/Makefile.in config.status
2743 @echo "WARNING: you need to run ./config.status"
2745 ######################################################################
2746 # Samba Testing Framework
2748 # Check shared libs for unresolved symbols
2749 test_shlibs:
2750 @echo "Testing $? "
2751 @$(LIB_PATH_VAR)=./bin && \
2752 export $(LIB_PATH_VAR) && \
2753 for module in $?; do \
2754 ./script/tests/dlopen.sh $${module} \
2755 || exit 1; \
2756 done
2758 # Check for NSS module problems.
2759 test_nss_modules:: nss_modules
2760 @echo "Testing $(NSS_MODULES) "
2761 @$(LIB_PATH_VAR)=./bin && \
2762 export $(LIB_PATH_VAR) && \
2763 for module in $(NSS_MODULES); do \
2764 ./script/tests/dlopen.sh $${module} \
2765 || exit 1; \
2766 done
2768 # Check for PAM module problems. Specifically, check that every module we
2769 # built can actually be loaded by a minimal PAM-aware application.
2770 test_pam_modules:: pam_modules
2771 @echo "Testing $(PAM_MODULES) "
2772 @$(LIB_PATH_VAR)=./bin && \
2773 export $(LIB_PATH_VAR) && \
2774 for module in $(PAM_MODULES); do \
2775 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2776 || exit 1; \
2777 done
2781 ## Targets for 'make test'
2783 test:: all torture timelimit
2784 @echo Running Test suite
2785 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2787 valgrindtest:: all torture timelimit
2788 @echo Running Test suite with valgrind
2789 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2790 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2791 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2792 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2793 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2794 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2796 # Check for Winbind struct 32/64bit padding
2797 test_wbpad:
2798 @echo "Testing winbind request/response structure for 32/64bit padding"
2799 @./script/tests/wb_pad.sh || exit 1;
2802 ## Examples:
2805 libsmbclient_examples:
2806 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
2808 clean_libsmbclient_examples:
2809 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean