s3-auth: make_new_system_info_session() not query passdb
[Samba/vl.git] / source3 / Makefile.in
blobf4b00a7ff035617e0f8dc5c6d539e104ab9b8781
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 # the following vars come from ../dynconfig/config.m4
20 BINDIR=@BINDIR@
21 SBINDIR=@SBINDIR@
22 LIBDIR=@LIBDIR@
23 #LIBEXECDIR=@LIBEXECDIR@
24 MANDIR=@MANDIR@
25 DATADIR=@DATADIR@
26 LOCALEDIR=@LOCALEDIR@
27 #SCRIPTSBINDIR=@SCRIPTSBINDIR@
28 #PYTHONDIR=@PYTHONDIR@
29 #PYTHONARCHDIR=@PYTHONARCHDIR@
30 MODULESDIR=@MODULESDIR@
31 INCLUDEDIR=@INCLUDEDIR@
32 SETUPDIR=@SETUPDIR@
33 #PKGCONFIGDIR=@PKGCONFIGDIR@
34 SWATDIR=@SWATDIR@
35 CODEPAGEDIR=@CODEPAGEDIR@
36 PAMMODULESDIR=@PAMMODULESDIR@
37 CONFIGDIR=@CONFIGDIR@
38 PRIVATE_DIR=@PRIVATE_DIR@
39 LOCKDIR=@LOCKDIR@
40 PIDDIR=@PIDDIR@
41 STATEDIR=@STATEDIR@
42 CACHEDIR=@CACHEDIR@
43 LOGFILEBASE=@LOGFILEBASE@
44 SOCKET_DIR=@SOCKET_DIR@
45 PRIVILEGED_SOCKET_DIR=@PRIVILEGED_SOCKET_DIR@
46 WINBINDD_SOCKET_DIR=@WINBINDD_SOCKET_DIR@
47 WINBINDD_PRIVILEGED_SOCKET_DIR=@WINBINDD_PRIVILEGED_SOCKET_DIR@
48 NMBDSOCKETDIR=@NMBDSOCKETDIR@
49 #NTP_SIGND_SOCKET_DIR=@NTP_SIGND_SOCKET_DIR@
50 NCALRPCDIR=@NCALRPCDIR@
51 CONFIGFILE=@CONFIGFILE@
52 LMHOSTSFILE=@LMHOSTSFILE@
53 SMB_PASSWD_FILE=@SMB_PASSWD_FILE@
55 selftest_prefix=@selftest_prefix@
57 LIBS=@LIBS@
58 CC=@CC@
59 SHLD=@SHLD@
60 LIB_PATH_VAR=@LIB_PATH_VAR@
62 ## Dynamic shared libraries build settings
63 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
64 DSO_EXPORTS=@DSO_EXPORTS@
65 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
67 # The MODULE_EXPORTS variable contains the platform-specific linker flags
68 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
69 MODULE_EXPORTS=@MODULE_EXPORTS@
71 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
72 # (GCC) warnings. This is done automatically for --enable-developer,
73 # --enable-picky-developer and --enable-krb5developer.
74 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
75 CFLAGS=@CFLAGS@
76 CPP=@CPP@
77 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
78 PICFLAG=@PICFLAG@
80 AR=@AR@
81 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
82 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
83 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
85 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
86 AWK=@AWK@
87 DYNEXP=@DYNEXP@
88 PERL=@PERL@
89 PYTHON=@PYTHON@
90 LIBDL=@LIBDL@
92 PIDL_ARGS=@PIDL_ARGS@
94 TERMLDFLAGS=@TERMLDFLAGS@
95 TERMLIBS=@TERMLIBS@
96 PRINT_LIBS=@PRINT_LIBS@
97 ZLIB_LIBS=@ZLIB_LIBS@
98 AUTH_LIBS=@AUTH_LIBS@
99 ACL_LIBS=@ACL_LIBS@
100 PASSDB_LIBS=@PASSDB_LIBS@
101 IDMAP_LIBS=@IDMAP_LIBS@
102 KRB5LIBS=@KRB5_LIBS@
103 LDAP_LIBS=@LDAP_LIBS@
104 NSCD_LIBS=@NSCD_LIBS@
105 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
106 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
107 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
108 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
109 DNSSD_LIBS=@DNSSD_LIBS@
110 AVAHI_LIBS=@AVAHI_LIBS@
111 POPT_LIBS=@POPTLIBS@
112 LIBTALLOC=@LIBTALLOC_STATIC@
113 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
114 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
115 LIBTDB=@LIBTDB_STATIC@
116 LIBTDB_LIBS=@LIBTDB_LIBS@
117 TDB_DEPS=@TDB_DEPS@
118 LIBNTDB=@LIBNTDB_STATIC@
119 LIBNTDB_LIBS=@LIBNTDB_LIBS@
120 NTDB_DEPS=@NTDB_DEPS@
121 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
122 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
123 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
124 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
126 TALLOCTORT = @TALLOCTORT@
128 TDBBACKUP = @TDBBACKUP@
129 TDBTOOL = @TDBTOOL@
130 TDBDUMP = @TDBDUMP@
131 TDBRESTORE = @TDBRESTORE@
132 TDBTORTURE = @TDBTORTURE@
133 NTDBBACKUP = @NTDBBACKUP@
134 NTDBTOOL = @NTDBTOOL@
135 NTDBDUMP = @NTDBDUMP@
136 NTDBRESTORE = @NTDBRESTORE@
137 NTDBTORTURE = @NTDBTORTURE@
138 PTHREADPOOLTEST = @PTHREADPOOLTEST@
140 INSTALLCMD=@INSTALL@
141 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
142 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
143 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
144 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
146 VPATH=@srcdir@
147 srcdir=@abs_srcdir@
148 builddir=@abs_builddir@
149 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
150 # will search for a POSIX-compliant shell, and that might not be
151 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
152 SHELL=/bin/sh
153 DESTDIR=/
155 # See the autoconf manual "Installation Directory Variables" for a
156 # discussion of the subtle use of these variables.
158 VFSLIBDIR = $(MODULESDIR)/vfs
159 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
160 PDBLIBDIR = $(MODULESDIR)/pdb
161 RPCLIBDIR = $(MODULESDIR)/rpc
162 IDMAPLIBDIR = $(MODULESDIR)/idmap
163 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
164 AUTHLIBDIR = $(MODULESDIR)/auth
165 CONFIGLIBDIR = $(MODULESDIR)/config
166 GPEXTLIBDIR = $(MODULESDIR)/gpext
167 VARDIR = @localstatedir@
169 # The permissions to give the executables and other data
170 INSTALLPERMS_BIN = 0755
171 INSTALLPERMS_DATA = 0644
173 FLAGS = -I. \
174 -I$(srcdir) \
175 @FLAGS1@ \
176 @SAMBA_CPPFLAGS@ \
177 $(CPPFLAGS) \
178 $(ISA) \
179 -I$(srcdir)/lib \
180 -I.. \
181 -I./../lib/ldb/include \
182 -D_SAMBA_BUILD_=3
184 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
185 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
186 -DCONFIGFILE=\"$(CONFIGFILE)\" \
187 -DSBINDIR=\"$(SBINDIR)\" \
188 -DBINDIR=\"$(BINDIR)\" \
189 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
190 -DSWATDIR=\"$(SWATDIR)\" \
191 -DLOCKDIR=\"$(LOCKDIR)\" \
192 -DPIDDIR=\"$(PIDDIR)\" \
193 -DLIBDIR=\"$(LIBDIR)\" \
194 -DMODULESDIR=\"$(MODULESDIR)\" \
195 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
196 -DSHLIBEXT=\"@SHLIBEXT@\" \
197 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
198 -DCONFIGDIR=\"$(CONFIGDIR)\" \
199 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
200 -DCACHEDIR=\"$(CACHEDIR)\" \
201 -DSTATEDIR=\"$(STATEDIR)\" \
202 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
203 -DWINBINDD_SOCKET_DIR=\"$(WINBINDD_SOCKET_DIR)\" \
204 -DWINBINDD_PRIVILEGED_SOCKET_DIR=\"$(WINBINDD_PRIVILEGED_SOCKET_DIR)\" \
205 -DLOCALEDIR=\"$(LOCALEDIR)\" \
206 -DDATADIR=\"$(DATADIR)\" \
207 -DSETUPDIR=\"$(SETUPDIR)\"
209 # Note that all executable programs now provide for an optional executable suffix.
211 SBIN_PROGS = bin/smbd bin/nmbd @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
213 BIN_PROGS1 = bin/smbclient bin/net bin/smbspool \
214 bin/testparm bin/smbstatus bin/smbget \
215 bin/smbta-util
216 BIN_PROGS2 = bin/smbcontrol bin/smbtree $(TDBBACKUP) \
217 bin/nmblookup bin/pdbedit $(TDBDUMP) \
218 $(TDBRESTORE) $(TDBTOOL) bin/dbwrap_tool
219 BIN_PROGS3 = bin/smbpasswd bin/rpcclient bin/smbcacls \
220 bin/profiles bin/ntlm_auth bin/sharesec \
221 bin/smbcquotas bin/eventlogadm
223 TORTURE_PROGS = bin/smbtorture bin/msgtest \
224 bin/masktest bin/locktest \
225 bin/locktest2 bin/nsstest bin/vfstest \
226 bin/pdbtest $(TALLOCTORT) bin/replacetort \
227 $(TDBTORTURE) $(PTHREADPOOLTEST) \
228 bin/smbconftort bin/vlp
230 BIN_PROGS = @EXTRA_BIN_PROGS@ \
231 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
233 EVERYTHING_PROGS = bin/debug2html bin/smbfilter \
234 $(TALLOCTORT) bin/replacetort \
235 bin/log2pcap \
236 bin/vlp \
237 bin/dbwrap_tool \
238 bin/dbwrap_torture
240 PAM_MODULES = @PAM_MODULES@
242 NSS_MODULES = @NSS_MODULES@
244 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
246 VFS_MODULES = @VFS_MODULES@
247 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
248 PDB_MODULES = @PDB_MODULES@
249 IDMAP_MODULES = @IDMAP_MODULES@
250 AUTH_MODULES = @AUTH_MODULES@
251 NSS_INFO_MODULES = @NSS_INFO_MODULES@
252 GPEXT_MODULES = @GPEXT_MODULES@
253 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
254 $(AUTH_MODULES) $(NSS_INFO_MODULES) \
255 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
257 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
259 ######################################################################
260 # object file lists
261 ######################################################################
263 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
264 ../lib/tdb_wrap/tdb_wrap.o \
265 ../lib/dbwrap/dbwrap.o \
266 lib/dbwrap/dbwrap_open.o \
267 ../lib/dbwrap/dbwrap_tdb.o \
268 lib/dbwrap/dbwrap_ctdb.o \
269 lib/g_lock.o \
270 ../lib/dbwrap/dbwrap_cache.o \
271 lib/dbwrap/dbwrap_watch.o \
272 ../lib/dbwrap/dbwrap_rbt.o \
273 ../lib/dbwrap/dbwrap_util.o
275 TDB_VALIDATE_OBJ = lib/tdb_validate.o
277 SMBLDAP_OBJ = @SMBLDAP@
279 VERSION_OBJ = lib/version.o
281 WBCOMMON_OBJ = ../nsswitch/wb_common.o
283 AFS_OBJ = lib/afs.o
285 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
287 AVAHI_OBJ = @AVAHI_OBJ@
289 SERVER_MUTEX_OBJ = lib/server_mutex.o
291 PASSCHANGE_OBJ = libsmb/passchange.o
293 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
294 ../librpc/ndr/ndr_compression.o \
295 autoconf/librpc/gen_ndr/ndr_drsuapi.o \
296 ../librpc/ndr/ndr_drsblobs.o \
297 autoconf/librpc/gen_ndr/ndr_drsblobs.o
299 ZLIB_OBJ = @ZLIB_OBJS@
301 COMPRESSION_OBJ = ../lib/compression/lzxpress.o \
302 $(ZLIB_OBJ)
304 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
305 $(COMPRESSION_OBJ)
307 LIBNDR_NTLMSSP_OBJ = autoconf/librpc/gen_ndr/ndr_ntlmssp.o \
308 ../librpc/ndr/ndr_ntlmssp.o
310 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
311 ../librpc/ndr/ndr.o \
312 ../librpc/ndr/ndr_misc.o \
313 autoconf/librpc/gen_ndr/ndr_misc.o \
314 autoconf/librpc/gen_ndr/ndr_security.o \
315 ../librpc/ndr/ndr_sec_helper.o \
316 ../librpc/ndr/ndr_string.o \
317 ../librpc/ndr/uuid.o \
318 ../librpc/ndr/util.o \
319 autoconf/librpc/gen_ndr/ndr_server_id.o \
320 autoconf/librpc/gen_ndr/ndr_file_id.o \
321 autoconf/librpc/gen_ndr/ndr_dcerpc.o
323 LIBNDR_GEN_OBJ0 = autoconf/librpc/gen_ndr/ndr_samr.o \
324 autoconf/librpc/gen_ndr/ndr_lsa.o
326 LIBNDR_NETLOGON_OBJ = autoconf/librpc/gen_ndr/ndr_netlogon.o \
327 ../librpc/ndr/ndr_netlogon.o
329 LIBNDR_SCHANNEL_OBJ = autoconf/librpc/gen_ndr/ndr_schannel.o \
330 ../librpc/ndr/ndr_schannel.o
332 LIBNDR_SPOOLSS_OBJ = autoconf/librpc/gen_ndr/ndr_spoolss.o \
333 ../librpc/ndr/ndr_spoolss_buf.o
335 LIBNDR_NTPRINTING_OBJ = autoconf/librpc/gen_ndr/ndr_ntprinting.o \
336 ../librpc/ndr/ndr_ntprinting.o \
338 LIBNDR_PREG_OBJ = autoconf/librpc/gen_ndr/ndr_preg.o \
339 ../librpc/ndr/ndr_preg.o
341 LIBNDR_XATTR_OBJ = autoconf/librpc/gen_ndr/ndr_xattr.o \
342 ../librpc/ndr/ndr_xattr.o
344 LIBCLI_SPOOLSS_OBJ = autoconf/librpc/gen_ndr/ndr_spoolss_c.o \
345 rpc_client/cli_spoolss.o \
346 rpc_client/init_spoolss.o \
347 rpc_client/cli_winreg_spoolss.o \
348 printing/nt_printing_os2.o
350 LIBCLI_EVENTLOG_OBJ = autoconf/librpc/gen_ndr/ndr_eventlog_c.o
352 LIBCLI_WINREG_OBJ = autoconf/librpc/gen_ndr/ndr_winreg_c.o \
353 rpc_client/cli_winreg.o
355 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
356 rpc_client/cli_winreg_int.o
358 LIBCLI_NTSVCS_OBJ = autoconf/librpc/gen_ndr/ndr_ntsvcs_c.o
360 LIBCLI_DRSUAPI_OBJ = autoconf/librpc/gen_ndr/ndr_drsuapi_c.o
362 LIBCLI_DFS_OBJ = autoconf/librpc/gen_ndr/ndr_dfs_c.o
364 LIBCLI_ECHO_OBJ = autoconf/librpc/gen_ndr/ndr_echo_c.o
366 LIBCLI_INITSHUTDOWN_OBJ = autoconf/librpc/gen_ndr/ndr_initshutdown_c.o
368 LIBCLI_DSSETUP_OBJ = autoconf/librpc/gen_ndr/ndr_dssetup_c.o
370 LIBCLI_SVCCTL_OBJ = autoconf/librpc/gen_ndr/ndr_svcctl_c.o
372 LIBCLI_WKSSVC_OBJ = autoconf/librpc/gen_ndr/ndr_wkssvc_c.o
374 LIBCLI_SRVSVC_OBJ = autoconf/librpc/gen_ndr/ndr_srvsvc_c.o
376 LIBCLI_LSA_OBJ = autoconf/librpc/gen_ndr/ndr_lsa_c.o \
377 rpc_client/cli_lsarpc.o \
378 rpc_client/init_lsa.o
380 LIBCLI_SAMR_OBJ = autoconf/librpc/gen_ndr/ndr_samr_c.o \
381 rpc_client/cli_samr.o
383 LIBCLI_NETLOGON_OBJ = autoconf/librpc/gen_ndr/ndr_netlogon_c.o \
384 rpc_client/cli_netlogon.o \
385 rpc_client/util_netlogon.o
387 LIBCLI_EPMAPPER_OBJ = autoconf/librpc/gen_ndr/ndr_epmapper_c.o
389 LIBCLI_FSRVP_OBJ = autoconf/librpc/gen_ndr/ndr_fsrvp_c.o
391 LIBNDR_GEN_OBJ = autoconf/librpc/gen_ndr/ndr_wkssvc.o \
392 $(LIBNDR_GEN_OBJ0) \
393 autoconf/librpc/gen_ndr/ndr_dfs.o \
394 autoconf/librpc/gen_ndr/ndr_dfsblobs.o \
395 autoconf/librpc/gen_ndr/ndr_echo.o \
396 autoconf/librpc/gen_ndr/ndr_winreg.o \
397 autoconf/librpc/gen_ndr/ndr_initshutdown.o \
398 autoconf/librpc/gen_ndr/ndr_srvsvc.o \
399 autoconf/librpc/gen_ndr/ndr_eventlog.o \
400 $(LIBNDR_NETLOGON_OBJ) \
401 autoconf/librpc/gen_ndr/ndr_dssetup.o \
402 autoconf/librpc/gen_ndr/ndr_epmapper.o \
403 autoconf/librpc/gen_ndr/ndr_ntsvcs.o \
404 $(LIBNDR_SPOOLSS_OBJ) \
405 autoconf/librpc/gen_ndr/ndr_fsrvp.o
407 # this includes only the low level parse code, not stuff
408 # that requires knowledge of security contexts
409 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
411 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
413 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
414 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
415 UID_WRAPPER_OBJ = @UID_WRAPPER_OBJS@
417 LIBSAMBAUTIL_OBJ = \
418 $(LIBREPLACE_OBJ) \
419 $(SOCKET_WRAPPER_OBJ) \
420 $(UID_WRAPPER_OBJ) \
421 $(NSS_WRAPPER_OBJ)
423 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
424 ../lib/util/xfile.o ../lib/util/util_strlist.o \
425 ../lib/util/util_file.o ../lib/util/data_blob.o \
426 ../lib/util/util.o ../lib/util/util_paths.o ../lib/util/fsusage.o \
427 ../lib/util/params.o ../lib/util/talloc_stack.o \
428 ../lib/util/genrand.o ../lib/util/util_net.o \
429 ../lib/util/become_daemon.o ../lib/util/system.o \
430 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
431 ../lib/util/tevent_werror.o \
432 lib/tevent_barrier.o \
433 ../lib/util/smb_threads.o ../lib/util/util_id.o \
434 ../lib/util/blocking.o ../lib/util/rfc1738.o \
435 ../lib/util/select.o ../lib/util/util_pw.o ../lib/util/server_id.o
437 CRYPTO_OBJ = ../lib/crypto/crc32.o @CRYPTO_MD5_OBJ@ \
438 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
439 ../lib/crypto/md4.o \
440 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
441 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o \
442 ../lib/crypto/aes_cmac_128.o
444 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) $(LIBTSOCKET_OBJ) \
445 lib/messages.o autoconf/librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
446 lib/messages_ctdbd.o lib/ctdb_packet.o lib/ctdbd_conn.o \
447 lib/ctdb_conn.o \
448 lib/msg_channel.o \
449 lib/id_cache.o \
450 ../lib/socket/interfaces.o lib/memcache.o \
451 lib/talloc_dict.o \
452 lib/serverid.o \
453 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
454 lib/addrchange.o \
455 $(TDB_LIB_OBJ) \
456 $(VERSION_OBJ) lib/charcnv.o ../lib/util/charset/convert_string.o \
457 ../lib/util/charset/pull_push.o \
458 lib/fstring.o ../lib/util/debug.o ../lib/util/debug_s3.o ../lib/util/fault.o \
459 lib/interface.o lib/pidfile.o lib/dumpcore.o \
460 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
461 lib/username.o \
462 ../libds/common/flag_mapping.o \
463 lib/access.o lib/smbrun.o \
464 ../lib/util/bitmap.o ../lib/util/dprintf.o $(UTIL_REG_OBJ) \
465 lib/wins_srv.o lib/string_init.o \
466 lib/util_str.o ../lib/util/util_str_common.o \
467 ../lib/util/util_str.o \
468 ../lib/util/base64.o lib/util_sid.o \
469 ../lib/util/charset/util_unistr.o \
470 ../lib/util/charset/util_unistr_w.o ../lib/util/charset/codepoints.o ../lib/util/charset/util_str.o lib/util_file.o \
471 lib/util.o lib/util_malloc.o lib/namearray.o lib/util_cmdline.o lib/util_names.o \
472 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
473 lib/substitute.o lib/substitute_generic.o ../lib/util/substitute.o \
474 lib/ms_fnmatch.o ../lib/util/ms_fnmatch.o lib/errmap_unix.o ../libcli/util/errmap_unix.o \
475 lib/tallocmsg.o lib/dmallocmsg.o \
476 ../libcli/smb/smb_signing.o \
477 ../lib/util/charset/iconv.o ../lib/util/charset/weird.o \
478 ../lib/util/charset/charset_macosxfs.o intl/lang_tdb.o \
479 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
480 lib/sessionid_tdb.o \
481 ../lib/util/modules.o lib/events.o @LIBTEVENT_OBJ0@ \
482 @CCAN_OBJ@ \
483 lib/server_contexts.o \
484 lib/server_prefork.o \
485 lib/server_prefork_util.o \
486 lib/ldap_escape.o \
487 ../libcli/security/secdesc.o ../libcli/security/access_check.o \
488 ../libcli/security/secace.o ../libcli/security/object_tree.o \
489 ../libcli/security/sddl.o ../libcli/security/session.o \
490 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
491 lib/fncall.o \
492 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
493 lib/file_id.o lib/idmap_cache.o \
494 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
495 ../libcli/security/security_token.o ../libcli/security/util_sid.o \
496 ../libcli/smb/util.o ../lib/util/idtree.o
498 LIB_DUMMY_OBJ = lib/smbd_shim.o lib/dummyparam.o
499 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
501 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
503 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
504 # Be sure to include them into your application
505 POPT_LIB_OBJ = lib/popt_common.o
507 PARAM_WITHOUT_REG_OBJ = ../dynconfig/dynconfig.o param/loadparm.o param/loadparm_ctx.o ../lib/param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o ../lib/param/loadparm.o ../lib/param/util.o
508 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
509 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
511 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
513 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
514 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
515 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
517 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
519 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
520 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
521 libgpo/gpo_reg.o \
522 $(GPEXT_OBJ)
523 LIBGPO_OBJ = $(LIBGPO_OBJ0)
525 LIBADS_OBJ = libads/ldap.o \
526 libads/sasl.o libads/sasl_wrapping.o \
527 libads/krb5_setpw.o \
528 libads/kerberos_util.o \
529 libads/ldap_user.o \
530 libads/ads_struct.o libads/kerberos_keytab.o \
531 libads/disp_sec.o libads/ldap_utils.o \
532 libads/ldap_schema.o libads/util.o libads/ndr.o
534 LIBADS_SERVER_OBJ = libads/authdata.o ../auth/kerberos/kerberos_pac.o \
535 ../librpc/ndr/ndr_krb5pac.o \
536 autoconf/librpc/gen_ndr/ndr_krb5pac.o
538 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
540 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
541 autoconf/librpc/gen_ndr/ndr_secrets.o \
542 passdb/secrets_lsa.o
544 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
545 ../libcli/netlogon/netlogon.o \
546 autoconf/librpc/gen_ndr/ndr_nbt.o \
547 ../librpc/ndr/ndr_nbt.o \
548 autoconf/librpc/gen_ndr/ndr_svcctl.o \
549 ../librpc/ndr/ndr_svcctl.o
551 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
552 libsmb/namequery.o ../libcli/nbt/lmhosts.o ../libcli/dns/dns_hosts_file.o libsmb/conncache.o \
553 ../lib/addns/dnsquery.o libads/sitename_cache.o
555 NTERR_OBJ = ../libcli/util/nterr.o libsmb/smberr.o
556 DOSERR_OBJ = ../libcli/util/doserr.o
557 ERRORMAP_OBJ = ../libcli/util/errormap.o libsmb/errormap.o
558 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
560 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
562 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
564 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
565 $(SECRETS_OBJ)
567 LIBSMB_OBJ0 = \
568 ../lib/util/asn1.o \
569 ../libcli/auth/spnego_parse.o \
570 ../libcli/auth/ntlm_check.o \
571 libsmb/ntlmssp.o \
572 libsmb/ntlmssp_wrap.o \
573 libsmb/auth_generic.o \
574 ../lib/krb5_wrap/krb5_samba.o \
575 libsmb/clispnego.o \
576 ../auth/gensec/gensec.o \
577 ../auth/gensec/gensec_start.o \
578 ../auth/gensec/gensec_util.o \
579 ../auth/gensec/spnego.o \
580 ../auth/credentials/credentials.o \
581 ../auth/credentials/credentials_ntlm.o \
582 ../auth/credentials/credentials_samba3.o \
583 ../auth/ntlmssp/ntlmssp.o \
584 ../auth/ntlmssp/ntlmssp_util.o \
585 ../auth/ntlmssp/ntlmssp_sign.o \
586 ../auth/ntlmssp/ntlmssp_client.o \
587 ../auth/ntlmssp/gensec_ntlmssp.o \
588 ../auth/ntlmssp/gensec_ntlmssp_server.o \
589 $(LIBNDR_NTLMSSP_OBJ) \
590 ../auth/ntlmssp/ntlmssp_ndr.o \
591 ../auth/ntlmssp/ntlmssp_server.o
593 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
594 $(LIBSMB_ERR_OBJ)
596 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
597 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o ../lib/ldb/common/ldb_parse.o
599 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
600 ../lib/tsocket/tsocket_helpers.o \
601 ../lib/tsocket/tsocket_bsd.o
603 CLDAP_OBJ = libads/cldap.o \
604 ../libcli/cldap/cldap.o \
605 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ)
607 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
609 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
610 ../libcli/auth/schannel_sign.o \
611 ../libcli/auth/schannel_state_tdb.o \
612 $(LIBNDR_SCHANNEL_OBJ)
614 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
615 libsmb/reparse_symlink.o \
616 libsmb/clisymlink.o \
617 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
618 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
619 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
620 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
621 libsmb/clioplock.o libsmb/clirap2.o \
622 libsmb/async_smb.o \
623 ../libcli/smb/smb_seal.o \
624 ../libcli/smb/read_smb.o \
625 ../libcli/smb/smbXcli_base.o \
626 ../libcli/smb/smb1cli_trans.o \
627 ../libcli/smb/smb2cli_session.o \
628 libsmb/smb2cli_tcon.o \
629 ../libcli/smb/smb2cli_create.o \
630 ../libcli/smb/smb2_create_blob.o \
631 ../libcli/smb/smb2_signing.o \
632 ../libcli/smb/smb2cli_close.o \
633 ../libcli/smb/smb2cli_flush.o \
634 ../libcli/smb/smb2cli_read.o \
635 ../libcli/smb/smb2cli_write.o \
636 ../libcli/smb/smb2cli_query_directory.o \
637 ../libcli/smb/smb2cli_ioctl.o \
638 ../libcli/smb/smb2cli_query_info.o \
639 ../libcli/smb/smb2cli_set_info.o \
640 libsmb/cli_np_tstream.o \
641 libsmb/smbsock_connect.o \
642 $(LIBSAMBA_OBJ) \
643 $(LIBNMB_OBJ) \
644 $(LIBNBT_OBJ) \
645 $(CLDAP_OBJ) \
646 $(DRSUAPI_OBJ)
648 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
649 rpc_client/cli_pipe.o \
650 librpc/crypto/gse_krb5.o \
651 librpc/crypto/gse.o \
652 ../auth/kerberos/gssapi_pac.o \
653 ../lib/krb5_wrap/gss_samba.o \
654 librpc/rpc/rpc_common.o \
655 rpc_client/rpc_transport_np.o \
656 rpc_client/rpc_transport_sock.o \
657 rpc_client/rpc_transport_tstream.o \
658 ../librpc/rpc/binding.o \
659 ../librpc/rpc/dcerpc_util.o \
660 ../librpc/rpc/binding_handle.o \
661 librpc/rpc/dcerpc_helpers.o \
662 $(LIBCLI_EPMAPPER_OBJ)
664 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
667 # registry-related objects
669 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
671 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
672 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
673 REG_INIT_FULL_OBJ = registry/reg_init_full.o
675 REGFIO_OBJ = registry/regfio.o \
676 $(REG_PARSE_PRS_OBJ)
678 REG_API_REGF_OBJ = registry/reg_api_regf.o
680 REGOBJS_OBJ = registry/reg_objects.o
682 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
684 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
686 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
687 registry/reg_backend_shares.o \
688 registry/reg_backend_netlogon_params.o \
689 registry/reg_backend_prod_options.o \
690 registry/reg_backend_tcpip_params.o \
691 registry/reg_backend_hkpt_params.o \
692 registry/reg_backend_current_version.o \
693 registry/reg_backend_perflib.o
695 REG_BASE_OBJ = registry/reg_api.o \
696 registry/reg_dispatcher.o \
697 registry/reg_cachehook.o \
698 $(REGOBJS_OBJ) \
699 registry/reg_util_internal.o \
700 lib/util_nttoken.o \
701 $(REG_BACKENDS_BASE_OBJ) \
702 registry/reg_parse_internal.o \
703 lib/cbuf.o lib/srprs.o \
704 $(REG_INIT_BASIC_OBJ)
706 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
707 registry/reg_util_token.o \
708 registry/reg_api_util.o \
709 $(REG_BACKENDS_SMBCONF_OBJ) \
710 $(REG_INIT_SMBCONF_OBJ)
712 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
713 $(REG_BACKENDS_EXTRA_OBJ) \
714 $(REG_INIT_FULL_OBJ) \
715 registry/reg_perfcount.o \
716 autoconf/librpc/gen_ndr/ndr_perfcount.o
718 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
720 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
722 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
723 autoconf/librpc/gen_ndr/srv_lsa.o \
724 ../libcli/lsarpc/util_lsarpc.o
726 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
727 autoconf/librpc/gen_ndr/srv_netlogon.o
729 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
730 rpc_server/samr/srv_samr_util.o \
731 rpc_server/samr/srv_samr_chgpasswd.o \
732 autoconf/librpc/gen_ndr/srv_samr.o
734 RPC_INITSHUTDOWN_OBJ = autoconf/librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
736 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
737 autoconf/librpc/gen_ndr/srv_winreg.o
739 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o autoconf/librpc/gen_ndr/srv_dssetup.o
741 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
742 autoconf/librpc/gen_ndr/srv_srvsvc.o
744 RPC_WKSSVC_OBJ = autoconf/librpc/gen_ndr/srv_wkssvc.o \
745 rpc_server/wkssvc/srv_wkssvc_nt.o
747 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
748 rpc_server/svcctl/srv_svcctl_reg.o \
749 autoconf/librpc/gen_ndr/srv_svcctl.o \
750 services/svc_winreg_glue.o \
751 services/svc_spoolss.o services/svc_rcinit.o \
752 services/svc_netlogon.o services/svc_winreg.o \
753 services/svc_wins.o
755 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
756 autoconf/librpc/gen_ndr/srv_ntsvcs.o
758 RPC_NETDFS_OBJ = autoconf/librpc/gen_ndr/srv_dfs.o \
759 rpc_server/dfs/srv_dfs_nt.o
761 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
762 rpc_server/spoolss/srv_spoolss_util.o \
763 autoconf/librpc/gen_ndr/srv_spoolss.o
765 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
766 rpc_server/eventlog/srv_eventlog_reg.o \
767 $(LIB_EVENTLOG_OBJ) autoconf/librpc/gen_ndr/srv_eventlog.o
769 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
770 autoconf/librpc/gen_ndr/ndr_named_pipe_auth.o \
771 ../auth/auth_sam_reply.o autoconf/librpc/gen_ndr/ndr_auth.o ../librpc/ndr/ndr_auth.o
773 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
774 rpc_server/rpc_handles.o rpc_server/rpc_contexts.o \
775 rpc_server/srv_access_check.o
777 RPC_CONFIG = rpc_server/rpc_config.o
779 RPC_SERVICE = rpc_server/rpc_server.o
781 RPC_CRYPTO = rpc_server/dcesrv_auth_generic.o
783 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
784 $(RPC_CONFIG) $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
786 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o autoconf/librpc/gen_ndr/srv_echo.o
788 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o autoconf/librpc/gen_ndr/srv_epmapper.o
790 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_register.o $(DCE_RPC_EP_OBJ)
792 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
793 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
794 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
795 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
796 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
797 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
798 $(LIBCLI_SPOOLSS_OBJ) \
799 $(LIBCLI_WINREG_INT_OBJ) \
800 $(LIBCLI_SRVSVC_OBJ) \
801 $(LIBCLI_LSA_OBJ) \
802 $(LIBCLI_SAMR_OBJ) \
803 $(LIBCLI_NETLOGON_OBJ) \
804 $(RPC_SERVER_REGISTER_OBJ) \
805 $(RPC_CLIENT_SCHANNEL_OBJ) \
806 rpc_server/rpc_sock_helper.o \
807 rpc_server/rpc_service_setup.o \
808 rpc_client/init_netlogon.o \
809 rpc_client/init_samr.o
811 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
813 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o \
814 autoconf/librpc/gen_ndr/ndr_open_files.o locking/share_mode_lock.o
816 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
818 PRIVILEGES_OBJ = lib/privileges.o
820 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
822 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
823 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
824 lib/util_unixsids.o passdb/lookup_sid.o \
825 passdb/login_cache.o @PDB_STATIC@ \
826 passdb/account_pol.o $(PRIVILEGES_OBJ) \
827 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
828 passdb/pdb_util.o passdb/pdb_ldap_schema.o \
829 passdb/pdb_secrets.o
831 DEVEL_HELP_WEIRD_OBJ = ../lib/util/charset/weird.o
832 CHARSET_MACOSXFS_OBJ = ../lib/util/charset/charset_macosxfs.o
834 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
836 PROFILE_OBJ = profile/profile.o
837 PROFILES_OBJ = utils/profiles.o \
838 $(LIBSMB_ERR_OBJ) \
839 $(PARAM_OBJ) \
840 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
841 $(POPT_LIB_OBJ) \
842 $(REGFIO_OBJ)
844 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
846 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
847 autoconf/librpc/gen_ndr/ndr_notify.o
849 FNAME_UTIL_OBJ = lib/filename_util.o
851 VFS_DEFAULT_OBJ = modules/vfs_default.o
852 VFS_AUDIT_OBJ = modules/vfs_audit.o
853 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
854 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
855 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
856 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
857 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
858 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
859 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
860 VFS_CAP_OBJ = modules/vfs_cap.o
861 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
862 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
863 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
864 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
865 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o lib/xattr_tdb.o
866 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
867 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
868 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
869 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
870 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
871 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
872 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
873 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
874 VFS_CATIA_OBJ = modules/vfs_catia.o
875 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
876 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
877 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
878 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
879 VFS_COMMIT_OBJ = modules/vfs_commit.o
880 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
881 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
882 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
883 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
884 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
885 VFS_FILEID_OBJ = modules/vfs_fileid.o
886 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
887 VFS_AIO_PTHREAD_OBJ = modules/vfs_aio_pthread.o
888 VFS_AIO_LINUX_OBJ = modules/vfs_aio_linux.o
889 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
890 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
891 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
892 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
893 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
894 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
895 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
896 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
897 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
898 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
899 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
901 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
902 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
904 SLCACHE_OBJ = libsmb/samlogon_cache.o
906 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
908 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
909 AUTH_DOMAIN_OBJ = auth/auth_domain.o
910 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
911 AUTH_UNIX_OBJ = auth/auth_unix.o
912 AUTH_WINBIND_OBJ = auth/auth_winbind.o
913 AUTH_WBC_OBJ = auth/auth_wbc.o
914 AUTH_SCRIPT_OBJ = auth/auth_script.o
916 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
917 auth/server_info.o \
918 auth/server_info_sam.o \
919 auth/user_info.o \
920 auth/user_util.o \
921 auth/user_krb5.o \
922 auth/auth_ntlmssp.o auth/auth_generic.o \
923 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
925 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
927 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
929 BUILDOPT_OBJ = smbd/build_options.o
931 SMBD_OBJ_SRV = smbd/server_reload.o \
932 smbd/files.o smbd/connection.o \
933 smbd/utmp.o smbd/session.o \
934 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/conn_idle.o smbd/conn_msg.o \
935 smbd/share_access.o smbd/fileio.o \
936 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
937 smbd/message.o smbd/nttrans.o smbd/pipes.o \
938 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
939 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
940 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
941 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
942 smbd/posix_acls.o lib/sysacls.o \
943 smbd/process.o smbd/service.o param/service.o smbd/error.o \
944 rpc_server/epmd.o \
945 rpc_server/lsasd.o \
946 printing/printspoolss.o printing/spoolssd.o \
947 lib/sysquotas.o lib/sysquotas_linux.o \
948 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
949 lib/sysquotas_nfs.o \
950 lib/smbd_shim.o \
951 lib/background.o \
952 smbd/fake_file.o \
953 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
954 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
955 smbd/dmapi.o smbd/signing.o \
956 smbd/file_access.o \
957 smbd/dnsregister.o smbd/globals.o \
958 smbd/smb2_server.o \
959 smbd/smb2_glue.o \
960 smbd/smb2_negprot.o \
961 smbd/smb2_sesssetup.o \
962 smbd/smb2_tcon.o \
963 smbd/smb2_create.o \
964 smbd/smb2_close.o \
965 smbd/smb2_flush.o \
966 smbd/smb2_read.o \
967 smbd/smb2_write.o \
968 smbd/smb2_lock.o \
969 smbd/smb2_ioctl.o \
970 smbd/smb2_keepalive.o \
971 smbd/smb2_find.o \
972 smbd/smb2_notify.o \
973 smbd/smb2_getinfo.o \
974 smbd/smb2_setinfo.o \
975 smbd/smb2_break.o \
976 $(MANGLE_OBJ) @VFS_STATIC@
978 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
979 $(RPC_SERVER_OBJ) \
980 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
981 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
982 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
983 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
984 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
985 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
986 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
987 $(LIBSMBCONF_OBJ) \
988 $(PRIVILEGES_BASIC_OBJ) \
989 $(REGFIO_OBJ) \
990 $(REG_API_REGF_OBJ) \
991 $(LIBNDR_XATTR_OBJ)
993 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
994 printing/print_cups.o printing/print_generic.o \
995 printing/lpq_parse.o printing/load.o \
996 printing/print_iprint.o printing/print_standard.o \
997 printing/printer_list.o autoconf/librpc/gen_ndr/ndr_printcap.o
999 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
1000 PRINTBACKEND_OBJ = printing/printing.o \
1001 printing/nt_printing.o \
1002 printing/nt_printing_tdb.o \
1003 printing/nt_printing_migrate.o \
1004 printing/nt_printing_migrate_internal.o \
1005 printing/nt_printing_ads.o \
1006 autoconf/librpc/gen_ndr/ndr_ntprinting.o \
1007 ../librpc/ndr/ndr_ntprinting.o \
1008 printing/queue_process.o \
1009 $(PRINTBASE_OBJ)
1011 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
1013 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
1014 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
1015 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
1016 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
1017 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
1018 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
1019 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
1020 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
1021 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
1022 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
1023 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
1024 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
1026 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1027 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1028 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1030 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
1031 web/swat.o web/neg_lang.o
1033 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
1034 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
1035 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
1036 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1037 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
1038 $(LIBCLI_SAMR_OBJ) \
1039 rpc_client/init_lsa.o
1041 STATUS_OBJ = utils/status.o utils/status_profile.o \
1042 $(LOCKING_OBJ) $(PARAM_OBJ) \
1043 smbd/notify_internal.o autoconf/librpc/gen_ndr/ndr_notify.o \
1044 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1045 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1047 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1048 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
1050 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
1051 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1052 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1053 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1054 $(LIBMSRPC_GEN_OBJ) \
1055 $(LIBMSRPC_OBJ) \
1056 $(LIBCLI_SRVSVC_OBJ)
1058 TESTPARM_OBJ = utils/testparm.o \
1059 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1060 $(LIBSMB_ERR_OBJ)
1062 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1063 $(LIB_NONSMBD_OBJ) \
1064 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1066 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1067 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1068 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1070 PASSWD_UTIL_OBJ = utils/passwd_util.o
1072 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1073 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1074 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1075 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1076 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1077 $(LIBCLI_SAMR_OBJ) \
1078 rpc_client/init_lsa.o
1080 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1081 $(AFS_SETTOKEN_OBJ) \
1082 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1083 $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) $(SECRETS_OBJ) \
1084 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1085 ../lib/util/asn1.o $(LIBCLI_LDAP_NDR_OBJ) \
1086 $(LIBNDR_DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) $(COMPRESSION_OBJ)
1088 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1090 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1092 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1093 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1094 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1095 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1096 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1097 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1098 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1099 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1100 rpcclient/cmd_winreg.o rpcclient/cmd_fss.o \
1101 $(DISPLAY_SEC_OBJ)
1103 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1104 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1105 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1106 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1107 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1108 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1109 $(LIBCLI_SPOOLSS_OBJ) \
1110 $(LIBCLI_EVENTLOG_OBJ) \
1111 $(LIBCLI_NTSVCS_OBJ) \
1112 $(LIBCLI_DRSUAPI_OBJ) \
1113 $(LIBCLI_DFS_OBJ) \
1114 $(LIBCLI_ECHO_OBJ) \
1115 $(LIBCLI_DSSETUP_OBJ) \
1116 $(LIBCLI_WKSSVC_OBJ) \
1117 $(LIBCLI_SRVSVC_OBJ) \
1118 $(LIBCLI_LSA_OBJ) \
1119 $(LIBCLI_SAMR_OBJ) \
1120 $(LIBCLI_WINREG_OBJ) \
1121 $(LIBCLI_NETLOGON_OBJ) \
1122 $(LIBCLI_FSRVP_OBJ) \
1123 $(RPC_CLIENT_SCHANNEL_OBJ) \
1124 rpc_client/init_netlogon.o \
1125 rpc_client/init_samr.o
1127 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1128 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1130 LIBSMBCLIENT_THREAD_OBJ = \
1131 libsmb/libsmb_thread_impl.o \
1132 libsmb/libsmb_thread_posix.o
1134 LIBSMBCLIENT_OBJ0 = \
1135 libsmb/libsmb_cache.o \
1136 libsmb/libsmb_compat.o \
1137 libsmb/libsmb_context.o \
1138 libsmb/libsmb_dir.o \
1139 libsmb/libsmb_file.o \
1140 libsmb/libsmb_misc.o \
1141 libsmb/libsmb_path.o \
1142 libsmb/libsmb_printjob.o \
1143 libsmb/libsmb_server.o \
1144 libsmb/libsmb_stat.o \
1145 libsmb/libsmb_xattr.o \
1146 libsmb/libsmb_setget.o
1148 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1149 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1150 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1151 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1152 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1153 $(LIBCLI_SRVSVC_OBJ) \
1154 $(LIBCLI_LSA_OBJ)
1156 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1158 CLIENT_OBJ1 = client/client.o client/clitar.o \
1159 client/dnsbrowse.o \
1160 $(LIBMSRPC_OBJ)
1162 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1163 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1164 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1165 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1166 $(DISPLAY_SEC_OBJ) \
1167 $(LIBCLI_SRVSVC_OBJ)
1169 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1170 ../lib/smbconf/smbconf_util.o \
1171 ../lib/smbconf/smbconf_txt.o \
1172 lib/smbconf/smbconf_reg.o \
1173 lib/smbconf/smbconf_init.o
1175 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1177 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1178 $(LIB_NONSMBD_OBJ) \
1179 $(PARAM_OBJ) \
1180 $(LIBSMB_ERR_OBJ) \
1181 $(POPT_LIB_OBJ)
1183 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1184 lib/pthreadpool/tests.o
1186 LIBNET_OBJ = libnet/libnet_join.o \
1187 libnet/libnet_keytab.o \
1188 autoconf/librpc/gen_ndr/ndr_libnet_join.o
1190 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1191 libnet/libnet_dssync_passdb.o \
1192 libnet/libnet_dssync_keytab.o \
1193 ../libcli/drsuapi/repl_decrypt.o
1195 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1196 libnet/libnet_samsync_ldif.o \
1197 libnet/libnet_samsync_passdb.o \
1198 libnet/libnet_samsync_display.o \
1199 libnet/libnet_samsync_keytab.o \
1200 ../libcli/samsync/decrypt.o
1202 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1203 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1204 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1205 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
1206 utils/net_idmap_check.o utils/interact.o \
1207 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1208 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1209 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1210 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1211 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1212 utils/net_conf.o utils/net_join.o utils/net_user.o \
1213 utils/net_group.o utils/net_file.o utils/net_registry.o utils/net_registry_check.o\
1214 auth/token_util.o utils/net_dom.o utils/net_share.o \
1215 utils/net_g_lock.o \
1216 utils/net_serverid.o \
1217 utils/net_eventlog.o \
1218 utils/net_printing.o \
1219 utils/net_rpc_trust.o \
1220 utils/net_rpc_conf.o\
1221 $(LIBNDR_NTPRINTING_OBJ) \
1222 $(LIBNDR_PREG_OBJ) \
1223 $(LIBCLI_SPOOLSS_OBJ) \
1224 $(LIBCLI_WINREG_OBJ) \
1225 $(LIBCLI_DRSUAPI_OBJ) \
1226 $(LIBCLI_INITSHUTDOWN_OBJ) \
1227 $(LIBCLI_DSSETUP_OBJ) \
1228 $(LIBCLI_SVCCTL_OBJ) \
1229 $(LIBCLI_WKSSVC_OBJ) \
1230 $(LIBCLI_SRVSVC_OBJ) \
1231 $(LIBCLI_LSA_OBJ) \
1232 $(LIBCLI_SAMR_OBJ) \
1233 $(LIBCLI_NETLOGON_OBJ) \
1234 $(RPC_CLIENT_SCHANNEL_OBJ) \
1235 rpc_client/init_netlogon.o \
1236 rpc_client/init_samr.o \
1237 registry/reg_parse.o registry/reg_format.o \
1238 registry/reg_import.o \
1239 printing/nt_printing_migrate.o
1241 # these are not processed by make proto
1242 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1244 NET_OBJ = $(NET_OBJ1) \
1245 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1246 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1247 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1248 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1249 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1250 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1251 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1252 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1253 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1254 $(REG_SMBCONF_OBJ) \
1255 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1256 $(LIBSMBCONF_OBJ) \
1257 $(REGFIO_OBJ) \
1258 $(PRIVILEGES_BASIC_OBJ) \
1259 $(LIB_EVENTLOG_OBJ)
1261 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1262 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1263 $(AFS_SETTOKEN_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1265 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1266 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1268 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1269 torture/denytest.o torture/mangle_test.o \
1270 torture/nbench.o \
1271 torture/test_async_echo.o \
1272 torture/test_smbsock_any_connect.o \
1273 torture/test_nttrans_create.o \
1274 torture/test_nttrans_fsctl.o \
1275 torture/test_notify_online.o \
1276 torture/test_addrchange.o \
1277 torture/test_case_insensitive.o \
1278 torture/test_posix_append.o \
1279 torture/test_smb2.o \
1280 torture/test_chain3.o \
1281 torture/test_authinfo_structs.o \
1282 torture/test_cleanup.o \
1283 torture/test_ctdbconn.o \
1284 torture/test_msg.o \
1285 torture/test_notify.o \
1286 torture/test_dbwrap_watch.o \
1287 torture/test_idmap_tdb_common.o \
1288 torture/t_strappend.o
1290 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1291 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LOCKING_OBJ) \
1292 @LIBWBCLIENT_STATIC@ \
1293 torture/wbc_async.o \
1294 ../nsswitch/wb_reqtrans.o \
1295 ../libcli/lsarpc/util_lsarpc.o \
1296 lib/filename_util.o \
1297 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1299 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1300 $(LIB_NONSMBD_OBJ) \
1301 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1303 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1304 $(LIB_NONSMBD_OBJ) \
1305 $(LIBNDR_GEN_OBJ0)
1307 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1308 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1309 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(FNAME_UTIL_OBJ)
1311 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1313 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1314 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1315 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1316 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1318 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ) \
1319 torture/vfstest_chain.o
1321 LOG2PCAP_OBJ = utils/log2pcaphex.o
1323 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1324 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1325 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(FNAME_UTIL_OBJ)
1327 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1328 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1329 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1330 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1331 $(LIBCLI_LSA_OBJ)
1333 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1334 $(PARAM_OBJ) \
1335 $(LIB_NONSMBD_OBJ) \
1336 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1337 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1338 $(LIBCLI_LSA_OBJ)
1340 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1342 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1343 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1344 autoconf/librpc/gen_ndr/ndr_eventlog.o \
1345 autoconf/librpc/gen_ndr/ndr_lsa.o
1347 SHARESEC_OBJ0 = utils/sharesec.o
1348 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1349 $(LIBSMB_ERR_OBJ) \
1350 $(POPT_LIB_OBJ)
1352 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1353 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1355 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1356 @libreplacedir@/test/getifaddrs.o \
1357 @libreplacedir@/test/os2_delete.o \
1358 @libreplacedir@/test/strptime.o \
1359 @libreplacedir@/test/main.o \
1360 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1362 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1364 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1365 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1366 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1368 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1369 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1371 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1372 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
1373 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1374 $(SMBLDAP_OBJ) \
1375 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1376 $(AFS_SETTOKEN_OBJ) \
1377 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1378 $(PAM_ERRORS_OBJ)
1380 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1382 IDMAP_TDB_COMMON_OBJ = winbindd/idmap_tdb_common.o
1384 IDMAP_UTIL_OBJ = winbindd/idmap_util.o $(IDMAP_RW_OBJ) \
1385 $(IDMAP_TDB_COMMON_OBJ)
1387 IDMAP_OBJ = winbindd/idmap.o $(IDMAP_UTIL_OBJ) @IDMAP_STATIC@
1389 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1391 IDMAP_HASH_OBJ = \
1392 winbindd/idmap_hash/idmap_hash.o \
1393 winbindd/idmap_hash/mapfile.o
1395 IDMAP_ADEX_OBJ = \
1396 winbindd/idmap_adex/idmap_adex.o \
1397 winbindd/idmap_adex/cell_util.o \
1398 winbindd/idmap_adex/likewise_cell.o \
1399 winbindd/idmap_adex/provider_unified.o \
1400 winbindd/idmap_adex/gc_util.o \
1401 winbindd/idmap_adex/domain_util.o
1403 WINBINDD_OBJ1 = \
1404 winbindd/winbindd.o \
1405 winbindd/winbindd_group.o \
1406 winbindd/winbindd_util.o \
1407 winbindd/winbindd_cache.o \
1408 winbindd/winbindd_pam.o \
1409 winbindd/winbindd_misc.o \
1410 winbindd/winbindd_cm.o \
1411 winbindd/winbindd_wins_byip.o \
1412 winbindd/winbindd_wins_byname.o \
1413 winbindd/winbindd_msrpc.o \
1414 winbindd/winbindd_rpc.o \
1415 winbindd/winbindd_reconnect.o \
1416 winbindd/winbindd_ads.o \
1417 winbindd/winbindd_samr.o \
1418 winbindd/winbindd_dual.o \
1419 winbindd/winbindd_dual_ndr.o \
1420 winbindd/winbindd_dual_srv.o \
1421 autoconf/librpc/gen_ndr/ndr_wbint_c.o \
1422 autoconf/librpc/gen_ndr/srv_wbint.o \
1423 autoconf/librpc/gen_ndr/ndr_wbint.o \
1424 autoconf/librpc/gen_ndr/ndr_idmap.o \
1425 winbindd/winbindd_async.o \
1426 winbindd/winbindd_creds.o \
1427 winbindd/winbindd_cred_cache.o \
1428 winbindd/winbindd_ccache_access.o \
1429 winbindd/winbindd_domain.o \
1430 winbindd/winbindd_idmap.o \
1431 winbindd/winbindd_locator.o \
1432 winbindd/winbindd_ndr.o \
1433 winbindd/wb_ping.o \
1434 winbindd/wb_lookupsid.o \
1435 winbindd/wb_lookupsids.o \
1436 winbindd/wb_lookupname.o \
1437 winbindd/wb_sid2uid.o \
1438 winbindd/wb_sid2gid.o \
1439 winbindd/wb_uid2sid.o \
1440 winbindd/wb_gid2sid.o \
1441 winbindd/wb_queryuser.o \
1442 winbindd/wb_lookupuseraliases.o \
1443 winbindd/wb_lookupusergroups.o \
1444 winbindd/wb_getpwsid.o \
1445 winbindd/wb_gettoken.o \
1446 winbindd/wb_seqnum.o \
1447 winbindd/wb_seqnums.o \
1448 winbindd/wb_group_members.o \
1449 winbindd/wb_getgrsid.o \
1450 winbindd/wb_query_user_list.o \
1451 winbindd/wb_fill_pwent.o \
1452 winbindd/wb_next_pwent.o \
1453 winbindd/wb_next_grent.o \
1454 winbindd/wb_dsgetdcname.o \
1455 winbindd/winbindd_lookupsid.o \
1456 winbindd/winbindd_lookupsids.o \
1457 winbindd/winbindd_lookupname.o \
1458 winbindd/winbindd_sid_to_uid.o \
1459 winbindd/winbindd_sid_to_gid.o \
1460 winbindd/winbindd_uid_to_sid.o \
1461 winbindd/winbindd_gid_to_sid.o \
1462 winbindd/winbindd_sids_to_xids.o \
1463 winbindd/winbindd_allocate_uid.o \
1464 winbindd/winbindd_allocate_gid.o \
1465 winbindd/winbindd_getpwsid.o \
1466 winbindd/winbindd_getpwnam.o \
1467 winbindd/winbindd_getpwuid.o \
1468 winbindd/winbindd_getsidaliases.o \
1469 winbindd/winbindd_getuserdomgroups.o \
1470 winbindd/winbindd_getgroups.o \
1471 winbindd/winbindd_show_sequence.o \
1472 winbindd/winbindd_getgrgid.o \
1473 winbindd/winbindd_getgrnam.o \
1474 winbindd/winbindd_getusersids.o \
1475 winbindd/winbindd_lookuprids.o \
1476 winbindd/winbindd_setpwent.o \
1477 winbindd/winbindd_getpwent.o \
1478 winbindd/winbindd_endpwent.o \
1479 winbindd/winbindd_setgrent.o \
1480 winbindd/winbindd_getgrent.o \
1481 winbindd/winbindd_endgrent.o \
1482 winbindd/winbindd_dsgetdcname.o \
1483 winbindd/winbindd_getdcname.o \
1484 winbindd/winbindd_list_users.o \
1485 winbindd/winbindd_list_groups.o \
1486 winbindd/winbindd_check_machine_acct.o \
1487 winbindd/winbindd_change_machine_acct.o \
1488 winbindd/winbindd_ping_dc.o \
1489 winbindd/winbindd_pam_auth.o \
1490 winbindd/winbindd_pam_auth_crap.o \
1491 winbindd/winbindd_pam_chauthtok.o \
1492 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1493 winbindd/winbindd_pam_logoff.o \
1494 auth/auth_util.o \
1495 auth/token_util.o \
1496 auth/user_util.o \
1497 auth/check_samsec.o \
1498 auth/server_info.o \
1499 auth/server_info_sam.o \
1500 auth/user_info.o \
1501 auth/pampass.o \
1502 ../nsswitch/wb_reqtrans.o
1504 WINBINDD_OBJ = \
1505 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1506 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1507 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1508 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1509 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1510 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1511 $(RPC_CONFIG) $(RPC_NCACN_NP) \
1512 $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1513 $(NPA_TSTREAM_OBJ) \
1514 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1515 $(LIBADS_SERVER_OBJ) \
1516 $(TDB_VALIDATE_OBJ) \
1517 $(LIBCLI_DSSETUP_OBJ) \
1518 $(LIBCLI_LSA_OBJ) \
1519 $(LIBCLI_SAMR_OBJ) \
1520 $(LIBCLI_NETLOGON_OBJ) \
1521 rpc_client/init_netlogon.o \
1522 rpc_client/init_samr.o \
1523 $(PAM_ERRORS_OBJ)
1525 WBINFO_OBJ = ../nsswitch/wbinfo.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1526 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1527 lib/winbind_util.o $(WBCOMMON_OBJ) \
1528 $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) $(SECRETS_OBJ)
1530 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1532 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1533 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1535 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1536 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1538 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1539 ../lib/iniparser_build/strlib.o
1541 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1542 $(SOCKET_WRAPPER_OBJ)
1544 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1545 $(SOCKET_WRAPPER_OBJ)
1547 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1548 $(SOCKET_WRAPPER_OBJ)
1550 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1551 $(SOCKET_WRAPPER_OBJ)
1553 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1554 $(SOCKET_WRAPPER_OBJ)
1557 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1559 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} \
1560 ${LIBADS_SERVER_OBJ} \
1561 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1562 $(WBCOMMON_OBJ) \
1563 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1564 $(AFS_SETTOKEN_OBJ) \
1565 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1566 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) @BUILD_INIPARSER@
1569 VLP_OBJ = printing/tests/vlp.o \
1570 ../lib/util/util_tdb.o \
1571 $(LIBSAMBAUTIL_OBJ) \
1572 param/util.o
1574 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1575 $(LIBSMB_OBJ) \
1576 $(PARAM_OBJ) \
1577 $(PASSDB_OBJ) \
1578 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1579 $(LIB_NONSMBD_OBJ) \
1580 $(KRBCLIENT_OBJ) \
1581 $(LIBMSRPC_OBJ) \
1582 $(LIBMSRPC_GEN_OBJ)
1584 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1585 $(PARAM_OBJ) \
1586 $(LIB_NONSMBD_OBJ) \
1587 $(LIBSMB_ERR_OBJ) \
1588 $(POPT_LIB_OBJ)
1590 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1591 $(PARAM_OBJ) \
1592 $(LIB_NONSMBD_OBJ) \
1593 $(LIBSMB_ERR_OBJ) \
1594 $(POPT_LIB_OBJ)
1596 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1597 $(PARAM_OBJ) \
1598 $(LIB_NONSMBD_OBJ) \
1599 $(POPT_LIB_OBJ) \
1600 $(LIBSAMBA_OBJ)
1602 ######################################################################
1603 # now the rules...
1604 ######################################################################
1605 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1606 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1607 $(EXTRA_ALL_TARGETS)
1609 basics:: samba3-idl mkparam
1611 nss_modules:: $(NSS_MODULES)
1613 pam_modules:: $(PAM_MODULES)
1615 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1617 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1619 gpext_modules:: $(GPEXT_MODULES)
1621 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1623 smbtorture : SHOWFLAGS bin/smbtorture
1625 masktest : SHOWFLAGS bin/masktest
1627 msgtest : SHOWFLAGS bin/msgtest
1629 locktest : SHOWFLAGS bin/locktest
1631 smbcacls : SHOWFLAGS bin/smbcacls
1633 smbcquotas : SHOWFLAGS bin/smbcquotas
1635 locktest2 : SHOWFLAGS bin/locktest2
1637 debug2html : SHOWFLAGS bin/debug2html
1639 smbfilter : SHOWFLAGS bin/smbfilter
1641 eventlogadm: SHOWFLAGS bin/eventlogadm
1643 sharesec: SHOWFLAGS bin/sharesec
1645 talloctort : SHOWFLAGS $(TALLOCTORT)
1647 replacetort : SHOWFLAGS bin/replacetort
1649 smbconftort : SHOWFLAGS bin/smbconftort
1651 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest
1653 timelimit : SHOWFLAGS bin/timelimit
1655 nsswitch : SHOWFLAGS bin/winbindd bin/wbinfo @WINBIND_NSS@ \
1656 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1657 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol
1659 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1661 modules:: SHOWFLAGS $(MODULES)
1664 #####################################################################
1665 ## Perl IDL Compiler
1667 IDL_FILES = librpc/idl/messaging.idl \
1668 librpc/idl/libnetapi.idl \
1669 librpc/idl/wbint.idl \
1670 librpc/idl/perfcount.idl \
1671 librpc/idl/secrets.idl \
1672 librpc/idl/open_files.idl \
1673 librpc/idl/libnet_join.idl
1675 samba3-idl::
1676 @PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1677 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1678 @PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1679 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1681 idl_full::
1682 @PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1683 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1684 @PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1685 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1687 mkparam: autoconf/lib/param/param_local.h autoconf/lib/param/param_global.h autoconf/source3/param/param_global.h autoconf/lib/param/param_proto.h autoconf/lib/param/s3_param.h
1689 autoconf/lib/param/param_local.h:
1690 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c --file autoconf/lib/param/param_local.h --generate-scope=LOCAL
1691 autoconf/lib/param/param_global.h:
1692 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c $(srcdir)/../lib/param/loadparm.c --file autoconf/lib/param/param_global.h --generate-scope=GLOBAL
1693 autoconf/source3/param/param_global.h:
1694 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c $(srcdir)/param/loadparm.c --file autoconf/source3/param/param_global.h --generate-scope=GLOBAL
1695 autoconf/lib/param/param_proto.h:
1696 $(PERL) ../source4/script/mkproto.pl $(srcdir)/../lib/param/param_functions.c $(srcdir)/../lib/param/loadparm.c --public autoconf/lib/param/param_proto.h --private autoconf/lib/param/param_proto.h
1697 autoconf/lib/param/s3_param.h:
1698 $(PERL) ../script/mks3param.pl $(srcdir)/../lib/param/param_functions.c $(srcdir)/../lib/param/loadparm.c --file autoconf/lib/param/s3_param.h
1701 #####################################################################
1704 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1705 $(EVERYTHING_PROGS) \
1706 vfs_examples
1708 .SUFFIXES:
1709 .SUFFIXES: .c .o .lo
1711 .PHONY: showflags SHOWFLAGS
1713 showflags: SHOWFLAGS
1715 SHOWFLAGS::
1716 @echo "Using CFLAGS = $(CFLAGS)"
1717 @echo " PICFLAG = $(PICFLAG)"
1718 @echo " LIBS = $(LIBS)"
1719 @echo " LDFLAGS = $(LDFLAGS)"
1720 @echo " DYNEXP = $(DYNEXP)"
1721 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1722 @echo " SHLIBEXT = @SHLIBEXT@"
1723 @echo " SONAMEFLAG = @SONAMEFLAG@"
1725 # "showcflags" target for debuggin how CFLAGS are composed:
1727 .PHONY: showcflags SHOWCFLAGS
1729 showcflags: SHOWCFLAGS
1731 SHOWCFLAGS::
1732 @echo "CFLAGS = $(CFLAGS)"
1733 @echo "FLAGS = $(FLAGS)"
1734 @echo ""
1735 @echo "FLAGS1 = @FLAGS1@"
1736 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1737 @echo "CPPFLAGS = $(CPPFLAGS)"
1738 @echo "ISA = $(ISA)"
1740 MAKEDIR = || exec false; \
1741 if test -d "$$dir"; then :; else \
1742 echo mkdir "$$dir"; \
1743 mkdir -p "$$dir" >/dev/null 2>&1 || \
1744 test -d "$$dir" || \
1745 mkdir "$$dir" || \
1746 exec false; fi || exec false
1748 # Run a static checker.
1749 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1750 # Compile a source file.
1751 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1752 # Compile a source file with the installation paths defined.
1753 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1755 COMPILE = $(COMPILE_CC)
1757 .c.o:
1758 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1759 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1760 @if test -n "$(CC_CHECKER)"; then \
1761 echo "Checking $*.c with '$(CC_CHECKER)'";\
1762 $(CHECK_CC); \
1764 @echo Compiling $*.c
1765 @$(COMPILE) && exit 0;\
1766 echo "The following command failed:" 1>&2;\
1767 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1768 $(COMPILE_CC) >/dev/null 2>&1
1769 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1771 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1773 # this adds support for precompiled headers. To use it, install a snapshot
1774 # of gcc-3.4 and run 'make pch' before you do the main build.
1775 pch::
1776 rm -f $(PRECOMPILED_HEADER)
1777 $(MAKE) $(PRECOMPILED_HEADER)
1779 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1780 $(COMPILE)
1782 BINARY_PREREQS = bin/.dummy
1784 # These dependencies are only approximately correct: we want to make
1785 # sure Samba's paths are updated if ./configure is re-run. Really it
1786 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1787 # but since we also require "make install prefix=/opt/samba" *not* to
1788 # rebuild it's a bit hard.
1790 ../dynconfig/dynconfig.o: ../dynconfig/dynconfig.c Makefile
1791 @echo Compiling $*.c
1792 @$(COMPILE_CC_PATH) && exit 0;\
1793 echo "The following command failed:" 1>&2;\
1794 echo "$(COMPILE_CC_PATH)" 1>&2;\
1795 $(COMPILE_CC_PATH) >/dev/null 2>&1
1797 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1798 @echo Compiling $*.c
1799 @$(COMPILE_CC_PATH) && exit 0;\
1800 echo "The following command failed:" 1>&2;\
1801 echo "$(COMPILE_CC_PATH)" 1>&2;\
1802 $(COMPILE_CC_PATH) >/dev/null 2>&1
1804 ../nsswitch/wb_common.o: ../nsswitch/wb_common.c Makefile
1805 @echo Compiling $*.c
1806 @$(COMPILE_CC_PATH) && exit 0;\
1807 echo "The following command failed:" 1>&2;\
1808 echo "$(COMPILE_CC_PATH)" 1>&2;\
1809 $(COMPILE_CC_PATH) >/dev/null 2>&1
1811 ### Start section of object files that require PTHREAD_CFLAGS
1812 ../nsswitch/wins.o: ../nsswitch/wins.c
1813 @echo Compiling $*.c
1814 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1815 echo "The following command failed:" 1>&2;\
1816 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1817 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1819 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1820 @echo Compiling $*.c
1821 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1822 echo "The following command failed:" 1>&2;\
1823 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1824 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1826 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1827 @echo Compiling $*.c
1828 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1829 echo "The following command failed:" 1>&2;\
1830 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1831 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1833 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1834 @echo Compiling $*.c
1835 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1836 echo "The following command failed:" 1>&2;\
1837 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1838 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1839 ### End section of object files that require PTHREAD_CFLAGS
1841 lib/pidfile.o: lib/pidfile.c
1842 @echo Compiling $*.c
1843 @$(COMPILE_CC_PATH) && exit 0;\
1844 echo "The following command failed:" 1>&2;\
1845 echo "$(COMPILE_CC_PATH)" 1>&2;\
1846 $(COMPILE_CC_PATH) >/dev/null 2>&1
1848 lib/version.o: lib/version.c include/autoconf/version.h
1849 @echo Compiling $*.c
1850 @$(COMPILE_CC_PATH) && exit 0;\
1851 echo "The following command failed:" 1>&2;\
1852 echo "$(COMPILE_CC_PATH)" 1>&2;\
1853 $(COMPILE_CC_PATH) >/dev/null 2>&1
1855 smbd/build_options.o: smbd/build_options.c Makefile include/autoconf/config.h include/build_env.h include/proto.h
1856 @echo Compiling $*.c
1857 @$(COMPILE_CC_PATH) && exit 0;\
1858 echo "The following command failed:" 1>&2;\
1859 echo "$(COMPILE_CC_PATH)" 1>&2;\
1860 $(COMPILE_CC_PATH) >/dev/null 2>&1
1862 smbd/build_options.c: include/autoconf/config.h.in script/mkbuildoptions.awk
1863 @echo Generating $@
1864 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/autoconf/config.h.in
1866 bin/.dummy:
1867 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1868 dir=bin $(MAKEDIR); fi
1869 @: >> $@ || : > $@ # what a fancy emoticon!
1871 bin/smbd: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1872 @echo Linking $@
1873 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1874 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1875 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1876 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1877 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1879 bin/nmbd: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1880 @echo Linking $@
1881 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1882 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1883 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1884 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1886 bin/swat: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1887 @echo Linking $@
1888 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1889 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1890 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1892 bin/rpcclient: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1893 @echo Linking $@
1894 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1895 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1896 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1897 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1899 bin/smbclient: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1900 @echo Linking $@
1901 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1902 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1903 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1904 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1906 bin/net: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1907 @echo Linking $@
1908 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1909 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1910 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1911 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1912 $(ZLIB_LIBS)
1914 bin/profiles: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1915 @echo Linking $@
1916 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1917 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1919 bin/smbspool: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1920 @echo Linking $@
1921 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1922 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1923 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1925 bin/testparm: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1926 @echo Linking $@
1927 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1928 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1930 bin/smbta-util: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1931 @echo Linking $@
1932 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1933 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1935 bin/smbstatus: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1936 @echo Linking $@
1937 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1938 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1940 bin/smbcontrol: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1941 @echo Linking $@
1942 @$(CC) -DUSING_SMBCONTROL -o $@ \
1943 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1944 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1945 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1947 bin/smbtree: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1948 @echo Linking $@
1949 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1950 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1951 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1953 bin/smbpasswd: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1954 @echo Linking $@
1955 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1956 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1957 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1959 bin/pdbedit: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1960 @echo Linking $@
1961 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1962 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1963 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1965 bin/smbget: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1966 @echo Linking $@
1967 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1968 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1969 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1971 bin/nmblookup: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1972 @echo Linking $@
1973 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1974 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1976 bin/smbtorture: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1977 @echo Linking $@
1978 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(IDMAP_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) \
1979 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1980 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1982 bin/talloctort: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1983 @echo Linking $@
1984 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1985 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1986 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1988 bin/replacetort: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1989 @echo Linking $@
1990 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1991 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1993 bin/smbconftort: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1994 @echo Linking $@
1995 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1996 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1997 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1999 bin/pthreadpooltest: $(PTHREADPOOLTEST_OBJ)
2000 @echo Linking $@
2001 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) $(LIBS) $(PTHREAD_LDFLAGS)
2003 bin/masktest: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2004 @echo Linking $@
2005 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2006 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2007 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2008 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2010 bin/msgtest: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
2011 @echo Linking $@
2012 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2013 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2014 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2016 bin/smbcacls: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2017 @echo Linking $@
2018 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
2019 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2020 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2022 bin/smbcquotas: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2023 @echo Linking $@
2024 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
2025 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2026 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2028 bin/eventlogadm: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
2029 @echo Linking $@
2030 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
2031 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2033 bin/sharesec: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
2034 @echo Linking $@
2035 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
2036 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2038 bin/locktest: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2039 @echo Linking $@
2040 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2041 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2042 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2043 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2045 bin/nsstest: $(BINARY_PREREQS) $(NSSTEST_OBJ) $(LIBTALLOC)
2046 @echo Linking $@
2047 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2048 $(LIBTALLOC_LIBS)
2050 bin/pdbtest: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2051 @echo Linking $@
2052 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2053 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
2054 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2056 bin/vfstest: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2057 @echo Linking $@
2058 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
2059 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
2060 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2061 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2062 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2064 bin/log2pcap: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2065 @echo Linking $@
2066 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
2067 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
2069 bin/locktest2: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2070 @echo Linking $@
2071 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
2072 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2073 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2074 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2076 bin/debug2html: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2077 @echo Linking $@
2078 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
2079 $(LIBS) $(LIBTALLOC_LIBS)
2081 bin/smbfilter: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2082 @echo Linking $@
2083 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2084 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2085 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2086 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2088 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2089 @echo Linking $@
2090 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2093 #####################################################################
2095 # libraries
2097 #####################################################################
2099 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2102 #-------------------------------------------------------------------
2104 # libtalloc
2106 #-------------------------------------------------------------------
2109 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2110 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2112 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2114 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2115 @echo Linking non-shared library $@
2116 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2117 libtalloc: $(LIBTALLOC)
2119 cleanlibtalloc::
2120 -rm -f \
2121 $(LIBTALLOC_STATIC_TARGET)
2123 libs:: libtalloc
2124 cleanlibs:: cleanlibtalloc
2126 showlibtalloc:
2127 @echo ""
2128 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2129 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2130 @echo "LIBTALLOC = $(LIBTALLOC)"
2132 showlibs:: showlibtalloc
2134 #-------------------------------------------------------------------
2136 # libtdb
2138 #-------------------------------------------------------------------
2140 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2141 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2143 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2145 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2146 @echo Linking non-shared library $@
2147 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2149 libtdb: $(LIBTDB)
2151 cleanlibtdb::
2152 -rm -f \
2153 $(LIBTDB_STATIC_TARGET)
2155 libs:: libtdb
2156 cleanlibs:: cleanlibtdb
2158 showlibtdb:
2159 @echo ""
2160 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2161 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2162 @echo "LIBTDB = $(LIBTDB)"
2164 showlibs:: showlibtdb
2166 #-------------------------------------------------------------------
2168 # libwbclient
2170 #-------------------------------------------------------------------
2172 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2173 ../nsswitch/libwbclient/wbc_util.o \
2174 ../nsswitch/libwbclient/wbc_pwd.o \
2175 ../nsswitch/libwbclient/wbc_idmap.o \
2176 ../nsswitch/libwbclient/wbc_sid.o \
2177 ../nsswitch/libwbclient/wbc_guid.o \
2178 ../nsswitch/libwbclient/wbc_pam.o
2180 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2181 $(WBCOMMON_OBJ) \
2182 $(LIBREPLACE_OBJ) \
2183 ../lib/util/blocking.o \
2184 $(SOCKET_WRAPPER_OBJ)
2186 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2187 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2188 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2189 LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@
2190 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2191 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2192 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2194 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2195 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2197 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2198 @echo Linking shared library $@
2199 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2200 @SONAMEFLAG@`basename $@`
2202 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2203 @rm -f $@
2204 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2206 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2207 @echo Linking non-shared library $@
2208 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2210 libwbclient: $(LIBWBCLIENT)
2212 cleanlibwbclient::
2213 -rm -f \
2214 $(LIBWBCLIENT_SYMS) \
2215 $(LIBWBCLIENT_STATIC_TARGET) \
2216 $(LIBWBCLIENT_SHARED_TARGET) \
2217 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2219 installlibwbclient:: installdirs libwbclient
2220 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2221 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2222 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2223 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2224 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2225 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2227 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2228 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2229 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2231 uninstalllibwbclient::
2232 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2233 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2234 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2235 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2237 libs:: libwbclient
2238 installlibs:: @INSTALL_LIBWBCLIENT@
2239 uninstalllibs:: uninstalllibwbclient
2240 cleanlibs:: cleanlibwbclient
2241 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2243 showlibwbclient:
2244 @echo ""
2245 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2246 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2247 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2248 @echo ""
2249 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2250 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2251 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2252 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2253 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2254 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2256 showlibs:: showlibwbclient
2259 #-------------------------------------------------------------------
2261 # libnetapi
2263 #-------------------------------------------------------------------
2265 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2266 lib/netapi/cm.o \
2267 autoconf/librpc/gen_ndr/ndr_libnetapi.o \
2268 lib/netapi/libnetapi.o \
2269 lib/netapi/joindomain.o \
2270 lib/netapi/serverinfo.o \
2271 lib/netapi/getdc.o \
2272 lib/netapi/user.o \
2273 lib/netapi/group.o \
2274 lib/netapi/localgroup.o \
2275 lib/netapi/samr.o \
2276 lib/netapi/sid.o \
2277 lib/netapi/share.o \
2278 lib/netapi/file.o \
2279 lib/netapi/shutdown.o \
2280 lib/netapi/netlogon.o
2282 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2283 $(LIBSMBCONF_OBJ) \
2284 $(REG_SMBCONF_OBJ) \
2285 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2286 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2287 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2288 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2289 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2290 auth/token_util.o \
2291 $(LIBCLI_INITSHUTDOWN_OBJ) \
2292 $(LIBCLI_WKSSVC_OBJ) \
2293 $(LIBCLI_SRVSVC_OBJ) \
2294 $(LIBCLI_LSA_OBJ) \
2295 $(LIBCLI_SAMR_OBJ) \
2296 $(LIBCLI_NETLOGON_OBJ) \
2297 $(RPC_CLIENT_SCHANNEL_OBJ) \
2298 rpc_client/init_netlogon.o \
2299 rpc_client/init_samr.o
2301 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2302 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2303 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2304 LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@
2305 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2306 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2307 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2309 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2310 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2312 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2313 @echo Linking shared library $@
2314 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2315 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2316 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2317 @SONAMEFLAG@`basename $@`
2319 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2320 @rm -f $@
2321 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2323 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2324 @echo Linking non-shared library $@
2325 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2327 libnetapi: $(LIBNETAPI)
2329 cleanlibnetapi::
2330 -rm -f \
2331 $(LIBNETAPI_SYMS) \
2332 $(LIBNETAPI_STATIC_TARGET) \
2333 $(LIBNETAPI_SHARED_TARGET) \
2334 $(LIBNETAPI_SHARED_TARGET_SONAME)
2336 installlibnetapi:: installdirs libnetapi
2337 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2338 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2339 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2340 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2341 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2342 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2344 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2345 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2346 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2348 uninstalllibnetapi::
2349 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2350 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2351 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2352 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2354 libs:: libnetapi
2355 installlibs:: @INSTALL_LIBNETAPI@
2356 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2357 cleanlibs:: cleanlibnetapi
2358 shlibs test_shlibs: @LIBNETAPI_SHARED@
2360 showlibnetapi:
2361 @echo ""
2362 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2363 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2364 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2365 @echo ""
2366 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2367 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2368 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2369 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2370 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2371 @echo "LIBNETAPI = $(LIBNETAPI)"
2373 showlibs:: showlibnetapi
2375 #-------------------------------------------------------------------
2377 # libsmbclient
2379 #-------------------------------------------------------------------
2381 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2382 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2383 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2384 LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@
2385 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2386 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2387 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2388 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2390 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2391 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2393 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2394 @echo Linking shared library $@
2395 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2396 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2397 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2398 @SONAMEFLAG@`basename $@`
2400 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2401 @rm -f $@
2402 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2404 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2405 @echo Linking non-shared library $@
2406 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2408 libsmbclient: $(LIBSMBCLIENT)
2410 cleanlibsmbclient::
2411 -rm -f \
2412 $(LIBSMBCLIENT_SHARED_TARGET) \
2413 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2414 $(LIBSMBCLIENT_STATIC_TARGET)
2416 installlibsmbclient:: installdirs libsmbclient
2417 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2418 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2419 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2420 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2421 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2422 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2424 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2425 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2426 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2428 installclientlib:: installlibsmbclient
2430 uninstalllibsmbclient::
2431 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2432 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2433 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2434 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2436 uninstallclientlib:: uninstalllibsmbclient
2438 libs:: libsmbclient
2439 installlibs:: @INSTALL_LIBSMBCLIENT@
2440 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2441 cleanlibs:: cleanlibsmbclient
2442 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2444 showlibsmbclient:
2445 @echo ""
2446 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2447 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2448 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2449 @echo ""
2450 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2451 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2452 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2453 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2454 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2455 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2457 showlibs:: showlibsmbclient
2459 #-------------------------------------------------------------------
2461 # libsmbsharemodes
2463 #-------------------------------------------------------------------
2465 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o ../lib/ccan/hash/hash.o
2467 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2469 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2470 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2471 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2472 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@
2473 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2474 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2475 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2476 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2478 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2479 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2481 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2482 @echo Linking shared library $@
2483 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2484 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2485 @SONAMEFLAG@`basename $@`
2487 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2488 @rm -f $@
2489 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2491 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2492 @echo Linking non-shared library $@
2493 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2495 libsmbsharemodes: $(LIBSMBSHAREMODES)
2497 cleanlibsmbsharemodes::
2498 -rm -f \
2499 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2500 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2501 $(LIBSMBSHAREMODES_STATIC_TARGET)
2503 installlibsmbsharemodes:: installdirs libsmbsharemodes
2504 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2505 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2506 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2507 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2508 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2509 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2511 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2512 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2513 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2515 uninstalllibsmbsharemodes::
2516 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2517 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2518 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2519 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2521 libs:: libsmbsharemodes
2522 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2523 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2524 cleanlibs:: cleanlibsmbsharemodes
2525 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2527 showlibsmbsharemodes:
2528 @echo ""
2529 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2530 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2531 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2532 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2533 @echo ""
2534 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2535 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2536 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2537 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2538 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2539 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2541 showlibs:: showlibsmbsharemodes
2543 #####################################################################
2545 # shared modules
2547 #####################################################################
2549 # Linker command to link our shared libraries:
2550 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2551 -o $@ @SONAMEFLAG@`basename $@`
2552 # Linker command to link samba internal plugin modules:
2553 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2554 -o $@ @SONAMEFLAG@`basename $@`
2556 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2557 @echo "Linking $@"
2558 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2560 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2561 @echo "Linking $@"
2562 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2564 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2565 @echo "Linking $@"
2566 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2568 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2569 @echo "Linking $@"
2570 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2572 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2573 @echo "Linking $@"
2574 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2576 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2577 @echo "Linking $@"
2578 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2580 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2581 @echo "Linking $@"
2582 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2584 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2585 @echo "Linking $@"
2586 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2588 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2589 @echo "Linking $@"
2590 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2592 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2593 @echo "Linking $@"
2594 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2596 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2597 @echo "Linking $@"
2598 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2600 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2601 @echo "Linking $@"
2602 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2604 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2605 @echo "Linking $@"
2606 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2608 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2609 @echo "Linking $@"
2610 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2612 bin/winbindd: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2613 @echo "Linking $@"
2614 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2615 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2616 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2617 $(ZLIB_LIBS)
2619 bin/vlp: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB) $(LIBTALLOC)
2620 @echo "Linking $@"
2621 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2622 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2623 $(LIBTALLOC_LIBS) \
2624 $(LIBTDB_LIBS)
2626 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2627 @echo "Linking $@"
2628 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2629 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2630 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2632 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2633 @echo "Linking $@"
2634 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2635 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2636 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2638 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2639 @echo "Linking $@"
2640 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2641 $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2643 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2644 @echo "Linking shared library $@"
2645 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2646 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2648 ##########
2649 # Plugins:
2650 ##########
2652 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2653 @echo "Building plugin $@"
2654 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2656 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2657 @echo "Building plugin $@"
2658 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2660 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2661 @echo "Building plugin $@"
2662 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2664 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2665 @echo "Building plugin $@"
2666 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2668 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2669 @echo "Building plugin $@"
2670 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2672 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2673 @echo "Building plugin $@"
2674 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2676 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2677 @echo "Building plugin $@"
2678 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2680 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2681 passdb/pdb_ipa.o passdb/pdb_ldap_util.o
2682 @echo "Building plugin $@"
2683 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2684 passdb/pdb_ldap_util.o $(LDAP_LIBS)
2686 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2687 @echo "Building plugin $@"
2688 @$(SHLD_MODULE) passdb/pdb_tdb.o
2690 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2691 @echo "Building plugin $@"
2692 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2694 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2695 @echo "Building plugin $@"
2696 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2698 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2699 @echo "Building plugin $@"
2700 @$(SHLD_MODULE) winbindd/idmap_rid.o
2702 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2703 @echo "Building plugin $@"
2704 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2706 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2707 @echo "Building plugin $@"
2708 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2710 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2711 @echo "Building plugin $@"
2712 @$(SHLD_MODULE) winbindd/idmap_ad.o
2714 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2715 @echo "Building plugin $@"
2716 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2718 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2719 @echo "Building plugin $@"
2720 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2722 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2723 @echo "Building plugin $@"
2724 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2726 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2727 @echo "Building plugin $@"
2728 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2730 # NOTE, there is no build rule for a dynamic default VFS module because
2731 # this one MUST MUST MUST be built statically.
2733 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2734 @echo "Building plugin $@"
2735 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2737 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2738 @echo "Building plugin $@"
2739 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2741 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2742 @echo "Building plugin $@"
2743 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2745 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2746 @echo "Building plugin $@"
2747 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2749 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2750 @echo "Building plugin $@"
2751 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2753 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2754 @echo "Building plugin $@"
2755 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2757 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2758 @echo "Building plugin $@"
2759 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2761 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2762 @echo "Building plugin $@"
2763 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2765 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2766 @echo "Building plugin $@"
2767 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2769 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2770 @echo "Building plugin $@"
2771 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2773 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2774 @echo "Building plugin $@"
2775 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2777 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2778 @echo "Building plugin $@"
2779 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2781 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2782 @echo "Building plugin $@"
2783 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2785 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2786 @echo "Building plugin $@"
2787 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2789 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2790 @echo "Building plugin $@"
2791 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2793 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2794 @echo "Building plugin $@"
2795 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2797 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2798 @echo "Building plugin $@"
2799 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2801 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2802 @echo "Building plugin $@"
2803 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2805 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2806 @echo "Building plugin $@"
2807 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2809 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2810 @echo "Building plugin $@"
2811 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
2813 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2814 @echo "Building plugin $@"
2815 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2817 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2818 @echo "Building plugin $@"
2819 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2821 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2822 @echo "Building plugin $@"
2823 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2825 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2826 @echo "Building plugin $@"
2827 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2829 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2830 @echo "Building plugin $@"
2831 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2833 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2834 @echo "Building plugin $@"
2835 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2837 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2838 @echo "Building plugin $@"
2839 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2841 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2842 @echo "Building plugin $@"
2843 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2845 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2846 @echo "Building plugin $@"
2847 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2849 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2850 @echo "Building plugin $@"
2851 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2853 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
2854 @echo "Building plugin $@"
2855 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
2857 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2858 @echo "Building plugin $@"
2859 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2861 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2862 @echo "Building plugin $@"
2863 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2865 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2866 @echo "Building plugin $@"
2867 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2869 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2870 @echo "Building plugin $@"
2871 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2873 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2874 @echo "Building plugin $@"
2875 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2877 bin/aio_pthread.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_PTHREAD_OBJ)
2878 @echo "Building plugin $@"
2879 @$(SHLD_MODULE) $(VFS_AIO_PTHREAD_OBJ)
2881 bin/aio_linux.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_LINUX_OBJ)
2882 @echo "Building plugin $@"
2883 @$(SHLD_MODULE) $(VFS_AIO_LINUX_OBJ)
2885 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2886 @echo "Building plugin $@"
2887 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2889 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2890 @echo "Building plugin $@"
2891 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2893 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2894 @echo "Building plugin $@"
2895 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2897 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2898 @echo "Building plugin $@"
2899 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2901 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2902 @echo "Building plugin $@"
2903 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2905 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2906 @echo "Building plugin $@"
2907 @$(SHLD_MODULE) libgpo/gpext/registry.o
2909 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2910 @echo "Building plugin $@"
2911 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2913 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2914 @echo "Building plugin $@"
2915 @$(SHLD_MODULE) libgpo/gpext/security.o
2917 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2918 @echo "Building plugin $@"
2919 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2921 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
2922 @echo "Building plugin $@"
2923 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
2925 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
2926 @echo "Building plugin $@"
2927 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
2929 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
2930 @echo "Building plugin $@"
2931 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
2933 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
2934 @echo "Building plugin $@"
2935 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
2937 #########################################################
2938 ## IdMap NSS plugins
2940 ## None here right now
2941 #########################################################
2943 bin/wbinfo: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2944 @echo Linking $@
2945 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2946 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2947 $(LIBWBCLIENT_LIBS)
2949 bin/ntlm_auth: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2950 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2951 @echo Linking $@
2952 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2953 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) $(ZLIB_LIBS) \
2954 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2955 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
2957 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
2958 @echo "Linking shared library $@"
2959 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2960 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(KRB5LIBS) $(ZLIB_LIBS) \
2961 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2963 bin/tdbbackup: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
2964 @echo Linking $@
2965 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2966 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2968 bin/tdbtool: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
2969 @echo Linking $@
2970 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2971 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2973 bin/tdbdump: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
2974 @echo Linking $@
2975 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
2977 bin/tdbrestore: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
2978 @echo Linking $@
2979 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
2981 bin/tdbtorture: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
2982 @echo Linking $@
2983 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2984 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2986 bin/timelimit: script/tests/timelimit.o
2987 @echo Linking $@
2988 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o $(LDFLAGS)
2990 bin/rpc_open_tcp: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2991 @echo "Linking $@"
2992 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2993 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
2994 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2996 bin/test_lp_load: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2997 @echo "Linking $@"
2998 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
2999 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3000 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3001 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3003 bin/dbwrap_tool: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3004 @echo "Linking $@"
3005 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3006 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3007 $(LDAP_LIBS) \
3008 $(POPT_LIBS) \
3009 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3011 install-dbwrap_tool:: bin/dbwrap_tool
3012 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3014 bin/dbwrap_torture: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3015 @echo "Linking $@"
3016 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3017 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3018 $(LDAP_LIBS) \
3019 $(POPT_LIBS) \
3020 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3022 install-dbwrap_torture:: bin/dbwrap_torture
3023 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3025 bin/split_tokens: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3026 @echo "Linking $@"
3027 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3028 $(LDFLAGS) $(DYNEXP) \
3029 $(LIBS) $(POPT_LIBS) \
3030 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3031 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3033 install:: installservers installbin installman \
3034 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3035 @INSTALL_PAM_MODULES@ installlibs installmo
3037 install-everything:: install installmodules
3039 # DESTDIR is used here to prevent packagers wasting their time
3040 # duplicating the Makefile. Remove it and you will have the privelege
3041 # of package each samba release for muliple versions of multiple
3042 # distributions and operating systems, or at least supplying patches
3043 # to all the packaging files required for this, prior to committing
3044 # the removal of DESTDIR. Do not remove it even though you think it
3045 # is not used
3047 installdirs::
3048 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3049 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3050 $(VARDIR) $(PRIVATE_DIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3051 $(NMBDSOCKETDIR) $(WINBINDD_SOCKET_DIR) $(WINBINDD_PRIVILEGED_SOCKET_DIR) \
3052 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3054 installservers:: all installdirs
3055 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3057 installbin:: all installdirs
3058 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3060 # Some symlinks are required for the 'probing' of modules.
3061 # This mechanism should go at some point..
3062 installmodules:: modules installdirs
3063 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3064 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3065 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3066 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3067 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3068 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3069 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3070 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3071 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3072 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3073 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3074 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3075 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3076 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3077 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3078 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3079 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3081 installscripts:: installdirs
3082 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3084 installdat:: installdirs
3085 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3087 installmsg:: installdirs
3088 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3090 installswat:: installdirs installmsg
3091 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3093 installpammodules:: $(PAM_MODULES)
3094 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3095 @for module in $(PAM_MODULES); do \
3096 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3097 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3098 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3099 done
3101 # revert to the previously installed version
3102 revert::
3103 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3104 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3106 installman:: installdirs
3107 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3109 installmo:: all installdirs
3110 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3112 .PHONY: showlayout
3114 showlayout::
3115 @echo "Samba will be installed into:"
3116 @echo " prefix: $(prefix)"
3117 @echo " exec_prefix: $(exec_prefix)"
3118 @echo " sysconfdir: $(sysconfdir)"
3119 @echo " localstatedir: $(localstatedir)"
3120 @echo " datarootdir: $(datarootdir)"
3121 @echo " BINDIR: $(BINDIR)"
3122 @echo " SBINDIR: $(SBINDIR)"
3123 @echo " LIBDIR: $(LIBDIR)"
3124 # @echo " LIBEXECDIR: $(LIBEXECDIR)"
3125 @echo " MANDIR: $(MANDIR)"
3126 @echo " DATADIR: $(DATADIR)"
3127 @echo " LOCALEDIR: $(LOCALEDIR)"
3128 # @echo " SCRIPTSBINDIR: $(SCRIPTSBINDIR)"
3129 # @echo " PYTHONDIR: $(PYTHONDIR)"
3130 # @echo " PYTHONARCHDIR: $(PYTHONARCHDIR)"
3131 @echo " MODULESDIR: $(MODULESDIR)"
3132 @echo " INCLUDEDIR: $(INCLUDEDIR)"
3133 @echo " SETUPDIR: $(SETUPDIR)"
3134 # @echo " PKGCONFIGDIR: $(PKGCONFIGDIR)"
3135 @echo " SWATDIR: $(SWATDIR)"
3136 @echo " CODEPAGEDIR: $(CODEPAGEDIR)"
3137 @echo " PAMMODULESDIR: $(PAMMODULESDIR)"
3138 @echo " CONFIGDIR: $(CONFIGDIR)"
3139 @echo " PRIVATE_DIR: $(PRIVATE_DIR)"
3140 @echo " LOCKDIR: $(LOCKDIR)"
3141 @echo " PIDDIR: $(PIDDIR)"
3142 @echo " STATEDIR: $(STATEDIR)"
3143 @echo " CACHEDIR: $(CACHEDIR)"
3144 @echo " LOGFILEBASE: $(LOGFILEBASE)"
3145 @echo " SOCKET_DIR: $(SOCKET_DIR)"
3146 @echo " PRIVILEGED_SOCKET_DIR: $(PRIVILEGED_SOCKET_DIR)"
3147 @echo " WINBINDD_SOCKET_DIR: $(WINBINDD_SOCKET_DIR)"
3148 @echo " WINBINDD_PRIVILEGED_SOCKET_DIR: $(WINBINDD_PRIVILEGED_SOCKET_DIR)"
3149 @echo " NMBDSOCKETDIR: $(NMBDSOCKETDIR)"
3150 # @echo " NTP_SIGND_SOCKET_DIR: $(NTP_SIGND_SOCKET_DIR)"
3151 @echo " NCALRPCDIR: $(NCALRPCDIR)"
3152 @echo " CONFIGFILE: $(CONFIGFILE)"
3153 @echo " LMHOSTSFILE: $(LMHOSTSFILE)"
3154 @echo " SMB_PASSWD_FILE: $(SMB_PASSWD_FILE)"
3157 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3159 uninstallmo::
3160 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3162 uninstallman::
3163 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3165 uninstallservers::
3166 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3168 uninstallbin::
3169 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3171 uninstallmodules::
3172 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3173 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3174 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3175 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3176 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3177 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3179 uninstallscripts::
3180 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3182 uninstalldat::
3183 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3185 uninstallmsg::
3186 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3188 uninstallswat:: uninstallmsg
3189 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3191 uninstallpammodules::
3192 @for module in $(PAM_MODULES); do \
3193 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3194 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3195 done
3197 cleanlibs::
3198 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3199 ../lib/*/*.ho \
3200 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3201 ../librpc/*/*.o \
3202 ../libgpo/*.o ../libgpo/*/*.o \
3203 ../libds/*.o ../libds/*/*.o ../dynconfig/*.o ../auth/*.o ../auth/*/*.o
3205 clean:: cleanlibs
3206 -rm -f include/build_env.h
3207 -rm -f smbd/build_options.c
3208 -rm -f autoconf/lib/param/param_local.h
3209 -rm -f autoconf/lib/param/param_global.h
3210 -rm -f autoconf/lib/param/param_proto.h
3211 -rm -f autoconf/lib/param/s3_param.h
3212 -rm -f autoconf/source3/param/param_global.h
3213 -rm -f $(PRECOMPILED_HEADER)
3214 -rm -f core */*~ *~ \
3215 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3216 ../testsuite/*/*.o \
3217 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3218 ../client/*.o \
3219 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3220 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3221 $(MODULES) $(TORTURE_PROGS) \
3222 $(EVERYTHING_PROGS) \
3223 bin/timelimit \
3224 .headers.stamp */src/*.o
3225 -rm -rf t_dir
3227 include/build_env.h: script/build_env.sh
3228 @echo Building include/build_env.h
3229 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3230 > $(builddir)/include/build_env.h
3232 proto::
3234 etags::
3235 rm -f TAGS
3236 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3238 ctags::
3239 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3241 realclean:: clean
3242 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3243 -rm -f script/installbin.sh script/uninstallbin.sh
3245 distclean:: realclean
3246 -rm -f smbadduser
3247 -rm -f include/autoconf/config.h Makefile
3248 -rm -f config.status config.cache so_locations
3249 -rm -rf .deps TAGS
3251 realdistclean:: distclean
3252 -rm -f include/autoconf/config.h.in
3253 -rm -f include/autoconf/version.h
3254 -rm -f autoconf/librpc/gen_ndr/*.[ch]
3255 -rm -f configure
3257 # when configure.in is updated, reconfigure
3258 $(srcdir)/configure: $(srcdir)/configure.in
3259 @echo "WARNING: you need to rerun ./autogen.sh"
3261 config.status: $(srcdir)/configure
3262 @echo "WARNING: you need to run ./configure"
3264 Makefile: $(srcdir)/Makefile.in config.status
3265 @echo "WARNING: you need to run ./config.status"
3267 ######################################################################
3268 # Samba Testing Framework
3270 # Check shared libs for unresolved symbols
3271 test_shlibs:
3272 @echo "Testing $? "
3273 @$(LIB_PATH_VAR)=./bin && \
3274 export $(LIB_PATH_VAR) && \
3275 for module in $?; do \
3276 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3277 || exit 1; \
3278 done
3280 # Check for NSS module problems.
3281 test_nss_modules:: nss_modules
3282 @echo "Testing $(NSS_MODULES) "
3283 @$(LIB_PATH_VAR)=./bin && \
3284 export $(LIB_PATH_VAR) && \
3285 for module in $(NSS_MODULES); do \
3286 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3287 || exit 1; \
3288 done
3290 # Check for PAM module problems. Specifically, check that every module we
3291 # built can actually be loaded by a minimal PAM-aware application.
3292 test_pam_modules:: pam_modules
3293 @echo "Testing $(PAM_MODULES) "
3294 @$(LIB_PATH_VAR)=./bin && \
3295 export $(LIB_PATH_VAR) && \
3296 for module in $(PAM_MODULES); do \
3297 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3298 || exit 1; \
3299 done
3303 ## Targets for 'make test'
3306 valgrindtest:: all torture timelimit
3307 @echo Running Test suite with valgrind
3308 @$(MAKE) test \
3309 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3310 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3311 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3312 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3314 selftestdir = ../selftest
3316 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3318 test:: all torture timelimit
3319 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3320 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3321 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3322 SOURCEDIR="$(srcdir)" \
3323 VFSLIBDIR="$(builddir)/bin" \
3324 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3325 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3326 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3327 $(srcdir)/selftest/s3-selftest.sh
3329 test-%:
3330 $(MAKE) test TESTS=$*
3332 buildfarm-test:
3333 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3335 subunit-test:
3336 $(MAKE) test SUBUNIT_FORMATTER=cat
3338 SELFTEST_TESTENV = s3dc
3340 testenv:
3341 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3343 gdbtestenv:
3344 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3345 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3346 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3347 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3348 TESTS="--testenv"
3350 valgrindtestenv:
3351 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3352 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3353 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3354 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3355 TESTS="--testenv"
3358 # Check for Winbind struct 32/64bit padding
3359 test_wbpad:
3360 @echo "Testing winbind request/response structure for 32/64bit padding"
3361 @./script/tests/wb_pad.sh || exit 1;
3364 ## Examples:
3367 libsmbclient_examples: libsmbclient
3368 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3370 clean_libsmbclient_examples:
3371 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3373 libnetapi_examples: libnetapi
3374 $(MAKE) -C lib/netapi/examples
3376 clean_libnetapi_examples:
3377 $(MAKE) -C lib/netapi/examples clean
3379 .PHONY: bin/smbtorture4 bin/ndrdump4
3381 bin/smbtorture4: $(BINARY_PREREQS)
3382 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3384 bin/ndrdump4: $(BINARY_PREREQS)
3385 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
3387 .PHONY: vfs_examples
3389 vfs_examples:
3391 cd ../examples/VFS && \
3392 ./configure && \
3393 make clean && \
3394 make \