s3-kerberos: add aes enctypes to generated krb5.conf.
[Samba.git] / source3 / Makefile.in
blobf4e857970f012ddc3e2e65dbddc235fa792a7515
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 selftest_shrdir=@selftest_shrdir@
21 smbtorture4_path=@smbtorture4_path@
22 smbtorture4_option=@smbtorture4_option@
23 selftest_custom_conf=@selftest_custom_conf@
25 LIBS=@LIBS@
26 CC=@CC@
27 SHLD=@SHLD@
28 LIB_PATH_VAR=@LIB_PATH_VAR@
30 ## Dynamic shared libraries build settings
31 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
32 DSO_EXPORTS=@DSO_EXPORTS@
33 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
35 # The MODULE_EXPORTS variable contains the platform-specific linker flags
36 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
37 MODULE_EXPORTS=@MODULE_EXPORTS@
39 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
40 # (GCC) warnings. This is done automatically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
43 CFLAGS=@CFLAGS@
44 CPP=@CPP@
45 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
46 PICFLAG=@PICFLAG@
48 EXEEXT=@EXEEXT@
49 AR=@AR@
50 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
51 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
52 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
54 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
55 AWK=@AWK@
56 DYNEXP=@DYNEXP@
57 PERL=@PERL@
58 PYTHON=@PYTHON@
59 LIBDL=@LIBDL@
61 PIDL_ARGS=@PIDL_ARGS@
63 TERMLDFLAGS=@TERMLDFLAGS@
64 TERMLIBS=@TERMLIBS@
65 PRINT_LIBS=@PRINT_LIBS@
66 ZLIB_LIBS=@ZLIB_LIBS@
67 AUTH_LIBS=@AUTH_LIBS@
68 ACL_LIBS=@ACL_LIBS@
69 PASSDB_LIBS=@PASSDB_LIBS@
70 IDMAP_LIBS=@IDMAP_LIBS@
71 KRB5LIBS=@KRB5_LIBS@
72 LDAP_LIBS=@LDAP_LIBS@
73 NSCD_LIBS=@NSCD_LIBS@
74 UUID_LIBS=@UUID_LIBS@
75 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
76 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
77 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
78 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
79 DNSSD_LIBS=@DNSSD_LIBS@
80 AVAHI_LIBS=@AVAHI_LIBS@
81 POPT_LIBS=@POPTLIBS@
82 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
83 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
84 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
85 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
86 LIBTDB_LIBS=@LIBTDB_LIBS@
87 TDB_DEPS=@TDB_DEPS@
88 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
89 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
90 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
91 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
93 TALLOCTORT = @TALLOCTORT@
95 TDBBACKUP = @TDBBACKUP@
96 TDBTOOL = @TDBTOOL@
97 TDBDUMP = @TDBDUMP@
98 TDBRESTORE = @TDBRESTORE@
99 TDBTORTURE = @TDBTORTURE@
100 PTHREADPOOLTEST = @PTHREADPOOLTEST@
102 INSTALLCMD=@INSTALL@
103 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
104 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
105 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
106 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
108 VPATH=@srcdir@
109 srcdir=@abs_srcdir@
110 builddir=@abs_builddir@
111 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
112 # will search for a POSIX-compliant shell, and that might not be
113 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
114 SHELL=/bin/sh
115 DESTDIR=/
117 # See the autoconf manual "Installation Directory Variables" for a
118 # discussion of the subtle use of these variables.
120 BASEDIR= @prefix@
121 BINDIR = @bindir@
122 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
123 SBINDIR = @sbindir@
124 ROOTSBINDIR = @rootsbindir@
125 LIBDIR = @libdir@
126 MODULESDIR = @modulesdir@
127 INCLUDEDIR=@includedir@
128 PAMMODULESDIR = @pammodulesdir@
129 VFSLIBDIR = $(MODULESDIR)/vfs
130 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
131 PDBLIBDIR = $(MODULESDIR)/pdb
132 RPCLIBDIR = $(MODULESDIR)/rpc
133 IDMAPLIBDIR = $(MODULESDIR)/idmap
134 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
135 CHARSETLIBDIR = $(MODULESDIR)/charset
136 AUTHLIBDIR = $(MODULESDIR)/auth
137 CONFIGLIBDIR = $(MODULESDIR)/config
138 GPEXTLIBDIR = $(MODULESDIR)/gpext
139 CONFIGDIR = @configdir@
140 VARDIR = @localstatedir@
141 MANDIR = @mandir@
142 DATADIR = @datadir@
144 # The permissions to give the executables and other data
145 INSTALLPERMS_BIN = 0755
146 INSTALLPERMS_DATA = 0644
148 # set these to where to find various files
149 # These can be overridden by command line switches (see smbd(8))
150 # or in smb.conf (see smb.conf(5))
151 LOGFILEBASE = @logfilebase@
152 CONFIGFILE = $(CONFIGDIR)/smb.conf
153 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
154 NCALRPCDIR = @ncalrpcdir@
156 # This is where smbpasswd et al go
157 PRIVATEDIR = @privatedir@
159 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
160 PRIVATE_DIR = $(PRIVATEDIR)
162 # This is where SWAT images and help files go
163 SWATDIR = @swatdir@
165 # This is where locale(mo) files go
166 LOCALEDIR= @localedir@
168 # the directory where lock files go
169 LOCKDIR = @lockdir@
171 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
172 CACHEDIR = @cachedir@
173 STATEDIR = @statedir@
175 # Where to look for (and install) codepage databases.
176 CODEPAGEDIR = @codepagedir@
178 # the directory where pid files go
179 PIDDIR = @piddir@
181 # the directory where nmbd listens on the unexpected socket
182 NMBDSOCKETDIR = @nmbdsocketdir@
184 FLAGS = -I. \
185 -I$(srcdir) \
186 @FLAGS1@ \
187 @SAMBA_CPPFLAGS@ \
188 $(CPPFLAGS) \
189 $(ISA) \
190 -I$(srcdir)/lib \
191 -I.. \
192 -D_SAMBA_BUILD_=3
194 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
195 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
196 -DCONFIGFILE=\"$(CONFIGFILE)\" \
197 -DSBINDIR=\"$(SBINDIR)\" \
198 -DBINDIR=\"$(BINDIR)\" \
199 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
200 -DSWATDIR=\"$(SWATDIR)\" \
201 -DLOCKDIR=\"$(LOCKDIR)\" \
202 -DPIDDIR=\"$(PIDDIR)\" \
203 -DLIBDIR=\"$(LIBDIR)\" \
204 -DMODULESDIR=\"$(MODULESDIR)\" \
205 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
206 -DSHLIBEXT=\"@SHLIBEXT@\" \
207 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
208 -DCONFIGDIR=\"$(CONFIGDIR)\" \
209 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
210 -DCACHEDIR=\"$(CACHEDIR)\" \
211 -DSTATEDIR=\"$(STATEDIR)\" \
212 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
213 -DLOCALEDIR=\"$(LOCALEDIR)\"
215 # Note that all executable programs now provide for an optional executable suffix.
217 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
219 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
220 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
221 bin/smbta-util@EXEEXT@
222 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
223 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
224 $(TDBRESTORE) \
225 $(TDBTOOL)
226 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
227 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
228 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
230 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
231 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
232 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
233 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
234 $(TDBTORTURE) $(PTHREADPOOLTEST) \
235 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
237 BIN_PROGS = @EXTRA_BIN_PROGS@ \
238 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
240 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
241 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
242 bin/log2pcap@EXEEXT@ \
243 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
244 bin/dbwrap_tool@EXEEXT@ \
245 bin/dbwrap_torture@EXEEXT@
247 PAM_MODULES = @PAM_MODULES@
249 NSS_MODULES = @NSS_MODULES@
251 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
253 VFS_MODULES = @VFS_MODULES@
254 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
255 PDB_MODULES = @PDB_MODULES@
256 IDMAP_MODULES = @IDMAP_MODULES@
257 CHARSET_MODULES = @CHARSET_MODULES@
258 AUTH_MODULES = @AUTH_MODULES@
259 NSS_INFO_MODULES = @NSS_INFO_MODULES@
260 GPEXT_MODULES = @GPEXT_MODULES@
261 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
262 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
263 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
265 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
267 ######################################################################
268 # object file lists
269 ######################################################################
271 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
272 ../lib/util/tdb_wrap.o \
273 lib/dbwrap.o lib/dbwrap_tdb.o \
274 lib/dbwrap_ctdb.o \
275 lib/g_lock.o \
276 lib/dbwrap_rbt.o
278 TDB_VALIDATE_OBJ = lib/tdb_validate.o
280 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
282 VERSION_OBJ = lib/version.o
284 WBCOMMON_OBJ = ../nsswitch/wb_common.o
286 AFS_OBJ = lib/afs.o
288 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
290 AVAHI_OBJ = @AVAHI_OBJ@
292 SERVER_MUTEX_OBJ = lib/server_mutex.o
294 PASSCHANGE_OBJ = libsmb/passchange.o
296 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
297 ../librpc/ndr/ndr_compression.o \
298 librpc/gen_ndr/ndr_drsuapi.o \
299 ../librpc/ndr/ndr_drsblobs.o \
300 librpc/gen_ndr/ndr_drsblobs.o
302 ZLIB_OBJ = @ZLIB_OBJS@
304 COMPRESSION_OBJ = ../lib/compression/mszip.o \
305 ../lib/compression/lzxpress.o \
306 $(ZLIB_OBJ)
308 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
309 $(COMPRESSION_OBJ)
311 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
312 ../librpc/ndr/ndr_ntlmssp.o
314 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
315 ../librpc/ndr/ndr.o \
316 ../librpc/ndr/ndr_misc.o \
317 librpc/gen_ndr/ndr_misc.o \
318 librpc/gen_ndr/ndr_security.o \
319 ../librpc/ndr/ndr_sec_helper.o \
320 ../librpc/ndr/ndr_string.o \
321 ../librpc/ndr/uuid.o \
322 librpc/ndr/util.o \
323 librpc/gen_ndr/ndr_server_id.o \
324 librpc/gen_ndr/ndr_dcerpc.o
326 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
327 librpc/gen_ndr/ndr_lsa.o
329 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
330 ../librpc/ndr/ndr_netlogon.o
332 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
333 ../librpc/ndr/ndr_schannel.o
335 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
336 ../librpc/ndr/ndr_spoolss_buf.o
338 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
339 ../librpc/ndr/ndr_ntprinting.o \
341 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
342 ../librpc/ndr/ndr_preg.o
344 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
345 ../librpc/ndr/ndr_xattr.o
347 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss_c.o \
348 rpc_client/cli_spoolss.o \
349 rpc_client/init_spoolss.o \
350 rpc_client/cli_winreg_spoolss.o \
351 printing/nt_printing_os2.o
353 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/ndr_eventlog_c.o
355 LIBCLI_WINREG_OBJ = librpc/gen_ndr/ndr_winreg_c.o \
356 rpc_client/cli_winreg.o
358 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
359 rpc_client/cli_winreg_int.o
361 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/ndr_ntsvcs_c.o
363 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/ndr_drsuapi_c.o
365 LIBCLI_DFS_OBJ = librpc/gen_ndr/ndr_dfs_c.o
367 LIBCLI_ECHO_OBJ = librpc/gen_ndr/ndr_echo_c.o
369 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/ndr_initshutdown_c.o
371 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/ndr_dssetup_c.o
373 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/ndr_svcctl_c.o
375 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/ndr_wkssvc_c.o
377 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/ndr_srvsvc_c.o
379 LIBCLI_LSA_OBJ = librpc/gen_ndr/ndr_lsa_c.o \
380 rpc_client/cli_lsarpc.o \
381 rpc_client/init_lsa.o
383 LIBCLI_SAMR_OBJ = librpc/gen_ndr/ndr_samr_c.o \
384 rpc_client/cli_samr.o
386 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon_c.o \
387 rpc_client/cli_netlogon.o \
388 rpc_client/util_netlogon.o
390 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/ndr_epmapper_c.o
392 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
393 $(LIBNDR_GEN_OBJ0) \
394 librpc/gen_ndr/ndr_dfs.o \
395 librpc/gen_ndr/ndr_echo.o \
396 librpc/gen_ndr/ndr_winreg.o \
397 librpc/gen_ndr/ndr_initshutdown.o \
398 librpc/gen_ndr/ndr_srvsvc.o \
399 librpc/gen_ndr/ndr_eventlog.o \
400 $(LIBNDR_NETLOGON_OBJ) \
401 librpc/gen_ndr/ndr_dssetup.o \
402 librpc/gen_ndr/ndr_epmapper.o \
403 librpc/gen_ndr/ndr_ntsvcs.o \
404 $(LIBNDR_SPOOLSS_OBJ)
406 # this includes only the low level parse code, not stuff
407 # that requires knowledge of security contexts
408 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
410 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
412 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
413 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
415 LIBSAMBAUTIL_OBJ = \
416 $(LIBREPLACE_OBJ) \
417 $(SOCKET_WRAPPER_OBJ) \
418 $(NSS_WRAPPER_OBJ)
420 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
421 ../lib/util/xfile.o ../lib/util/util_strlist.o \
422 ../lib/util/util_file.o ../lib/util/data_blob.o \
423 ../lib/util/util.o ../lib/util/fsusage.o \
424 ../lib/util/params.o ../lib/util/talloc_stack.o \
425 ../lib/util/genrand.o ../lib/util/util_net.o \
426 ../lib/util/become_daemon.o ../lib/util/system.o \
427 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
428 ../lib/util/tevent_werror.o \
429 ../lib/util/smb_threads.o ../lib/util/util_id.o \
430 ../lib/util/blocking.o ../lib/util/rfc1738.o \
431 ../lib/util/select.o ../lib/util/util_pw.o
433 CRYPTO_OBJ = ../lib/crypto/crc32.o @CRYPTO_MD5_OBJ@ \
434 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
435 ../lib/crypto/md4.o \
436 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
437 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
439 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
440 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
441 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
442 lib/interfaces.o lib/memcache.o \
443 lib/talloc_dict.o \
444 lib/serverid.o \
445 lib/util_sconn.o \
446 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
447 lib/addrchange.o \
448 $(TDB_LIB_OBJ) \
449 $(VERSION_OBJ) lib/charcnv.o ../lib/util/debug.o ../lib/util/debug_s3.o lib/fault.o \
450 lib/interface.o lib/pidfile.o \
451 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
452 lib/username.o \
453 ../libds/common/flag_mapping.o \
454 lib/access.o lib/smbrun.o \
455 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
456 lib/wins_srv.o \
457 lib/util_str.o lib/clobber.o lib/util_sid.o \
458 lib/util_unistr.o ../lib/util/charset/codepoints.o lib/util_file.o \
459 lib/util.o lib/util_cmdline.o lib/util_names.o \
460 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
461 lib/substitute.o lib/dbwrap_util.o \
462 lib/ms_fnmatch.o lib/errmap_unix.o \
463 lib/tallocmsg.o lib/dmallocmsg.o \
464 libsmb/clisigning.o libsmb/smb_signing.o \
465 ../lib/util/charset/iconv.o intl/lang_tdb.o \
466 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
467 lib/sessionid_tdb.o \
468 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
469 lib/server_contexts.o \
470 lib/ldap_escape.o @CHARSET_STATIC@ \
471 lib/secdesc.o ../libcli/security/access_check.o \
472 ../libcli/security/secace.o ../libcli/security/object_tree.o \
473 ../libcli/security/sddl.o \
474 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
475 lib/fncall.o \
476 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
477 lib/file_id.o lib/idmap_cache.o \
478 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
479 ../libcli/security/security_token.o ../libcli/security/util_sid.o
481 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
482 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
484 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
486 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
487 # Be sure to include them into your application
488 POPT_LIB_OBJ = lib/popt_common.o
490 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
491 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
492 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
494 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
496 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
497 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
498 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
500 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
502 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
503 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
504 libgpo/gpo_reg.o \
505 $(GPEXT_OBJ)
506 LIBGPO_OBJ = $(LIBGPO_OBJ0)
508 LIBADS_OBJ = libads/ldap.o \
509 libads/sasl.o libads/sasl_wrapping.o \
510 libads/krb5_setpw.o \
511 libads/kerberos_util.o \
512 libads/ldap_user.o \
513 libads/ads_struct.o libads/kerberos_keytab.o \
514 libads/disp_sec.o libads/ldap_utils.o \
515 libads/ldap_schema.o libads/util.o libads/ndr.o
517 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
518 ../librpc/ndr/ndr_krb5pac.o \
519 librpc/gen_ndr/ndr_krb5pac.o
521 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
523 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
524 librpc/gen_ndr/ndr_secrets.o
526 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
527 ../libcli/netlogon/netlogon.o \
528 ../libcli/netlogon/ndr_netlogon.o \
529 librpc/gen_ndr/ndr_nbt.o \
530 librpc/gen_ndr/ndr_svcctl.o \
531 ../librpc/ndr/ndr_svcctl.o
533 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
534 libsmb/namequery.o ../libcli/nbt/lmhosts.o libsmb/conncache.o \
535 libads/dns.o libads/sitename_cache.o
537 NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
538 DOSERR_OBJ = ../libcli/util/doserr.o
539 ERRORMAP_OBJ = libsmb/errormap.o
540 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
542 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
544 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
546 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
547 $(SECRETS_OBJ)
549 LIBSMB_OBJ0 = \
550 ../libcli/auth/ntlm_check.o \
551 libsmb/ntlmssp.o \
552 libsmb/ntlmssp_wrap.o \
553 ../libcli/auth/ntlmssp.o \
554 ../libcli/auth/ntlmssp_sign.o \
555 $(LIBNDR_NTLMSSP_OBJ) \
556 ../libcli/auth/ntlmssp_ndr.o \
557 ../libcli/auth/ntlmssp_server.o
559 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
560 $(LIBSMB_ERR_OBJ)
562 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
563 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o lib/ldb_compat.o
565 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
566 ../lib/tsocket/tsocket_helpers.o \
567 ../lib/tsocket/tsocket_bsd.o
569 CLDAP_OBJ = libads/cldap.o \
570 ../libcli/cldap/cldap.o \
571 ../lib/util/idtree.o \
572 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
574 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
576 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
577 ../libcli/auth/schannel_sign.o \
578 ../libcli/auth/schannel_state_tdb.o \
579 $(LIBNDR_SCHANNEL_OBJ)
581 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
582 libsmb/clikrb5.o libsmb/clispnego.o \
583 ../libcli/auth/spnego_parse.o \
584 ../lib/util/asn1.o \
585 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
586 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
587 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
588 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
589 libsmb/clioplock.o libsmb/clirap2.o \
590 libsmb/smb_seal.o libsmb/async_smb.o \
591 libsmb/cli_np_tstream.o \
592 libsmb/smbsock_connect.o \
593 $(LIBSAMBA_OBJ) \
594 $(LIBNMB_OBJ) \
595 $(LIBNBT_OBJ) \
596 $(CLDAP_OBJ) \
597 $(DRSUAPI_OBJ)
599 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
600 rpc_client/cli_pipe.o \
601 librpc/crypto/gse_krb5.o \
602 librpc/crypto/gse.o \
603 librpc/crypto/cli_spnego.o \
604 librpc/rpc/rpc_common.o \
605 rpc_client/rpc_transport_np.o \
606 rpc_client/rpc_transport_sock.o \
607 rpc_client/rpc_transport_tstream.o \
608 ../librpc/rpc/binding.o \
609 ../librpc/rpc/dcerpc_util.o \
610 ../librpc/rpc/binding_handle.o \
611 librpc/rpc/dcerpc_helpers.o \
612 $(LIBCLI_EPMAPPER_OBJ)
614 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
617 # registry-related objects
619 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
621 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
622 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
623 REG_INIT_FULL_OBJ = registry/reg_init_full.o
625 REGFIO_OBJ = registry/regfio.o \
626 $(REG_PARSE_PRS_OBJ)
628 REG_API_REGF_OBJ = registry/reg_api_regf.o
630 REGOBJS_OBJ = registry/reg_objects.o
632 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
634 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
636 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
637 registry/reg_backend_shares.o \
638 registry/reg_backend_netlogon_params.o \
639 registry/reg_backend_prod_options.o \
640 registry/reg_backend_tcpip_params.o \
641 registry/reg_backend_hkpt_params.o \
642 registry/reg_backend_current_version.o \
643 registry/reg_backend_perflib.o
645 REG_BASE_OBJ = registry/reg_api.o \
646 registry/reg_dispatcher.o \
647 registry/reg_cachehook.o \
648 $(REGOBJS_OBJ) \
649 registry/reg_util_internal.o \
650 lib/util_nttoken.o \
651 $(REG_BACKENDS_BASE_OBJ) \
652 $(REG_INIT_BASIC_OBJ)
654 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
655 registry/reg_util_token.o \
656 registry/reg_api_util.o \
657 $(REG_BACKENDS_SMBCONF_OBJ) \
658 $(REG_INIT_SMBCONF_OBJ)
660 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
661 $(REG_BACKENDS_EXTRA_OBJ) \
662 $(REG_INIT_FULL_OBJ) \
663 registry/reg_perfcount.o \
664 librpc/gen_ndr/ndr_perfcount.o
666 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
668 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
670 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
671 librpc/gen_ndr/srv_lsa.o
673 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
674 librpc/gen_ndr/srv_netlogon.o
676 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
677 rpc_server/samr/srv_samr_util.o \
678 rpc_server/samr/srv_samr_chgpasswd.o \
679 librpc/gen_ndr/srv_samr.o
681 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
683 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
684 librpc/gen_ndr/srv_winreg.o
686 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
688 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
689 librpc/gen_ndr/srv_srvsvc.o
691 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
692 rpc_server/wkssvc/srv_wkssvc_nt.o
694 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
695 rpc_server/svcctl/srv_svcctl_reg.o \
696 librpc/gen_ndr/srv_svcctl.o \
697 services/svc_winreg_glue.o \
698 services/svc_spoolss.o services/svc_rcinit.o \
699 services/svc_netlogon.o services/svc_winreg.o \
700 services/svc_wins.o
702 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
703 librpc/gen_ndr/srv_ntsvcs.o
705 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
706 rpc_server/dfs/srv_dfs_nt.o
708 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
709 rpc_server/spoolss/srv_spoolss_util.o \
710 librpc/gen_ndr/srv_spoolss.o
712 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
713 rpc_server/eventlog/srv_eventlog_reg.o \
714 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
716 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
717 librpc/gen_ndr/ndr_named_pipe_auth.o \
718 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o
720 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
721 rpc_server/rpc_handles.o rpc_server/srv_access_check.o
723 RPC_SERVICE = rpc_server/rpc_server.o
725 RPC_CRYPTO = rpc_server/dcesrv_ntlmssp.o \
726 rpc_server/dcesrv_gssapi.o \
727 rpc_server/dcesrv_spnego.o
729 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
730 $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
732 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
734 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
736 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_setup.o $(DCE_RPC_EP_OBJ)
738 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
739 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
740 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
741 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
742 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
743 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
744 $(LIBCLI_SPOOLSS_OBJ) \
745 $(LIBCLI_WINREG_INT_OBJ) \
746 $(LIBCLI_SRVSVC_OBJ) \
747 $(LIBCLI_LSA_OBJ) \
748 $(LIBCLI_SAMR_OBJ) \
749 $(LIBCLI_NETLOGON_OBJ) \
750 $(RPC_SERVER_REGISTER_OBJ) \
751 $(RPC_CLIENT_SCHANNEL_OBJ) \
752 rpc_client/init_netlogon.o \
753 rpc_client/init_samr.o
755 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
757 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
759 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
761 PRIVILEGES_OBJ = lib/privileges.o
763 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
765 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
766 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
767 lib/util_unixsids.o passdb/lookup_sid.o \
768 passdb/login_cache.o @PDB_STATIC@ \
769 passdb/account_pol.o $(PRIVILEGES_OBJ) \
770 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
771 passdb/pdb_util.o
773 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
774 CP850_OBJ = modules/CP850.o
775 CP437_OBJ = modules/CP437.o
776 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
778 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
780 PROFILE_OBJ = profile/profile.o
781 PROFILES_OBJ = utils/profiles.o \
782 $(LIBSMB_ERR_OBJ) \
783 $(PARAM_OBJ) \
784 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
785 $(POPT_LIB_OBJ) \
786 $(REGFIO_OBJ)
788 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
789 smbd/oplock_onefs.o
791 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
792 librpc/gen_ndr/ndr_notify.o librpc/gen_ndr/ndr_file_id.o
794 FNAME_UTIL_OBJ = lib/filename_util.o
796 VFS_DEFAULT_OBJ = modules/vfs_default.o
797 VFS_AUDIT_OBJ = modules/vfs_audit.o
798 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
799 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
800 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
801 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
802 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
803 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
804 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
805 VFS_CAP_OBJ = modules/vfs_cap.o
806 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
807 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
808 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
809 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
810 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
811 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
812 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
813 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
814 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
815 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
816 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
817 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
818 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
819 VFS_CATIA_OBJ = modules/vfs_catia.o
820 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
821 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
822 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
823 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
824 VFS_COMMIT_OBJ = modules/vfs_commit.o
825 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
826 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
827 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
828 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
829 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
830 VFS_FILEID_OBJ = modules/vfs_fileid.o
831 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
832 VFS_AIO_PTHREAD_OBJ = modules/vfs_aio_pthread.o
833 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
834 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
835 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
836 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
837 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
838 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
839 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
840 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
841 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
842 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
843 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
844 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
845 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
846 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
847 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
848 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
850 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
851 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
853 SLCACHE_OBJ = libsmb/samlogon_cache.o
855 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
857 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
858 AUTH_DOMAIN_OBJ = auth/auth_domain.o
859 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
860 AUTH_SERVER_OBJ = auth/auth_server.o
861 AUTH_UNIX_OBJ = auth/auth_unix.o
862 AUTH_WINBIND_OBJ = auth/auth_winbind.o
863 AUTH_WBC_OBJ = auth/auth_wbc.o
864 AUTH_SCRIPT_OBJ = auth/auth_script.o
865 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
867 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
868 auth/server_info.o \
869 auth/server_info_sam.o \
870 auth/user_info.o \
871 auth/user_util.o \
872 auth/user_krb5.o \
873 auth/auth_compat.o auth/auth_ntlmssp.o \
874 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
876 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
878 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o smbd/msg_idmap.o
880 BUILDOPT_OBJ = smbd/build_options.o
882 SMBD_OBJ_SRV = smbd/server_reload.o \
883 smbd/files.o smbd/connection.o \
884 smbd/utmp.o smbd/session.o \
885 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
886 smbd/share_access.o smbd/fileio.o \
887 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
888 smbd/message.o smbd/nttrans.o smbd/pipes.o \
889 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
890 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
891 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
892 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
893 smbd/posix_acls.o lib/sysacls.o \
894 smbd/process.o smbd/service.o smbd/error.o \
895 rpc_server/epmd.o \
896 printing/printspoolss.o printing/spoolssd.o \
897 lib/sysquotas.o lib/sysquotas_linux.o \
898 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
899 lib/sysquotas_nfs.o \
900 smbd/fake_file.o \
901 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
902 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
903 smbd/dmapi.o smbd/signing.o \
904 smbd/file_access.o \
905 smbd/dnsregister.o smbd/globals.o \
906 smbd/smb2_server.o \
907 smbd/smb2_signing.o \
908 smbd/smb2_glue.o \
909 smbd/smb2_negprot.o \
910 smbd/smb2_sesssetup.o \
911 smbd/smb2_tcon.o \
912 smbd/smb2_create.o \
913 smbd/smb2_close.o \
914 smbd/smb2_flush.o \
915 smbd/smb2_read.o \
916 smbd/smb2_write.o \
917 smbd/smb2_lock.o \
918 smbd/smb2_ioctl.o \
919 smbd/smb2_keepalive.o \
920 smbd/smb2_find.o \
921 smbd/smb2_notify.o \
922 smbd/smb2_getinfo.o \
923 smbd/smb2_setinfo.o \
924 smbd/smb2_break.o \
925 ../libcli/smb/smb2_create_blob.o \
926 $(MANGLE_OBJ) @VFS_STATIC@
928 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
929 $(RPC_SERVER_OBJ) \
930 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
931 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
932 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
933 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
934 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
935 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
936 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
937 $(LIBSMBCONF_OBJ) \
938 $(PRIVILEGES_BASIC_OBJ) \
939 $(REGFIO_OBJ) \
940 $(REG_API_REGF_OBJ) \
941 $(LIBNDR_XATTR_OBJ)
943 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
944 printing/print_cups.o printing/print_generic.o \
945 printing/lpq_parse.o printing/load.o \
946 printing/print_iprint.o printing/print_standard.o \
947 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
949 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
950 PRINTBACKEND_OBJ = printing/printing.o \
951 printing/nt_printing.o \
952 printing/nt_printing_tdb.o \
953 printing/nt_printing_migrate.o \
954 printing/nt_printing_migrate_internal.o \
955 printing/nt_printing_ads.o \
956 librpc/gen_ndr/ndr_ntprinting.o \
957 ../librpc/ndr/ndr_ntprinting.o \
958 $(PRINTBASE_OBJ)
960 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
962 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
963 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
964 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
965 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
966 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
967 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
968 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
969 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
970 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
971 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
972 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
973 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
975 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
976 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
977 $(LIBNDR_GEN_OBJ0)
979 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
980 web/swat.o web/neg_lang.o
982 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
983 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
984 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
985 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
986 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
987 $(LIBCLI_SAMR_OBJ) \
988 rpc_client/init_lsa.o
990 STATUS_OBJ = utils/status.o utils/status_profile.o \
991 $(LOCKING_OBJ) $(PARAM_OBJ) \
992 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
993 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
995 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
996 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
998 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
999 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1000 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1001 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1002 $(LIBMSRPC_GEN_OBJ) \
1003 $(LIBMSRPC_OBJ) \
1004 $(LIBCLI_SRVSVC_OBJ)
1006 TESTPARM_OBJ = utils/testparm.o \
1007 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1008 $(LIBSMB_ERR_OBJ)
1010 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1011 $(LIB_NONSMBD_OBJ) \
1012 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1014 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1015 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1016 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1018 PASSWD_UTIL_OBJ = utils/passwd_util.o
1020 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1021 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1022 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1023 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1024 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1025 $(LIBCLI_SAMR_OBJ) \
1026 rpc_client/init_lsa.o
1028 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1029 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
1030 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1031 $(LIBCLI_LDAP_NDR_OBJ) \
1032 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1034 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1036 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1038 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1039 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1040 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1041 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1042 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1043 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1044 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1045 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1046 rpcclient/cmd_winreg.o \
1047 $(DISPLAY_SEC_OBJ)
1049 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1050 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1051 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1052 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1053 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1054 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1055 $(LIBCLI_SPOOLSS_OBJ) \
1056 $(LIBCLI_EVENTLOG_OBJ) \
1057 $(LIBCLI_NTSVCS_OBJ) \
1058 $(LIBCLI_DRSUAPI_OBJ) \
1059 $(LIBCLI_DFS_OBJ) \
1060 $(LIBCLI_ECHO_OBJ) \
1061 $(LIBCLI_DSSETUP_OBJ) \
1062 $(LIBCLI_WKSSVC_OBJ) \
1063 $(LIBCLI_SRVSVC_OBJ) \
1064 $(LIBCLI_LSA_OBJ) \
1065 $(LIBCLI_SAMR_OBJ) \
1066 $(LIBCLI_WINREG_OBJ) \
1067 $(LIBCLI_NETLOGON_OBJ) \
1068 $(RPC_CLIENT_SCHANNEL_OBJ) \
1069 rpc_client/init_netlogon.o \
1070 rpc_client/init_samr.o
1072 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1073 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1075 LIBSMBCLIENT_THREAD_OBJ = \
1076 libsmb/libsmb_thread_impl.o \
1077 libsmb/libsmb_thread_posix.o
1079 LIBSMBCLIENT_OBJ0 = \
1080 libsmb/libsmb_cache.o \
1081 libsmb/libsmb_compat.o \
1082 libsmb/libsmb_context.o \
1083 libsmb/libsmb_dir.o \
1084 libsmb/libsmb_file.o \
1085 libsmb/libsmb_misc.o \
1086 libsmb/libsmb_path.o \
1087 libsmb/libsmb_printjob.o \
1088 libsmb/libsmb_server.o \
1089 libsmb/libsmb_stat.o \
1090 libsmb/libsmb_xattr.o \
1091 libsmb/libsmb_setget.o
1093 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1094 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1095 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1096 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1097 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1098 $(LIBCLI_SRVSVC_OBJ) \
1099 $(LIBCLI_LSA_OBJ)
1101 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1103 # This shared library is intended for linking with unit test programs
1104 # to test Samba internals. It's called libbigballofmud.so to
1105 # discourage casual usage.
1107 LIBBIGBALLOFMUD_MAJOR = 0
1109 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1110 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1111 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1113 CLIENT_OBJ1 = client/client.o client/clitar.o \
1114 client/dnsbrowse.o \
1115 $(LIBMSRPC_OBJ)
1117 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1118 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1119 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1120 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1121 $(DISPLAY_SEC_OBJ) \
1122 $(LIBCLI_SRVSVC_OBJ)
1124 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1125 ../lib/smbconf/smbconf_util.o \
1126 ../lib/smbconf/smbconf_txt.o \
1127 lib/smbconf/smbconf_reg.o \
1128 lib/smbconf/smbconf_init.o
1130 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1132 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1133 $(LIB_NONSMBD_OBJ) \
1134 $(PARAM_OBJ) \
1135 $(LIBSMB_ERR_OBJ) \
1136 $(POPT_LIB_OBJ)
1138 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1139 lib/pthreadpool/tests.o
1141 LIBNET_OBJ = libnet/libnet_join.o \
1142 libnet/libnet_keytab.o \
1143 librpc/gen_ndr/ndr_libnet_join.o
1145 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1146 libnet/libnet_dssync_passdb.o \
1147 libnet/libnet_dssync_keytab.o \
1148 ../libcli/drsuapi/repl_decrypt.o
1150 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1151 libnet/libnet_samsync_ldif.o \
1152 libnet/libnet_samsync_passdb.o \
1153 libnet/libnet_samsync_display.o \
1154 libnet/libnet_samsync_keytab.o \
1155 ../libcli/samsync/decrypt.o
1157 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1158 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1159 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1160 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o utils/net_idmap_check.o\
1161 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1162 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1163 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1164 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1165 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1166 utils/net_conf.o utils/net_join.o utils/net_user.o \
1167 utils/net_group.o utils/net_file.o utils/net_registry.o \
1168 auth/token_util.o utils/net_dom.o utils/net_share.o \
1169 utils/net_g_lock.o \
1170 utils/net_serverid.o \
1171 utils/net_eventlog.o \
1172 utils/net_printing.o \
1173 utils/net_rpc_trust.o \
1174 $(LIBNDR_NTPRINTING_OBJ) \
1175 $(LIBNDR_PREG_OBJ) \
1176 $(LIBCLI_SPOOLSS_OBJ) \
1177 $(LIBCLI_WINREG_OBJ) \
1178 $(LIBCLI_DRSUAPI_OBJ) \
1179 $(LIBCLI_INITSHUTDOWN_OBJ) \
1180 $(LIBCLI_DSSETUP_OBJ) \
1181 $(LIBCLI_SVCCTL_OBJ) \
1182 $(LIBCLI_WKSSVC_OBJ) \
1183 $(LIBCLI_SRVSVC_OBJ) \
1184 $(LIBCLI_LSA_OBJ) \
1185 $(LIBCLI_SAMR_OBJ) \
1186 $(LIBCLI_NETLOGON_OBJ) \
1187 $(RPC_CLIENT_SCHANNEL_OBJ) \
1188 rpc_client/init_netlogon.o \
1189 rpc_client/init_samr.o \
1190 registry/reg_parse.o registry/reg_format.o \
1191 registry/reg_parse_internal.o registry/reg_import.o \
1192 lib/cbuf.o lib/srprs.o printing/nt_printing_migrate.o
1194 # these are not processed by make proto
1195 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1197 NET_OBJ = $(NET_OBJ1) \
1198 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1199 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1200 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1201 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1202 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1203 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1204 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1205 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1206 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1207 $(REG_SMBCONF_OBJ) \
1208 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1209 $(LIBSMBCONF_OBJ) \
1210 $(REGFIO_OBJ) \
1211 $(PRIVILEGES_BASIC_OBJ) \
1212 $(LIB_EVENTLOG_OBJ)
1214 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1215 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1216 $(LIBNDR_GEN_OBJ0)
1218 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1219 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1221 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1222 torture/denytest.o torture/mangle_test.o \
1223 torture/nbench.o \
1224 torture/test_async_echo.o \
1225 torture/test_smbsock_any_connect.o \
1226 torture/test_addrchange.o \
1227 torture/test_posix_append.o
1229 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1230 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1231 @LIBWBCLIENT_STATIC@ \
1232 torture/wbc_async.o \
1233 ../nsswitch/wb_reqtrans.o \
1234 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1236 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1237 $(LIB_NONSMBD_OBJ) \
1238 $(LIBNDR_GEN_OBJ0)
1240 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1241 $(LIB_NONSMBD_OBJ) \
1242 $(LIBNDR_GEN_OBJ0)
1244 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1245 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1246 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1248 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1250 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1251 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1252 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1253 $(LIBNDR_GEN_OBJ0)
1255 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1257 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1259 LOG2PCAP_OBJ = utils/log2pcaphex.o
1261 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1262 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1263 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1265 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1266 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1267 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1268 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1269 $(LIBCLI_LSA_OBJ)
1271 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1272 $(PARAM_OBJ) \
1273 $(LIB_NONSMBD_OBJ) \
1274 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1275 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1276 $(LIBCLI_LSA_OBJ)
1278 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1280 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1281 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1282 librpc/gen_ndr/ndr_eventlog.o \
1283 librpc/gen_ndr/ndr_lsa.o
1285 SHARESEC_OBJ0 = utils/sharesec.o
1286 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1287 $(LIBSMB_ERR_OBJ) \
1288 $(POPT_LIB_OBJ)
1290 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1291 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1293 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1294 @libreplacedir@/test/getifaddrs.o \
1295 @libreplacedir@/test/os2_delete.o \
1296 @libreplacedir@/test/strptime.o \
1297 @libreplacedir@/test/main.o \
1298 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1300 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1302 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1303 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1304 $(LIBNDR_GEN_OBJ0)
1306 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1307 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1309 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1310 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1311 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1312 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1313 $(LIBTSOCKET_OBJ) $(PAM_ERRORS_OBJ)
1315 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1317 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1319 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1321 IDMAP_HASH_OBJ = \
1322 winbindd/idmap_hash/idmap_hash.o \
1323 winbindd/idmap_hash/mapfile.o
1325 IDMAP_ADEX_OBJ = \
1326 winbindd/idmap_adex/idmap_adex.o \
1327 winbindd/idmap_adex/cell_util.o \
1328 winbindd/idmap_adex/likewise_cell.o \
1329 winbindd/idmap_adex/provider_unified.o \
1330 winbindd/idmap_adex/gc_util.o \
1331 winbindd/idmap_adex/domain_util.o
1333 WINBINDD_OBJ1 = \
1334 winbindd/winbindd.o \
1335 winbindd/winbindd_group.o \
1336 winbindd/winbindd_util.o \
1337 winbindd/winbindd_cache.o \
1338 winbindd/winbindd_pam.o \
1339 winbindd/winbindd_misc.o \
1340 winbindd/winbindd_cm.o \
1341 winbindd/winbindd_wins.o \
1342 winbindd/winbindd_msrpc.o \
1343 winbindd/winbindd_rpc.o \
1344 winbindd/winbindd_reconnect.o \
1345 winbindd/winbindd_ads.o \
1346 winbindd/winbindd_samr.o \
1347 winbindd/winbindd_dual.o \
1348 winbindd/winbindd_dual_ndr.o \
1349 winbindd/winbindd_dual_srv.o \
1350 librpc/gen_ndr/ndr_wbint_c.o \
1351 librpc/gen_ndr/srv_wbint.o \
1352 librpc/gen_ndr/ndr_wbint.o \
1353 librpc/gen_ndr/ndr_idmap.o \
1354 winbindd/winbindd_async.o \
1355 winbindd/winbindd_creds.o \
1356 winbindd/winbindd_cred_cache.o \
1357 winbindd/winbindd_ccache_access.o \
1358 winbindd/winbindd_domain.o \
1359 winbindd/winbindd_idmap.o \
1360 winbindd/winbindd_locator.o \
1361 winbindd/winbindd_ndr.o \
1362 winbindd/wb_ping.o \
1363 winbindd/wb_lookupsid.o \
1364 winbindd/wb_lookupsids.o \
1365 winbindd/wb_lookupname.o \
1366 winbindd/wb_sid2uid.o \
1367 winbindd/wb_sid2gid.o \
1368 winbindd/wb_uid2sid.o \
1369 winbindd/wb_gid2sid.o \
1370 winbindd/wb_queryuser.o \
1371 winbindd/wb_lookupuseraliases.o \
1372 winbindd/wb_lookupusergroups.o \
1373 winbindd/wb_getpwsid.o \
1374 winbindd/wb_gettoken.o \
1375 winbindd/wb_seqnum.o \
1376 winbindd/wb_seqnums.o \
1377 winbindd/wb_group_members.o \
1378 winbindd/wb_getgrsid.o \
1379 winbindd/wb_query_user_list.o \
1380 winbindd/wb_fill_pwent.o \
1381 winbindd/wb_next_pwent.o \
1382 winbindd/wb_next_grent.o \
1383 winbindd/wb_dsgetdcname.o \
1384 winbindd/winbindd_lookupsid.o \
1385 winbindd/winbindd_lookupsids.o \
1386 winbindd/winbindd_lookupname.o \
1387 winbindd/winbindd_sid_to_uid.o \
1388 winbindd/winbindd_sid_to_gid.o \
1389 winbindd/winbindd_uid_to_sid.o \
1390 winbindd/winbindd_gid_to_sid.o \
1391 winbindd/winbindd_sids_to_xids.o \
1392 winbindd/winbindd_allocate_uid.o \
1393 winbindd/winbindd_allocate_gid.o \
1394 winbindd/winbindd_getpwsid.o \
1395 winbindd/winbindd_getpwnam.o \
1396 winbindd/winbindd_getpwuid.o \
1397 winbindd/winbindd_getsidaliases.o \
1398 winbindd/winbindd_getuserdomgroups.o \
1399 winbindd/winbindd_getgroups.o \
1400 winbindd/winbindd_show_sequence.o \
1401 winbindd/winbindd_getgrgid.o \
1402 winbindd/winbindd_getgrnam.o \
1403 winbindd/winbindd_getusersids.o \
1404 winbindd/winbindd_lookuprids.o \
1405 winbindd/winbindd_setpwent.o \
1406 winbindd/winbindd_getpwent.o \
1407 winbindd/winbindd_endpwent.o \
1408 winbindd/winbindd_setgrent.o \
1409 winbindd/winbindd_getgrent.o \
1410 winbindd/winbindd_endgrent.o \
1411 winbindd/winbindd_dsgetdcname.o \
1412 winbindd/winbindd_getdcname.o \
1413 winbindd/winbindd_list_users.o \
1414 winbindd/winbindd_list_groups.o \
1415 winbindd/winbindd_check_machine_acct.o \
1416 winbindd/winbindd_change_machine_acct.o \
1417 winbindd/winbindd_ping_dc.o \
1418 winbindd/winbindd_pam_auth.o \
1419 winbindd/winbindd_pam_auth_crap.o \
1420 winbindd/winbindd_pam_chauthtok.o \
1421 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1422 winbindd/winbindd_pam_logoff.o \
1423 auth/auth_util.o \
1424 auth/token_util.o \
1425 auth/user_util.o \
1426 auth/check_samsec.o \
1427 auth/server_info.o \
1428 auth/server_info_sam.o \
1429 auth/user_info.o \
1430 auth/pampass.o \
1431 ../nsswitch/wb_reqtrans.o
1433 WINBINDD_OBJ = \
1434 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1435 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1436 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1437 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1438 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1439 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1440 $(RPC_NCACN_NP) $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1441 $(NPA_TSTREAM_OBJ) \
1442 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1443 $(LIBADS_SERVER_OBJ) \
1444 $(TDB_VALIDATE_OBJ) \
1445 $(LIBCLI_DSSETUP_OBJ) \
1446 $(LIBCLI_LSA_OBJ) \
1447 $(LIBCLI_SAMR_OBJ) \
1448 $(LIBCLI_NETLOGON_OBJ) \
1449 rpc_client/init_netlogon.o \
1450 rpc_client/init_samr.o \
1451 $(PAM_ERRORS_OBJ)
1453 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1454 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1455 lib/winbind_util.o $(WBCOMMON_OBJ)
1457 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1459 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1460 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1462 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1463 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1465 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1466 ../lib/iniparser_build/strlib.o
1468 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1469 $(SOCKET_WRAPPER_OBJ)
1471 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1472 $(SOCKET_WRAPPER_OBJ)
1474 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1475 $(SOCKET_WRAPPER_OBJ)
1477 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1478 $(SOCKET_WRAPPER_OBJ)
1480 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1481 $(SOCKET_WRAPPER_OBJ)
1484 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1486 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1487 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o libads/kerberos.o \
1488 libsmb/samlogon_cache.o \
1489 $(LIBADS_SERVER_OBJ) \
1490 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1491 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1492 $(WBCOMMON_OBJ) \
1493 $(LIBCLI_LDAP_NDR_OBJ) \
1494 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1497 VLP_OBJ = printing/tests/vlp.o \
1498 ../lib/util/util_tdb.o \
1499 $(LIBSAMBAUTIL_OBJ) \
1500 param/util.o
1502 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1503 $(LIBSMB_OBJ) \
1504 $(PARAM_OBJ) \
1505 $(PASSDB_OBJ) \
1506 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1507 $(LIB_NONSMBD_OBJ) \
1508 $(KRBCLIENT_OBJ) \
1509 $(LIBMSRPC_OBJ) \
1510 $(LIBMSRPC_GEN_OBJ)
1512 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1513 $(PARAM_OBJ) \
1514 $(LIB_NONSMBD_OBJ) \
1515 $(LIBSMB_ERR_OBJ)
1517 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1518 $(PARAM_OBJ) \
1519 $(LIB_NONSMBD_OBJ) \
1520 $(LIBSMB_ERR_OBJ) \
1521 $(POPT_LIB_OBJ)
1523 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1524 $(PARAM_OBJ) \
1525 $(LIB_NONSMBD_OBJ) \
1526 $(POPT_LIB_OBJ) \
1527 $(LIBSAMBA_OBJ)
1529 ######################################################################
1530 # now the rules...
1531 ######################################################################
1532 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1533 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1534 $(EXTRA_ALL_TARGETS)
1536 basics:: samba3-idl
1538 nss_modules:: $(NSS_MODULES)
1540 pam_modules:: $(PAM_MODULES)
1542 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1544 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1546 gpext_modules:: $(GPEXT_MODULES)
1548 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1550 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1552 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1554 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1556 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1558 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1560 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1562 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1564 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1566 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1568 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1570 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1572 talloctort : SHOWFLAGS $(TALLOCTORT)
1574 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1576 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1578 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest@EXEEXT@
1580 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1582 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1583 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1584 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1586 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1588 modules:: SHOWFLAGS $(MODULES)
1591 #####################################################################
1592 ## Perl IDL Compiler
1594 IDL_FILES = librpc/idl/messaging.idl \
1595 librpc/idl/libnetapi.idl \
1596 librpc/idl/notify.idl \
1597 librpc/idl/wbint.idl \
1598 librpc/idl/perfcount.idl \
1599 librpc/idl/secrets.idl \
1600 librpc/idl/libnet_join.idl \
1601 librpc/idl/server_id.idl
1603 samba3-idl::
1604 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1605 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1606 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1607 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1609 idl_full::
1610 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1611 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1612 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1613 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1615 #####################################################################
1618 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1619 $(EVERYTHING_PROGS) \
1620 vfs_examples
1622 .SUFFIXES:
1623 .SUFFIXES: .c .o .lo
1625 .PHONY: showflags SHOWFLAGS
1627 showflags: SHOWFLAGS
1629 SHOWFLAGS::
1630 @echo "Using CFLAGS = $(CFLAGS)"
1631 @echo " PICFLAG = $(PICFLAG)"
1632 @echo " LIBS = $(LIBS)"
1633 @echo " LDFLAGS = $(LDFLAGS)"
1634 @echo " DYNEXP = $(DYNEXP)"
1635 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1636 @echo " SHLIBEXT = @SHLIBEXT@"
1637 @echo " SONAMEFLAG = @SONAMEFLAG@"
1639 # "showcflags" target for debuggin how CFLAGS are composed:
1641 .PHONY: showcflags SHOWCFLAGS
1643 showcflags: SHOWCFLAGS
1645 SHOWCFLAGS::
1646 @echo "CFLAGS = $(CFLAGS)"
1647 @echo "FLAGS = $(FLAGS)"
1648 @echo ""
1649 @echo "FLAGS1 = @FLAGS1@"
1650 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1651 @echo "CPPFLAGS = $(CPPFLAGS)"
1652 @echo "ISA = $(ISA)"
1654 MAKEDIR = || exec false; \
1655 if test -d "$$dir"; then :; else \
1656 echo mkdir "$$dir"; \
1657 mkdir -p "$$dir" >/dev/null 2>&1 || \
1658 test -d "$$dir" || \
1659 mkdir "$$dir" || \
1660 exec false; fi || exec false
1662 # Run a static checker.
1663 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1664 # Compile a source file.
1665 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1666 # Compile a source file with the installation paths defined.
1667 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1669 COMPILE = $(COMPILE_CC)
1671 .c.o:
1672 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1673 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1674 @if test -n "$(CC_CHECKER)"; then \
1675 echo "Checking $*.c with '$(CC_CHECKER)'";\
1676 $(CHECK_CC); \
1678 @echo Compiling $*.c
1679 @$(COMPILE) && exit 0;\
1680 echo "The following command failed:" 1>&2;\
1681 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1682 $(COMPILE_CC) >/dev/null 2>&1
1683 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1685 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1687 # this adds support for precompiled headers. To use it, install a snapshot
1688 # of gcc-3.4 and run 'make pch' before you do the main build.
1689 pch::
1690 rm -f $(PRECOMPILED_HEADER)
1691 $(MAKE) $(PRECOMPILED_HEADER)
1693 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1694 $(COMPILE)
1696 BINARY_PREREQS = bin/.dummy
1698 # These dependencies are only approximately correct: we want to make
1699 # sure Samba's paths are updated if ./configure is re-run. Really it
1700 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1701 # but since we also require "make install prefix=/opt/samba" *not* to
1702 # rebuild it's a bit hard.
1704 dynconfig.o: dynconfig.c Makefile
1705 @echo Compiling $*.c
1706 @$(COMPILE_CC_PATH) && exit 0;\
1707 echo "The following command failed:" 1>&2;\
1708 echo "$(COMPILE_CC_PATH)" 1>&2;\
1709 $(COMPILE_CC_PATH) >/dev/null 2>&1
1711 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1712 @echo Compiling $*.c
1713 @$(COMPILE_CC_PATH) && exit 0;\
1714 echo "The following command failed:" 1>&2;\
1715 echo "$(COMPILE_CC_PATH)" 1>&2;\
1716 $(COMPILE_CC_PATH) >/dev/null 2>&1
1718 ### Start section of object files that require PTHREAD_CFLAGS
1719 ../nsswitch/wins.o: ../nsswitch/wins.c
1720 @echo Compiling $*.c
1721 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1722 echo "The following command failed:" 1>&2;\
1723 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1724 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1726 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1727 @echo Compiling $*.c
1728 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1729 echo "The following command failed:" 1>&2;\
1730 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1731 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1733 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1734 @echo Compiling $*.c
1735 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1736 echo "The following command failed:" 1>&2;\
1737 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1738 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1740 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1741 @echo Compiling $*.c
1742 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1743 echo "The following command failed:" 1>&2;\
1744 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1745 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1746 ### End section of object files that require PTHREAD_CFLAGS
1748 lib/pidfile.o: lib/pidfile.c
1749 @echo Compiling $*.c
1750 @$(COMPILE_CC_PATH) && exit 0;\
1751 echo "The following command failed:" 1>&2;\
1752 echo "$(COMPILE_CC_PATH)" 1>&2;\
1753 $(COMPILE_CC_PATH) >/dev/null 2>&1
1755 lib/version.o: lib/version.c include/version.h
1756 @echo Compiling $*.c
1757 @$(COMPILE_CC_PATH) && exit 0;\
1758 echo "The following command failed:" 1>&2;\
1759 echo "$(COMPILE_CC_PATH)" 1>&2;\
1760 $(COMPILE_CC_PATH) >/dev/null 2>&1
1762 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1763 @echo Compiling $*.c
1764 @$(COMPILE_CC_PATH) && exit 0;\
1765 echo "The following command failed:" 1>&2;\
1766 echo "$(COMPILE_CC_PATH)" 1>&2;\
1767 $(COMPILE_CC_PATH) >/dev/null 2>&1
1769 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1770 @echo Generating $@
1771 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1773 bin/.dummy:
1774 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1775 dir=bin $(MAKEDIR); fi
1776 @: >> $@ || : > $@ # what a fancy emoticon!
1778 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1779 @echo Linking $@
1780 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1781 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1782 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1783 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1784 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1786 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1787 @echo Linking $@
1788 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1789 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1790 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1791 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1793 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1794 @echo Linking $@
1795 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1796 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1797 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1799 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1800 @echo Linking $@
1801 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1802 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1803 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1804 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1806 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1807 @echo Linking $@
1808 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1809 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1810 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1811 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1813 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1814 @echo Linking $@
1815 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1816 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1817 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1818 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1819 $(ZLIB_LIBS)
1821 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1822 @echo Linking $@
1823 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1824 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1826 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1827 @echo Linking $@
1828 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1829 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1830 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1832 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1833 @echo Linking $@
1834 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1835 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1837 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1838 @echo Linking $@
1839 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1840 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1842 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1843 @echo Linking $@
1844 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1845 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1847 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1848 @echo Linking $@
1849 @$(CC) -DUSING_SMBCONTROL -o $@ \
1850 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1851 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1852 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1854 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1855 @echo Linking $@
1856 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1857 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1858 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1860 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1861 @echo Linking $@
1862 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1863 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1864 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1866 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1867 @echo Linking $@
1868 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1869 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1870 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1872 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1873 @echo Linking $@
1874 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1875 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1876 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1878 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1879 @echo Linking $@
1880 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1881 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1883 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1884 @echo Linking $@
1885 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1886 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1887 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1889 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1890 @echo Linking $@
1891 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1892 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1893 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1895 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1896 @echo Linking $@
1897 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1898 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1900 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1901 @echo Linking $@
1902 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1903 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1904 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1906 bin/pthreadpooltest@EXEEXT@: $(PTHREADPOOLTEST_OBJ)
1907 @echo Linking $@
1908 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) -lpthread
1910 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1911 @echo Linking $@
1912 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1913 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1914 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1915 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1917 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1918 @echo Linking $@
1919 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1920 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1921 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1923 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1924 @echo Linking $@
1925 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1926 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1927 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1929 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1930 @echo Linking $@
1931 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1932 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1933 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1935 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1936 @echo Linking $@
1937 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1938 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1940 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1941 @echo Linking $@
1942 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1943 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1945 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1946 @echo Linking $@
1947 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1948 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1949 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1950 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1952 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1953 @echo Linking $@
1954 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1956 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1957 @echo Linking $@
1958 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1959 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1960 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1962 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1963 @echo Linking $@
1964 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1965 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1966 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1967 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1968 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1970 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1971 @echo Linking $@
1972 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1973 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1974 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1976 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1977 @echo Linking $@
1978 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1979 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1981 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1982 @echo Linking $@
1983 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1984 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1985 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1986 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1988 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1989 @echo Linking $@
1990 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1991 $(LIBS) $(LIBTALLOC_LIBS)
1993 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1994 @echo Linking $@
1995 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1996 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1997 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1998 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2000 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2001 @echo Linking $@
2002 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2005 #####################################################################
2007 # libraries
2009 #####################################################################
2011 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2014 #-------------------------------------------------------------------
2016 # libtalloc
2018 #-------------------------------------------------------------------
2021 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2022 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2024 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2025 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2026 LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@
2027 LIBTALLOC_SHARED_TARGET_SONAME=@LIBTALLOC_SHARED_TARGET_SOVER@
2028 LIBTALLOC_SHARED_TARGET_FULLVER=@LIBTALLOC_SHARED_TARGET_FULLVER@
2029 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2030 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2031 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2033 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2034 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2036 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2037 @echo Linking shared library $@
2038 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2040 $(LIBTALLOC_SHARED_TARGET_FULLVER): $(LIBTALLOC_SHARED_TARGET_SONAME)
2041 @rm -f $@
2042 @mv -f $(LIBTALLOC_SHARED_TARGET_SONAME) $@
2043 @ln -f -s `basename $@` $(LIBTALLOC_SHARED_TARGET_SONAME)
2045 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_FULLVER)
2046 @rm -f $@
2047 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2049 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2050 @echo Linking non-shared library $@
2051 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2052 libtalloc: $(LIBTALLOC)
2054 cleanlibtalloc::
2055 -rm -f \
2056 $(LIBTALLOC_SYMS) \
2057 $(LIBTALLOC_STATIC_TARGET) \
2058 $(LIBTALLOC_SHARED_TARGET) \
2059 $(LIBTALLOC_SHARED_TARGET_SONAME)
2061 installlibtalloc:: installdirs libtalloc
2062 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2063 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2064 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2065 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2066 -if test -r $(LIBTALLOC_SHARED_TARGET_FULLVER) ; then \
2067 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_FULLVER)` \
2068 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` ; \
2070 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2071 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2072 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2074 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2075 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2076 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2078 uninstalllibtalloc::
2079 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2080 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2081 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2082 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2084 libs:: libtalloc
2085 installlibs:: @INSTALL_LIBTALLOC@
2086 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2087 cleanlibs:: cleanlibtalloc
2088 shlibs test_shlibs: @LIBTALLOC_SHARED@
2090 showlibtalloc:
2091 @echo ""
2092 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2093 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2094 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2095 @echo ""
2096 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2097 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2098 @echo "LIBTALLOC_FULLVER = $(LIBTALLOC_FULLVER)"
2099 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2100 @echo "LIBTALLOC_SHARED TARGET_FULLVER = $(LIBTALLOC_SHARED_TARGET_FULLVER)"
2101 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2102 @echo "LIBTALLOC = $(LIBTALLOC)"
2104 showlibs:: showlibtalloc
2106 #-------------------------------------------------------------------
2108 # libtdb
2110 #-------------------------------------------------------------------
2112 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2113 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2115 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2116 LIBTDB_SOVER=@LIBTDB_SOVER@
2117 LIBTDB_FULLVER=@LIBTDB_FULLVER@
2118 LIBTDB_SHARED_TARGET_SONAME=@LIBTDB_SHARED_TARGET_SOVER@
2119 LIBTDB_SHARED_TARGET_FULLVER=@LIBTDB_SHARED_TARGET_FULLVER@
2120 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2121 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2122 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2124 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2125 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2128 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2129 @echo Linking shared library $@
2130 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2131 @SONAMEFLAG@`basename $@`
2133 $(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME)
2134 @rm -f $@
2135 @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER)
2136 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME)
2138 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER)
2139 @rm -f $@
2140 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2142 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2143 @echo Linking non-shared library $@
2144 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2146 libtdb: $(LIBTDB)
2148 cleanlibtdb::
2149 -rm -f \
2150 $(LIBTDB_SYMS) \
2151 $(LIBTDB_STATIC_TARGET) \
2152 $(LIBTDB_SHARED_TARGET) \
2153 $(LIBTDB_SHARED_TARGET_SONAME)
2156 installlibtdb:: installdirs libtdb
2157 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2158 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2159 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2160 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2161 -if test -r $(LIBTDB_SHARED_TARGET_FULLVER) ; then \
2162 ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` \
2163 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)` ; \
2165 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2166 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2167 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2169 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2170 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2171 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2173 uninstalllibtdb::
2174 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2175 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2176 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2177 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2179 libs:: libtdb
2180 installlibs:: @INSTALL_LIBTDB@
2181 uninstalllibs:: @UNINSTALL_LIBTDB@
2182 cleanlibs:: cleanlibtdb
2183 shlibs test_shlibs: @LIBTDB_SHARED@
2185 showlibtdb:
2186 @echo ""
2187 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2188 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2189 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2190 @echo ""
2191 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2192 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2193 @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)"
2194 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2195 @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)"
2196 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2197 @echo "LIBTDB = $(LIBTDB)"
2199 showlibs:: showlibtdb
2201 #-------------------------------------------------------------------
2203 # libwbclient
2205 #-------------------------------------------------------------------
2207 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2208 ../nsswitch/libwbclient/wbc_util.o \
2209 ../nsswitch/libwbclient/wbc_pwd.o \
2210 ../nsswitch/libwbclient/wbc_idmap.o \
2211 ../nsswitch/libwbclient/wbc_sid.o \
2212 ../nsswitch/libwbclient/wbc_guid.o \
2213 ../nsswitch/libwbclient/wbc_pam.o
2215 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2216 $(WBCOMMON_OBJ) \
2217 $(LIBREPLACE_OBJ) \
2218 ../lib/util/blocking.o \
2219 $(SOCKET_WRAPPER_OBJ)
2221 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2222 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2223 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2224 LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@
2225 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2226 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2227 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2229 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2230 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2232 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2233 @echo Linking shared library $@
2234 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2235 @SONAMEFLAG@`basename $@`
2237 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2238 @rm -f $@
2239 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2241 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2242 @echo Linking non-shared library $@
2243 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2245 libwbclient: $(LIBWBCLIENT)
2247 cleanlibwbclient::
2248 -rm -f \
2249 $(LIBWBCLIENT_SYMS) \
2250 $(LIBWBCLIENT_STATIC_TARGET) \
2251 $(LIBWBCLIENT_SHARED_TARGET) \
2252 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2254 installlibwbclient:: installdirs libwbclient
2255 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2256 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2257 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2258 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2259 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2260 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2262 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2263 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2264 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2266 uninstalllibwbclient::
2267 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2268 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2269 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2270 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2272 libs:: libwbclient
2273 installlibs:: @INSTALL_LIBWBCLIENT@
2274 uninstalllibs:: uninstalllibwbclient
2275 cleanlibs:: cleanlibwbclient
2276 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2278 showlibwbclient:
2279 @echo ""
2280 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2281 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2282 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2283 @echo ""
2284 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2285 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2286 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2287 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2288 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2289 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2291 showlibs:: showlibwbclient
2294 #-------------------------------------------------------------------
2296 # libaddns
2298 #-------------------------------------------------------------------
2301 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2302 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2303 LIBADDNS_FULLVER=@LIBADDNS_FULLVER@
2304 LIBADDNS_SHARED_TARGET_SONAME=@LIBADDNS_SHARED_TARGET_SOVER@
2305 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2306 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2307 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2308 LIBADDNS_HEADERS=$(srcdir)/../lib/addns/addns.h
2310 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2311 @echo Linking shared library $@
2312 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2313 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2314 @SONAMEFLAG@`basename $@`
2316 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2317 @rm -f $@
2318 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2320 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2321 @echo Linking non-shared library $@
2322 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2324 libaddns: $(LIBADDNS)
2326 cleanlibaddns::
2327 -rm -f \
2328 $(LIBADDNS_SHARED_TARGET) \
2329 $(LIBADDNS_SHARED_TARGET_SONAME) \
2330 $(LIBADDNS_STATIC_TARGET)
2332 installlibaddns:: installdirs libaddns
2333 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2334 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2335 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2336 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2337 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2338 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2340 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2342 uninstalllibaddns::
2343 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2344 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2345 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2347 libs:: libaddns
2348 installlibs:: @INSTALL_LIBADDNS@
2349 uninstalllibs:: @UNINSTALL_LIBADDNS@
2350 cleanlibs:: cleanlibaddns
2351 shlibs test_shlibs: @LIBADDNS_SHARED@
2353 showlibaddns:
2354 @echo ""
2355 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2356 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2357 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2358 @echo ""
2359 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2360 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2361 @echo "LIBADDNS_FULLVER = $(LIBADDNS_FULLVER)"
2362 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2363 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2364 @echo "LIBADDNS = $(LIBADDNS)"
2366 showlibs:: showlibaddns
2368 #-------------------------------------------------------------------
2370 # libnetapi
2372 #-------------------------------------------------------------------
2374 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2375 lib/netapi/cm.o \
2376 librpc/gen_ndr/ndr_libnetapi.o \
2377 lib/netapi/libnetapi.o \
2378 lib/netapi/joindomain.o \
2379 lib/netapi/serverinfo.o \
2380 lib/netapi/getdc.o \
2381 lib/netapi/user.o \
2382 lib/netapi/group.o \
2383 lib/netapi/localgroup.o \
2384 lib/netapi/samr.o \
2385 lib/netapi/sid.o \
2386 lib/netapi/share.o \
2387 lib/netapi/file.o \
2388 lib/netapi/shutdown.o \
2389 lib/netapi/netlogon.o
2391 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2392 $(LIBSMBCONF_OBJ) \
2393 $(REG_SMBCONF_OBJ) \
2394 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2395 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2396 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2397 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2398 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2399 auth/token_util.o \
2400 $(LIBCLI_INITSHUTDOWN_OBJ) \
2401 $(LIBCLI_WKSSVC_OBJ) \
2402 $(LIBCLI_SRVSVC_OBJ) \
2403 $(LIBCLI_LSA_OBJ) \
2404 $(LIBCLI_SAMR_OBJ) \
2405 $(LIBCLI_NETLOGON_OBJ) \
2406 $(RPC_CLIENT_SCHANNEL_OBJ) \
2407 rpc_client/init_netlogon.o \
2408 rpc_client/init_samr.o
2410 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2411 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2412 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2413 LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@
2414 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2415 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2416 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2418 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2419 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2421 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2422 @echo Linking shared library $@
2423 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2424 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2425 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2426 @SONAMEFLAG@`basename $@`
2428 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2429 @rm -f $@
2430 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2432 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2433 @echo Linking non-shared library $@
2434 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2436 libnetapi: $(LIBNETAPI)
2438 cleanlibnetapi::
2439 -rm -f \
2440 $(LIBNETAPI_SYMS) \
2441 $(LIBNETAPI_STATIC_TARGET) \
2442 $(LIBNETAPI_SHARED_TARGET) \
2443 $(LIBNETAPI_SHARED_TARGET_SONAME)
2445 installlibnetapi:: installdirs libnetapi
2446 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2447 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2448 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2449 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2450 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2451 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2453 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2454 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2455 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2457 uninstalllibnetapi::
2458 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2459 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2460 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2461 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2463 libs:: libnetapi
2464 installlibs:: @INSTALL_LIBNETAPI@
2465 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2466 cleanlibs:: cleanlibnetapi
2467 shlibs test_shlibs: @LIBNETAPI_SHARED@
2469 showlibnetapi:
2470 @echo ""
2471 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2472 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2473 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2474 @echo ""
2475 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2476 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2477 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2478 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2479 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2480 @echo "LIBNETAPI = $(LIBNETAPI)"
2482 showlibs:: showlibnetapi
2484 #-------------------------------------------------------------------
2486 # libsmbclient
2488 #-------------------------------------------------------------------
2490 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2491 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2492 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2493 LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@
2494 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2495 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2496 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2497 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2499 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2500 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2502 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2503 @echo Linking shared library $@
2504 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2505 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2506 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2507 @SONAMEFLAG@`basename $@`
2509 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2510 @rm -f $@
2511 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2513 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2514 @echo Linking non-shared library $@
2515 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2517 libsmbclient: $(LIBSMBCLIENT)
2519 cleanlibsmbclient::
2520 -rm -f \
2521 $(LIBSMBCLIENT_SHARED_TARGET) \
2522 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2523 $(LIBSMBCLIENT_STATIC_TARGET)
2525 installlibsmbclient:: installdirs libsmbclient
2526 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2527 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2528 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2529 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2530 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2531 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2533 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2534 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2535 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2537 installclientlib:: installlibsmbclient
2539 uninstalllibsmbclient::
2540 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2541 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2542 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2543 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2545 uninstallclientlib:: uninstalllibsmbclient
2547 libs:: libsmbclient
2548 installlibs:: @INSTALL_LIBSMBCLIENT@
2549 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2550 cleanlibs:: cleanlibsmbclient
2551 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2553 showlibsmbclient:
2554 @echo ""
2555 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2556 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2557 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2558 @echo ""
2559 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2560 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2561 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2562 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2563 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2564 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2566 showlibs:: showlibsmbclient
2568 #-------------------------------------------------------------------
2570 # libsmbsharemodes
2572 #-------------------------------------------------------------------
2574 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2576 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2578 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2579 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2580 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2581 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@
2582 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2583 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2584 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2585 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2587 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2588 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2590 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2591 @echo Linking shared library $@
2592 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2593 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2594 @SONAMEFLAG@`basename $@`
2596 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2597 @rm -f $@
2598 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2600 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2601 @echo Linking non-shared library $@
2602 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2604 libsmbsharemodes: $(LIBSMBSHAREMODES)
2606 cleanlibsmbsharemodes::
2607 -rm -f \
2608 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2609 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2610 $(LIBSMBSHAREMODES_STATIC_TARGET)
2612 installlibsmbsharemodes:: installdirs libsmbsharemodes
2613 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2614 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2615 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2616 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2617 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2618 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2620 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2621 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2622 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2624 uninstalllibsmbsharemodes::
2625 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2626 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2627 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2628 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2630 libs:: libsmbsharemodes
2631 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2632 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2633 cleanlibs:: cleanlibsmbsharemodes
2634 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2636 showlibsmbsharemodes:
2637 @echo ""
2638 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2639 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2640 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2641 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2642 @echo ""
2643 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2644 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2645 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2646 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2647 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2648 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2650 showlibs:: showlibsmbsharemodes
2652 #-------------------------------------------------------------------
2654 # libbigballofmud
2656 #-------------------------------------------------------------------
2658 # This is probably wrong for anything other than the GNU linker.
2659 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2660 @echo Linking shared library $@
2661 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2662 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2663 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2664 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2665 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2667 # It would be nice to build a static bigballofmud too, but when I try
2668 # I get linker errors about dl_open and similar things. I'm not sure if
2669 # it can be fixed or if they just can't be called from a static
2670 # library.
2672 #####################################################################
2674 # shared modules
2676 #####################################################################
2678 # Linker command to link our shared libraries:
2679 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2680 -o $@ @SONAMEFLAG@`basename $@`
2681 # Linker command to link samba internal plugin modules:
2682 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2683 -o $@ @SONAMEFLAG@`basename $@`
2685 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2686 @echo "Linking $@"
2687 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2689 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2690 @echo "Linking $@"
2691 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2693 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2694 @echo "Linking $@"
2695 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2697 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2698 @echo "Linking $@"
2699 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2701 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2702 @echo "Linking $@"
2703 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2705 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2706 @echo "Linking $@"
2707 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2709 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2710 @echo "Linking $@"
2711 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2713 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2714 @echo "Linking $@"
2715 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2717 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2718 @echo "Linking $@"
2719 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2721 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2722 @echo "Linking $@"
2723 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2725 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2726 @echo "Linking $@"
2727 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2729 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2730 @echo "Linking $@"
2731 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2733 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2734 @echo "Linking $@"
2735 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2737 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2738 @echo "Linking $@"
2739 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2741 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2742 @echo "Linking $@"
2743 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2744 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2745 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2746 $(ZLIB_LIBS)
2748 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2749 @echo "Linking $@"
2750 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2751 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2752 $(LIBTDB_LIBS)
2754 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2755 @echo "Linking $@"
2756 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2757 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2758 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2760 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2761 @echo "Linking $@"
2762 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2763 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2764 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2766 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2767 @echo "Linking $@"
2768 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2769 $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2771 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2772 @echo "Linking shared library $@"
2773 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2774 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2776 ##########
2777 # Plugins:
2778 ##########
2780 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2781 @echo "Building plugin $@"
2782 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2784 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2785 @echo "Building plugin $@"
2786 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2788 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2789 @echo "Building plugin $@"
2790 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2792 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2793 @echo "Building plugin $@"
2794 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2796 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2797 @echo "Building plugin $@"
2798 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2800 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2801 @echo "Building plugin $@"
2802 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2804 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2805 @echo "Building plugin $@"
2806 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2808 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2809 @echo "Building plugin $@"
2810 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2812 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2813 @echo "Building plugin $@"
2814 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2816 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2817 passdb/pdb_ipa.o
2818 @echo "Building plugin $@"
2819 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2820 $(LDAP_LIBS)
2822 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2823 @echo "Building plugin $@"
2824 @$(SHLD_MODULE) passdb/pdb_ads.o
2826 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2827 @echo "Building plugin $@"
2828 @$(SHLD_MODULE) passdb/pdb_tdb.o
2830 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2831 @echo "Building plugin $@"
2832 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2834 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2835 @echo "Building plugin $@"
2836 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2838 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2839 @echo "Building plugin $@"
2840 @$(SHLD_MODULE) winbindd/idmap_rid.o
2842 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2843 @echo "Building plugin $@"
2844 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2846 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2847 @echo "Building plugin $@"
2848 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2850 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2851 @echo "Building plugin $@"
2852 @$(SHLD_MODULE) winbindd/idmap_ad.o
2854 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2855 @echo "Building plugin $@"
2856 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2858 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2859 @echo "Building plugin $@"
2860 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2862 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2863 @echo "Building plugin $@"
2864 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2866 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2867 @echo "Building plugin $@"
2868 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2870 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2871 @echo "Building plugin $@"
2872 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2874 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2875 @echo "Building plugin $@"
2876 @$(SHLD_MODULE) $(CP850_OBJ)
2878 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2879 @echo "Building plugin $@"
2880 @$(SHLD_MODULE) $(CP437_OBJ)
2882 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2883 @echo "Building plugin $@"
2884 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2886 # NOTE, there is no build rule for a dynamic default VFS module because
2887 # this one MUST MUST MUST be built statically.
2889 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2890 @echo "Building plugin $@"
2891 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2893 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2894 @echo "Building plugin $@"
2895 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2897 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2898 @echo "Building plugin $@"
2899 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2901 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2902 @echo "Building plugin $@"
2903 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2905 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2906 @echo "Building plugin $@"
2907 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2909 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2910 @echo "Building plugin $@"
2911 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2913 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2914 @echo "Building plugin $@"
2915 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2917 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2918 @echo "Building plugin $@"
2919 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2921 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2922 @echo "Building plugin $@"
2923 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2925 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2926 @echo "Building plugin $@"
2927 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2929 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2930 @echo "Building plugin $@"
2931 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2933 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2934 @echo "Building plugin $@"
2935 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2937 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2938 @echo "Building plugin $@"
2939 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2941 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2942 @echo "Building plugin $@"
2943 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2945 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2946 @echo "Building plugin $@"
2947 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2949 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2950 @echo "Building plugin $@"
2951 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2953 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2954 @echo "Building plugin $@"
2955 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2957 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2958 @echo "Building plugin $@"
2959 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2961 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2962 @echo "Building plugin $@"
2963 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2965 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2966 @echo "Building plugin $@"
2967 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
2969 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2970 @echo "Building plugin $@"
2971 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2973 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2974 @echo "Building plugin $@"
2975 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2977 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2978 @echo "Building plugin $@"
2979 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2981 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2982 @echo "Building plugin $@"
2983 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2985 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2986 @echo "Building plugin $@"
2987 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2989 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2990 @echo "Building plugin $@"
2991 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2993 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2994 @echo "Building plugin $@"
2995 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2997 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2998 @echo "Building plugin $@"
2999 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
3001 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
3002 @echo "Building plugin $@"
3003 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
3005 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
3006 @echo "Building plugin $@"
3007 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
3009 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3010 @echo "Building plugin $@"
3011 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3013 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
3014 @echo "Building plugin $@"
3015 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
3017 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
3018 @echo "Building plugin $@"
3019 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
3021 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
3022 @echo "Building plugin $@"
3023 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
3025 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
3026 @echo "Building plugin $@"
3027 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
3029 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
3030 @echo "Building plugin $@"
3031 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
3033 bin/aio_pthread.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_PTHREAD_OBJ) lib/pthreadpool/pthreadpool.o
3034 @echo "Building plugin $@"
3035 @$(SHLD_MODULE) $(VFS_AIO_PTHREAD_OBJ) lib/pthreadpool/pthreadpool.o -lpthread
3037 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
3038 @echo "Building plugin $@"
3039 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
3041 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3042 @echo "Building plugin $@"
3043 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3045 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3046 @echo "Building plugin $@"
3047 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3049 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3050 @echo "Building plugin $@"
3051 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3053 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3054 @echo "Building plugin $@"
3055 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3057 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3058 @echo "Building plugin $@"
3059 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3061 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3062 @echo "Building plugin $@"
3063 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3065 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3066 @echo "Building plugin $@"
3067 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3069 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3070 @echo "Building plugin $@"
3071 @$(SHLD_MODULE) libgpo/gpext/registry.o
3073 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3074 @echo "Building plugin $@"
3075 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3077 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3078 @echo "Building plugin $@"
3079 @$(SHLD_MODULE) libgpo/gpext/security.o
3081 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3082 @echo "Building plugin $@"
3083 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3085 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3086 @echo "Building plugin $@"
3087 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3089 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3090 @echo "Building plugin $@"
3091 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3093 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3094 @echo "Building plugin $@"
3095 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3097 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3098 @echo "Building plugin $@"
3099 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3101 #########################################################
3102 ## IdMap NSS plugins
3104 ## None here right now
3105 #########################################################
3107 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3108 @echo Linking $@
3109 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3110 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3111 $(LIBWBCLIENT_LIBS)
3113 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3114 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3115 @echo Linking $@
3116 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3117 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
3118 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3119 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3121 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3122 @echo "Linking shared library $@"
3123 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3124 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3125 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3127 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3128 @echo Linking $@
3129 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3130 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3132 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3133 @echo Linking $@
3134 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3135 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3137 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3138 @echo Linking $@
3139 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3141 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3142 @echo Linking $@
3143 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3145 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3146 @echo Linking $@
3147 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3148 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3150 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3151 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3152 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3154 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3155 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3156 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3158 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3159 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3160 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3162 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3163 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3164 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3166 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3167 @echo Linking $@
3168 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3170 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3171 @echo "Linking $@"
3172 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3173 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3174 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3176 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3177 @echo "Linking $@"
3178 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3179 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3180 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3181 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3183 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3184 @echo "Linking $@"
3185 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3186 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3187 $(LDAP_LIBS) \
3188 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3190 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3191 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3193 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3194 @echo "Linking $@"
3195 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3196 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3197 $(LDAP_LIBS) \
3198 $(POPT_LIBS) \
3199 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3201 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3202 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3204 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3205 @echo "Linking $@"
3206 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3207 $(LDFLAGS) $(DYNEXP) \
3208 $(LIBS) $(POPT_LIBS) \
3209 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3210 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3212 install:: installservers installbin installman \
3213 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3214 @INSTALL_PAM_MODULES@ installlibs installmo
3216 install-everything:: install installmodules
3218 # DESTDIR is used here to prevent packagers wasting their time
3219 # duplicating the Makefile. Remove it and you will have the privelege
3220 # of package each samba release for muliple versions of multiple
3221 # distributions and operating systems, or at least supplying patches
3222 # to all the packaging files required for this, prior to committing
3223 # the removal of DESTDIR. Do not remove it even though you think it
3224 # is not used
3226 installdirs::
3227 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3228 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3229 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3230 $(NMBDSOCKETDIR) \
3231 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3233 installservers:: all installdirs
3234 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3236 installbin:: all installdirs
3237 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3239 # Some symlinks are required for the 'probing' of modules.
3240 # This mechanism should go at some point..
3241 installmodules:: modules installdirs
3242 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3243 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3244 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3245 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3246 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3247 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3248 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3249 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3250 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3251 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3252 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3253 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3254 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3255 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3256 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3257 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3258 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3259 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3261 installscripts:: installdirs
3262 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3264 installdat:: installdirs
3265 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3267 installmsg:: installdirs
3268 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3270 installswat:: installdirs installmsg
3271 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3273 installpammodules:: $(PAM_MODULES)
3274 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3275 @for module in $(PAM_MODULES); do \
3276 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3277 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3278 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3279 done
3281 # revert to the previously installed version
3282 revert::
3283 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3284 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3286 installman:: installdirs
3287 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3289 installmo:: all installdirs
3290 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3292 .PHONY: showlayout
3294 showlayout::
3295 @echo "Samba will be installed into:"
3296 @echo " prefix: $(prefix)"
3297 @echo " bindir: $(BINDIR)"
3298 @echo " sbindir: $(SBINDIR)"
3299 @echo " libdir: $(LIBDIR)"
3300 @echo " modulesdir: $(MODULESDIR)"
3301 @echo " vardir: $(VARDIR)"
3302 @echo " mandir: $(MANDIR)"
3303 @echo " privatedir: $(PRIVATE_DIR)"
3304 @echo " configdir: $(CONFIGDIR)"
3305 @echo " lockdir: $(LOCKDIR)"
3306 @echo " statedir: $(STATEDIR)"
3307 @echo " cachedir: $(CACHEDIR)"
3308 @echo " piddir: $(PIDDIR)"
3309 @echo " nmbdsocketdir: $(NMBSOCKETDIR)"
3310 @echo " swatdir: $(SWATDIR)"
3311 @echo " datadir: ${DATADIR}"
3312 @echo " codepagedir: $(CODEPAGEDIR)"
3315 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3317 uninstallmo::
3318 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3320 uninstallman::
3321 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3323 uninstallservers::
3324 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3326 uninstallbin::
3327 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3329 uninstallmodules::
3330 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3331 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3332 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3333 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3334 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3335 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3336 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3338 uninstallscripts::
3339 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3341 uninstalldat::
3342 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3344 uninstallmsg::
3345 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3347 uninstallswat:: uninstallmsg
3348 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3350 uninstallpammodules::
3351 @for module in $(PAM_MODULES); do \
3352 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3353 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3354 done
3356 # Toplevel clean files
3357 TOPFILES=dynconfig.o localedir.o
3359 cleanlibs::
3360 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3361 ../lib/*/*.ho \
3362 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3363 ../librpc/*/*.o \
3364 ../libgpo/*.o ../libgpo/*/*.o \
3365 ../libds/*.o ../libds/*/*.o
3367 clean:: cleanlibs
3368 -rm -f include/build_env.h
3369 -rm -f smbd/build_options.c
3370 -rm -f $(PRECOMPILED_HEADER)
3371 -rm -f core */*~ *~ \
3372 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3373 ../testsuite/*/*.o \
3374 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3375 ../client/*.o \
3376 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3377 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3378 $(MODULES) $(TORTURE_PROGS) \
3379 $(EVERYTHING_PROGS) \
3380 bin/timelimit \
3381 .headers.stamp */src/*.o
3382 -rm -rf t_dir
3384 include/build_env.h: script/build_env.sh
3385 @echo Building include/build_env.h
3386 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3387 > $(builddir)/include/build_env.h
3389 proto::
3391 etags::
3392 rm -f TAGS
3393 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3395 ctags::
3396 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3398 realclean:: clean
3399 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3400 -rm -f script/installbin.sh script/uninstallbin.sh
3402 distclean:: realclean
3403 -rm -f smbadduser
3404 -rm -f include/config.h Makefile
3405 -rm -f config.status config.cache so_locations
3406 -rm -rf .deps TAGS
3408 realdistclean:: distclean
3409 -rm -f include/config.h.in
3410 -rm -f include/version.h
3411 -rm -f configure
3413 # this target is really just for my use. It only works on a limited
3414 # range of machines and is used to produce a list of potentially
3415 # dead (ie. unused) functions in the code. (tridge)
3416 finddead::
3417 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3418 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3419 comm -13 nmused.txt nmfns.txt
3422 # when configure.in is updated, reconfigure
3423 $(srcdir)/configure: $(srcdir)/configure.in
3424 @echo "WARNING: you need to rerun ./autogen.sh"
3426 config.status: $(srcdir)/configure
3427 @echo "WARNING: you need to run ./configure"
3429 Makefile: $(srcdir)/Makefile.in config.status
3430 @echo "WARNING: you need to run ./config.status"
3432 ######################################################################
3433 # Samba Testing Framework
3435 # Check shared libs for unresolved symbols
3436 test_shlibs:
3437 @echo "Testing $? "
3438 @$(LIB_PATH_VAR)=./bin && \
3439 export $(LIB_PATH_VAR) && \
3440 for module in $?; do \
3441 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3442 || exit 1; \
3443 done
3445 # Check for NSS module problems.
3446 test_nss_modules:: nss_modules
3447 @echo "Testing $(NSS_MODULES) "
3448 @$(LIB_PATH_VAR)=./bin && \
3449 export $(LIB_PATH_VAR) && \
3450 for module in $(NSS_MODULES); do \
3451 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3452 || exit 1; \
3453 done
3455 # Check for PAM module problems. Specifically, check that every module we
3456 # built can actually be loaded by a minimal PAM-aware application.
3457 test_pam_modules:: pam_modules
3458 @echo "Testing $(PAM_MODULES) "
3459 @$(LIB_PATH_VAR)=./bin && \
3460 export $(LIB_PATH_VAR) && \
3461 for module in $(PAM_MODULES); do \
3462 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3463 || exit 1; \
3464 done
3468 ## Targets for 'make test'
3471 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3473 valgrindtest:: all torture timelimit
3474 @echo Running Test suite with valgrind
3475 @$(MAKE) test \
3476 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3477 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3478 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3479 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3481 selftestdir = ../selftest
3483 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3485 test:: all torture timelimit
3486 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3487 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3488 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3489 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3490 SOURCEDIR="$(srcdir)" \
3491 VFSLIBDIR="$(builddir)/bin" \
3492 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3493 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3494 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3495 $(srcdir)/selftest/s3-selftest.sh
3497 test-%:
3498 $(MAKE) test TESTS=$*
3500 buildfarm-test:
3501 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3503 subunit-test:
3504 $(MAKE) test SUBUNIT_FORMATTER=cat
3506 SELFTEST_TESTENV = s3dc
3508 testenv:
3509 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3511 gdbtestenv:
3512 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3513 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3514 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3515 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3516 TESTS="--testenv"
3518 valgrindtestenv:
3519 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3520 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3521 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3522 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3523 TESTS="--testenv"
3526 # Check for Winbind struct 32/64bit padding
3527 test_wbpad:
3528 @echo "Testing winbind request/response structure for 32/64bit padding"
3529 @./script/tests/wb_pad.sh || exit 1;
3532 ## Examples:
3535 libsmbclient_examples: libsmbclient
3536 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3538 clean_libsmbclient_examples:
3539 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3541 libnetapi_examples: libnetapi
3542 $(MAKE) -C lib/netapi/examples
3544 clean_libnetapi_examples:
3545 $(MAKE) -C lib/netapi/examples clean
3547 .PHONY: bin/smbtorture4 bin/ndrdump4
3549 bin/smbtorture4: $(BINARY_PREREQS)
3550 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3552 bin/ndrdump4: $(BINARY_PREREQS)
3553 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
3555 .PHONY: vfs_examples
3557 vfs_examples:
3559 cd ../examples/VFS && \
3560 ./configure && \
3561 make clean && \
3562 make \