s4-lsarpc handle more info levels in SetInfoTrustedDomain calls
[Samba.git] / source3 / Makefile.in
blobb0c17f6cff00a4ef041ac7b9021a3e493fbe9587
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@
56 selftest_shrdir=@selftest_shrdir@
57 smbtorture4_path=@smbtorture4_path@
58 smbtorture4_option=@smbtorture4_option@
59 selftest_custom_conf=@selftest_custom_conf@
61 LIBS=@LIBS@
62 CC=@CC@
63 SHLD=@SHLD@
64 LIB_PATH_VAR=@LIB_PATH_VAR@
66 ## Dynamic shared libraries build settings
67 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
68 DSO_EXPORTS=@DSO_EXPORTS@
69 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
71 # The MODULE_EXPORTS variable contains the platform-specific linker flags
72 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
73 MODULE_EXPORTS=@MODULE_EXPORTS@
75 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
76 # (GCC) warnings. This is done automatically for --enable-developer,
77 # --enable-picky-developer and --enable-krb5developer.
78 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
79 CFLAGS=@CFLAGS@
80 CPP=@CPP@
81 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
82 PICFLAG=@PICFLAG@
84 EXEEXT=@EXEEXT@
85 AR=@AR@
86 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
87 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
88 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
90 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
91 AWK=@AWK@
92 DYNEXP=@DYNEXP@
93 PERL=@PERL@
94 PYTHON=@PYTHON@
95 LIBDL=@LIBDL@
97 PIDL_ARGS=@PIDL_ARGS@
99 TERMLDFLAGS=@TERMLDFLAGS@
100 TERMLIBS=@TERMLIBS@
101 PRINT_LIBS=@PRINT_LIBS@
102 ZLIB_LIBS=@ZLIB_LIBS@
103 AUTH_LIBS=@AUTH_LIBS@
104 ACL_LIBS=@ACL_LIBS@
105 PASSDB_LIBS=@PASSDB_LIBS@
106 IDMAP_LIBS=@IDMAP_LIBS@
107 KRB5LIBS=@KRB5_LIBS@
108 LDAP_LIBS=@LDAP_LIBS@
109 NSCD_LIBS=@NSCD_LIBS@
110 UUID_LIBS=@UUID_LIBS@
111 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
112 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
113 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
114 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
115 DNSSD_LIBS=@DNSSD_LIBS@
116 AVAHI_LIBS=@AVAHI_LIBS@
117 POPT_LIBS=@POPTLIBS@
118 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
119 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
120 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
121 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
122 LIBTDB_LIBS=@LIBTDB_LIBS@
123 TDB_DEPS=@TDB_DEPS@
124 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
125 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
126 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
127 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
129 TALLOCTORT = @TALLOCTORT@
131 TDBBACKUP = @TDBBACKUP@
132 TDBTOOL = @TDBTOOL@
133 TDBDUMP = @TDBDUMP@
134 TDBRESTORE = @TDBRESTORE@
135 TDBTORTURE = @TDBTORTURE@
136 PTHREADPOOLTEST = @PTHREADPOOLTEST@
138 INSTALLCMD=@INSTALL@
139 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
140 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
141 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
142 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
144 VPATH=@srcdir@
145 srcdir=@abs_srcdir@
146 builddir=@abs_builddir@
147 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
148 # will search for a POSIX-compliant shell, and that might not be
149 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
150 SHELL=/bin/sh
151 DESTDIR=/
153 # See the autoconf manual "Installation Directory Variables" for a
154 # discussion of the subtle use of these variables.
156 VFSLIBDIR = $(MODULESDIR)/vfs
157 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
158 PDBLIBDIR = $(MODULESDIR)/pdb
159 RPCLIBDIR = $(MODULESDIR)/rpc
160 IDMAPLIBDIR = $(MODULESDIR)/idmap
161 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
162 CHARSETLIBDIR = $(MODULESDIR)/charset
163 AUTHLIBDIR = $(MODULESDIR)/auth
164 CONFIGLIBDIR = $(MODULESDIR)/config
165 GPEXTLIBDIR = $(MODULESDIR)/gpext
166 VARDIR = @localstatedir@
168 # The permissions to give the executables and other data
169 INSTALLPERMS_BIN = 0755
170 INSTALLPERMS_DATA = 0644
172 FLAGS = -I. \
173 -I$(srcdir) \
174 @FLAGS1@ \
175 @SAMBA_CPPFLAGS@ \
176 $(CPPFLAGS) \
177 $(ISA) \
178 -I$(srcdir)/lib \
179 -I.. \
180 -I./../lib/ldb/include \
181 -D_SAMBA_BUILD_=3
183 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
184 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
185 -DCONFIGFILE=\"$(CONFIGFILE)\" \
186 -DSBINDIR=\"$(SBINDIR)\" \
187 -DBINDIR=\"$(BINDIR)\" \
188 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
189 -DSWATDIR=\"$(SWATDIR)\" \
190 -DLOCKDIR=\"$(LOCKDIR)\" \
191 -DPIDDIR=\"$(PIDDIR)\" \
192 -DLIBDIR=\"$(LIBDIR)\" \
193 -DMODULESDIR=\"$(MODULESDIR)\" \
194 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
195 -DSHLIBEXT=\"@SHLIBEXT@\" \
196 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
197 -DCONFIGDIR=\"$(CONFIGDIR)\" \
198 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
199 -DCACHEDIR=\"$(CACHEDIR)\" \
200 -DSTATEDIR=\"$(STATEDIR)\" \
201 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
202 -DWINBINDD_SOCKET_DIR=\"$(WINBINDD_SOCKET_DIR)\" \
203 -DWINBINDD_PRIVILEGED_SOCKET_DIR=\"$(WINBINDD_PRIVILEGED_SOCKET_DIR)\" \
204 -DLOCALEDIR=\"$(LOCALEDIR)\" \
205 -DDATADIR=\"$(DATADIR)\" \
206 -DSETUPDIR=\"$(SETUPDIR)\"
208 # Note that all executable programs now provide for an optional executable suffix.
210 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
212 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
213 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
214 bin/smbta-util@EXEEXT@
215 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
216 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
217 $(TDBRESTORE) $(TDBTOOL) bin/dbwrap_tool@EXEEXT@
218 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
219 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
220 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
222 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
223 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
224 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
225 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
226 $(TDBTORTURE) $(PTHREADPOOLTEST) \
227 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
229 BIN_PROGS = @EXTRA_BIN_PROGS@ \
230 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
232 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
233 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
234 bin/log2pcap@EXEEXT@ \
235 bin/vlp@EXEEXT@ \
236 bin/dbwrap_tool@EXEEXT@ \
237 bin/dbwrap_torture@EXEEXT@
239 PAM_MODULES = @PAM_MODULES@
241 NSS_MODULES = @NSS_MODULES@
243 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
245 VFS_MODULES = @VFS_MODULES@
246 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
247 PDB_MODULES = @PDB_MODULES@
248 IDMAP_MODULES = @IDMAP_MODULES@
249 CHARSET_MODULES = @CHARSET_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 $(CHARSET_MODULES) $(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/util/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_rbt.o
272 TDB_VALIDATE_OBJ = lib/tdb_validate.o
274 SMBLDAP_OBJ = @SMBLDAP@
276 VERSION_OBJ = lib/version.o
278 WBCOMMON_OBJ = ../nsswitch/wb_common.o
280 AFS_OBJ = lib/afs.o
282 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
284 AVAHI_OBJ = @AVAHI_OBJ@
286 SERVER_MUTEX_OBJ = lib/server_mutex.o
288 PASSCHANGE_OBJ = libsmb/passchange.o
290 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
291 ../librpc/ndr/ndr_compression.o \
292 librpc/gen_ndr/ndr_drsuapi.o \
293 ../librpc/ndr/ndr_drsblobs.o \
294 librpc/gen_ndr/ndr_drsblobs.o
296 ZLIB_OBJ = @ZLIB_OBJS@
298 COMPRESSION_OBJ = ../lib/compression/mszip.o \
299 ../lib/compression/lzxpress.o \
300 $(ZLIB_OBJ)
302 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
303 $(COMPRESSION_OBJ)
305 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
306 ../librpc/ndr/ndr_ntlmssp.o
308 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
309 ../librpc/ndr/ndr.o \
310 ../librpc/ndr/ndr_misc.o \
311 librpc/gen_ndr/ndr_misc.o \
312 librpc/gen_ndr/ndr_security.o \
313 ../librpc/ndr/ndr_sec_helper.o \
314 ../librpc/ndr/ndr_string.o \
315 ../librpc/ndr/uuid.o \
316 ../librpc/ndr/util.o \
317 librpc/gen_ndr/ndr_server_id.o \
318 librpc/gen_ndr/ndr_file_id.o \
319 librpc/gen_ndr/ndr_dcerpc.o
321 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
322 librpc/gen_ndr/ndr_lsa.o
324 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
325 ../librpc/ndr/ndr_netlogon.o
327 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
328 ../librpc/ndr/ndr_schannel.o
330 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
331 ../librpc/ndr/ndr_spoolss_buf.o
333 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
334 ../librpc/ndr/ndr_ntprinting.o \
336 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
337 ../librpc/ndr/ndr_preg.o
339 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
340 ../librpc/ndr/ndr_xattr.o
342 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss_c.o \
343 rpc_client/cli_spoolss.o \
344 rpc_client/init_spoolss.o \
345 rpc_client/cli_winreg_spoolss.o \
346 printing/nt_printing_os2.o
348 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/ndr_eventlog_c.o
350 LIBCLI_WINREG_OBJ = librpc/gen_ndr/ndr_winreg_c.o \
351 rpc_client/cli_winreg.o
353 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
354 rpc_client/cli_winreg_int.o
356 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/ndr_ntsvcs_c.o
358 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/ndr_drsuapi_c.o
360 LIBCLI_DFS_OBJ = librpc/gen_ndr/ndr_dfs_c.o
362 LIBCLI_ECHO_OBJ = librpc/gen_ndr/ndr_echo_c.o
364 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/ndr_initshutdown_c.o
366 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/ndr_dssetup_c.o
368 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/ndr_svcctl_c.o
370 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/ndr_wkssvc_c.o
372 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/ndr_srvsvc_c.o
374 LIBCLI_LSA_OBJ = librpc/gen_ndr/ndr_lsa_c.o \
375 rpc_client/cli_lsarpc.o \
376 rpc_client/init_lsa.o
378 LIBCLI_SAMR_OBJ = librpc/gen_ndr/ndr_samr_c.o \
379 rpc_client/cli_samr.o
381 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon_c.o \
382 rpc_client/cli_netlogon.o \
383 rpc_client/util_netlogon.o
385 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/ndr_epmapper_c.o
387 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
388 $(LIBNDR_GEN_OBJ0) \
389 librpc/gen_ndr/ndr_dfs.o \
390 librpc/gen_ndr/ndr_dfsblobs.o \
391 librpc/gen_ndr/ndr_echo.o \
392 librpc/gen_ndr/ndr_winreg.o \
393 librpc/gen_ndr/ndr_initshutdown.o \
394 librpc/gen_ndr/ndr_srvsvc.o \
395 librpc/gen_ndr/ndr_eventlog.o \
396 $(LIBNDR_NETLOGON_OBJ) \
397 librpc/gen_ndr/ndr_dssetup.o \
398 librpc/gen_ndr/ndr_epmapper.o \
399 librpc/gen_ndr/ndr_ntsvcs.o \
400 $(LIBNDR_SPOOLSS_OBJ)
402 # this includes only the low level parse code, not stuff
403 # that requires knowledge of security contexts
404 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
406 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
408 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
409 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
410 UID_WRAPPER_OBJ = @UID_WRAPPER_OBJS@
412 LIBSAMBAUTIL_OBJ = \
413 $(LIBREPLACE_OBJ) \
414 $(SOCKET_WRAPPER_OBJ) \
415 $(UID_WRAPPER_OBJ) \
416 $(NSS_WRAPPER_OBJ)
418 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
419 ../lib/util/xfile.o ../lib/util/util_strlist.o \
420 ../lib/util/util_file.o ../lib/util/data_blob.o \
421 ../lib/util/util.o ../lib/util/util_paths.o ../lib/util/fsusage.o \
422 ../lib/util/params.o ../lib/util/talloc_stack.o \
423 ../lib/util/genrand.o ../lib/util/util_net.o \
424 ../lib/util/become_daemon.o ../lib/util/system.o \
425 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
426 ../lib/util/tevent_werror.o \
427 ../lib/util/smb_threads.o ../lib/util/util_id.o \
428 ../lib/util/blocking.o ../lib/util/rfc1738.o \
429 ../lib/util/select.o ../lib/util/util_pw.o ../lib/util/server_id.o
431 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
432 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
433 ../lib/crypto/md4.o \
434 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
435 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
437 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) $(LIBTSOCKET_OBJ) \
438 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
439 lib/messages_ctdbd.o lib/ctdb_packet.o lib/ctdbd_conn.o \
440 lib/id_cache.o \
441 ../lib/socket/interfaces.o lib/memcache.o \
442 lib/talloc_dict.o \
443 lib/serverid.o \
444 lib/util_sconn.o \
445 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
446 lib/addrchange.o \
447 $(TDB_LIB_OBJ) \
448 $(VERSION_OBJ) lib/charcnv.o ../lib/util/charset/convert_string.o \
449 ../lib/util/charset/pull_push.o \
450 lib/fstring.o ../lib/util/debug.o ../lib/util/debug_s3.o ../lib/util/fault.o \
451 lib/interface.o lib/pidfile.o lib/dumpcore.o \
452 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
453 lib/username.o \
454 ../libds/common/flag_mapping.o \
455 lib/access.o lib/smbrun.o \
456 ../lib/util/bitmap.o ../lib/util/dprintf.o $(UTIL_REG_OBJ) \
457 lib/wins_srv.o lib/string_init.o \
458 lib/util_str.o ../lib/util/util_str_common.o \
459 ../lib/util/util_str.o \
460 ../lib/util/base64.o lib/util_sid.o \
461 ../lib/util/charset/util_unistr.o \
462 ../lib/util/charset/util_unistr_w.o ../lib/util/charset/codepoints.o ../lib/util/charset/util_str.o lib/util_file.o \
463 lib/util.o lib/util_malloc.o lib/namearray.o lib/util_cmdline.o lib/util_names.o \
464 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
465 lib/substitute.o lib/substitute_generic.o ../lib/util/substitute.o lib/dbwrap/dbwrap_util.o \
466 lib/ms_fnmatch.o ../lib/util/ms_fnmatch.o lib/errmap_unix.o ../libcli/util/errmap_unix.o \
467 lib/tallocmsg.o lib/dmallocmsg.o \
468 ../libcli/smb/smb_signing.o \
469 ../lib/util/charset/iconv.o ../lib/util/charset/weird.o \
470 ../lib/util/charset/charset_macosxfs.o intl/lang_tdb.o \
471 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
472 lib/sessionid_tdb.o \
473 ../lib/util/modules.o lib/events.o @LIBTEVENT_OBJ0@ \
474 @CCAN_OBJ@ \
475 lib/server_contexts.o \
476 lib/server_prefork.o \
477 lib/server_prefork_util.o \
478 lib/ldap_escape.o @CHARSET_STATIC@ \
479 ../libcli/security/secdesc.o ../libcli/security/access_check.o \
480 ../libcli/security/secace.o ../libcli/security/object_tree.o \
481 ../libcli/security/sddl.o ../libcli/security/session.o \
482 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
483 lib/fncall.o \
484 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
485 lib/file_id.o lib/idmap_cache.o \
486 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
487 ../libcli/security/security_token.o ../libcli/security/util_sid.o \
488 ../libcli/smb/util.o
490 LIB_DUMMY_OBJ = lib/smbd_shim.o lib/dummyparam.o
491 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
493 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
495 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
496 # Be sure to include them into your application
497 POPT_LIB_OBJ = lib/popt_common.o
499 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
500 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
501 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
503 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
505 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
506 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
507 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
509 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
511 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
512 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
513 libgpo/gpo_reg.o \
514 $(GPEXT_OBJ)
515 LIBGPO_OBJ = $(LIBGPO_OBJ0)
517 LIBADS_OBJ = libads/ldap.o \
518 libads/sasl.o libads/sasl_wrapping.o \
519 libads/krb5_setpw.o \
520 libads/kerberos_util.o \
521 libads/ldap_user.o \
522 libads/ads_struct.o libads/kerberos_keytab.o \
523 libads/disp_sec.o libads/ldap_utils.o \
524 libads/ldap_schema.o libads/util.o libads/ndr.o
526 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o ../auth/kerberos/kerberos_pac.o \
527 ../librpc/ndr/ndr_krb5pac.o \
528 librpc/gen_ndr/ndr_krb5pac.o
530 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
532 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
533 librpc/gen_ndr/ndr_secrets.o \
534 passdb/secrets_lsa.o
536 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
537 ../libcli/netlogon/netlogon.o \
538 librpc/gen_ndr/ndr_nbt.o \
539 ../librpc/ndr/ndr_nbt.o \
540 librpc/gen_ndr/ndr_svcctl.o \
541 ../librpc/ndr/ndr_svcctl.o
543 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
544 libsmb/namequery.o ../libcli/nbt/lmhosts.o ../libcli/dns/dns_hosts_file.o libsmb/conncache.o \
545 libads/dns.o libads/sitename_cache.o
547 NTERR_OBJ = ../libcli/util/nterr.o libsmb/smberr.o
548 DOSERR_OBJ = ../libcli/util/doserr.o
549 ERRORMAP_OBJ = ../libcli/util/errormap.o libsmb/errormap.o
550 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
552 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
554 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
556 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
557 $(SECRETS_OBJ)
559 LIBSMB_OBJ0 = \
560 ../libcli/auth/ntlm_check.o \
561 libsmb/ntlmssp.o \
562 libsmb/ntlmssp_wrap.o \
563 ../auth/gensec/gensec.o \
564 ../auth/gensec/gensec_start.o \
565 ../auth/credentials/credentials.o \
566 ../auth/credentials/credentials_samba3.o \
567 ../auth/ntlmssp/ntlmssp.o \
568 ../auth/ntlmssp/ntlmssp_sign.o \
569 ../auth/ntlmssp/gensec_ntlmssp.o \
570 $(LIBNDR_NTLMSSP_OBJ) \
571 ../auth/ntlmssp/ntlmssp_ndr.o \
572 ../auth/ntlmssp/ntlmssp_server.o
574 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
575 $(LIBSMB_ERR_OBJ)
577 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
578 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o ../lib/ldb/common/ldb_parse.o
580 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
581 ../lib/tsocket/tsocket_helpers.o \
582 ../lib/tsocket/tsocket_bsd.o
584 CLDAP_OBJ = libads/cldap.o \
585 ../libcli/cldap/cldap.o \
586 ../lib/util/idtree.o \
587 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ)
589 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
591 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
592 ../libcli/auth/schannel_sign.o \
593 ../libcli/auth/schannel_state_tdb.o \
594 $(LIBNDR_SCHANNEL_OBJ)
596 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
597 libsmb/clikrb5.o ../libcli/auth/krb5_wrap.o libsmb/clispnego.o \
598 ../libcli/auth/spnego_parse.o \
599 ../lib/util/asn1.o \
600 libsmb/reparse_symlink.o \
601 libsmb/clisymlink.o \
602 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
603 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
604 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
605 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
606 libsmb/clioplock.o libsmb/clirap2.o \
607 libsmb/async_smb.o \
608 libsmb/clisigning.o \
609 ../libcli/smb/smb_seal.o \
610 ../libcli/smb/read_smb.o \
611 ../libcli/smb/smbXcli_base.o \
612 ../libcli/smb/smb1cli_trans.o \
613 libsmb/smb2cli_session.o \
614 libsmb/smb2cli_tcon.o \
615 libsmb/smb2cli_create.o \
616 ../libcli/smb/smb2_create_blob.o \
617 ../libcli/smb/smb2_signing.o \
618 libsmb/smb2cli_close.o \
619 libsmb/smb2cli_flush.o \
620 libsmb/smb2cli_read.o \
621 libsmb/smb2cli_write.o \
622 libsmb/smb2cli_query_directory.o \
623 libsmb/cli_np_tstream.o \
624 libsmb/smbsock_connect.o \
625 $(LIBSAMBA_OBJ) \
626 $(LIBNMB_OBJ) \
627 $(LIBNBT_OBJ) \
628 $(CLDAP_OBJ) \
629 $(DRSUAPI_OBJ)
631 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
632 rpc_client/cli_pipe.o \
633 librpc/crypto/gse_krb5.o \
634 librpc/crypto/gse.o \
635 ../auth/kerberos/gssapi_pac.o \
636 librpc/crypto/cli_spnego.o \
637 librpc/rpc/rpc_common.o \
638 rpc_client/rpc_transport_np.o \
639 rpc_client/rpc_transport_sock.o \
640 rpc_client/rpc_transport_tstream.o \
641 ../librpc/rpc/binding.o \
642 ../librpc/rpc/dcerpc_util.o \
643 ../librpc/rpc/binding_handle.o \
644 librpc/rpc/dcerpc_helpers.o \
645 $(LIBCLI_EPMAPPER_OBJ)
647 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
650 # registry-related objects
652 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
654 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
655 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
656 REG_INIT_FULL_OBJ = registry/reg_init_full.o
658 REGFIO_OBJ = registry/regfio.o \
659 $(REG_PARSE_PRS_OBJ)
661 REG_API_REGF_OBJ = registry/reg_api_regf.o
663 REGOBJS_OBJ = registry/reg_objects.o
665 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
667 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
669 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
670 registry/reg_backend_shares.o \
671 registry/reg_backend_netlogon_params.o \
672 registry/reg_backend_prod_options.o \
673 registry/reg_backend_tcpip_params.o \
674 registry/reg_backend_hkpt_params.o \
675 registry/reg_backend_current_version.o \
676 registry/reg_backend_perflib.o
678 REG_BASE_OBJ = registry/reg_api.o \
679 registry/reg_dispatcher.o \
680 registry/reg_cachehook.o \
681 $(REGOBJS_OBJ) \
682 registry/reg_util_internal.o \
683 lib/util_nttoken.o \
684 $(REG_BACKENDS_BASE_OBJ) \
685 registry/reg_parse_internal.o \
686 lib/cbuf.o lib/srprs.o \
687 $(REG_INIT_BASIC_OBJ)
689 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
690 registry/reg_util_token.o \
691 registry/reg_api_util.o \
692 $(REG_BACKENDS_SMBCONF_OBJ) \
693 $(REG_INIT_SMBCONF_OBJ)
695 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
696 $(REG_BACKENDS_EXTRA_OBJ) \
697 $(REG_INIT_FULL_OBJ) \
698 registry/reg_perfcount.o \
699 librpc/gen_ndr/ndr_perfcount.o
701 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
703 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
705 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
706 librpc/gen_ndr/srv_lsa.o \
707 ../libcli/lsarpc/util_lsarpc.o
709 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
710 librpc/gen_ndr/srv_netlogon.o
712 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
713 rpc_server/samr/srv_samr_util.o \
714 rpc_server/samr/srv_samr_chgpasswd.o \
715 librpc/gen_ndr/srv_samr.o
717 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
719 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
720 librpc/gen_ndr/srv_winreg.o
722 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
724 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
725 librpc/gen_ndr/srv_srvsvc.o
727 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
728 rpc_server/wkssvc/srv_wkssvc_nt.o
730 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
731 rpc_server/svcctl/srv_svcctl_reg.o \
732 librpc/gen_ndr/srv_svcctl.o \
733 services/svc_winreg_glue.o \
734 services/svc_spoolss.o services/svc_rcinit.o \
735 services/svc_netlogon.o services/svc_winreg.o \
736 services/svc_wins.o
738 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
739 librpc/gen_ndr/srv_ntsvcs.o
741 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
742 rpc_server/dfs/srv_dfs_nt.o
744 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
745 rpc_server/spoolss/srv_spoolss_util.o \
746 librpc/gen_ndr/srv_spoolss.o
748 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
749 rpc_server/eventlog/srv_eventlog_reg.o \
750 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
752 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
753 librpc/gen_ndr/ndr_named_pipe_auth.o \
754 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o ../librpc/ndr/ndr_auth.o
756 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
757 rpc_server/rpc_handles.o rpc_server/rpc_contexts.o \
758 rpc_server/srv_access_check.o
760 RPC_CONFIG = rpc_server/rpc_config.o
762 RPC_SERVICE = rpc_server/rpc_server.o
764 RPC_CRYPTO = rpc_server/dcesrv_ntlmssp.o \
765 rpc_server/dcesrv_gssapi.o \
766 rpc_server/dcesrv_spnego.o
768 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
769 $(RPC_CONFIG) $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
771 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
773 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
775 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_register.o $(DCE_RPC_EP_OBJ)
777 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
778 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
779 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
780 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
781 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
782 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
783 $(LIBCLI_SPOOLSS_OBJ) \
784 $(LIBCLI_WINREG_INT_OBJ) \
785 $(LIBCLI_SRVSVC_OBJ) \
786 $(LIBCLI_LSA_OBJ) \
787 $(LIBCLI_SAMR_OBJ) \
788 $(LIBCLI_NETLOGON_OBJ) \
789 $(RPC_SERVER_REGISTER_OBJ) \
790 $(RPC_CLIENT_SCHANNEL_OBJ) \
791 rpc_server/rpc_sock_helper.o \
792 rpc_server/rpc_service_setup.o \
793 rpc_client/init_netlogon.o \
794 rpc_client/init_samr.o
796 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
798 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o \
799 librpc/gen_ndr/ndr_open_files.o
801 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
803 PRIVILEGES_OBJ = lib/privileges.o
805 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
807 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
808 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
809 lib/util_unixsids.o passdb/lookup_sid.o \
810 passdb/login_cache.o @PDB_STATIC@ \
811 passdb/account_pol.o $(PRIVILEGES_OBJ) \
812 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
813 passdb/pdb_util.o
815 DEVEL_HELP_WEIRD_OBJ = ../lib/util/charset/weird.o
816 CHARSET_MACOSXFS_OBJ = ../lib/util/charset/charset_macosxfs.o
818 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
820 PROFILE_OBJ = profile/profile.o
821 PROFILES_OBJ = utils/profiles.o \
822 $(LIBSMB_ERR_OBJ) \
823 $(PARAM_OBJ) \
824 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
825 $(POPT_LIB_OBJ) \
826 $(REGFIO_OBJ)
828 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
829 smbd/oplock_onefs.o
831 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
832 librpc/gen_ndr/ndr_notify.o
834 FNAME_UTIL_OBJ = lib/filename_util.o
836 VFS_DEFAULT_OBJ = modules/vfs_default.o
837 VFS_AUDIT_OBJ = modules/vfs_audit.o
838 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
839 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
840 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
841 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
842 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
843 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
844 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
845 VFS_CAP_OBJ = modules/vfs_cap.o
846 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
847 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
848 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
849 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
850 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
851 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
852 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
853 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
854 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
855 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
856 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
857 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
858 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
859 VFS_CATIA_OBJ = modules/vfs_catia.o
860 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
861 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
862 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
863 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
864 VFS_COMMIT_OBJ = modules/vfs_commit.o
865 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
866 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
867 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
868 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
869 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
870 VFS_FILEID_OBJ = modules/vfs_fileid.o
871 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
872 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
873 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
874 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
875 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
876 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
877 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
878 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
879 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
880 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
881 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
882 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
883 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
884 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
885 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
886 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
887 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
889 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
890 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
892 SLCACHE_OBJ = libsmb/samlogon_cache.o
894 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
896 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
897 AUTH_DOMAIN_OBJ = auth/auth_domain.o
898 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
899 AUTH_SERVER_OBJ = auth/auth_server.o
900 AUTH_UNIX_OBJ = auth/auth_unix.o
901 AUTH_WINBIND_OBJ = auth/auth_winbind.o
902 AUTH_WBC_OBJ = auth/auth_wbc.o
903 AUTH_SCRIPT_OBJ = auth/auth_script.o
904 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
906 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
907 auth/server_info.o \
908 auth/server_info_sam.o \
909 auth/user_info.o \
910 auth/user_util.o \
911 auth/user_krb5.o \
912 auth/auth_compat.o auth/auth_ntlmssp.o \
913 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
915 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
917 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o smbd/msg_idmap.o
919 BUILDOPT_OBJ = smbd/build_options.o
921 SMBD_OBJ_SRV = smbd/server_reload.o \
922 smbd/files.o smbd/connection.o \
923 smbd/utmp.o smbd/session.o \
924 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/conn_idle.o smbd/conn_msg.o \
925 smbd/share_access.o smbd/fileio.o \
926 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
927 smbd/message.o smbd/nttrans.o smbd/pipes.o \
928 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
929 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
930 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
931 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
932 smbd/posix_acls.o lib/sysacls.o \
933 smbd/process.o smbd/service.o param/service.o smbd/error.o \
934 rpc_server/epmd.o \
935 rpc_server/lsasd.o \
936 printing/printspoolss.o printing/spoolssd.o \
937 lib/sysquotas.o lib/sysquotas_linux.o \
938 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
939 lib/sysquotas_nfs.o \
940 lib/smbd_shim.o \
941 smbd/fake_file.o \
942 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
943 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
944 smbd/dmapi.o smbd/signing.o \
945 smbd/file_access.o \
946 smbd/dnsregister.o smbd/globals.o \
947 smbd/smb2_server.o \
948 smbd/smb2_glue.o \
949 smbd/smb2_negprot.o \
950 smbd/smb2_sesssetup.o \
951 smbd/smb2_tcon.o \
952 smbd/smb2_create.o \
953 smbd/smb2_close.o \
954 smbd/smb2_flush.o \
955 smbd/smb2_read.o \
956 smbd/smb2_write.o \
957 smbd/smb2_lock.o \
958 smbd/smb2_ioctl.o \
959 smbd/smb2_keepalive.o \
960 smbd/smb2_find.o \
961 smbd/smb2_notify.o \
962 smbd/smb2_getinfo.o \
963 smbd/smb2_setinfo.o \
964 smbd/smb2_break.o \
965 $(MANGLE_OBJ) @VFS_STATIC@
967 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
968 $(RPC_SERVER_OBJ) \
969 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
970 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
971 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
972 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
973 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
974 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
975 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
976 $(LIBSMBCONF_OBJ) \
977 $(PRIVILEGES_BASIC_OBJ) \
978 $(REGFIO_OBJ) \
979 $(REG_API_REGF_OBJ) \
980 $(LIBNDR_XATTR_OBJ)
982 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
983 printing/print_cups.o printing/print_generic.o \
984 printing/lpq_parse.o printing/load.o \
985 printing/print_iprint.o printing/print_standard.o \
986 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
988 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
989 PRINTBACKEND_OBJ = printing/printing.o \
990 printing/nt_printing.o \
991 printing/nt_printing_tdb.o \
992 printing/nt_printing_migrate.o \
993 printing/nt_printing_migrate_internal.o \
994 printing/nt_printing_ads.o \
995 librpc/gen_ndr/ndr_ntprinting.o \
996 ../librpc/ndr/ndr_ntprinting.o \
997 printing/queue_process.o \
998 $(PRINTBASE_OBJ)
1000 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
1002 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
1003 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
1004 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
1005 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
1006 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
1007 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
1008 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
1009 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
1010 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
1011 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
1012 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
1013 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
1015 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1016 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1017 $(LIBNDR_GEN_OBJ0)
1019 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
1020 web/swat.o web/neg_lang.o
1022 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
1023 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
1024 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
1025 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1026 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
1027 $(LIBCLI_SAMR_OBJ) \
1028 rpc_client/init_lsa.o
1030 STATUS_OBJ = utils/status.o utils/status_profile.o \
1031 $(LOCKING_OBJ) $(PARAM_OBJ) \
1032 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1033 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1035 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1036 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
1038 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
1039 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1040 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1041 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1042 $(LIBMSRPC_GEN_OBJ) \
1043 $(LIBMSRPC_OBJ) \
1044 $(LIBCLI_SRVSVC_OBJ)
1046 TESTPARM_OBJ = utils/testparm.o \
1047 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1048 $(LIBSMB_ERR_OBJ)
1050 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1051 $(LIB_NONSMBD_OBJ) \
1052 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1054 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1055 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1056 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1058 PASSWD_UTIL_OBJ = utils/passwd_util.o
1060 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1061 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1062 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1063 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1064 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1065 $(LIBCLI_SAMR_OBJ) \
1066 rpc_client/init_lsa.o
1068 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1069 $(LIBSAMBA_OBJ) \
1070 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1071 $(LIBCLI_LDAP_NDR_OBJ) \
1072 $(DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) \
1073 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1075 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1077 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1079 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1080 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1081 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1082 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1083 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1084 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1085 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1086 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1087 rpcclient/cmd_winreg.o \
1088 $(DISPLAY_SEC_OBJ)
1090 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1091 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1092 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1093 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1094 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1095 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1096 $(LIBCLI_SPOOLSS_OBJ) \
1097 $(LIBCLI_EVENTLOG_OBJ) \
1098 $(LIBCLI_NTSVCS_OBJ) \
1099 $(LIBCLI_DRSUAPI_OBJ) \
1100 $(LIBCLI_DFS_OBJ) \
1101 $(LIBCLI_ECHO_OBJ) \
1102 $(LIBCLI_DSSETUP_OBJ) \
1103 $(LIBCLI_WKSSVC_OBJ) \
1104 $(LIBCLI_SRVSVC_OBJ) \
1105 $(LIBCLI_LSA_OBJ) \
1106 $(LIBCLI_SAMR_OBJ) \
1107 $(LIBCLI_WINREG_OBJ) \
1108 $(LIBCLI_NETLOGON_OBJ) \
1109 $(RPC_CLIENT_SCHANNEL_OBJ) \
1110 rpc_client/init_netlogon.o \
1111 rpc_client/init_samr.o
1113 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1114 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1116 LIBSMBCLIENT_THREAD_OBJ = \
1117 libsmb/libsmb_thread_impl.o \
1118 libsmb/libsmb_thread_posix.o
1120 LIBSMBCLIENT_OBJ0 = \
1121 libsmb/libsmb_cache.o \
1122 libsmb/libsmb_compat.o \
1123 libsmb/libsmb_context.o \
1124 libsmb/libsmb_dir.o \
1125 libsmb/libsmb_file.o \
1126 libsmb/libsmb_misc.o \
1127 libsmb/libsmb_path.o \
1128 libsmb/libsmb_printjob.o \
1129 libsmb/libsmb_server.o \
1130 libsmb/libsmb_stat.o \
1131 libsmb/libsmb_xattr.o \
1132 libsmb/libsmb_setget.o
1134 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1135 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1136 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1137 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1138 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1139 $(LIBCLI_SRVSVC_OBJ) \
1140 $(LIBCLI_LSA_OBJ)
1142 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1144 CLIENT_OBJ1 = client/client.o client/clitar.o \
1145 client/dnsbrowse.o \
1146 $(LIBMSRPC_OBJ)
1148 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1149 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1150 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1151 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1152 $(DISPLAY_SEC_OBJ) \
1153 $(LIBCLI_SRVSVC_OBJ)
1155 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1156 ../lib/smbconf/smbconf_util.o \
1157 ../lib/smbconf/smbconf_txt.o \
1158 lib/smbconf/smbconf_reg.o \
1159 lib/smbconf/smbconf_init.o
1161 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1163 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1164 $(LIB_NONSMBD_OBJ) \
1165 $(PARAM_OBJ) \
1166 $(LIBSMB_ERR_OBJ) \
1167 $(POPT_LIB_OBJ)
1169 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1170 lib/pthreadpool/tests.o
1172 LIBNET_OBJ = libnet/libnet_join.o \
1173 libnet/libnet_keytab.o \
1174 librpc/gen_ndr/ndr_libnet_join.o
1176 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1177 libnet/libnet_dssync_passdb.o \
1178 libnet/libnet_dssync_keytab.o \
1179 ../libcli/drsuapi/repl_decrypt.o
1181 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1182 libnet/libnet_samsync_ldif.o \
1183 libnet/libnet_samsync_passdb.o \
1184 libnet/libnet_samsync_display.o \
1185 libnet/libnet_samsync_keytab.o \
1186 ../libcli/samsync/decrypt.o
1188 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1189 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1190 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1191 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
1192 utils/net_idmap_check.o utils/interact.o \
1193 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1194 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1195 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1196 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1197 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1198 utils/net_conf.o utils/net_join.o utils/net_user.o \
1199 utils/net_group.o utils/net_file.o utils/net_registry.o utils/net_registry_check.o\
1200 auth/token_util.o utils/net_dom.o utils/net_share.o \
1201 utils/net_g_lock.o \
1202 utils/net_serverid.o \
1203 utils/net_eventlog.o \
1204 utils/net_printing.o \
1205 utils/net_rpc_trust.o \
1206 utils/net_rpc_conf.o\
1207 $(LIBNDR_NTPRINTING_OBJ) \
1208 $(LIBNDR_PREG_OBJ) \
1209 $(LIBCLI_SPOOLSS_OBJ) \
1210 $(LIBCLI_WINREG_OBJ) \
1211 $(LIBCLI_DRSUAPI_OBJ) \
1212 $(LIBCLI_INITSHUTDOWN_OBJ) \
1213 $(LIBCLI_DSSETUP_OBJ) \
1214 $(LIBCLI_SVCCTL_OBJ) \
1215 $(LIBCLI_WKSSVC_OBJ) \
1216 $(LIBCLI_SRVSVC_OBJ) \
1217 $(LIBCLI_LSA_OBJ) \
1218 $(LIBCLI_SAMR_OBJ) \
1219 $(LIBCLI_NETLOGON_OBJ) \
1220 $(RPC_CLIENT_SCHANNEL_OBJ) \
1221 rpc_client/init_netlogon.o \
1222 rpc_client/init_samr.o \
1223 registry/reg_parse.o registry/reg_format.o \
1224 registry/reg_import.o \
1225 printing/nt_printing_migrate.o
1227 # these are not processed by make proto
1228 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1230 NET_OBJ = $(NET_OBJ1) \
1231 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1232 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1233 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1234 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1235 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1236 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1237 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1238 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1239 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1240 $(REG_SMBCONF_OBJ) \
1241 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1242 $(LIBSMBCONF_OBJ) \
1243 $(REGFIO_OBJ) \
1244 $(PRIVILEGES_BASIC_OBJ) \
1245 $(LIB_EVENTLOG_OBJ)
1247 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1248 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1249 $(LIBNDR_GEN_OBJ0)
1251 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1252 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1254 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1255 torture/denytest.o torture/mangle_test.o \
1256 torture/nbench.o \
1257 torture/test_async_echo.o \
1258 torture/test_smbsock_any_connect.o \
1259 torture/test_nttrans_create.o \
1260 torture/test_nttrans_fsctl.o \
1261 torture/test_notify_online.o \
1262 torture/test_addrchange.o \
1263 torture/test_case_insensitive.o \
1264 torture/test_posix_append.o \
1265 torture/test_smb2.o \
1266 torture/test_authinfo_structs.o \
1267 torture/t_strappend.o
1269 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1270 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1271 @LIBWBCLIENT_STATIC@ \
1272 torture/wbc_async.o \
1273 ../nsswitch/wb_reqtrans.o \
1274 ../libcli/lsarpc/util_lsarpc.o \
1275 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1277 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1278 $(LIB_NONSMBD_OBJ) \
1279 $(LIBNDR_GEN_OBJ0)
1281 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1282 $(LIB_NONSMBD_OBJ) \
1283 $(LIBNDR_GEN_OBJ0)
1285 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1286 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1287 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1289 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1291 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1292 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1293 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1294 $(LIBNDR_GEN_OBJ0)
1296 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1298 LOG2PCAP_OBJ = utils/log2pcaphex.o
1300 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1301 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1302 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1304 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1305 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1306 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1307 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1308 $(LIBCLI_LSA_OBJ)
1310 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1311 $(PARAM_OBJ) \
1312 $(LIB_NONSMBD_OBJ) \
1313 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1314 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1315 $(LIBCLI_LSA_OBJ)
1317 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1319 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1320 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1321 librpc/gen_ndr/ndr_eventlog.o \
1322 librpc/gen_ndr/ndr_lsa.o
1324 SHARESEC_OBJ0 = utils/sharesec.o
1325 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1326 $(LIBSMB_ERR_OBJ) \
1327 $(POPT_LIB_OBJ)
1329 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1330 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1332 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1333 @libreplacedir@/test/getifaddrs.o \
1334 @libreplacedir@/test/os2_delete.o \
1335 @libreplacedir@/test/strptime.o \
1336 @libreplacedir@/test/main.o \
1337 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1339 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1341 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1342 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1343 $(LIBNDR_GEN_OBJ0)
1345 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1346 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1348 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1349 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1350 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1351 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1352 $(DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) \
1353 $(PAM_ERRORS_OBJ)
1355 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1357 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1359 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1361 IDMAP_HASH_OBJ = \
1362 winbindd/idmap_hash/idmap_hash.o \
1363 winbindd/idmap_hash/mapfile.o
1365 IDMAP_ADEX_OBJ = \
1366 winbindd/idmap_adex/idmap_adex.o \
1367 winbindd/idmap_adex/cell_util.o \
1368 winbindd/idmap_adex/likewise_cell.o \
1369 winbindd/idmap_adex/provider_unified.o \
1370 winbindd/idmap_adex/gc_util.o \
1371 winbindd/idmap_adex/domain_util.o
1373 WINBINDD_OBJ1 = \
1374 winbindd/winbindd.o \
1375 winbindd/winbindd_group.o \
1376 winbindd/winbindd_util.o \
1377 winbindd/winbindd_cache.o \
1378 winbindd/winbindd_pam.o \
1379 winbindd/winbindd_misc.o \
1380 winbindd/winbindd_cm.o \
1381 winbindd/winbindd_wins_byip.o \
1382 winbindd/winbindd_wins_byname.o \
1383 winbindd/winbindd_msrpc.o \
1384 winbindd/winbindd_rpc.o \
1385 winbindd/winbindd_reconnect.o \
1386 winbindd/winbindd_ads.o \
1387 winbindd/winbindd_samr.o \
1388 winbindd/winbindd_dual.o \
1389 winbindd/winbindd_dual_ndr.o \
1390 winbindd/winbindd_dual_srv.o \
1391 librpc/gen_ndr/ndr_wbint_c.o \
1392 librpc/gen_ndr/srv_wbint.o \
1393 librpc/gen_ndr/ndr_wbint.o \
1394 librpc/gen_ndr/ndr_idmap.o \
1395 winbindd/winbindd_async.o \
1396 winbindd/winbindd_creds.o \
1397 winbindd/winbindd_cred_cache.o \
1398 winbindd/winbindd_ccache_access.o \
1399 winbindd/winbindd_domain.o \
1400 winbindd/winbindd_idmap.o \
1401 winbindd/winbindd_locator.o \
1402 winbindd/winbindd_ndr.o \
1403 winbindd/wb_ping.o \
1404 winbindd/wb_lookupsid.o \
1405 winbindd/wb_lookupsids.o \
1406 winbindd/wb_lookupname.o \
1407 winbindd/wb_sid2uid.o \
1408 winbindd/wb_sid2gid.o \
1409 winbindd/wb_uid2sid.o \
1410 winbindd/wb_gid2sid.o \
1411 winbindd/wb_queryuser.o \
1412 winbindd/wb_lookupuseraliases.o \
1413 winbindd/wb_lookupusergroups.o \
1414 winbindd/wb_getpwsid.o \
1415 winbindd/wb_gettoken.o \
1416 winbindd/wb_seqnum.o \
1417 winbindd/wb_seqnums.o \
1418 winbindd/wb_group_members.o \
1419 winbindd/wb_getgrsid.o \
1420 winbindd/wb_query_user_list.o \
1421 winbindd/wb_fill_pwent.o \
1422 winbindd/wb_next_pwent.o \
1423 winbindd/wb_next_grent.o \
1424 winbindd/wb_dsgetdcname.o \
1425 winbindd/winbindd_lookupsid.o \
1426 winbindd/winbindd_lookupsids.o \
1427 winbindd/winbindd_lookupname.o \
1428 winbindd/winbindd_sid_to_uid.o \
1429 winbindd/winbindd_sid_to_gid.o \
1430 winbindd/winbindd_uid_to_sid.o \
1431 winbindd/winbindd_gid_to_sid.o \
1432 winbindd/winbindd_sids_to_xids.o \
1433 winbindd/winbindd_allocate_uid.o \
1434 winbindd/winbindd_allocate_gid.o \
1435 winbindd/winbindd_getpwsid.o \
1436 winbindd/winbindd_getpwnam.o \
1437 winbindd/winbindd_getpwuid.o \
1438 winbindd/winbindd_getsidaliases.o \
1439 winbindd/winbindd_getuserdomgroups.o \
1440 winbindd/winbindd_getgroups.o \
1441 winbindd/winbindd_show_sequence.o \
1442 winbindd/winbindd_getgrgid.o \
1443 winbindd/winbindd_getgrnam.o \
1444 winbindd/winbindd_getusersids.o \
1445 winbindd/winbindd_lookuprids.o \
1446 winbindd/winbindd_setpwent.o \
1447 winbindd/winbindd_getpwent.o \
1448 winbindd/winbindd_endpwent.o \
1449 winbindd/winbindd_setgrent.o \
1450 winbindd/winbindd_getgrent.o \
1451 winbindd/winbindd_endgrent.o \
1452 winbindd/winbindd_dsgetdcname.o \
1453 winbindd/winbindd_getdcname.o \
1454 winbindd/winbindd_list_users.o \
1455 winbindd/winbindd_list_groups.o \
1456 winbindd/winbindd_check_machine_acct.o \
1457 winbindd/winbindd_change_machine_acct.o \
1458 winbindd/winbindd_ping_dc.o \
1459 winbindd/winbindd_pam_auth.o \
1460 winbindd/winbindd_pam_auth_crap.o \
1461 winbindd/winbindd_pam_chauthtok.o \
1462 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1463 winbindd/winbindd_pam_logoff.o \
1464 auth/auth_util.o \
1465 auth/token_util.o \
1466 auth/user_util.o \
1467 auth/check_samsec.o \
1468 auth/server_info.o \
1469 auth/server_info_sam.o \
1470 auth/user_info.o \
1471 auth/pampass.o \
1472 ../nsswitch/wb_reqtrans.o
1474 WINBINDD_OBJ = \
1475 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1476 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1477 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1478 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1479 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1480 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1481 $(RPC_CONFIG) $(RPC_NCACN_NP) \
1482 $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1483 $(NPA_TSTREAM_OBJ) \
1484 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1485 $(LIBADS_SERVER_OBJ) \
1486 $(TDB_VALIDATE_OBJ) \
1487 $(LIBCLI_DSSETUP_OBJ) \
1488 $(LIBCLI_LSA_OBJ) \
1489 $(LIBCLI_SAMR_OBJ) \
1490 $(LIBCLI_NETLOGON_OBJ) \
1491 rpc_client/init_netlogon.o \
1492 rpc_client/init_samr.o \
1493 $(PAM_ERRORS_OBJ)
1495 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1496 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1497 lib/winbind_util.o $(WBCOMMON_OBJ)
1499 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1501 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1502 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1504 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1505 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1507 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1508 ../lib/iniparser_build/strlib.o
1510 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1511 $(SOCKET_WRAPPER_OBJ)
1513 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1514 $(SOCKET_WRAPPER_OBJ)
1516 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1517 $(SOCKET_WRAPPER_OBJ)
1519 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1520 $(SOCKET_WRAPPER_OBJ)
1522 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1523 $(SOCKET_WRAPPER_OBJ)
1526 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1528 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1529 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o ../libcli/auth/krb5_wrap.o libads/kerberos.o \
1530 libsmb/samlogon_cache.o \
1531 $(LIBADS_SERVER_OBJ) \
1532 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1533 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1534 $(WBCOMMON_OBJ) \
1535 $(LIBNBT_OBJ) \
1536 $(CLDAP_OBJ) \
1537 $(DRSUAPI_OBJ) \
1538 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1541 VLP_OBJ = printing/tests/vlp.o \
1542 ../lib/util/util_tdb.o \
1543 $(LIBSAMBAUTIL_OBJ) \
1544 param/util.o
1546 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1547 $(LIBSMB_OBJ) \
1548 $(PARAM_OBJ) \
1549 $(PASSDB_OBJ) \
1550 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1551 $(LIB_NONSMBD_OBJ) \
1552 $(KRBCLIENT_OBJ) \
1553 $(LIBMSRPC_OBJ) \
1554 $(LIBMSRPC_GEN_OBJ)
1556 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1557 $(PARAM_OBJ) \
1558 $(LIB_NONSMBD_OBJ) \
1559 $(LIBSMB_ERR_OBJ) \
1560 $(POPT_LIB_OBJ)
1562 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1563 $(PARAM_OBJ) \
1564 $(LIB_NONSMBD_OBJ) \
1565 $(LIBSMB_ERR_OBJ) \
1566 $(POPT_LIB_OBJ)
1568 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1569 $(PARAM_OBJ) \
1570 $(LIB_NONSMBD_OBJ) \
1571 $(POPT_LIB_OBJ) \
1572 $(LIBSAMBA_OBJ)
1574 ######################################################################
1575 # now the rules...
1576 ######################################################################
1577 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1578 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1579 $(EXTRA_ALL_TARGETS)
1581 basics:: samba3-idl mkparam
1583 nss_modules:: $(NSS_MODULES)
1585 pam_modules:: $(PAM_MODULES)
1587 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1589 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1591 gpext_modules:: $(GPEXT_MODULES)
1593 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1595 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1597 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1599 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1601 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1603 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1605 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1607 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1609 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1611 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1613 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1615 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1617 talloctort : SHOWFLAGS $(TALLOCTORT)
1619 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1621 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1623 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest@EXEEXT@
1625 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1627 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1628 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1629 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1631 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1633 modules:: SHOWFLAGS $(MODULES)
1636 #####################################################################
1637 ## Perl IDL Compiler
1639 IDL_FILES = librpc/idl/messaging.idl \
1640 librpc/idl/libnetapi.idl \
1641 librpc/idl/wbint.idl \
1642 librpc/idl/perfcount.idl \
1643 librpc/idl/secrets.idl \
1644 librpc/idl/open_files.idl \
1645 librpc/idl/libnet_join.idl
1647 samba3-idl::
1648 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1649 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1650 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1651 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1653 idl_full::
1654 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1655 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1656 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1657 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1659 mkparam: ../lib/param/param_local.h ../lib/param/param_global.h param/param_global.h ../lib/param/param_proto.h ../lib/param/s3_param.h
1661 ../lib/param/param_local.h:
1662 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c --file ../lib/param/param_local.h --generate-scope=LOCAL
1663 ../lib/param/param_global.h:
1664 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/loadparm.c --file ../lib/param/param_global.h --generate-scope=GLOBAL
1665 param/param_global.h:
1666 $(PERL) ../script/mkparamdefs.pl $(srcdir)/param/loadparm.c --file param/param_global.h --generate-scope=GLOBAL
1667 ../lib/param/param_proto.h:
1668 $(PERL) ../source4/script/mkproto.pl $(srcdir)/../lib/param/loadparm.c --public ../lib/param/param_proto.h --private ../lib/param/param_proto.h
1669 ../lib/param/s3_param.h:
1670 $(PERL) ../script/mks3param.pl $(srcdir)/../lib/param/loadparm.c --file ../lib/param/s3_param.h
1673 #####################################################################
1676 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1677 $(EVERYTHING_PROGS) \
1678 vfs_examples
1680 .SUFFIXES:
1681 .SUFFIXES: .c .o .lo
1683 .PHONY: showflags SHOWFLAGS
1685 showflags: SHOWFLAGS
1687 SHOWFLAGS::
1688 @echo "Using CFLAGS = $(CFLAGS)"
1689 @echo " PICFLAG = $(PICFLAG)"
1690 @echo " LIBS = $(LIBS)"
1691 @echo " LDFLAGS = $(LDFLAGS)"
1692 @echo " DYNEXP = $(DYNEXP)"
1693 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1694 @echo " SHLIBEXT = @SHLIBEXT@"
1695 @echo " SONAMEFLAG = @SONAMEFLAG@"
1697 # "showcflags" target for debuggin how CFLAGS are composed:
1699 .PHONY: showcflags SHOWCFLAGS
1701 showcflags: SHOWCFLAGS
1703 SHOWCFLAGS::
1704 @echo "CFLAGS = $(CFLAGS)"
1705 @echo "FLAGS = $(FLAGS)"
1706 @echo ""
1707 @echo "FLAGS1 = @FLAGS1@"
1708 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1709 @echo "CPPFLAGS = $(CPPFLAGS)"
1710 @echo "ISA = $(ISA)"
1712 MAKEDIR = || exec false; \
1713 if test -d "$$dir"; then :; else \
1714 echo mkdir "$$dir"; \
1715 mkdir -p "$$dir" >/dev/null 2>&1 || \
1716 test -d "$$dir" || \
1717 mkdir "$$dir" || \
1718 exec false; fi || exec false
1720 # Run a static checker.
1721 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1722 # Compile a source file.
1723 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1724 # Compile a source file with the installation paths defined.
1725 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1727 COMPILE = $(COMPILE_CC)
1729 .c.o:
1730 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1731 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1732 @if test -n "$(CC_CHECKER)"; then \
1733 echo "Checking $*.c with '$(CC_CHECKER)'";\
1734 $(CHECK_CC); \
1736 @echo Compiling $*.c
1737 @$(COMPILE) && exit 0;\
1738 echo "The following command failed:" 1>&2;\
1739 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1740 $(COMPILE_CC) >/dev/null 2>&1
1741 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1743 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1745 # this adds support for precompiled headers. To use it, install a snapshot
1746 # of gcc-3.4 and run 'make pch' before you do the main build.
1747 pch::
1748 rm -f $(PRECOMPILED_HEADER)
1749 $(MAKE) $(PRECOMPILED_HEADER)
1751 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1752 $(COMPILE)
1754 BINARY_PREREQS = bin/.dummy
1756 # These dependencies are only approximately correct: we want to make
1757 # sure Samba's paths are updated if ./configure is re-run. Really it
1758 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1759 # but since we also require "make install prefix=/opt/samba" *not* to
1760 # rebuild it's a bit hard.
1762 ../dynconfig/dynconfig.o: ../dynconfig/dynconfig.c Makefile
1763 @echo Compiling $*.c
1764 @$(COMPILE_CC_PATH) && exit 0;\
1765 echo "The following command failed:" 1>&2;\
1766 echo "$(COMPILE_CC_PATH)" 1>&2;\
1767 $(COMPILE_CC_PATH) >/dev/null 2>&1
1769 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1770 @echo Compiling $*.c
1771 @$(COMPILE_CC_PATH) && exit 0;\
1772 echo "The following command failed:" 1>&2;\
1773 echo "$(COMPILE_CC_PATH)" 1>&2;\
1774 $(COMPILE_CC_PATH) >/dev/null 2>&1
1776 ../nsswitch/wb_common.o: ../nsswitch/wb_common.c Makefile
1777 @echo Compiling $*.c
1778 @$(COMPILE_CC_PATH) && exit 0;\
1779 echo "The following command failed:" 1>&2;\
1780 echo "$(COMPILE_CC_PATH)" 1>&2;\
1781 $(COMPILE_CC_PATH) >/dev/null 2>&1
1783 ### Start section of object files that require PTHREAD_CFLAGS
1784 ../nsswitch/wins.o: ../nsswitch/wins.c
1785 @echo Compiling $*.c
1786 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1787 echo "The following command failed:" 1>&2;\
1788 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1789 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1791 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1792 @echo Compiling $*.c
1793 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1794 echo "The following command failed:" 1>&2;\
1795 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1796 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1798 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1799 @echo Compiling $*.c
1800 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1801 echo "The following command failed:" 1>&2;\
1802 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1803 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1805 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1806 @echo Compiling $*.c
1807 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1808 echo "The following command failed:" 1>&2;\
1809 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1810 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1811 ### End section of object files that require PTHREAD_CFLAGS
1813 lib/pidfile.o: lib/pidfile.c
1814 @echo Compiling $*.c
1815 @$(COMPILE_CC_PATH) && exit 0;\
1816 echo "The following command failed:" 1>&2;\
1817 echo "$(COMPILE_CC_PATH)" 1>&2;\
1818 $(COMPILE_CC_PATH) >/dev/null 2>&1
1820 lib/version.o: lib/version.c include/version.h
1821 @echo Compiling $*.c
1822 @$(COMPILE_CC_PATH) && exit 0;\
1823 echo "The following command failed:" 1>&2;\
1824 echo "$(COMPILE_CC_PATH)" 1>&2;\
1825 $(COMPILE_CC_PATH) >/dev/null 2>&1
1827 smbd/build_options.o: smbd/build_options.c Makefile include/autoconf/config.h include/build_env.h include/proto.h
1828 @echo Compiling $*.c
1829 @$(COMPILE_CC_PATH) && exit 0;\
1830 echo "The following command failed:" 1>&2;\
1831 echo "$(COMPILE_CC_PATH)" 1>&2;\
1832 $(COMPILE_CC_PATH) >/dev/null 2>&1
1834 smbd/build_options.c: include/autoconf/config.h.in script/mkbuildoptions.awk
1835 @echo Generating $@
1836 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/autoconf/config.h.in
1838 bin/.dummy:
1839 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1840 dir=bin $(MAKEDIR); fi
1841 @: >> $@ || : > $@ # what a fancy emoticon!
1843 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1844 @echo Linking $@
1845 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1846 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1847 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1848 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1849 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1851 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1852 @echo Linking $@
1853 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1854 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1855 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1856 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1858 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1859 @echo Linking $@
1860 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1861 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1862 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1864 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1865 @echo Linking $@
1866 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1867 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1868 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1869 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1871 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1872 @echo Linking $@
1873 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1874 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1875 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1876 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1878 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1879 @echo Linking $@
1880 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1881 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1882 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1883 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1884 $(ZLIB_LIBS)
1886 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1887 @echo Linking $@
1888 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1889 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1891 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1892 @echo Linking $@
1893 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1894 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1895 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1897 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1898 @echo Linking $@
1899 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1900 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1902 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1903 @echo Linking $@
1904 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1905 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1907 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1908 @echo Linking $@
1909 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1910 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1912 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1913 @echo Linking $@
1914 @$(CC) -DUSING_SMBCONTROL -o $@ \
1915 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1916 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1917 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1919 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1920 @echo Linking $@
1921 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1922 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1923 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1925 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1926 @echo Linking $@
1927 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1928 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1929 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1931 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1932 @echo Linking $@
1933 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1934 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1935 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1937 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1938 @echo Linking $@
1939 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1940 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1941 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1943 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1944 @echo Linking $@
1945 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1946 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1948 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1949 @echo Linking $@
1950 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1951 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1952 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1954 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1955 @echo Linking $@
1956 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1957 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1958 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1960 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1961 @echo Linking $@
1962 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1963 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1965 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1966 @echo Linking $@
1967 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1968 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1969 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1971 bin/pthreadpooltest@EXEEXT@: $(PTHREADPOOLTEST_OBJ)
1972 @echo Linking $@
1973 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) $(LIBS) $(PTHREAD_LDFLAGS)
1975 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1976 @echo Linking $@
1977 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1978 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1979 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1980 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1982 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1983 @echo Linking $@
1984 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1985 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1986 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1988 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1989 @echo Linking $@
1990 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1991 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1992 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1994 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1995 @echo Linking $@
1996 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1997 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1998 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2000 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
2001 @echo Linking $@
2002 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
2003 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2005 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
2006 @echo Linking $@
2007 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
2008 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2010 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2011 @echo Linking $@
2012 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2013 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2014 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2015 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2017 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) $(LIBTALLOC)
2018 @echo Linking $@
2019 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2020 $(LIBTALLOC_LIBS)
2022 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2023 @echo Linking $@
2024 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2025 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
2026 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2028 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2029 @echo Linking $@
2030 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
2031 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
2032 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2033 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2034 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2036 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2037 @echo Linking $@
2038 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
2039 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
2041 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2042 @echo Linking $@
2043 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
2044 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2045 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2046 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2048 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2049 @echo Linking $@
2050 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
2051 $(LIBS) $(LIBTALLOC_LIBS)
2053 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2054 @echo Linking $@
2055 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2056 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2057 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2058 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2060 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2061 @echo Linking $@
2062 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2065 #####################################################################
2067 # libraries
2069 #####################################################################
2071 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2074 #-------------------------------------------------------------------
2076 # libtalloc
2078 #-------------------------------------------------------------------
2081 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2082 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2084 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2085 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2086 LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@
2087 LIBTALLOC_SHARED_TARGET_SONAME=@LIBTALLOC_SHARED_TARGET_SOVER@
2088 LIBTALLOC_SHARED_TARGET_FULLVER=@LIBTALLOC_SHARED_TARGET_FULLVER@
2089 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2090 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2091 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2093 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2094 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2096 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2097 @echo Linking shared library $@
2098 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2100 $(LIBTALLOC_SHARED_TARGET_FULLVER): $(LIBTALLOC_SHARED_TARGET_SONAME)
2101 @rm -f $@
2102 @mv -f $(LIBTALLOC_SHARED_TARGET_SONAME) $@
2103 @ln -f -s `basename $@` $(LIBTALLOC_SHARED_TARGET_SONAME)
2105 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_FULLVER)
2106 @rm -f $@
2107 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2109 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2110 @echo Linking non-shared library $@
2111 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2112 libtalloc: $(LIBTALLOC)
2114 cleanlibtalloc::
2115 -rm -f \
2116 $(LIBTALLOC_SYMS) \
2117 $(LIBTALLOC_STATIC_TARGET) \
2118 $(LIBTALLOC_SHARED_TARGET) \
2119 $(LIBTALLOC_SHARED_TARGET_SONAME)
2121 installlibtalloc:: installdirs libtalloc
2122 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2123 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2124 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2125 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2126 -if test -r $(LIBTALLOC_SHARED_TARGET_FULLVER) ; then \
2127 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_FULLVER)` \
2128 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` ; \
2130 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2131 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2132 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2134 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2135 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2136 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2138 uninstalllibtalloc::
2139 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2140 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2141 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2142 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2144 libs:: libtalloc
2145 installlibs:: @INSTALL_LIBTALLOC@
2146 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2147 cleanlibs:: cleanlibtalloc
2148 shlibs test_shlibs: @LIBTALLOC_SHARED@
2150 showlibtalloc:
2151 @echo ""
2152 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2153 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2154 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2155 @echo ""
2156 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2157 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2158 @echo "LIBTALLOC_FULLVER = $(LIBTALLOC_FULLVER)"
2159 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2160 @echo "LIBTALLOC_SHARED TARGET_FULLVER = $(LIBTALLOC_SHARED_TARGET_FULLVER)"
2161 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2162 @echo "LIBTALLOC = $(LIBTALLOC)"
2164 showlibs:: showlibtalloc
2166 #-------------------------------------------------------------------
2168 # libtdb
2170 #-------------------------------------------------------------------
2172 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2173 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2175 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2176 LIBTDB_SOVER=@LIBTDB_SOVER@
2177 LIBTDB_FULLVER=@LIBTDB_FULLVER@
2178 LIBTDB_SHARED_TARGET_SONAME=@LIBTDB_SHARED_TARGET_SOVER@
2179 LIBTDB_SHARED_TARGET_FULLVER=@LIBTDB_SHARED_TARGET_FULLVER@
2180 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2181 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2182 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2184 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2185 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2188 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2189 @echo Linking shared library $@
2190 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2191 @SONAMEFLAG@`basename $@`
2193 $(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME)
2194 @rm -f $@
2195 @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER)
2196 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME)
2198 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER)
2199 @rm -f $@
2200 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2202 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2203 @echo Linking non-shared library $@
2204 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2206 libtdb: $(LIBTDB)
2208 cleanlibtdb::
2209 -rm -f \
2210 $(LIBTDB_SYMS) \
2211 $(LIBTDB_STATIC_TARGET) \
2212 $(LIBTDB_SHARED_TARGET) \
2213 $(LIBTDB_SHARED_TARGET_SONAME)
2216 installlibtdb:: installdirs libtdb
2217 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2218 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2219 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2220 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2221 -if test -r $(LIBTDB_SHARED_TARGET_FULLVER) ; then \
2222 ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` \
2223 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)` ; \
2225 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2226 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2227 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2229 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2230 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2231 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2233 uninstalllibtdb::
2234 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2235 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2236 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2237 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2239 libs:: libtdb
2240 installlibs:: @INSTALL_LIBTDB@
2241 uninstalllibs:: @UNINSTALL_LIBTDB@
2242 cleanlibs:: cleanlibtdb
2243 shlibs test_shlibs: @LIBTDB_SHARED@
2245 showlibtdb:
2246 @echo ""
2247 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2248 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2249 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2250 @echo ""
2251 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2252 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2253 @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)"
2254 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2255 @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)"
2256 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2257 @echo "LIBTDB = $(LIBTDB)"
2259 showlibs:: showlibtdb
2261 #-------------------------------------------------------------------
2263 # libwbclient
2265 #-------------------------------------------------------------------
2267 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2268 ../nsswitch/libwbclient/wbc_util.o \
2269 ../nsswitch/libwbclient/wbc_pwd.o \
2270 ../nsswitch/libwbclient/wbc_idmap.o \
2271 ../nsswitch/libwbclient/wbc_sid.o \
2272 ../nsswitch/libwbclient/wbc_guid.o \
2273 ../nsswitch/libwbclient/wbc_pam.o
2275 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2276 $(WBCOMMON_OBJ) \
2277 $(LIBREPLACE_OBJ) \
2278 ../lib/util/blocking.o \
2279 $(SOCKET_WRAPPER_OBJ)
2281 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2282 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2283 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2284 LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@
2285 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2286 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2287 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2289 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2290 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2292 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2293 @echo Linking shared library $@
2294 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2295 @SONAMEFLAG@`basename $@`
2297 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2298 @rm -f $@
2299 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2301 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2302 @echo Linking non-shared library $@
2303 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2305 libwbclient: $(LIBWBCLIENT)
2307 cleanlibwbclient::
2308 -rm -f \
2309 $(LIBWBCLIENT_SYMS) \
2310 $(LIBWBCLIENT_STATIC_TARGET) \
2311 $(LIBWBCLIENT_SHARED_TARGET) \
2312 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2314 installlibwbclient:: installdirs libwbclient
2315 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2316 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2317 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2318 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2319 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2320 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2322 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2323 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2324 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2326 uninstalllibwbclient::
2327 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2328 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2329 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2330 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2332 libs:: libwbclient
2333 installlibs:: @INSTALL_LIBWBCLIENT@
2334 uninstalllibs:: uninstalllibwbclient
2335 cleanlibs:: cleanlibwbclient
2336 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2338 showlibwbclient:
2339 @echo ""
2340 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2341 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2342 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2343 @echo ""
2344 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2345 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2346 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2347 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2348 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2349 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2351 showlibs:: showlibwbclient
2354 #-------------------------------------------------------------------
2356 # libaddns
2358 #-------------------------------------------------------------------
2361 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2362 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2363 LIBADDNS_FULLVER=@LIBADDNS_FULLVER@
2364 LIBADDNS_SHARED_TARGET_SONAME=@LIBADDNS_SHARED_TARGET_SOVER@
2365 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2366 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2367 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2369 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2370 @echo Linking shared library $@
2371 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2372 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2373 @SONAMEFLAG@`basename $@`
2375 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2376 @rm -f $@
2377 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2379 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2380 @echo Linking non-shared library $@
2381 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2383 libaddns: $(LIBADDNS)
2385 cleanlibaddns::
2386 -rm -f \
2387 $(LIBADDNS_SHARED_TARGET) \
2388 $(LIBADDNS_SHARED_TARGET_SONAME) \
2389 $(LIBADDNS_STATIC_TARGET)
2391 installlibaddns:: installdirs libaddns
2392 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2393 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2394 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2395 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2396 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2397 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2399 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2401 uninstalllibaddns::
2402 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2403 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2404 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2406 libs:: libaddns
2407 installlibs:: @INSTALL_LIBADDNS@
2408 uninstalllibs:: @UNINSTALL_LIBADDNS@
2409 cleanlibs:: cleanlibaddns
2410 shlibs test_shlibs: @LIBADDNS_SHARED@
2412 showlibaddns:
2413 @echo ""
2414 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2415 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2416 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2417 @echo ""
2418 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2419 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2420 @echo "LIBADDNS_FULLVER = $(LIBADDNS_FULLVER)"
2421 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2422 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2423 @echo "LIBADDNS = $(LIBADDNS)"
2425 showlibs:: showlibaddns
2427 #-------------------------------------------------------------------
2429 # libnetapi
2431 #-------------------------------------------------------------------
2433 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2434 lib/netapi/cm.o \
2435 librpc/gen_ndr/ndr_libnetapi.o \
2436 lib/netapi/libnetapi.o \
2437 lib/netapi/joindomain.o \
2438 lib/netapi/serverinfo.o \
2439 lib/netapi/getdc.o \
2440 lib/netapi/user.o \
2441 lib/netapi/group.o \
2442 lib/netapi/localgroup.o \
2443 lib/netapi/samr.o \
2444 lib/netapi/sid.o \
2445 lib/netapi/share.o \
2446 lib/netapi/file.o \
2447 lib/netapi/shutdown.o \
2448 lib/netapi/netlogon.o
2450 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2451 $(LIBSMBCONF_OBJ) \
2452 $(REG_SMBCONF_OBJ) \
2453 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2454 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2455 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2456 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2457 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2458 auth/token_util.o \
2459 $(LIBCLI_INITSHUTDOWN_OBJ) \
2460 $(LIBCLI_WKSSVC_OBJ) \
2461 $(LIBCLI_SRVSVC_OBJ) \
2462 $(LIBCLI_LSA_OBJ) \
2463 $(LIBCLI_SAMR_OBJ) \
2464 $(LIBCLI_NETLOGON_OBJ) \
2465 $(RPC_CLIENT_SCHANNEL_OBJ) \
2466 rpc_client/init_netlogon.o \
2467 rpc_client/init_samr.o
2469 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2470 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2471 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2472 LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@
2473 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2474 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2475 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2477 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2478 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2480 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2481 @echo Linking shared library $@
2482 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2483 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2484 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2485 @SONAMEFLAG@`basename $@`
2487 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2488 @rm -f $@
2489 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2491 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2492 @echo Linking non-shared library $@
2493 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2495 libnetapi: $(LIBNETAPI)
2497 cleanlibnetapi::
2498 -rm -f \
2499 $(LIBNETAPI_SYMS) \
2500 $(LIBNETAPI_STATIC_TARGET) \
2501 $(LIBNETAPI_SHARED_TARGET) \
2502 $(LIBNETAPI_SHARED_TARGET_SONAME)
2504 installlibnetapi:: installdirs libnetapi
2505 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2506 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2507 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2508 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2509 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2510 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2512 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2513 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2514 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2516 uninstalllibnetapi::
2517 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2518 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2519 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2520 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2522 libs:: libnetapi
2523 installlibs:: @INSTALL_LIBNETAPI@
2524 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2525 cleanlibs:: cleanlibnetapi
2526 shlibs test_shlibs: @LIBNETAPI_SHARED@
2528 showlibnetapi:
2529 @echo ""
2530 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2531 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2532 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2533 @echo ""
2534 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2535 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2536 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2537 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2538 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2539 @echo "LIBNETAPI = $(LIBNETAPI)"
2541 showlibs:: showlibnetapi
2543 #-------------------------------------------------------------------
2545 # libsmbclient
2547 #-------------------------------------------------------------------
2549 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2550 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2551 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2552 LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@
2553 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2554 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2555 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2556 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2558 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2559 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2561 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2562 @echo Linking shared library $@
2563 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2564 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2565 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2566 @SONAMEFLAG@`basename $@`
2568 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2569 @rm -f $@
2570 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2572 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2573 @echo Linking non-shared library $@
2574 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2576 libsmbclient: $(LIBSMBCLIENT)
2578 cleanlibsmbclient::
2579 -rm -f \
2580 $(LIBSMBCLIENT_SHARED_TARGET) \
2581 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2582 $(LIBSMBCLIENT_STATIC_TARGET)
2584 installlibsmbclient:: installdirs libsmbclient
2585 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2586 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2587 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2588 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2589 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2590 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2592 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2593 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2594 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2596 installclientlib:: installlibsmbclient
2598 uninstalllibsmbclient::
2599 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2600 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2601 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2602 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2604 uninstallclientlib:: uninstalllibsmbclient
2606 libs:: libsmbclient
2607 installlibs:: @INSTALL_LIBSMBCLIENT@
2608 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2609 cleanlibs:: cleanlibsmbclient
2610 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2612 showlibsmbclient:
2613 @echo ""
2614 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2615 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2616 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2617 @echo ""
2618 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2619 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2620 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2621 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2622 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2623 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2625 showlibs:: showlibsmbclient
2627 #-------------------------------------------------------------------
2629 # libsmbsharemodes
2631 #-------------------------------------------------------------------
2633 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o ../lib/ccan/hash/hash.o
2635 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2637 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2638 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2639 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2640 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@
2641 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2642 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2643 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2644 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2646 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2647 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2649 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2650 @echo Linking shared library $@
2651 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2652 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2653 @SONAMEFLAG@`basename $@`
2655 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2656 @rm -f $@
2657 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2659 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2660 @echo Linking non-shared library $@
2661 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2663 libsmbsharemodes: $(LIBSMBSHAREMODES)
2665 cleanlibsmbsharemodes::
2666 -rm -f \
2667 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2668 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2669 $(LIBSMBSHAREMODES_STATIC_TARGET)
2671 installlibsmbsharemodes:: installdirs libsmbsharemodes
2672 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2673 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2674 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2675 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2676 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2677 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2679 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2680 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2681 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2683 uninstalllibsmbsharemodes::
2684 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2685 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2686 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2687 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2689 libs:: libsmbsharemodes
2690 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2691 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2692 cleanlibs:: cleanlibsmbsharemodes
2693 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2695 showlibsmbsharemodes:
2696 @echo ""
2697 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2698 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2699 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2700 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2701 @echo ""
2702 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2703 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2704 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2705 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2706 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2707 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2709 showlibs:: showlibsmbsharemodes
2711 #####################################################################
2713 # shared modules
2715 #####################################################################
2717 # Linker command to link our shared libraries:
2718 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2719 -o $@ @SONAMEFLAG@`basename $@`
2720 # Linker command to link samba internal plugin modules:
2721 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2722 -o $@ @SONAMEFLAG@`basename $@`
2724 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2725 @echo "Linking $@"
2726 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2728 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2729 @echo "Linking $@"
2730 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2732 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2733 @echo "Linking $@"
2734 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2736 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2737 @echo "Linking $@"
2738 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2740 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2741 @echo "Linking $@"
2742 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2744 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2745 @echo "Linking $@"
2746 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2748 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2749 @echo "Linking $@"
2750 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2752 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2753 @echo "Linking $@"
2754 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2756 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2757 @echo "Linking $@"
2758 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2760 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2761 @echo "Linking $@"
2762 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2764 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2765 @echo "Linking $@"
2766 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2768 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2769 @echo "Linking $@"
2770 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2772 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2773 @echo "Linking $@"
2774 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2776 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2777 @echo "Linking $@"
2778 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2780 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2781 @echo "Linking $@"
2782 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2783 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2784 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2785 $(ZLIB_LIBS)
2787 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB) $(LIBTALLOC)
2788 @echo "Linking $@"
2789 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2790 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2791 $(LIBTALLOC_LIBS) \
2792 $(LIBTDB_LIBS)
2794 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2795 @echo "Linking $@"
2796 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2797 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2798 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2800 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2801 @echo "Linking $@"
2802 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2803 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2804 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2806 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2807 @echo "Linking $@"
2808 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2809 @SONAMEFLAG@`basename $@`
2811 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2812 @echo "Linking shared library $@"
2813 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2814 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2816 ##########
2817 # Plugins:
2818 ##########
2820 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2821 @echo "Building plugin $@"
2822 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2824 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2825 @echo "Building plugin $@"
2826 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2828 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2829 @echo "Building plugin $@"
2830 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2832 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2833 @echo "Building plugin $@"
2834 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2836 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2837 @echo "Building plugin $@"
2838 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2840 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2841 @echo "Building plugin $@"
2842 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2844 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2845 @echo "Building plugin $@"
2846 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2848 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2849 @echo "Building plugin $@"
2850 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2852 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2853 @echo "Building plugin $@"
2854 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2856 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2857 passdb/pdb_ipa.o passdb/pdb_ldap_util.o \
2858 passdb/pdb_ldap_schema.o
2859 @echo "Building plugin $@"
2860 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2861 passdb/pdb_ldap_util.o passdb/pdb_ldap_schema.o $(LDAP_LIBS)
2863 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2864 @echo "Building plugin $@"
2865 @$(SHLD_MODULE) passdb/pdb_ads.o
2867 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2868 @echo "Building plugin $@"
2869 @$(SHLD_MODULE) passdb/pdb_tdb.o
2871 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2872 @echo "Building plugin $@"
2873 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2875 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2876 @echo "Building plugin $@"
2877 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2879 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2880 @echo "Building plugin $@"
2881 @$(SHLD_MODULE) winbindd/idmap_rid.o
2883 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2884 @echo "Building plugin $@"
2885 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2887 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2888 @echo "Building plugin $@"
2889 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2891 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2892 @echo "Building plugin $@"
2893 @$(SHLD_MODULE) winbindd/idmap_ad.o
2895 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2896 @echo "Building plugin $@"
2897 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2899 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2900 @echo "Building plugin $@"
2901 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2903 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2904 @echo "Building plugin $@"
2905 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2907 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2908 @echo "Building plugin $@"
2909 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2911 # NOTE, there is no build rule for a dynamic default VFS module because
2912 # this one MUST MUST MUST be built statically.
2914 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2915 @echo "Building plugin $@"
2916 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2918 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2919 @echo "Building plugin $@"
2920 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2922 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2923 @echo "Building plugin $@"
2924 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2926 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2927 @echo "Building plugin $@"
2928 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2930 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2931 @echo "Building plugin $@"
2932 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2934 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2935 @echo "Building plugin $@"
2936 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2938 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2939 @echo "Building plugin $@"
2940 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2942 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2943 @echo "Building plugin $@"
2944 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2946 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2947 @echo "Building plugin $@"
2948 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2950 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2951 @echo "Building plugin $@"
2952 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2954 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2955 @echo "Building plugin $@"
2956 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2958 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2959 @echo "Building plugin $@"
2960 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2962 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2963 @echo "Building plugin $@"
2964 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2966 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2967 @echo "Building plugin $@"
2968 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2970 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2971 @echo "Building plugin $@"
2972 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2974 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2975 @echo "Building plugin $@"
2976 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2978 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2979 @echo "Building plugin $@"
2980 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2982 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2983 @echo "Building plugin $@"
2984 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2986 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2987 @echo "Building plugin $@"
2988 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2990 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2991 @echo "Building plugin $@"
2992 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
2994 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2995 @echo "Building plugin $@"
2996 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2998 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2999 @echo "Building plugin $@"
3000 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
3002 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
3003 @echo "Building plugin $@"
3004 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
3006 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
3007 @echo "Building plugin $@"
3008 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
3010 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
3011 @echo "Building plugin $@"
3012 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
3014 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
3015 @echo "Building plugin $@"
3016 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
3018 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
3019 @echo "Building plugin $@"
3020 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
3022 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
3023 @echo "Building plugin $@"
3024 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
3026 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
3027 @echo "Building plugin $@"
3028 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
3030 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
3031 @echo "Building plugin $@"
3032 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
3034 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3035 @echo "Building plugin $@"
3036 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3038 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
3039 @echo "Building plugin $@"
3040 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
3042 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
3043 @echo "Building plugin $@"
3044 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
3046 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
3047 @echo "Building plugin $@"
3048 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
3050 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
3051 @echo "Building plugin $@"
3052 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
3054 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
3055 @echo "Building plugin $@"
3056 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
3058 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
3059 @echo "Building plugin $@"
3060 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
3062 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3063 @echo "Building plugin $@"
3064 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3066 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3067 @echo "Building plugin $@"
3068 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3070 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3071 @echo "Building plugin $@"
3072 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3074 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3075 @echo "Building plugin $@"
3076 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3078 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3079 @echo "Building plugin $@"
3080 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3082 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3083 @echo "Building plugin $@"
3084 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3086 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3087 @echo "Building plugin $@"
3088 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3090 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3091 @echo "Building plugin $@"
3092 @$(SHLD_MODULE) libgpo/gpext/registry.o
3094 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3095 @echo "Building plugin $@"
3096 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3098 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3099 @echo "Building plugin $@"
3100 @$(SHLD_MODULE) libgpo/gpext/security.o
3102 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3103 @echo "Building plugin $@"
3104 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3106 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3107 @echo "Building plugin $@"
3108 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3110 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3111 @echo "Building plugin $@"
3112 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3114 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3115 @echo "Building plugin $@"
3116 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3118 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3119 @echo "Building plugin $@"
3120 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3122 #########################################################
3123 ## IdMap NSS plugins
3125 ## None here right now
3126 #########################################################
3128 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3129 @echo Linking $@
3130 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3131 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3132 $(LIBWBCLIENT_LIBS)
3134 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3135 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3136 @echo Linking $@
3137 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3138 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) $(ZLIB_LIBS) \
3139 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3140 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3142 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3143 @echo "Linking shared library $@"
3144 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3145 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
3146 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3148 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3149 @echo Linking $@
3150 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3151 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3153 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3154 @echo Linking $@
3155 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3156 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3158 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3159 @echo Linking $@
3160 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3162 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3163 @echo Linking $@
3164 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3166 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3167 @echo Linking $@
3168 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3169 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3171 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3172 @echo Linking $@
3173 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3175 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3176 @echo "Linking $@"
3177 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3178 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3179 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3181 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3182 @echo "Linking $@"
3183 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3184 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3185 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3186 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3188 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3189 @echo "Linking $@"
3190 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3191 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3192 $(LDAP_LIBS) \
3193 $(POPT_LIBS) \
3194 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3196 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3197 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3199 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3200 @echo "Linking $@"
3201 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3202 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3203 $(LDAP_LIBS) \
3204 $(POPT_LIBS) \
3205 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3207 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3208 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3210 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3211 @echo "Linking $@"
3212 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3213 $(LDFLAGS) $(DYNEXP) \
3214 $(LIBS) $(POPT_LIBS) \
3215 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3216 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3218 install:: installservers installbin installman \
3219 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3220 @INSTALL_PAM_MODULES@ installlibs installmo
3222 install-everything:: install installmodules
3224 # DESTDIR is used here to prevent packagers wasting their time
3225 # duplicating the Makefile. Remove it and you will have the privelege
3226 # of package each samba release for muliple versions of multiple
3227 # distributions and operating systems, or at least supplying patches
3228 # to all the packaging files required for this, prior to committing
3229 # the removal of DESTDIR. Do not remove it even though you think it
3230 # is not used
3232 installdirs::
3233 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3234 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3235 $(VARDIR) $(PRIVATE_DIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3236 $(NMBDSOCKETDIR) $(WINBINDD_SOCKET_DIR) $(WINBINDD_PRIVILEGED_SOCKET_DIR) \
3237 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3239 installservers:: all installdirs
3240 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3242 installbin:: all installdirs
3243 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3245 # Some symlinks are required for the 'probing' of modules.
3246 # This mechanism should go at some point..
3247 installmodules:: modules installdirs
3248 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3249 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3250 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3251 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3252 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3253 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3254 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3255 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3256 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3257 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3258 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3259 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3260 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3261 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3262 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3263 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3264 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3265 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3267 installscripts:: installdirs
3268 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3270 installdat:: installdirs
3271 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3273 installmsg:: installdirs
3274 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3276 installswat:: installdirs installmsg
3277 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3279 installpammodules:: $(PAM_MODULES)
3280 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3281 @for module in $(PAM_MODULES); do \
3282 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3283 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3284 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3285 done
3287 # revert to the previously installed version
3288 revert::
3289 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3290 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3292 installman:: installdirs
3293 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3295 installmo:: all installdirs
3296 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3298 .PHONY: showlayout
3300 showlayout::
3301 @echo "Samba will be installed into:"
3302 @echo " prefix: $(prefix)"
3303 @echo " exec_prefix: $(exec_prefix)"
3304 @echo " sysconfdir: $(sysconfdir)"
3305 @echo " localstatedir: $(localstatedir)"
3306 @echo " datarootdir: $(datarootdir)"
3307 @echo " BINDIR: $(BINDIR)"
3308 @echo " SBINDIR: $(SBINDIR)"
3309 @echo " LIBDIR: $(LIBDIR)"
3310 # @echo " LIBEXECDIR: $(LIBEXECDIR)"
3311 @echo " MANDIR: $(MANDIR)"
3312 @echo " DATADIR: $(DATADIR)"
3313 @echo " LOCALEDIR: $(LOCALEDIR)"
3314 # @echo " SCRIPTSBINDIR: $(SCRIPTSBINDIR)"
3315 # @echo " PYTHONDIR: $(PYTHONDIR)"
3316 # @echo " PYTHONARCHDIR: $(PYTHONARCHDIR)"
3317 @echo " MODULESDIR: $(MODULESDIR)"
3318 @echo " INCLUDEDIR: $(INCLUDEDIR)"
3319 @echo " SETUPDIR: $(SETUPDIR)"
3320 # @echo " PKGCONFIGDIR: $(PKGCONFIGDIR)"
3321 @echo " SWATDIR: $(SWATDIR)"
3322 @echo " CODEPAGEDIR: $(CODEPAGEDIR)"
3323 @echo " PAMMODULESDIR: $(PAMMODULESDIR)"
3324 @echo " CONFIGDIR: $(CONFIGDIR)"
3325 @echo " PRIVATE_DIR: $(PRIVATE_DIR)"
3326 @echo " LOCKDIR: $(LOCKDIR)"
3327 @echo " PIDDIR: $(PIDDIR)"
3328 @echo " STATEDIR: $(STATEDIR)"
3329 @echo " CACHEDIR: $(CACHEDIR)"
3330 @echo " LOGFILEBASE: $(LOGFILEBASE)"
3331 @echo " SOCKET_DIR: $(SOCKET_DIR)"
3332 @echo " PRIVILEGED_SOCKET_DIR: $(PRIVILEGED_SOCKET_DIR)"
3333 @echo " WINBINDD_SOCKET_DIR: $(WINBINDD_SOCKET_DIR)"
3334 @echo " WINBINDD_PRIVILEGED_SOCKET_DIR: $(WINBINDD_PRIVILEGED_SOCKET_DIR)"
3335 @echo " NMBDSOCKETDIR: $(NMBDSOCKETDIR)"
3336 # @echo " NTP_SIGND_SOCKET_DIR: $(NTP_SIGND_SOCKET_DIR)"
3337 @echo " NCALRPCDIR: $(NCALRPCDIR)"
3338 @echo " CONFIGFILE: $(CONFIGFILE)"
3339 @echo " LMHOSTSFILE: $(LMHOSTSFILE)"
3340 @echo " SMB_PASSWD_FILE: $(SMB_PASSWD_FILE)"
3343 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3345 uninstallmo::
3346 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3348 uninstallman::
3349 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3351 uninstallservers::
3352 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3354 uninstallbin::
3355 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3357 uninstallmodules::
3358 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3359 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3360 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3361 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3362 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3363 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3364 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3366 uninstallscripts::
3367 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3369 uninstalldat::
3370 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3372 uninstallmsg::
3373 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3375 uninstallswat:: uninstallmsg
3376 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3378 uninstallpammodules::
3379 @for module in $(PAM_MODULES); do \
3380 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3381 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3382 done
3384 cleanlibs::
3385 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3386 ../lib/*/*.ho \
3387 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3388 ../librpc/*/*.o \
3389 ../libgpo/*.o ../libgpo/*/*.o \
3390 ../libds/*.o ../libds/*/*.o ../dynconfig/*.o
3392 clean:: cleanlibs
3393 -rm -f include/build_env.h
3394 -rm -f smbd/build_options.c
3395 -rm -f param/param_local.h
3396 -rm -f param/param_global.h
3397 -rm -f ../lib/param/param_local.h
3398 -rm -f ../lib/param/param_global.h
3399 -rm -f ../lib/param/param_proto.h
3400 -rm -f ../lib/param/s3_param.h
3401 -rm -f $(PRECOMPILED_HEADER)
3402 -rm -f core */*~ *~ \
3403 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3404 ../testsuite/*/*.o \
3405 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3406 ../client/*.o \
3407 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3408 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3409 $(MODULES) $(TORTURE_PROGS) \
3410 $(EVERYTHING_PROGS) \
3411 bin/timelimit \
3412 .headers.stamp */src/*.o
3413 -rm -rf t_dir
3415 include/build_env.h: script/build_env.sh
3416 @echo Building include/build_env.h
3417 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3418 > $(builddir)/include/build_env.h
3420 proto::
3422 etags::
3423 rm -f TAGS
3424 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3426 ctags::
3427 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3429 realclean:: clean
3430 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3431 -rm -f script/installbin.sh script/uninstallbin.sh
3433 distclean:: realclean
3434 -rm -f smbadduser
3435 -rm -f include/autoconf/config.h Makefile
3436 -rm -f config.status config.cache so_locations
3437 -rm -rf .deps TAGS
3439 realdistclean:: distclean
3440 -rm -f include/autoconf/config.h.in
3441 -rm -f include/version.h
3442 -rm -f configure
3444 # this target is really just for my use. It only works on a limited
3445 # range of machines and is used to produce a list of potentially
3446 # dead (ie. unused) functions in the code. (tridge)
3447 finddead::
3448 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3449 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3450 comm -13 nmused.txt nmfns.txt
3453 # when configure.in is updated, reconfigure
3454 $(srcdir)/configure: $(srcdir)/configure.in
3455 @echo "WARNING: you need to rerun ./autogen.sh"
3457 config.status: $(srcdir)/configure
3458 @echo "WARNING: you need to run ./configure"
3460 Makefile: $(srcdir)/Makefile.in config.status
3461 @echo "WARNING: you need to run ./config.status"
3463 ######################################################################
3464 # Samba Testing Framework
3466 # Check shared libs for unresolved symbols
3467 test_shlibs:
3468 @echo "Testing $? "
3469 @$(LIB_PATH_VAR)=./bin && \
3470 export $(LIB_PATH_VAR) && \
3471 for module in $?; do \
3472 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3473 || exit 1; \
3474 done
3476 # Check for NSS module problems.
3477 test_nss_modules:: nss_modules
3478 @echo "Testing $(NSS_MODULES) "
3479 @$(LIB_PATH_VAR)=./bin && \
3480 export $(LIB_PATH_VAR) && \
3481 for module in $(NSS_MODULES); do \
3482 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3483 || exit 1; \
3484 done
3486 # Check for PAM module problems. Specifically, check that every module we
3487 # built can actually be loaded by a minimal PAM-aware application.
3488 test_pam_modules:: pam_modules
3489 @echo "Testing $(PAM_MODULES) "
3490 @$(LIB_PATH_VAR)=./bin && \
3491 export $(LIB_PATH_VAR) && \
3492 for module in $(PAM_MODULES); do \
3493 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3494 || exit 1; \
3495 done
3499 ## Targets for 'make test'
3502 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3504 valgrindtest:: all torture timelimit
3505 @echo Running Test suite with valgrind
3506 @$(MAKE) test \
3507 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3508 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3509 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3510 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3512 selftestdir = ../selftest
3514 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3516 test:: all torture timelimit
3517 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3518 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3519 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3520 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3521 SOURCEDIR="$(srcdir)" \
3522 VFSLIBDIR="$(builddir)/bin" \
3523 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3524 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3525 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3526 $(srcdir)/selftest/s3-selftest.sh
3528 test-%:
3529 $(MAKE) test TESTS=$*
3531 buildfarm-test:
3532 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3534 subunit-test:
3535 $(MAKE) test SUBUNIT_FORMATTER=cat
3537 SELFTEST_TESTENV = s3dc
3539 testenv:
3540 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3542 gdbtestenv:
3543 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3544 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3545 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3546 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3547 TESTS="--testenv"
3549 valgrindtestenv:
3550 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3551 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3552 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3553 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3554 TESTS="--testenv"
3557 # Check for Winbind struct 32/64bit padding
3558 test_wbpad:
3559 @echo "Testing winbind request/response structure for 32/64bit padding"
3560 @./script/tests/wb_pad.sh || exit 1;
3563 ## Examples:
3566 libsmbclient_examples: libsmbclient
3567 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3569 clean_libsmbclient_examples:
3570 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3572 libnetapi_examples: libnetapi
3573 $(MAKE) -C lib/netapi/examples
3575 clean_libnetapi_examples:
3576 $(MAKE) -C lib/netapi/examples clean
3578 .PHONY: bin/smbtorture4 bin/ndrdump4
3580 bin/smbtorture4: $(BINARY_PREREQS)
3581 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3583 bin/ndrdump4: $(BINARY_PREREQS)
3584 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
3586 .PHONY: vfs_examples
3588 vfs_examples:
3590 cd ../examples/VFS && \
3591 ./autogen.sh && \
3592 ./configure && \
3593 make clean && \
3594 make \