build: autogenerate exports/libnetapi.syms
[Samba.git] / source / Makefile.in
blob3fa9b4abda137cf805d3d199889663c59ee31889
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 smbtorture4_path=@smbtorture4_path@
22 LIBS=@LIBS@
23 CC=@CC@
24 SHLD=@SHLD@
25 LIB_PATH_VAR=@LIB_PATH_VAR@
27 ## Dynamic shared libraries build settings
28 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@$$/syms/'`
29 DSO_EXPORTS=@DSO_EXPORTS@
30 SONAME_VER=`grep \^$@ $(builddir)/library-versions | cut -d: -f2`
31 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
33 # The MODULE_EXPORTS variable contains the platform-specific linker flags
34 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
35 MODULE_EXPORTS=@MODULE_EXPORTS@
37 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
38 # (GCC) warnings. This is done automtically for --enable-developer
39 # and --enable-krb5developer.
40 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
41 CFLAGS=@CFLAGS@
42 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
44 EXEEXT=@EXEEXT@
45 AR=@AR@
46 LDSHFLAGS=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
47 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
49 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
50 AWK=@AWK@
51 PICFLAG=@PICFLAG@
52 DYNEXP=@DYNEXP@
53 PERL=@PERL@
55 PIDL_ARGS=@PIDL_ARGS@
57 TERMLDFLAGS=@TERMLDFLAGS@
58 TERMLIBS=@TERMLIBS@
59 PRINT_LIBS=@PRINT_LIBS@
60 AUTH_LIBS=@AUTH_LIBS@
61 ACL_LIBS=@ACL_LIBS@
62 PASSDB_LIBS=@PASSDB_LIBS@
63 IDMAP_LIBS=@IDMAP_LIBS@
64 KRB5LIBS=@KRB5_LIBS@
65 LDAP_LIBS=@LDAP_LIBS@
66 NSCD_LIBS=@NSCD_LIBS@
67 UUID_LIBS=@UUID_LIBS@
68 WINBIND_LIBS=@WINBIND_LIBS@
69 DNSSD_LIBS=@DNSSD_LIBS@
71 INSTALLCMD=@INSTALL@
72 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
73 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
74 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
75 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
77 VPATH=@srcdir@
78 srcdir=@abs_srcdir@
79 builddir=@abs_builddir@
80 SHELL=/bin/sh
81 DESTDIR=/
83 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
84 # will search for a POSIX-compliant shell, and that might not be
85 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
87 # See the autoconf manual "Installation Directory Variables" for a
88 # discussion of the subtle use of these variables.
90 BASEDIR= @prefix@
91 BINDIR = @bindir@
92 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
93 SBINDIR = @sbindir@
94 ROOTSBINDIR = @rootsbindir@
95 LIBDIR = @libdir@
96 INCLUDEDIR=@includedir@
97 PAMMODULESDIR = @pammodulesdir@
98 VFSLIBDIR = $(LIBDIR)/vfs
99 PDBLIBDIR = $(LIBDIR)/pdb
100 RPCLIBDIR = $(LIBDIR)/rpc
101 IDMAPLIBDIR = $(LIBDIR)/idmap
102 NSSINFOLIBDIR = $(LIBDIR)/nss_info
103 CHARSETLIBDIR = $(LIBDIR)/charset
104 AUTHLIBDIR = $(LIBDIR)/auth
105 CONFIGLIBDIR = $(LIBDIR)/config
106 GPEXTLIBDIR = $(LIBDIR)/gpext
107 CONFIGDIR = @configdir@
108 VARDIR = @localstatedir@
109 MANDIR = @mandir@
110 DATADIR = @datadir@
112 # The permissions to give the executables and other data
113 INSTALLPERMS_BIN = 0755
114 INSTALLPERMS_DATA = 0644
116 # set these to where to find various files
117 # These can be overridden by command line switches (see smbd(8))
118 # or in smb.conf (see smb.conf(5))
119 LOGFILEBASE = @logfilebase@
120 CONFIGFILE = $(CONFIGDIR)/smb.conf
121 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
122 CTDBDIR = @ctdbdir@
124 # This is where smbpasswd et al go
125 PRIVATEDIR = @privatedir@
127 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
128 PRIVATE_DIR = $(PRIVATEDIR)
130 # This is where SWAT images and help files go
131 SWATDIR = @swatdir@
133 # the directory where lock files go
134 LOCKDIR = @lockdir@
136 # FHS directories; equal to LOCKDIR if not using --with-fhs
137 CACHEDIR = @cachedir@
138 STATEDIR = @statedir@
140 # Where to look for (and install) codepage databases.
141 CODEPAGEDIR = @codepagedir@
143 # the directory where pid files go
144 PIDDIR = @piddir@
146 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
147 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
148 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
150 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
151 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
152 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
153 LIBTDB_SYMS=$(srcdir)/exports/libtdb.syms
154 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
156 LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
157 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
158 LIBADDNS=bin/libaddns.a @LIBADDNS_SHARED@
159 LIBWBCLIENT=@LIBWBCLIENT_SHARED@
161 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
162 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
163 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
164 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.syms
165 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
167 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
168 FLAGS2 =
169 FLAGS3 =
170 FLAGS4 = -I$(CTDBDIR)/include
171 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
172 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
174 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
175 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
176 -DCONFIGFILE=\"$(CONFIGFILE)\" \
177 -DSBINDIR=\"$(SBINDIR)\" \
178 -DBINDIR=\"$(BINDIR)\" \
179 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
180 -DSWATDIR=\"$(SWATDIR)\" \
181 -DLOCKDIR=\"$(LOCKDIR)\" \
182 -DPIDDIR=\"$(PIDDIR)\" \
183 -DLIBDIR=\"$(LIBDIR)\" \
184 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
185 -DSHLIBEXT=\"@SHLIBEXT@\" \
186 -DCTDBDIR=\"$(CTDBDIR)\" \
187 -DCONFIGDIR=\"$(CONFIGDIR)\" \
188 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
189 -DCACHEDIR=\"$(CACHEDIR)\" \
190 -DSTATEDIR=\"$(STATEDIR)\"
192 # Note that all executable programs now provide for an optional executable suffix.
194 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
196 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@ @CIFSSPNEGO_PROGS@
198 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
199 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
200 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
201 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
202 bin/tdbtool@EXEEXT@
203 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
204 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
205 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
206 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
207 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
209 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
210 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
211 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
212 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
213 bin/tdbtorture@EXEEXT@ \
214 bin/smbconftort@EXEEXT@
216 BIN_PROGS = @EXTRA_BIN_PROGS@ \
217 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
219 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
220 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
221 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
222 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@
224 SHLIBS = libtalloc libtdb @LIBWBCLIENT@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBADDNS@ libnetapi
226 PAM_MODULES = @PAM_MODULES@
228 NSS_MODULES = @NSS_MODULES@
230 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
232 VFS_MODULES = @VFS_MODULES@
233 PDB_MODULES = @PDB_MODULES@
234 RPC_MODULES = @RPC_MODULES@
235 IDMAP_MODULES = @IDMAP_MODULES@
236 CHARSET_MODULES = @CHARSET_MODULES@
237 AUTH_MODULES = @AUTH_MODULES@
238 NSS_INFO_MODULES = @NSS_INFO_MODULES@
239 GPEXT_MODULES = @GPEXT_MODULES@
240 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
241 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
242 $(GPEXT_MODULES)
244 ######################################################################
245 # object file lists
246 ######################################################################
248 LIBTDB_OBJ0 = @TDB_OBJS@
249 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
251 TDB_OBJ = lib/util_tdb.o \
252 lib/dbwrap.o lib/dbwrap_tdb.o \
253 lib/dbwrap_tdb2.o lib/dbwrap_ctdb.o \
254 lib/dbwrap_rbt.o @LIBTDB_STATIC@
256 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
258 VERSION_OBJ = lib/version.o
260 WBCOMMON_OBJ = nsswitch/wb_common.o
262 AFS_OBJ = lib/afs.o
264 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
266 SERVER_MUTEX_OBJ = lib/server_mutex.o
268 PASSCHANGE_OBJ = libsmb/passchange.o
271 LIBNDR_OBJ = librpc/ndr/ndr_basic.o \
272 librpc/ndr/ndr.o \
273 librpc/ndr/ndr_misc.o \
274 librpc/gen_ndr/ndr_misc.o \
275 librpc/gen_ndr/ndr_security.o \
276 librpc/ndr/ndr_sec_helper.o \
277 librpc/ndr/ndr_string.o \
278 librpc/ndr/sid.o \
279 librpc/ndr/uuid.o
281 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
283 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
284 librpc/gen_ndr/ndr_lsa.o \
285 librpc/gen_ndr/ndr_dfs.o \
286 librpc/gen_ndr/ndr_echo.o \
287 librpc/gen_ndr/ndr_winreg.o \
288 librpc/gen_ndr/ndr_initshutdown.o \
289 librpc/gen_ndr/ndr_srvsvc.o \
290 librpc/gen_ndr/ndr_eventlog.o \
291 librpc/gen_ndr/ndr_netlogon.o \
292 librpc/gen_ndr/ndr_samr.o \
293 librpc/gen_ndr/ndr_dssetup.o \
294 librpc/gen_ndr/ndr_notify.o \
295 librpc/gen_ndr/ndr_xattr.o \
296 librpc/gen_ndr/ndr_epmapper.o \
297 librpc/gen_ndr/ndr_ntsvcs.o
299 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
301 # this includes only the low level parse code, not stuff
302 # that requires knowledge of security contexts
303 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
305 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
306 rpc_client/init_netlogon.o \
307 rpc_client/init_lsa.o \
308 rpc_client/init_srvsvc.o
310 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
312 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
313 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
315 TALLOC_OBJ = @TALLOC_OBJS@
318 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
319 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
321 LIBSAMBAUTIL_OBJ = @LIBTALLOC_STATIC@ \
322 $(LIBREPLACE_OBJ) \
323 $(SOCKET_WRAPPER_OBJ) \
324 $(NSS_WRAPPER_OBJ)
326 LIB_WITHOUT_PROTO_OBJ = $(LIBSAMBAUTIL_OBJ) \
327 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
328 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
329 lib/interfaces.o lib/rbtree.o lib/memcache.o \
330 lib/util_transfer_file.o lib/async_req.o \
331 $(TDB_OBJ)
333 LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
334 lib/interface.o lib/md4.o \
335 lib/pidfile.o \
336 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
337 lib/ufc.o lib/genrand.o lib/username.o \
338 lib/util_pw.o lib/access.o lib/smbrun.o \
339 lib/bitmap.o lib/crc32.o lib/dprintf.o \
340 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
341 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
342 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
343 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
344 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
345 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
346 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
347 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
348 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
349 lib/adt_tree.o lib/gencache.o \
350 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
351 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
352 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
353 lib/file_id.o
355 LIB_OBJ = $(LIB_WITHOUT_PROTO_OBJ) $(LIB_WITH_PROTO_OBJ)
357 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
358 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
360 READLINE_OBJ = lib/readline.o
362 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
363 # Be sure to include them into your application
364 POPT_LIB_OBJ = lib/popt_common.o
366 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
367 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
368 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
370 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
372 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
373 libaddns/dnsgss.o libaddns/dnsmarshall.o
374 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) @LIBTALLOC_STATIC@
376 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
377 nsswitch/libwbclient/wbc_util.o \
378 nsswitch/libwbclient/wbc_pwd.o \
379 nsswitch/libwbclient/wbc_idmap.o \
380 nsswitch/libwbclient/wbc_sid.o \
381 nsswitch/libwbclient/wbc_pam.o
382 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
383 $(WBCOMMON_OBJ) \
384 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
386 GPEXT_OBJ = libgpo/gpext/gpext.o @GPEXT_STATIC@
388 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
389 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o \
390 libgpo/gpo_reg.o \
391 $(GPEXT_OBJ)
392 LIBGPO_OBJ = $(LIBGPO_OBJ0)
394 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
395 libads/sasl.o libads/sasl_wrapping.o \
396 libads/krb5_setpw.o libads/ldap_user.o \
397 libads/ads_struct.o libads/kerberos_keytab.o \
398 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
399 libads/ldap_schema.o libads/util.o libads/ndr.o
401 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
402 librpc/ndr/ndr_krb5pac.o \
403 librpc/gen_ndr/ndr_krb5pac.o
405 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
407 LIBNBT_OBJ = libcli/nbt/nbtname.o \
408 librpc/gen_ndr/ndr_nbt.o \
409 librpc/gen_ndr/ndr_svcctl.o
411 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
412 libsmb/namequery.o libsmb/conncache.o libads/dns.o
414 NTERR_OBJ = libsmb/nterr.o
415 DOSERR_OBJ = libsmb/doserr.o
416 ERRORMAP_OBJ = libsmb/errormap.o
417 DCE_RPC_ERR_OBJ = libsmb/dcerpc_err.o
419 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ) \
420 libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ntlmssp_parse.o
422 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) \
423 $(RPC_PARSE_OBJ1) \
424 $(SECRETS_OBJ)
426 LIBSMB_OBJ0 = \
427 libsmb/ntlm_check.o \
428 libsmb/ntlmssp.o \
429 libsmb/ntlmssp_sign.o
431 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
432 $(LIBSMB_ERR_OBJ)
434 CLDAP_OBJ = libads/cldap.o
436 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
437 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
438 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
439 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
440 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
441 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
442 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
443 libsmb/clioplock.o libsmb/clirap2.o \
444 libsmb/smb_seal.o libsmb/async_smb.o \
445 $(LIBSAMBA_OBJ) \
446 $(LIBNMB_OBJ) \
447 $(LIBNBT_OBJ) \
448 $(CLDAP_OBJ)
450 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
452 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
453 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
454 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
455 rpc_client/cli_svcctl.o \
456 rpc_client/init_samr.o \
457 librpc/rpc/dcerpc.o \
458 librpc/rpc/binding.o
460 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
461 librpc/gen_ndr/cli_dfs.o \
462 librpc/gen_ndr/cli_echo.o \
463 librpc/gen_ndr/cli_srvsvc.o \
464 librpc/gen_ndr/cli_svcctl.o \
465 librpc/gen_ndr/cli_winreg.o \
466 librpc/gen_ndr/cli_initshutdown.o \
467 librpc/gen_ndr/cli_eventlog.o \
468 librpc/gen_ndr/cli_wkssvc.o \
469 librpc/gen_ndr/cli_netlogon.o \
470 librpc/gen_ndr/cli_samr.o \
471 librpc/gen_ndr/cli_dssetup.o \
472 librpc/gen_ndr/cli_ntsvcs.o \
473 librpc/gen_ndr/cli_epmapper.o \
474 $(LIBNDR_GEN_OBJ) \
475 $(RPCCLIENT_NDR_OBJ)
478 # registry-related objects
480 UTIL_REG_OBJ = lib/util_reg.o
481 UTIL_REG_API_OBJ = lib/util_reg_api.o
483 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
484 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
485 REG_INIT_FULL_OBJ = registry/reg_init_full.o
487 REGFIO_OBJ = registry/regfio.o
489 REGOBJS_OBJ = registry/reg_objects.o
491 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
493 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
495 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
496 registry/reg_backend_shares.o \
497 registry/reg_backend_netlogon_params.o \
498 registry/reg_backend_prod_options.o \
499 registry/reg_backend_tcpip_params.o \
500 registry/reg_backend_hkpt_params.o \
501 registry/reg_backend_current_version.o \
502 registry/reg_backend_perflib.o
504 REG_BASE_OBJ = registry/reg_api.o \
505 registry/reg_dispatcher.o \
506 registry/reg_cachehook.o \
507 $(REGFIO_OBJ) \
508 $(REGOBJS_OBJ) \
509 registry/reg_util.o \
510 $(UTIL_REG_API_OBJ) \
511 lib/util_nttoken.o \
512 $(REG_BACKENDS_BASE_OBJ) \
513 $(REG_INIT_BASIC_OBJ)
515 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
516 $(REG_BACKENDS_SMBCONF_OBJ) \
517 $(REG_INIT_SMBCONF_OBJ)
519 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
520 $(REG_BACKENDS_EXTRA_OBJ) \
521 $(REG_INIT_FULL_OBJ) \
522 registry/reg_eventlog.o \
523 registry/reg_perfcount.o \
524 registry/reg_util_legacy.o
527 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
529 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
530 librpc/gen_ndr/srv_netlogon.o
532 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
533 rpc_server/srv_samr_util.o \
534 librpc/gen_ndr/srv_samr.o
536 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
538 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
539 librpc/gen_ndr/srv_winreg.o
541 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
543 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
544 librpc/gen_ndr/srv_srvsvc.o
546 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
548 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
549 librpc/gen_ndr/srv_svcctl.o \
550 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
551 services/svc_netlogon.o services/svc_winreg.o \
552 services/svc_wins.o
554 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o \
555 librpc/gen_ndr/srv_ntsvcs.o
557 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
559 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
561 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
562 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
564 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
565 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
567 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
569 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
571 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \
572 rpc_parse/parse_spoolss.o \
573 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
574 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o
576 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
578 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
580 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
582 PRIVILEGES_OBJ = lib/privileges.o
584 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
586 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
587 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
588 passdb/util_unixsids.o passdb/lookup_sid.o \
589 passdb/login_cache.o @PDB_STATIC@ \
590 lib/account_pol.o $(PRIVILEGES_OBJ) \
591 lib/util_nscd.o lib/winbind_util.o
593 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
594 CP850_OBJ = modules/CP850.o
595 CP437_OBJ = modules/CP437.o
596 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
598 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
600 PROFILE_OBJ = profile/profile.o
601 PROFILES_OBJ = utils/profiles.o \
602 $(LIBSAMBA_OBJ) \
603 $(PARAM_OBJ) \
604 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
605 $(POPT_LIB_OBJ)
607 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
609 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
611 VFS_DEFAULT_OBJ = modules/vfs_default.o
612 VFS_AUDIT_OBJ = modules/vfs_audit.o
613 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
614 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
615 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
616 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
617 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
618 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
619 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
620 VFS_CAP_OBJ = modules/vfs_cap.o
621 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
622 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
623 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
624 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
625 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
626 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
627 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
628 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
629 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
630 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
631 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
632 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
633 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
634 VFS_CATIA_OBJ = modules/vfs_catia.o
635 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
636 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
637 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
638 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
639 VFS_COMMIT_OBJ = modules/vfs_commit.o
640 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
641 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
642 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
643 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
644 VFS_FILEID_OBJ = modules/vfs_fileid.o
645 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
646 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
648 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
650 SLCACHE_OBJ = libsmb/samlogon_cache.o
652 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
654 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
655 AUTH_DOMAIN_OBJ = auth/auth_domain.o
656 AUTH_SAM_OBJ = auth/auth_sam.o
657 AUTH_SERVER_OBJ = auth/auth_server.o
658 AUTH_UNIX_OBJ = auth/auth_unix.o
659 AUTH_WINBIND_OBJ = auth/auth_winbind.o
660 AUTH_SCRIPT_OBJ = auth/auth_script.o
662 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
663 auth/auth_compat.o auth/auth_ntlmssp.o \
664 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
666 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
668 SMBD_OBJ_MAIN = smbd/server.o
670 BUILDOPT_OBJ = smbd/build_options.o
672 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
673 smbd/utmp.o smbd/session.o smbd/map_username.o \
674 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
675 smbd/share_access.o smbd/fileio.o \
676 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
677 smbd/message.o smbd/nttrans.o smbd/pipes.o \
678 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
679 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
680 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
681 smbd/vfs.o smbd/statcache.o smbd/seal.o \
682 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
683 smbd/process.o smbd/service.o smbd/error.o \
684 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
685 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
686 smbd/change_trust_pw.o smbd/fake_file.o \
687 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
688 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
689 smbd/dmapi.o \
690 smbd/file_access.o \
691 smbd/dnsregister.o \
692 $(MANGLE_OBJ) @VFS_STATIC@
694 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
695 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
696 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
697 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
698 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
699 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
700 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
701 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
702 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
703 $(LIBSMBCONF_OBJ) \
704 $(PRIVILEGES_BASIC_OBJ)
706 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
707 printing/print_cups.o printing/print_generic.o \
708 printing/lpq_parse.o printing/load.o \
709 printing/print_iprint.o
711 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
712 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
714 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
716 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
717 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
718 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
719 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
720 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
721 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
722 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
723 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
724 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
725 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
726 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
727 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
729 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
730 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
731 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
733 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
734 web/swat.o web/neg_lang.o
736 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
737 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(KRBCLIENT_OBJ) \
738 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
739 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
740 $(PASSCHANGE_OBJ) $(LDB_OBJ)
742 STATUS_OBJ = utils/status.o utils/status_profile.o \
743 $(LOCKING_OBJ) $(PARAM_OBJ) \
744 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
745 $(LIBSAMBA_OBJ)
747 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
748 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
749 $(LIBSAMBA_OBJ) \
750 $(PRINTBASE_OBJ)
752 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
753 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
754 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
755 rpc_client/cli_pipe.o librpc/rpc/binding.o $(RPC_PARSE_OBJ2) \
756 $(RPC_CLIENT_OBJ1) \
757 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
758 $(LIBMSRPC_GEN_OBJ)
760 TESTPARM_OBJ = utils/testparm.o \
761 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
762 $(LIBSAMBA_OBJ)
764 PASSWD_UTIL_OBJ = utils/passwd_util.o
766 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
767 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
768 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
769 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
770 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
772 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
773 $(LIBSAMBA_OBJ) \
774 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
775 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
776 $(LDB_OBJ)
778 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ0) @LIBWBCLIENT_STATIC@
780 DISPLAY_SEC_OBJ= lib/display_sec.o
782 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
783 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
784 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
785 rpcclient/cmd_dfs.o \
786 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
787 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
788 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
789 $(DISPLAY_SEC_OBJ)
791 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
792 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
793 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
794 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
795 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
796 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
798 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
799 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
801 LIBSMBCLIENT_OBJ0 = \
802 libsmb/libsmb_cache.o \
803 libsmb/libsmb_compat.o \
804 libsmb/libsmb_context.o \
805 libsmb/libsmb_dir.o \
806 libsmb/libsmb_file.o \
807 libsmb/libsmb_misc.o \
808 libsmb/libsmb_path.o \
809 libsmb/libsmb_printjob.o \
810 libsmb/libsmb_server.o \
811 libsmb/libsmb_stat.o \
812 libsmb/libsmb_xattr.o \
813 libsmb/libsmb_setget.o \
814 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
815 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
816 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
817 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
819 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ0) @LIBWBCLIENT_STATIC@
821 LIBSMBSHAREMODES_OBJ = libsmb/smb_share_modes.o @LIBTDB_STATIC@
823 # This shared library is intended for linking with unit test programs
824 # to test Samba internals. It's called libbigballofmud.so to
825 # discourage casual usage.
827 LIBBIGBALLOFMUD_MAJOR = 0
829 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
830 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
831 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
833 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
834 librpc/rpc/binding.o \
835 client/dnsbrowse.o \
836 $(RPC_CLIENT_OBJ1) \
837 $(RPC_PARSE_OBJ2)
839 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
840 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
841 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
842 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
843 $(DISPLAY_SEC_OBJ)
845 LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
846 lib/netapi/cm.o \
847 librpc/gen_ndr/ndr_libnetapi.o \
848 lib/netapi/libnetapi.o \
849 lib/netapi/joindomain.o \
850 lib/netapi/serverinfo.o \
851 lib/netapi/getdc.o \
852 lib/netapi/user.o
854 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
855 $(LIBSMBCONF_OBJ) \
856 $(REG_SMBCONF_OBJ) \
857 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
858 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
859 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
860 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
861 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ)
863 LIBSMBCONF_OBJ = lib/smbconf/smbconf.o lib/smbconf/smbconf_util.o \
864 lib/smbconf/smbconf_reg.o \
865 lib/smbconf/smbconf_txt.o \
866 lib/smbconf/smbconf_init.o
868 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
870 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
871 $(LIB_NONSMBD_OBJ) \
872 $(PARAM_OBJ) \
873 $(LIBSMB_ERR_OBJ) \
874 $(POPT_LIB_OBJ)
876 LIBNET_OBJ = libnet/libnet_join.o \
877 librpc/gen_ndr/ndr_libnet_join.o
879 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
880 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
881 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
882 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
883 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
884 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
885 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
886 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
887 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
888 utils/net_conf.o utils/net_join.o utils/net_user.o \
889 utils/net_group.o utils/net_file.o utils/net_registry.o \
890 auth/token_util.o utils/net_dom.o utils/net_share.o
892 # these are not processed by make proto
893 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
895 NET_OBJ = $(NET_OBJ1) \
896 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
897 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
898 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
899 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
900 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
901 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
902 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
903 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
904 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
905 $(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
906 $(LIBSMBCONF_OBJ) \
907 @LIBWBCLIENT_STATIC@ \
908 $(PRIVILEGES_BASIC_OBJ)
910 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
911 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
912 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
914 CIFS_MOUNT_OBJ = client/mount.cifs.o
916 CIFS_UMOUNT_OBJ = client/umount.cifs.o
918 CIFS_SPNEGO_OBJ = client/cifs.spnego.o
920 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
921 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
923 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
924 torture/denytest.o torture/mangle_test.o
926 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
927 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
928 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
930 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
931 $(LIB_NONSMBD_OBJ) \
932 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
934 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
935 $(LIB_NONSMBD_OBJ) \
936 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
938 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
939 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
940 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
942 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
943 $(LIB_NONSMBD_OBJ) \
944 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
946 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
947 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
948 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
949 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
951 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
953 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
955 LOG2PCAP_OBJ = utils/log2pcaphex.o
957 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
958 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
959 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
961 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
962 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
963 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
964 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
966 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
967 $(PARAM_OBJ) \
968 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
969 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
970 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
972 EVTLOGADM_OBJ0 = utils/eventlogadm.o
974 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
975 $(LIBSAMBA_OBJ) \
976 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
978 SHARESEC_OBJ0 = utils/sharesec.o
979 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
980 $(LIBSAMBA_OBJ) \
981 $(POPT_LIB_OBJ)
983 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
984 $(LIBSAMBA_OBJ)
986 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
987 lib/replace/test/getifaddrs.o \
988 lib/replace/test/os2_delete.o \
989 lib/replace/test/strptime.o \
990 $(LIBREPLACE_OBJ)
992 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
993 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
994 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
995 librpc/gen_ndr/ndr_svcctl.o
997 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
999 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1000 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1001 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
1003 PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
1004 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(LIBSMB_OBJ) \
1005 $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
1006 $(LIBMSRPC_OBJ) \
1007 $(LIB_WITH_PROTO_OBJ) \
1008 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
1009 $(AUTH_OBJ) $(PARAM_WITHOUT_REG_OBJ) $(LOCKING_OBJ) \
1010 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
1011 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1012 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
1013 $(AUTH_SAM_OBJ) $(REG_FULL_OBJ) $(POPT_LIB_OBJ) \
1014 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_DSSETUP_OBJ) \
1015 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
1016 $(RPC_ECHO_OBJ) $(RPC_SVCCTL_OBJ) $(RPC_EVENTLOG_OBJ) $(SMBLDAP_OBJ) \
1017 $(IDMAP_OBJ) libsmb/spnego.o $(PASSCHANGE_OBJ) \
1018 $(RPC_NTSVCS_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
1019 utils/passwd_util.o $(LIBGPO_OBJ) $(NSS_INFO_OBJ) \
1020 $(RPCCLIENT_NDR_OBJ) \
1021 $(PRIVILEGES_BASIC_OBJ)
1023 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
1024 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
1025 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
1027 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1028 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
1029 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1030 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1031 $(LDB_OBJ)
1033 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
1035 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1037 WINBINDD_OBJ1 = \
1038 winbindd/winbindd.o \
1039 winbindd/winbindd_user.o \
1040 winbindd/winbindd_group.o \
1041 winbindd/winbindd_util.o \
1042 winbindd/winbindd_cache.o \
1043 winbindd/winbindd_pam.o \
1044 winbindd/winbindd_sid.o \
1045 winbindd/winbindd_misc.o \
1046 winbindd/winbindd_cm.o \
1047 winbindd/winbindd_wins.o \
1048 winbindd/winbindd_rpc.o \
1049 winbindd/winbindd_reconnect.o \
1050 winbindd/winbindd_ads.o \
1051 winbindd/winbindd_passdb.o \
1052 winbindd/winbindd_dual.o \
1053 winbindd/winbindd_async.o \
1054 winbindd/winbindd_creds.o \
1055 winbindd/winbindd_cred_cache.o \
1056 winbindd/winbindd_ccache_access.o \
1057 winbindd/winbindd_domain.o \
1058 winbindd/winbindd_idmap.o \
1059 winbindd/winbindd_locator.o \
1060 winbindd/winbindd_ndr.o \
1061 auth/token_util.o \
1062 smbd/connection.o
1064 WINBINDD_OBJ = \
1065 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1066 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1067 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1068 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1069 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1070 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1071 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1072 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
1074 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1075 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1076 lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@
1078 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1080 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1081 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1082 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1083 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1084 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1086 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1087 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1088 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1090 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1091 lib/ldb/modules/objectclass.o \
1092 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1094 # enabled in configure.in
1095 LDB_LDAP_OBJ=@LDBLDAP@
1097 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1099 LDB_CMDLINE_OBJ = $(PARAM_OBJ) $(LIBSMB_OBJ) \
1100 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1101 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1102 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1103 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
1104 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
1105 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1106 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1109 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1110 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1111 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1112 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1113 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1115 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1116 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
1118 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1119 popt/popthelp.o popt/poptparse.o
1121 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1122 iniparser_build/strlib.o
1124 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1125 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1127 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1128 $(SOCKET_WRAPPER_OBJ)
1130 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1131 $(SOCKET_WRAPPER_OBJ)
1133 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1134 $(SOCKET_WRAPPER_OBJ)
1137 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1139 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1140 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1141 $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1142 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1143 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1144 $(LDB_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1145 librpc/gen_ndr/ndr_samr.o \
1146 librpc/gen_ndr/ndr_lsa.o \
1147 librpc/gen_ndr/ndr_netlogon.o
1150 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ) librpc/rpc/binding.o
1152 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1153 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1154 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1155 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1156 $(DISPLAY_SEC_OBJ)
1158 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1159 $(LIBSMB_OBJ) \
1160 $(PARAM_OBJ) \
1161 $(PASSDB_OBJ) \
1162 @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
1163 $(LIB_NONSMBD_OBJ) \
1164 $(KRBCLIENT_OBJ) \
1165 $(RPC_PARSE_OBJ2) \
1166 $(RPC_CLIENT_OBJ1) \
1167 rpc_client/cli_pipe.o \
1168 librpc/rpc/binding.o \
1169 $(LIBMSRPC_GEN_OBJ)
1172 ######################################################################
1173 # now the rules...
1174 ######################################################################
1175 all:: SHOWFLAGS $(SHLIBS) $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1176 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1178 nss_modules:: $(NSS_MODULES)
1180 pam_modules:: $(PAM_MODULES)
1182 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1184 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1186 torture:: SHOWFLAGS $(TORTURE_PROGS)
1188 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1190 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1192 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1194 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1196 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1198 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1200 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1202 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1204 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1206 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1208 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1210 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1212 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1214 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1216 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1218 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1219 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1220 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1222 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1224 modules:: SHOWFLAGS $(MODULES)
1226 #####################################################################
1227 ## Perl IDL Compiler
1228 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1229 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1230 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1231 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl drsuapi.idl nbt.idl
1233 idl::
1234 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1235 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1238 #####################################################################
1241 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1242 $(EVERYTHING_PROGS)
1244 .SUFFIXES:
1245 .SUFFIXES: .c .o .lo
1247 SHOWFLAGS::
1248 @echo "Using FLAGS = $(FLAGS)"
1249 @echo " PICFLAG = $(PICFLAG)"
1250 @echo " LIBS = $(LIBS)"
1251 @echo " LDFLAGS = $(LDFLAGS)"
1252 @echo " DYNEXP = $(DYNEXP)"
1253 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1254 @echo " SHLIBEXT = @SHLIBEXT@"
1255 @echo " SONAMEFLAG = @SONAMEFLAG@"
1257 MAKEDIR = || exec false; \
1258 if test -d "$$dir"; then :; else \
1259 echo mkdir "$$dir"; \
1260 mkdir -p "$$dir" >/dev/null 2>&1 || \
1261 test -d "$$dir" || \
1262 mkdir "$$dir" || \
1263 exec false; fi || exec false
1265 # Run a static checker.
1266 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1267 # Compile a source file.
1268 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1269 # Compile a source file with the installation paths defined.
1270 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1272 COMPILE = $(COMPILE_CC)
1274 .c.o:
1275 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1276 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1277 @if test -n "$(CC_CHECKER)"; then \
1278 echo "Checking $*.c with '$(CC_CHECKER)'";\
1279 $(CHECK_CC); \
1281 @echo Compiling $*.c
1282 @$(COMPILE) && exit 0;\
1283 echo "The following command failed:" 1>&2;\
1284 echo "$(COMPILE_CC)" 1>&2;\
1285 $(COMPILE_CC) >/dev/null 2>&1
1286 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1288 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1290 # this adds support for precompiled headers. To use it, install a snapshot
1291 # of gcc-3.4 and run 'make pch' before you do the main build.
1292 pch::
1293 rm -f $(PRECOMPILED_HEADER)
1294 $(MAKE) $(PRECOMPILED_HEADER)
1296 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1297 $(COMPILE)
1299 BINARY_PREREQS = bin/.dummy
1301 # These dependencies are only approximately correct: we want to make
1302 # sure Samba's paths are updated if ./configure is re-run. Really it
1303 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1304 # but since we also require "make install prefix=/opt/samba" *not* to
1305 # rebuild it's a bit hard.
1307 dynconfig.o: dynconfig.c Makefile
1308 @echo Compiling $*.c
1309 @$(COMPILE_CC_PATH) && exit 0;\
1310 echo "The following command failed:" 1>&2;\
1311 echo "$(COMPILE_CC_PATH)" 1>&2;\
1312 $(COMPILE_CC_PATH) >/dev/null 2>&1
1314 lib/pidfile.o: lib/pidfile.c
1315 @echo Compiling $*.c
1316 @$(COMPILE_CC_PATH) && exit 0;\
1317 echo "The following command failed:" 1>&2;\
1318 echo "$(COMPILE_CC_PATH)" 1>&2;\
1319 $(COMPILE_CC_PATH) >/dev/null 2>&1
1321 lib/version.o: lib/version.c include/version.h
1322 @echo Compiling $*.c
1323 @$(COMPILE_CC_PATH) && exit 0;\
1324 echo "The following command failed:" 1>&2;\
1325 echo "$(COMPILE_CC_PATH)" 1>&2;\
1326 $(COMPILE_CC_PATH) >/dev/null 2>&1
1328 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1329 @echo Compiling $*.c
1330 @$(COMPILE_CC_PATH) && exit 0;\
1331 echo "The following command failed:" 1>&2;\
1332 echo "$(COMPILE_CC_PATH)" 1>&2;\
1333 $(COMPILE_CC_PATH) >/dev/null 2>&1
1335 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1336 @echo Generating $@
1337 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1339 bin/.dummy:
1340 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1341 dir=bin $(MAKEDIR); fi
1342 @: >> $@ || : > $@ # what a fancy emoticon!
1344 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1345 @echo Linking $@
1346 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1347 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1348 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1349 @POPTLIBS@ @SMBD_LIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1350 @WINBIND_LIBS@
1352 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1353 @echo Linking $@
1354 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1355 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @POPTLIBS@ \
1356 $(KRB5LIBS) $(LDAP_LIBS)
1358 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1359 @echo Linking $@
1360 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1361 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) @POPTLIBS@ $(KRB5LIBS) \
1362 $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1364 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1365 @echo Linking $@
1366 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1367 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1368 $(KRB5LIBS) $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1369 @WINBIND_LIBS@
1371 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1372 @echo Linking $@
1373 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1374 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1375 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1376 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1378 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1379 @echo Linking $@
1380 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1381 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1382 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1383 @INIPARSERLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@ @LIBNETAPI_LIBS@
1385 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1386 @echo Linking $@
1387 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1388 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1390 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1391 @echo Linking $@
1392 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1393 $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1395 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1396 @echo Linking $@
1397 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1399 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1400 @echo Linking $@
1401 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1403 bin/cifs.spnego@EXEEXT@: $(BINARY_PREREQS) $(CIFS_SPNEGO_OBJ) $(LIBSMBCLIENT_OBJ0) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1404 @echo Linking $@
1405 @$(CC) $(FLAGS) -o $@ $(CIFS_SPNEGO_OBJ) $(DYNEXP) $(LDFLAGS) \
1406 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ0) $(KRB5LIBS) \
1407 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBWBCLIENT_SHARED@ \
1408 @LIBTDB_LIBS@
1410 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1411 @echo Linking $@
1412 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1413 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1415 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1416 @echo Linking $@
1417 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1418 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1420 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1421 @echo Linking $@
1422 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1423 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1424 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ @POPTLIBS@ \
1425 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1427 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1428 @echo Linking $@
1429 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1430 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1431 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1433 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1434 @echo Linking $@
1435 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1436 $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1437 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1439 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1440 @echo Linking $@
1441 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1442 @POPTLIBS@ $(PASSDB_LIBS) $(LDAP_LIBS) @LIBTALLOC_LIBS@ \
1443 @LIBTDB_LIBS@ @WINBIND_LIBS@
1445 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1446 @echo Linking $@
1447 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1448 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1449 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1451 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1452 @echo Linking $@
1453 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1454 @POPTLIBS@ $(LDAP_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1456 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1457 @echo Linking $@
1458 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1459 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ \
1460 @LIBTDB_LIBS@
1462 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1463 @echo Linking $@
1464 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1465 $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1466 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1468 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1469 @echo Linking $@
1470 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1471 $(DYNEXP) $(LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@
1473 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1474 @echo Linking $@
1475 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1476 $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1477 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1479 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1480 @echo Linking $@
1481 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1482 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1483 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1485 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1486 @echo Linking $@
1487 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1488 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1489 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1491 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1492 @echo Linking $@
1493 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1494 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1495 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1497 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1498 @echo Linking $@
1499 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1500 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1501 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1503 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1504 @echo Linking $@
1505 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1506 $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1508 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1509 @echo Linking $@
1510 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1511 $(LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1513 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1514 @echo Linking $@
1515 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1516 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1517 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1519 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1520 @echo Linking $@
1521 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1522 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1523 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1525 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1526 @echo Linking $@
1527 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1528 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1529 @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1531 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1532 @echo Linking $@
1533 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1534 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1535 $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1536 @SMBD_LIBS@ $(NSCD_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1537 @LIBWBCLIENT_SHARED@
1539 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1540 @echo Linking $@
1541 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1542 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1543 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1545 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1546 @echo Linking $@
1547 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1548 @POPTLIBS@ $(LIBS) @LIBTALLOC_LIBS@
1550 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1551 @echo Linking $@
1552 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1553 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1554 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1556 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1557 @echo Linking $@
1558 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1559 @POPTLIBS@ @LDAP_LIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1561 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1562 @echo Linking $@
1563 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1564 $(LIBS) @LIBTALLOC_LIBS@
1566 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1567 @echo Linking $@
1568 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1569 $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ \
1570 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
1572 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1573 @echo Linking $@
1574 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1575 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1576 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1577 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1579 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1580 @echo Linking $@
1581 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1582 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1583 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1584 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1586 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1587 @echo Linking $@
1588 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1589 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1590 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1591 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1593 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1594 @echo Linking $@
1595 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1596 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1597 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1598 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1600 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1601 @echo Linking $@
1602 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1603 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1604 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1605 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1607 $(LIBTALLOC_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ)
1608 @echo Linking shared library $@
1609 @$(SHLD_DSO) $(LIBTALLOC_OBJ) \
1610 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1611 @ln -s -f `basename $@` $@.$(SONAME_VER)
1613 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1614 @echo Linking non-shared library $@
1615 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1617 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1619 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1620 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1622 $(LIBTDB_SHARED_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1623 @echo Linking shared library $@
1624 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1625 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1626 @ln -s -f `basename $@` $@.$(SONAME_VER)
1628 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1629 @echo Linking non-shared library $@
1630 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1632 bin/libwbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) @LIBTALLOC_SHARED@
1633 @echo Linking shared library $@
1634 @$(SHLD_DSO) @LIBTALLOC_LIBS@ $(LIBWBCLIENT_OBJ) \
1635 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1636 @ln -s -f `basename $@` $@.$(SONAME_VER)
1638 bin/libwbclient.a: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1639 @echo Linking non-shared library $@
1640 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1642 bin/libaddns.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1643 @echo Linking shared library $@
1644 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1645 $(KRB5LIBS) $(UUID_LIBS) @LIBTALLOC_LIBS@ \
1646 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1648 bin/libaddns.a: $(BINARY_PREREQS) $(LIBADDNS_OBJ)
1649 @echo Linking non-shared library $@
1650 @-$(AR) -rc $@ $(LIBADDNS_OBJ)
1652 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
1653 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
1655 $(LIBNETAPI_SHARED_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1656 @echo Linking shared library $@
1657 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1658 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@ $(LIBS) \
1659 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1660 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1661 @ln -s -f `basename $@` $@.$(SONAME_VER)
1663 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ1)
1664 @echo Linking non-shared library $@
1665 @-$(AR) -rc $@ $(LIBNETAPI_OBJ1)
1667 bin/libsmbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1668 @echo Linking shared library $@
1669 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
1670 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@ $(LIBS) \
1671 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1672 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1674 bin/libsmbclient.a: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ0)
1675 @echo Linking non-shared library $@
1676 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ0)
1678 bin/libsmbsharemodes.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1679 @echo Linking shared library $@
1680 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
1681 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1682 $(KRB5LIBS) $(LDAP_LIBS) \
1683 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1685 bin/libsmbsharemodes.a: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ)
1686 @echo Linking non-shared library $@
1687 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ)
1689 # This is probably wrong for anything other than the GNU linker.
1690 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
1691 @echo Linking shared library $@
1692 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
1693 $(LIBS) @LIBTALLOC_LIBS@ \
1694 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1695 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
1696 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
1698 # It would be nice to build a static bigballofmud too, but when I try
1699 # I get linker errors about dl_open and similar things. I'm not sure if
1700 # it can be fixed or if they just can't be called from a static
1701 # library.
1703 libtalloc: $(LIBTALLOC)
1704 libtdb: $(LIBTDB)
1705 libsmbclient: $(LIBSMBCLIENT)
1706 libsmbsharemodes: $(LIBSMBSHAREMODES)
1707 libaddns: $(LIBADDNS)
1708 libwbclient: $(LIBWBCLIENT)
1709 libnetapi: $(LIBNETAPI)
1711 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1712 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
1713 -o $@ @SONAMEFLAG@`basename $@`
1715 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
1716 @echo "Linking $@"
1717 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
1719 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
1720 @echo "Linking $@"
1721 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
1723 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
1724 @echo "Linking $@"
1725 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
1727 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
1728 @echo "Linking $@"
1729 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
1731 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
1732 @echo "Linking $@"
1733 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
1735 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
1736 @echo "Linking $@"
1737 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
1739 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
1740 @echo "Linking $@"
1741 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
1743 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
1744 @echo "Linking $@"
1745 @$(SHLD_MODULE) $(RPC_REG_OBJ)
1747 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
1748 @echo "Linking $@"
1749 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
1751 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
1752 @echo "Linking $@"
1753 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
1755 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
1756 @echo "Linking $@"
1757 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
1759 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
1760 @echo "Linking $@"
1761 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
1763 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
1764 @echo "Linking $@"
1765 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
1767 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
1768 @echo "Linking $@"
1769 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
1771 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1772 @echo "Linking $@"
1773 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1774 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1775 $(PASSDB_LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
1777 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1778 @echo "Linking $@"
1779 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
1780 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1781 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1782 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@
1784 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
1785 @echo "Linking $@"
1786 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
1787 @WINBIND_NSS_EXTRA_LIBS@ @WINBIND_NSS_PTHREAD@ \
1788 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1790 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1791 @echo "Linking $@"
1792 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
1793 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
1794 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1796 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
1797 @echo "Linking $@"
1798 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
1799 @SONAMEFLAG@`basename $@`
1801 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
1802 @echo "Linking shared library $@"
1803 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
1804 @PAM_WINBIND_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`
1806 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
1807 @echo "Building plugin $@"
1808 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
1810 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
1811 @echo "Building plugin $@"
1812 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
1814 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
1815 @echo "Building plugin $@"
1816 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
1818 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
1819 @echo "Building plugin $@"
1820 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
1822 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
1823 @echo "Building plugin $@"
1824 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
1826 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
1827 @echo "Building plugin $@"
1828 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
1830 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
1831 @echo "Building plugin $@"
1832 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
1834 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
1835 @echo "Building plugin $@"
1836 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
1838 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
1839 @echo "Building plugin $@"
1840 @$(SHLD_MODULE) passdb/pdb_tdb.o
1842 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
1843 @echo "Building plugin $@"
1844 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
1846 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
1847 @echo "Building plugin $@"
1848 @$(SHLD_MODULE) winbindd/idmap_rid.o
1850 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
1851 @echo "Building plugin $@"
1852 @$(SHLD_MODULE) winbindd/idmap_ad.o
1854 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
1855 @echo "Building plugin $@"
1856 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
1858 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
1859 @echo "Building plugin $@"
1860 @$(SHLD_MODULE) winbindd/idmap_ldap.o
1862 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
1863 @echo "Building plugin $@"
1864 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
1866 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
1867 @echo "Building plugin $@"
1868 @$(SHLD_MODULE) $(CP850_OBJ)
1870 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
1871 @echo "Building plugin $@"
1872 @$(SHLD_MODULE) $(CP437_OBJ)
1874 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
1875 @echo "Building plugin $@"
1876 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
1878 # NOTE, there is no build rule for a dynamic default VFS module because
1879 # this one MUST MUST MUST be built statically.
1881 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
1882 @echo "Building plugin $@"
1883 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
1885 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
1886 @echo "Building plugin $@"
1887 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
1889 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
1890 @echo "Building plugin $@"
1891 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
1893 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
1894 @echo "Building plugin $@"
1895 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
1897 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
1898 @echo "Building plugin $@"
1899 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
1901 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
1902 @echo "Building plugin $@"
1903 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
1905 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
1906 @echo "Building plugin $@"
1907 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
1909 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
1910 @echo "Building plugin $@"
1911 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
1913 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
1914 @echo "Building plugin $@"
1915 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
1917 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
1918 @echo "Building plugin $@"
1919 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
1921 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
1922 @echo "Building plugin $@"
1923 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
1925 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
1926 @echo "Building plugin $@"
1927 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
1929 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
1930 @echo "Building plugin $@"
1931 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
1933 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
1934 @echo "Building plugin $@"
1935 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
1937 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
1938 @echo "Building plugin $@"
1939 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
1941 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
1942 @echo "Building plugin $@"
1943 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
1945 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
1946 @echo "Building plugin $@"
1947 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
1949 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
1950 @echo "Building plugin $@"
1951 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
1953 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
1954 @echo "Building plugin $@"
1955 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
1957 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
1958 @echo "Building plugin $@"
1959 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
1961 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
1962 @echo "Building plugin $@"
1963 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
1965 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
1966 @echo "Building plugin $@"
1967 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
1969 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
1970 @echo "Building plugin $@"
1971 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
1973 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
1974 @echo "Building plugin $@"
1975 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
1977 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
1978 @echo "Building plugin $@"
1979 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
1981 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
1982 @echo "Building plugin $@"
1983 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
1985 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
1986 @echo "Building plugin $@"
1987 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
1989 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
1990 @echo "Building plugin $@"
1991 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
1993 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
1994 @echo "Building plugin $@"
1995 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
1997 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
1998 @echo "Building plugin $@"
1999 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2001 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2002 @echo "Building plugin $@"
2003 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2005 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2006 @echo "Building plugin $@"
2007 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2009 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2010 @echo "Building plugin $@"
2011 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2013 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2014 @echo "Building plugin $@"
2015 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2017 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2018 @echo "Building plugin $@"
2019 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2021 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2022 @echo "Building plugin $@"
2023 @$(SHLD_MODULE) libgpo/gpext/registry.o
2025 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2026 @echo "Building plugin $@"
2027 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2029 #########################################################
2030 ## IdMap NSS plugins
2032 ## None here right now
2033 #########################################################
2035 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2036 @echo Linking $@
2037 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2038 $(LDAP_LIBS) @POPTLIBS@ @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ \
2039 @WINBIND_LIBS@
2041 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2042 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2043 @echo Linking $@
2044 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2045 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2046 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2047 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
2049 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2050 @echo "Linking shared library $@"
2051 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2052 $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
2053 @LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @WINBIND_LIBS@
2055 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2056 @echo Linking $@
2057 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2058 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
2060 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2061 @echo Linking $@
2062 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2063 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
2065 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2066 @echo Linking $@
2067 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2068 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
2070 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2071 @echo Linking $@
2072 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2073 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_LIBS@
2075 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2076 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
2077 torture/t_strcmp.o -L ./bin -lbigballofmud
2079 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2080 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
2081 torture/t_strstr.o -L ./bin -lbigballofmud
2083 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2084 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) @LIBTALLOC_LIBS@ \
2085 torture/t_strappend.o -L ./bin -lbigballofmud
2087 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2088 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2089 -L./bin -lbigballofmud
2091 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2092 @echo Linking $@
2093 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
2095 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2096 @echo "Linking $@"
2097 @$(CC) $(FLAGS) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2098 $(LIBS) @LIBTALLOC_LIBS@ @LIBTDB_SHARED@ @WINBIND_LIBS@ \
2099 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2101 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSSPNEGO@ installman \
2102 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2103 installlibtalloc \
2104 installlibtdb \
2105 @INSTALL_LIBSMBCLIENT@ @INSTALL_PAM_MODULES@ \
2106 @INSTALL_LIBSMBSHAREMODES@ @INSTALL_LIBWBCLIENT@ installlibnetapi
2108 install-everything:: install installmodules
2110 # DESTDIR is used here to prevent packagers wasting their time
2111 # duplicating the Makefile. Remove it and you will have the privelege
2112 # of package each samba release for muliple versions of multiple
2113 # distributions and operating systems, or at least supplying patches
2114 # to all the packaging files required for this, prior to committing
2115 # the removal of DESTDIR. Do not remove it even though you think it
2116 # is not used
2118 installdirs::
2119 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
2121 installservers:: all installdirs
2122 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2124 installbin:: all installdirs
2125 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2127 installcifsmount:: @CIFSMOUNT_PROGS@
2128 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2129 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2131 installcifsspnego:: @CIFSSPNEGO_PROGS@
2132 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2133 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
2135 # Some symlinks are required for the 'probing' of modules.
2136 # This mechanism should go at some point..
2137 installmodules:: modules installdirs
2138 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2139 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2140 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2141 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2142 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2143 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2144 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2145 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2146 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2147 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2148 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2149 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2150 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2151 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2152 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2153 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2155 installscripts:: installdirs
2156 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2158 installdat:: installdirs
2159 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2161 installmsg:: installdirs
2162 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2164 installswat:: installdirs installmsg
2165 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2167 installclientlib:: installdirs libsmbclient
2168 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2169 -$(INSTALLLIBCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2170 -$(INSTALLLIBCMD_A) bin/libsmbclient.a $(DESTDIR)$(LIBDIR)
2171 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2172 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include
2174 installlibtalloc:: installdirs libtalloc
2175 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2176 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2177 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2178 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2179 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/@tallocdir@/talloc.h $(DESTDIR)${prefix}/include
2181 installlibtdb:: installdirs libtdb
2182 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2183 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2184 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2185 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2186 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2188 installlibsmbsharemodes:: installdirs libsmbsharemodes
2189 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2190 -$(INSTALLLIBCMD_SH) bin/libsmbsharemodes.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2191 -$(INSTALLLIBCMD_A) bin/libsmbsharemodes.a $(DESTDIR)$(LIBDIR)
2192 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/smb_share_modes.h $(DESTDIR)${prefix}/include
2194 installlibaddns:: installdirs libaddns
2195 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2196 -$(INSTALLLIBCMD_SH) bin/libaddns.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2197 -$(INSTALLLIBCMD_A) bin/libaddns.a $(DESTDIR)$(LIBDIR)
2199 installlibwbclient:: installdirs libwbclient
2200 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2201 -$(INSTALLLIBCMD_SH) bin/libwbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
2202 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2203 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/nsswitch/libwbclient/wbclient.h $(DESTDIR)${prefix}/include
2205 installlibnetapi:: installdirs libnetapi
2206 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2207 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET) $(DESTDIR)$(LIBDIR)
2208 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2209 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2211 installpammodules:: $(PAM_MODULES)
2212 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2213 @for module in $(PAM_MODULES); do \
2214 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2215 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2216 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2217 done
2219 # revert to the previously installed version
2220 revert::
2221 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2222 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2224 installman:: installdirs
2225 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2227 .PHONY: showlayout
2229 showlayout::
2230 @echo "Samba will be installed into:"
2231 @echo " prefix: $(prefix)"
2232 @echo " bindir: $(BINDIR)"
2233 @echo " sbindir: $(SBINDIR)"
2234 @echo " libdir: $(LIBDIR)"
2235 @echo " vardir: $(VARDIR)"
2236 @echo " mandir: $(MANDIR)"
2237 @echo " privatedir: $(PRIVATE_DIR)"
2238 @echo " configdir: $(CONFIGDIR)"
2239 @echo " lockdir: $(LOCKDIR)"
2240 @echo " piddir: $(PIDDIR)"
2241 @echo " swatdir: $(SWATDIR)"
2244 uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSSPNEGO@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibtalloc uninstalllibtdb @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@ uninstalllibnetapi
2246 uninstallman::
2247 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2249 uninstallservers::
2250 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2252 uninstallbin::
2253 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2255 uninstallcifsmount::
2256 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2258 uninstallcifsspnego::
2259 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
2261 uninstallmodules::
2262 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2263 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2264 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2265 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2266 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2267 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2268 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2270 uninstallscripts::
2271 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2273 uninstalldat::
2274 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2276 uninstallmsg::
2277 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2279 uninstallswat:: uninstallmsg
2280 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2282 uninstallclientlib::
2283 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbclient.@SHLIBEXT@
2284 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbclient.a
2285 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2287 uninstalllibsmbsharemodes::
2288 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.@SHLIBEXT@
2289 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.a
2291 uninstalllibaddns::
2292 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libaddns.@SHLIBEXT@
2293 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libaddns.a
2295 uninstalllibnetapi::
2296 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libnetapi.@SHLIBEXT@
2297 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libnetapi.a
2298 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2300 uninstallpammodules::
2301 @for module in $(PAM_MODULES); do \
2302 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2303 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2304 done
2306 # Toplevel clean files
2307 TOPFILES=dynconfig.o
2309 clean::
2310 -rm -f include/build_env.h
2311 -rm -f smbd/build_options.c
2312 -rm -f $(PRECOMPILED_HEADER)
2313 -rm -f core */*~ *~ \
2314 */*.o */*/*.o */*/*/*.o \
2315 ../testsuite/*/*.o \
2316 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2317 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2318 $(MODULES) $(TORTURE_PROGS) \
2319 $(LIBTALLOC) $(LIBSMBCLIENT) $(LIBADDNS) \
2320 $(LIBSMBSHAREMODES) $(EVERYTHING_PROGS) $(LIBNETAPI) \
2321 bin/libwbclient.so.0 bin/timelimit \
2322 .headers.stamp */src/*.o \
2323 $(LIBTDB_SYMS)
2324 -rm -rf t_dir
2326 include/build_env.h: script/build_env.sh
2327 @echo Building include/build_env.h
2328 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2329 > $(builddir)/include/build_env.h
2331 proto::
2332 @echo
2333 @echo "NOTE: 'proto' is no longer a valid make target as proto.h"
2334 @echo "and other prototype headers are not generated anymore."
2335 @echo
2337 .PHONY: proto
2339 etags:
2340 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2342 ctags:
2343 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2345 realclean:: clean delheaders
2346 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2347 -rm -f script/installbin.sh script/uninstallbin.sh
2349 distclean:: realclean
2350 -rm -f smbadduser
2351 -rm -f include/config.h Makefile
2352 -rm -f config.status config.cache so_locations
2353 -rm -rf .deps TAGS
2355 realdistclean:: distclean
2356 -rm -f include/config.h.in
2357 -rm -f include/version.h
2358 -rm -f configure
2360 # this target is really just for my use. It only works on a limited
2361 # range of machines and is used to produce a list of potentially
2362 # dead (ie. unused) functions in the code. (tridge)
2363 finddead::
2364 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2365 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2366 comm -13 nmused.txt nmfns.txt
2369 # when configure.in is updated, reconfigure
2370 $(srcdir)/configure: $(srcdir)/configure.in
2371 @echo "WARNING: you need to rerun ./autogen.sh"
2373 config.status: $(srcdir)/configure
2374 @echo "WARNING: you need to run ./configure"
2376 Makefile: $(srcdir)/Makefile.in config.status
2377 @echo "WARNING: you need to run ./config.status"
2379 ######################################################################
2380 # Samba Testing Framework
2382 # Check shared libs for unresolved symbols
2383 test_shlibs:: $(SHLIBS)
2384 @echo "Testing $(SHLIBS) "
2385 @export $(LIB_PATH_VAR)=./bin && \
2386 for module in $(SHLIBS); do \
2387 ./script/tests/dlopen.sh bin/$${module}.@SHLIBEXT@ \
2388 || exit 1; \
2389 done
2391 # Check for NSS module problems.
2392 test_nss_modules:: nss_modules
2393 @echo "Testing $(NSS_MODULES) "
2394 @export $(LIB_PATH_VAR)=./bin && \
2395 for module in $(NSS_MODULES); do \
2396 ./script/tests/dlopen.sh $${module} \
2397 || exit 1; \
2398 done
2400 # Check for PAM module problems. Specifically, check that every module we
2401 # built can actually be loaded by a minimal PAM-aware application.
2402 test_pam_modules:: pam_modules
2403 @echo "Testing $(PAM_MODULES) "
2404 @export $(LIB_PATH_VAR)=./bin && \
2405 for module in $(PAM_MODULES); do \
2406 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2407 || exit 1; \
2408 done
2412 ## Targets for 'make test'
2414 test:: all torture timelimit
2415 @echo Running Test suite
2416 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2418 valgrindtest:: all torture timelimit
2419 @echo Running Test suite with valgrind
2420 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2421 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2422 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2423 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2424 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2425 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"