Fix bug 5691: SIGBUS on Solaris
[Samba.git] / source / Makefile.in
blob3573ead773b7a9c4d1c83e67293f25b2f460575f
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 smbtorture4_path=@smbtorture4_path@
22 LIBS=@LIBS@
23 CC=@CC@
24 SHLD=@SHLD@
25 LIB_PATH_VAR=@LIB_PATH_VAR@
27 ## Dynamic shared libraries build settings
28 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
29 DSO_EXPORTS=@DSO_EXPORTS@
30 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
32 # The MODULE_EXPORTS variable contains the platform-specific linker flags
33 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
34 MODULE_EXPORTS=@MODULE_EXPORTS@
36 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
37 # (GCC) warnings. This is done automtically for --enable-developer
38 # and --enable-krb5developer.
39 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
40 CFLAGS=@CFLAGS@
41 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
43 EXEEXT=@EXEEXT@
44 AR=@AR@
45 LDSHFLAGS=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
46 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
48 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
49 AWK=@AWK@
50 PICFLAG=@PICFLAG@
51 DYNEXP=@DYNEXP@
52 PERL=@PERL@
54 PIDL_ARGS=@PIDL_ARGS@
56 TERMLDFLAGS=@TERMLDFLAGS@
57 TERMLIBS=@TERMLIBS@
58 PRINT_LIBS=@PRINT_LIBS@
59 AUTH_LIBS=@AUTH_LIBS@
60 ACL_LIBS=@ACL_LIBS@
61 PASSDB_LIBS=@PASSDB_LIBS@
62 IDMAP_LIBS=@IDMAP_LIBS@
63 KRB5LIBS=@KRB5_LIBS@
64 LDAP_LIBS=@LDAP_LIBS@
65 NSCD_LIBS=@NSCD_LIBS@
66 UUID_LIBS=@UUID_LIBS@
67 WINBIND_LIBS=@WINBIND_LIBS@
68 WINBIND_NSS_EXTRA_LIBS=@WINBIND_NSS_EXTRA_LIBS@
69 WINBIND_NSS_PTHREAD=@WINBIND_NSS_PTHREAD@
70 PAM_WINBIND_EXTRA_LIBS=@PAM_WINBIND_EXTRA_LIBS@
71 DNSSD_LIBS=@DNSSD_LIBS@
72 POPT_LIBS=@POPTLIBS@
73 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
74 LIBTDB_LIBS=@LIBTDB_LIBS@
75 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
77 INSTALLCMD=@INSTALL@
78 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
79 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
80 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
81 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
83 VPATH=@srcdir@
84 srcdir=@abs_srcdir@
85 builddir=@abs_builddir@
86 SHELL=/bin/sh
87 DESTDIR=/
89 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
90 # will search for a POSIX-compliant shell, and that might not be
91 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
93 # See the autoconf manual "Installation Directory Variables" for a
94 # discussion of the subtle use of these variables.
96 BASEDIR= @prefix@
97 BINDIR = @bindir@
98 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
99 SBINDIR = @sbindir@
100 ROOTSBINDIR = @rootsbindir@
101 LIBDIR = @libdir@
102 INCLUDEDIR=@includedir@
103 PAMMODULESDIR = @pammodulesdir@
104 VFSLIBDIR = $(LIBDIR)/vfs
105 PDBLIBDIR = $(LIBDIR)/pdb
106 RPCLIBDIR = $(LIBDIR)/rpc
107 IDMAPLIBDIR = $(LIBDIR)/idmap
108 NSSINFOLIBDIR = $(LIBDIR)/nss_info
109 CHARSETLIBDIR = $(LIBDIR)/charset
110 AUTHLIBDIR = $(LIBDIR)/auth
111 CONFIGLIBDIR = $(LIBDIR)/config
112 CONFIGDIR = @configdir@
113 VARDIR = @localstatedir@
114 MANDIR = @mandir@
115 DATADIR = @datadir@
117 # The permissions to give the executables and other data
118 INSTALLPERMS_BIN = 0755
119 INSTALLPERMS_DATA = 0644
121 # set these to where to find various files
122 # These can be overridden by command line switches (see smbd(8))
123 # or in smb.conf (see smb.conf(5))
124 LOGFILEBASE = @logfilebase@
125 CONFIGFILE = $(CONFIGDIR)/smb.conf
126 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
127 CTDBDIR = @ctdbdir@
129 # This is where smbpasswd et al go
130 PRIVATEDIR = @privatedir@
132 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
133 PRIVATE_DIR = $(PRIVATEDIR)
135 # This is where SWAT images and help files go
136 SWATDIR = @swatdir@
138 # the directory where lock files go
139 LOCKDIR = @lockdir@
141 # FHS directories; equal to LOCKDIR if not using --with-fhs
142 CACHEDIR = @cachedir@
143 STATEDIR = @statedir@
145 # Where to look for (and install) codepage databases.
146 CODEPAGEDIR = @codepagedir@
148 # the directory where pid files go
149 PIDDIR = @piddir@
151 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
152 FLAGS2 =
153 FLAGS3 =
154 FLAGS4 = -I$(CTDBDIR)/include
155 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
156 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
158 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
159 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
160 -DCONFIGFILE=\"$(CONFIGFILE)\" \
161 -DSBINDIR=\"$(SBINDIR)\" \
162 -DBINDIR=\"$(BINDIR)\" \
163 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
164 -DSWATDIR=\"$(SWATDIR)\" \
165 -DLOCKDIR=\"$(LOCKDIR)\" \
166 -DPIDDIR=\"$(PIDDIR)\" \
167 -DLIBDIR=\"$(LIBDIR)\" \
168 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
169 -DSHLIBEXT=\"@SHLIBEXT@\" \
170 -DCTDBDIR=\"$(CTDBDIR)\" \
171 -DCONFIGDIR=\"$(CONFIGDIR)\" \
172 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
173 -DCACHEDIR=\"$(CACHEDIR)\" \
174 -DSTATEDIR=\"$(STATEDIR)\"
176 # Note that all executable programs now provide for an optional executable suffix.
178 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
180 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@
182 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
183 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
184 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
185 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
186 bin/tdbtool@EXEEXT@
187 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
188 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
189 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
190 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
191 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
193 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
194 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
195 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
196 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
197 bin/tdbtorture@EXEEXT@ \
198 bin/smbconftort@EXEEXT@
200 BIN_PROGS = @EXTRA_BIN_PROGS@ \
201 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
203 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
204 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
205 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
206 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@
208 PAM_MODULES = @PAM_MODULES@
210 NSS_MODULES = @NSS_MODULES@
212 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
214 VFS_MODULES = @VFS_MODULES@
215 PDB_MODULES = @PDB_MODULES@
216 RPC_MODULES = @RPC_MODULES@
217 IDMAP_MODULES = @IDMAP_MODULES@
218 CHARSET_MODULES = @CHARSET_MODULES@
219 AUTH_MODULES = @AUTH_MODULES@
220 NSS_INFO_MODULES = @NSS_INFO_MODULES@
221 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
222 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES)
224 ######################################################################
225 # object file lists
226 ######################################################################
228 TDB_OBJ = lib/util_tdb.o \
229 lib/dbwrap.o lib/dbwrap_tdb.o \
230 lib/dbwrap_tdb2.o lib/dbwrap_ctdb.o \
231 lib/dbwrap_rbt.o @LIBTDB_STATIC@
233 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
235 VERSION_OBJ = lib/version.o
237 WBCOMMON_OBJ = nsswitch/wb_common.o
239 AFS_OBJ = lib/afs.o
241 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
243 SERVER_MUTEX_OBJ = lib/server_mutex.o
245 PASSCHANGE_OBJ = libsmb/passchange.o
248 LIBNDR_OBJ = librpc/ndr/ndr_basic.o \
249 librpc/ndr/ndr.o \
250 librpc/ndr/ndr_misc.o \
251 librpc/gen_ndr/ndr_misc.o \
252 librpc/gen_ndr/ndr_security.o \
253 librpc/ndr/ndr_sec_helper.o \
254 librpc/ndr/ndr_string.o \
255 librpc/ndr/sid.o \
256 librpc/ndr/uuid.o
258 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
260 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
261 librpc/gen_ndr/ndr_lsa.o
263 LIBNDR_GEN_OBJ1 = librpc/gen_ndr/ndr_netlogon.o
265 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
266 $(LIBNDR_GEN_OBJ0) \
267 librpc/gen_ndr/ndr_dfs.o \
268 librpc/gen_ndr/ndr_echo.o \
269 librpc/gen_ndr/ndr_winreg.o \
270 librpc/gen_ndr/ndr_initshutdown.o \
271 librpc/gen_ndr/ndr_srvsvc.o \
272 librpc/gen_ndr/ndr_eventlog.o \
273 $(LIBNDR_GEN_OBJ1) \
274 librpc/gen_ndr/ndr_dssetup.o \
275 librpc/gen_ndr/ndr_notify.o \
276 librpc/gen_ndr/ndr_xattr.o \
277 librpc/gen_ndr/ndr_ntsvcs.o
279 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
281 # this includes only the low level parse code, not stuff
282 # that requires knowledge of security contexts
283 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
285 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
286 rpc_client/init_netlogon.o \
287 rpc_client/init_lsa.o \
288 rpc_client/init_srvsvc.o
290 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
292 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
293 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
295 LIBSAMBAUTIL_OBJ = @LIBTALLOC_STATIC@ \
296 $(LIBREPLACE_OBJ) \
297 $(SOCKET_WRAPPER_OBJ) \
298 $(NSS_WRAPPER_OBJ)
300 LIB_WITHOUT_PROTO_OBJ = $(LIBSAMBAUTIL_OBJ) \
301 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
302 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
303 lib/interfaces.o lib/rbtree.o lib/memcache.o \
304 lib/util_transfer_file.o lib/async_req.o \
305 $(TDB_OBJ)
307 LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
308 lib/interface.o lib/md4.o \
309 lib/pidfile.o \
310 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
311 lib/ufc.o lib/genrand.o lib/username.o \
312 lib/util_pw.o lib/access.o lib/smbrun.o \
313 lib/bitmap.o lib/crc32.o lib/dprintf.o \
314 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
315 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
316 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
317 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
318 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
319 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
320 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
321 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
322 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
323 lib/adt_tree.o lib/gencache.o \
324 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
325 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
326 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
327 lib/file_id.o
329 LIB_OBJ = $(LIB_WITHOUT_PROTO_OBJ) $(LIB_WITH_PROTO_OBJ)
331 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
332 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
334 READLINE_OBJ = lib/readline.o
336 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
337 # Be sure to include them into your application
338 POPT_LIB_OBJ = lib/popt_common.o
340 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
341 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
342 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
344 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
346 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
347 libaddns/dnsgss.o libaddns/dnsmarshall.o
348 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ) @LIBTALLOC_STATIC@
350 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
351 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o
352 LIBGPO_OBJ = $(LIBGPO_OBJ0)
354 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
355 libads/sasl.o libads/sasl_wrapping.o \
356 libads/krb5_setpw.o libads/ldap_user.o \
357 libads/ads_struct.o libads/kerberos_keytab.o \
358 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
359 libads/ldap_schema.o libads/util.o libads/ndr.o
361 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
362 librpc/ndr/ndr_krb5pac.o \
363 librpc/gen_ndr/ndr_krb5pac.o
365 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
367 LIBNBT_OBJ = libcli/nbt/nbtname.o \
368 librpc/gen_ndr/ndr_nbt.o \
369 librpc/gen_ndr/ndr_svcctl.o
371 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
372 libsmb/namequery.o libsmb/conncache.o libads/dns.o
374 NTERR_OBJ = libsmb/nterr.o
375 DOSERR_OBJ = libsmb/doserr.o
376 ERRORMAP_OBJ = libsmb/errormap.o
377 DCE_RPC_ERR_OBJ = libsmb/dcerpc_err.o
379 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ) \
380 libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ntlmssp_parse.o
382 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) \
383 $(RPC_PARSE_OBJ1) \
384 $(SECRETS_OBJ)
386 LIBSMB_OBJ0 = \
387 libsmb/ntlm_check.o \
388 libsmb/ntlmssp.o \
389 libsmb/ntlmssp_sign.o
391 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
392 $(LIBSMB_ERR_OBJ)
394 CLDAP_OBJ = libads/cldap.o
396 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
397 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
398 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
399 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
400 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
401 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
402 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
403 libsmb/clioplock.o libsmb/clirap2.o \
404 libsmb/smb_seal.o libsmb/async_smb.o \
405 $(LIBSAMBA_OBJ) \
406 $(LIBNMB_OBJ) \
407 $(LIBNBT_OBJ) \
408 $(CLDAP_OBJ)
410 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
412 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
413 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
414 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
415 rpc_client/cli_svcctl.o \
416 rpc_client/init_samr.o
418 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
419 librpc/gen_ndr/cli_dfs.o \
420 librpc/gen_ndr/cli_echo.o \
421 librpc/gen_ndr/cli_srvsvc.o \
422 librpc/gen_ndr/cli_svcctl.o \
423 librpc/gen_ndr/cli_winreg.o \
424 librpc/gen_ndr/cli_initshutdown.o \
425 librpc/gen_ndr/cli_eventlog.o \
426 librpc/gen_ndr/cli_wkssvc.o \
427 librpc/gen_ndr/cli_netlogon.o \
428 librpc/gen_ndr/cli_samr.o \
429 librpc/gen_ndr/cli_dssetup.o \
430 librpc/gen_ndr/cli_ntsvcs.o \
431 $(LIBNDR_GEN_OBJ) \
432 $(RPCCLIENT_NDR_OBJ)
435 # registry-related objects
437 UTIL_REG_OBJ = lib/util_reg.o
438 UTIL_REG_API_OBJ = lib/util_reg_api.o
440 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
441 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
442 REG_INIT_FULL_OBJ = registry/reg_init_full.o
444 REGFIO_OBJ = registry/regfio.o
446 REGOBJS_OBJ = registry/reg_objects.o
448 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
450 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
452 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
453 registry/reg_backend_shares.o \
454 registry/reg_backend_netlogon_params.o \
455 registry/reg_backend_prod_options.o \
456 registry/reg_backend_tcpip_params.o \
457 registry/reg_backend_hkpt_params.o \
458 registry/reg_backend_current_version.o \
459 registry/reg_backend_perflib.o
461 REG_BASE_OBJ = registry/reg_api.o \
462 registry/reg_dispatcher.o \
463 registry/reg_cachehook.o \
464 $(REGFIO_OBJ) \
465 $(REGOBJS_OBJ) \
466 registry/reg_util.o \
467 $(UTIL_REG_API_OBJ) \
468 lib/util_nttoken.o \
469 $(REG_BACKENDS_BASE_OBJ) \
470 $(REG_INIT_BASIC_OBJ)
472 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
473 $(REG_BACKENDS_SMBCONF_OBJ) \
474 $(REG_INIT_SMBCONF_OBJ)
476 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
477 $(REG_BACKENDS_EXTRA_OBJ) \
478 $(REG_INIT_FULL_OBJ) \
479 registry/reg_eventlog.o \
480 registry/reg_perfcount.o \
481 registry/reg_util_legacy.o
484 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
486 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
487 librpc/gen_ndr/srv_netlogon.o
489 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
490 rpc_server/srv_samr_util.o \
491 librpc/gen_ndr/srv_samr.o
493 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
495 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
496 librpc/gen_ndr/srv_winreg.o
498 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
500 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
501 librpc/gen_ndr/srv_srvsvc.o
503 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
505 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
506 librpc/gen_ndr/srv_svcctl.o \
507 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
508 services/svc_netlogon.o services/svc_winreg.o \
509 services/svc_wins.o
511 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o \
512 librpc/gen_ndr/srv_ntsvcs.o
514 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
516 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
518 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
519 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
521 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
522 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
524 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
526 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
528 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \
529 rpc_parse/parse_spoolss.o \
530 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
531 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o
533 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
535 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
537 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
539 PRIVILEGES_OBJ = lib/privileges.o
541 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
543 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
544 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
545 passdb/util_unixsids.o passdb/lookup_sid.o \
546 passdb/login_cache.o @PDB_STATIC@ \
547 lib/account_pol.o $(PRIVILEGES_OBJ) \
548 lib/util_nscd.o lib/winbind_util.o
550 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
551 CP850_OBJ = modules/CP850.o
552 CP437_OBJ = modules/CP437.o
553 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
555 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
557 PROFILE_OBJ = profile/profile.o
558 PROFILES_OBJ = utils/profiles.o \
559 $(LIBSAMBA_OBJ) \
560 $(PARAM_OBJ) \
561 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
562 $(POPT_LIB_OBJ)
564 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
566 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
568 VFS_DEFAULT_OBJ = modules/vfs_default.o
569 VFS_AUDIT_OBJ = modules/vfs_audit.o
570 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
571 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
572 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
573 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
574 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
575 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
576 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
577 VFS_CAP_OBJ = modules/vfs_cap.o
578 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
579 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
580 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
581 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
582 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
583 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
584 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
585 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
586 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
587 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
588 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
589 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
590 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
591 VFS_CATIA_OBJ = modules/vfs_catia.o
592 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
593 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
594 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
595 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
596 VFS_COMMIT_OBJ = modules/vfs_commit.o
597 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
598 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
599 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
600 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
601 VFS_FILEID_OBJ = modules/vfs_fileid.o
602 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
603 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
604 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
606 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
608 SLCACHE_OBJ = libsmb/samlogon_cache.o
610 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
612 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
613 AUTH_DOMAIN_OBJ = auth/auth_domain.o
614 AUTH_SAM_OBJ = auth/auth_sam.o
615 AUTH_SERVER_OBJ = auth/auth_server.o
616 AUTH_UNIX_OBJ = auth/auth_unix.o
617 AUTH_WINBIND_OBJ = auth/auth_winbind.o
618 AUTH_SCRIPT_OBJ = auth/auth_script.o
620 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
621 auth/auth_compat.o auth/auth_ntlmssp.o \
622 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
624 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
626 SMBD_OBJ_MAIN = smbd/server.o
628 BUILDOPT_OBJ = smbd/build_options.o
630 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
631 smbd/utmp.o smbd/session.o smbd/map_username.o \
632 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
633 smbd/share_access.o smbd/fileio.o \
634 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
635 smbd/message.o smbd/nttrans.o smbd/pipes.o \
636 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
637 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
638 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
639 smbd/vfs.o smbd/statcache.o smbd/seal.o \
640 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
641 smbd/process.o smbd/service.o smbd/error.o \
642 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
643 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
644 smbd/change_trust_pw.o smbd/fake_file.o \
645 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
646 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
647 smbd/dmapi.o \
648 smbd/file_access.o \
649 smbd/dnsregister.o \
650 $(MANGLE_OBJ) @VFS_STATIC@
652 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
653 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
654 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
655 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
656 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
657 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
658 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
659 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
660 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
661 $(LIBSMBCONF_OBJ) \
662 $(PRIVILEGES_BASIC_OBJ)
664 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
665 printing/print_cups.o printing/print_generic.o \
666 printing/lpq_parse.o printing/load.o \
667 printing/print_iprint.o
669 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
670 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
672 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
674 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
675 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
676 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
677 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
678 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
679 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
680 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
681 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
682 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
683 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
684 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
685 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
687 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
688 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
689 $(LIBNDR_GEN_OBJ0)
691 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
692 web/swat.o web/neg_lang.o
694 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
695 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(KRBCLIENT_OBJ) \
696 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
697 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
698 $(PASSCHANGE_OBJ) $(LDB_OBJ)
700 STATUS_OBJ = utils/status.o utils/status_profile.o \
701 $(LOCKING_OBJ) $(PARAM_OBJ) \
702 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
703 $(LIBSAMBA_OBJ)
705 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
706 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
707 $(LIBSAMBA_OBJ) \
708 $(PRINTBASE_OBJ)
710 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
711 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
712 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
713 rpc_client/cli_pipe.o $(RPC_PARSE_OBJ2) \
714 $(RPC_CLIENT_OBJ1) \
715 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
716 $(LIBMSRPC_GEN_OBJ)
718 TESTPARM_OBJ = utils/testparm.o \
719 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
720 $(LIBSAMBA_OBJ)
722 PASSWD_UTIL_OBJ = utils/passwd_util.o
724 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
725 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
726 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
727 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
728 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
730 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
731 $(LIBSAMBA_OBJ) \
732 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
733 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
734 $(LDB_OBJ)
736 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
738 DISPLAY_SEC_OBJ= lib/display_sec.o
740 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
741 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
742 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
743 rpcclient/cmd_dfs.o \
744 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
745 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
746 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
747 $(DISPLAY_SEC_OBJ)
749 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
750 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
751 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
752 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
753 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
754 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
756 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
757 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
759 LIBSMBCLIENT_OBJ0 = \
760 libsmb/libsmb_cache.o \
761 libsmb/libsmb_compat.o \
762 libsmb/libsmb_context.o \
763 libsmb/libsmb_dir.o \
764 libsmb/libsmb_file.o \
765 libsmb/libsmb_misc.o \
766 libsmb/libsmb_path.o \
767 libsmb/libsmb_printjob.o \
768 libsmb/libsmb_server.o \
769 libsmb/libsmb_stat.o \
770 libsmb/libsmb_xattr.o \
771 libsmb/libsmb_setget.o
773 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
774 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
775 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
776 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
777 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
779 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
781 # This shared library is intended for linking with unit test programs
782 # to test Samba internals. It's called libbigballofmud.so to
783 # discourage casual usage.
785 LIBBIGBALLOFMUD_MAJOR = 0
787 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
788 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
789 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
791 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
792 client/dnsbrowse.o \
793 $(RPC_CLIENT_OBJ1) \
794 $(RPC_PARSE_OBJ2)
796 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
797 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
798 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
799 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
800 $(DISPLAY_SEC_OBJ)
802 LIBSMBCONF_OBJ = lib/smbconf/smbconf.o lib/smbconf/smbconf_util.o \
803 lib/smbconf/smbconf_reg.o \
804 lib/smbconf/smbconf_txt.o \
805 lib/smbconf/smbconf_init.o
807 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
809 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
810 $(LIB_NONSMBD_OBJ) \
811 $(PARAM_OBJ) \
812 $(LIBSMB_ERR_OBJ) \
813 $(POPT_LIB_OBJ)
815 LIBNET_OBJ = libnet/libnet_join.o \
816 libnet/libnet_samsync.o \
817 librpc/gen_ndr/ndr_libnet_join.o
819 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
820 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
821 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
822 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
823 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
824 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
825 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
826 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
827 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
828 utils/net_conf.o \
829 utils/net_registry.o \
830 auth/token_util.o utils/net_dom.o
832 # these are not processed by make proto
833 NET_OBJ2 = utils/net_registry_util.o
835 NET_OBJ = $(NET_OBJ1) \
836 $(NET_OBJ2) \
837 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
838 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
839 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
840 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
841 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
842 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
843 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
844 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
845 $(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
846 $(LIBSMBCONF_OBJ) \
847 @LIBWBCLIENT_STATIC@ \
848 $(PRIVILEGES_BASIC_OBJ)
850 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
851 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
852 $(LIBNDR_GEN_OBJ0)
854 CIFS_MOUNT_OBJ = client/mount.cifs.o
856 CIFS_UMOUNT_OBJ = client/umount.cifs.o
858 CIFS_UPCALL_OBJ = client/cifs.upcall.o
860 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
861 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
863 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
864 torture/denytest.o torture/mangle_test.o
866 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
867 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
868 $(LIBNDR_GEN_OBJ0)
870 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
871 $(LIB_NONSMBD_OBJ) \
872 $(LIBNDR_GEN_OBJ0)
874 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
875 $(LIB_NONSMBD_OBJ) \
876 $(LIBNDR_GEN_OBJ0)
878 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
879 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
880 $(LIBNDR_GEN_OBJ0)
882 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
883 $(LIB_NONSMBD_OBJ) \
884 $(LIBNDR_GEN_OBJ0)
886 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
887 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
888 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
889 $(LIBNDR_GEN_OBJ0)
891 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
893 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
895 LOG2PCAP_OBJ = utils/log2pcaphex.o
897 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
898 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
899 $(LIBNDR_GEN_OBJ0)
901 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
902 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
903 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
904 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
906 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
907 $(PARAM_OBJ) \
908 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
909 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
910 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
912 EVTLOGADM_OBJ0 = utils/eventlogadm.o
914 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
915 $(LIBSAMBA_OBJ) \
916 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
918 SHARESEC_OBJ0 = utils/sharesec.o
919 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
920 $(LIBSAMBA_OBJ) \
921 $(POPT_LIB_OBJ)
923 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
924 $(LIBSAMBA_OBJ)
926 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
927 lib/replace/test/getifaddrs.o \
928 lib/replace/test/os2_delete.o \
929 lib/replace/test/strptime.o \
930 $(LIBREPLACE_OBJ)
932 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
933 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
934 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
935 librpc/gen_ndr/ndr_svcctl.o
937 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
939 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
940 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
941 $(LIBNDR_GEN_OBJ0)
943 PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
944 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(LIBSMB_OBJ) \
945 $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
946 $(LIBMSRPC_OBJ) \
947 $(LIB_WITH_PROTO_OBJ) \
948 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
949 $(AUTH_OBJ) $(PARAM_WITHOUT_REG_OBJ) $(LOCKING_OBJ) \
950 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
951 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
952 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
953 $(AUTH_SAM_OBJ) $(REG_FULL_OBJ) $(POPT_LIB_OBJ) \
954 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_DSSETUP_OBJ) \
955 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
956 $(RPC_ECHO_OBJ) $(RPC_SVCCTL_OBJ) $(RPC_EVENTLOG_OBJ) $(SMBLDAP_OBJ) \
957 $(IDMAP_OBJ) libsmb/spnego.o $(PASSCHANGE_OBJ) \
958 $(RPC_NTSVCS_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
959 utils/passwd_util.o $(LIBGPO_OBJ) $(NSS_INFO_OBJ) \
960 $(RPCCLIENT_NDR_OBJ) \
961 $(PRIVILEGES_BASIC_OBJ)
963 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
964 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
965 $(LIBNDR_GEN_OBJ0)
967 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
968 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
969 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
970 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
971 $(LDB_OBJ)
973 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
975 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
977 WINBINDD_OBJ1 = \
978 winbindd/winbindd.o \
979 winbindd/winbindd_user.o \
980 winbindd/winbindd_group.o \
981 winbindd/winbindd_util.o \
982 winbindd/winbindd_cache.o \
983 winbindd/winbindd_pam.o \
984 winbindd/winbindd_sid.o \
985 winbindd/winbindd_misc.o \
986 winbindd/winbindd_cm.o \
987 winbindd/winbindd_wins.o \
988 winbindd/winbindd_rpc.o \
989 winbindd/winbindd_reconnect.o \
990 winbindd/winbindd_ads.o \
991 winbindd/winbindd_passdb.o \
992 winbindd/winbindd_dual.o \
993 winbindd/winbindd_async.o \
994 winbindd/winbindd_creds.o \
995 winbindd/winbindd_cred_cache.o \
996 winbindd/winbindd_ccache_access.o \
997 winbindd/winbindd_domain.o \
998 winbindd/winbindd_idmap.o \
999 winbindd/winbindd_locator.o \
1000 winbindd/winbindd_ndr.o \
1001 auth/token_util.o \
1002 smbd/connection.o
1004 WINBINDD_OBJ = \
1005 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1006 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1007 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1008 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1009 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1010 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1011 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1012 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
1014 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1015 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1016 lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@
1018 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1020 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1021 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1022 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1023 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1024 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1026 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1027 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1028 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1030 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1031 lib/ldb/modules/objectclass.o \
1032 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1034 # enabled in configure.in
1035 LDB_LDAP_OBJ=@LDBLDAP@
1037 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1039 LDB_CMDLINE_OBJ = $(PARAM_OBJ) \
1040 $(POPT_LIB_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) $(LIBSMB_ERR_OBJ0) \
1041 $(RPC_PARSE_OBJ1) $(SECRETS_OBJ) \
1042 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1045 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1046 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1047 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1048 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1049 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1051 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1052 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
1054 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1055 popt/popthelp.o popt/poptparse.o
1057 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1058 iniparser_build/strlib.o
1060 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1061 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1063 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1064 $(SOCKET_WRAPPER_OBJ)
1066 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1067 $(SOCKET_WRAPPER_OBJ)
1069 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1070 $(SOCKET_WRAPPER_OBJ)
1073 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1075 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1076 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1077 $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1078 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1079 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1080 $(LDB_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1081 $(LIBNDR_GEN_OBJ0) $(LIBNDR_GEN_OBJ1)
1084 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ)
1086 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1087 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1088 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1089 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1090 $(DISPLAY_SEC_OBJ)
1092 ######################################################################
1093 # now the rules...
1094 ######################################################################
1095 all:: SHOWFLAGS libs $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1096 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1098 nss_modules:: $(NSS_MODULES)
1100 pam_modules:: $(PAM_MODULES)
1102 pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1104 pam_winbind : SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1106 torture:: SHOWFLAGS $(TORTURE_PROGS)
1108 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1110 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1112 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1114 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1116 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1118 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1120 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1122 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1124 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1126 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1128 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1130 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1132 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1134 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1136 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1138 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1139 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1140 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1142 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1144 modules:: SHOWFLAGS $(MODULES)
1146 #####################################################################
1147 ## Perl IDL Compiler
1148 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1149 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1150 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1151 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl
1153 idl::
1154 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1155 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1158 #####################################################################
1161 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1162 $(EVERYTHING_PROGS)
1164 .SUFFIXES:
1165 .SUFFIXES: .c .o .lo
1167 SHOWFLAGS::
1168 @echo "Using FLAGS = $(FLAGS)"
1169 @echo " PICFLAG = $(PICFLAG)"
1170 @echo " LIBS = $(LIBS)"
1171 @echo " LDFLAGS = $(LDFLAGS)"
1172 @echo " DYNEXP = $(DYNEXP)"
1173 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1174 @echo " SHLIBEXT = @SHLIBEXT@"
1175 @echo " SONAMEFLAG = @SONAMEFLAG@"
1177 MAKEDIR = || exec false; \
1178 if test -d "$$dir"; then :; else \
1179 echo mkdir "$$dir"; \
1180 mkdir -p "$$dir" >/dev/null 2>&1 || \
1181 test -d "$$dir" || \
1182 mkdir "$$dir" || \
1183 exec false; fi || exec false
1185 # Run a static checker.
1186 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1187 # Compile a source file.
1188 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1189 # Compile a source file with the installation paths defined.
1190 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1192 COMPILE = $(COMPILE_CC)
1194 .c.o:
1195 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1196 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1197 @if test -n "$(CC_CHECKER)"; then \
1198 echo "Checking $*.c with '$(CC_CHECKER)'";\
1199 $(CHECK_CC); \
1201 @echo Compiling $*.c
1202 @$(COMPILE) && exit 0;\
1203 echo "The following command failed:" 1>&2;\
1204 echo "$(COMPILE_CC)" 1>&2;\
1205 $(COMPILE_CC) >/dev/null 2>&1
1206 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1208 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1210 # this adds support for precompiled headers. To use it, install a snapshot
1211 # of gcc-3.4 and run 'make pch' before you do the main build.
1212 pch:: proto_exists
1213 rm -f $(PRECOMPILED_HEADER)
1214 $(MAKE) $(PRECOMPILED_HEADER)
1216 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1217 $(COMPILE)
1219 BINARY_PREREQS = proto_exists bin/.dummy
1221 # These dependencies are only approximately correct: we want to make
1222 # sure Samba's paths are updated if ./configure is re-run. Really it
1223 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1224 # but since we also require "make install prefix=/opt/samba" *not* to
1225 # rebuild it's a bit hard.
1227 dynconfig.o: dynconfig.c Makefile
1228 @echo Compiling $*.c
1229 @$(COMPILE_CC_PATH) && exit 0;\
1230 echo "The following command failed:" 1>&2;\
1231 echo "$(COMPILE_CC_PATH)" 1>&2;\
1232 $(COMPILE_CC_PATH) >/dev/null 2>&1
1234 lib/pidfile.o: lib/pidfile.c
1235 @echo Compiling $*.c
1236 @$(COMPILE_CC_PATH) && exit 0;\
1237 echo "The following command failed:" 1>&2;\
1238 echo "$(COMPILE_CC_PATH)" 1>&2;\
1239 $(COMPILE_CC_PATH) >/dev/null 2>&1
1241 lib/version.o: lib/version.c include/version.h
1242 @echo Compiling $*.c
1243 @$(COMPILE_CC_PATH) && exit 0;\
1244 echo "The following command failed:" 1>&2;\
1245 echo "$(COMPILE_CC_PATH)" 1>&2;\
1246 $(COMPILE_CC_PATH) >/dev/null 2>&1
1248 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1249 @echo Compiling $*.c
1250 @$(COMPILE_CC_PATH) && exit 0;\
1251 echo "The following command failed:" 1>&2;\
1252 echo "$(COMPILE_CC_PATH)" 1>&2;\
1253 $(COMPILE_CC_PATH) >/dev/null 2>&1
1255 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1256 @echo Generating $@
1257 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1259 bin/.dummy:
1260 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1261 dir=bin $(MAKEDIR); fi
1262 @: >> $@ || : > $@ # what a fancy emoticon!
1264 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1265 @echo Linking $@
1266 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1267 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1268 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1269 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1270 $(WINBIND_LIBS)
1272 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1273 @echo Linking $@
1274 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1275 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1276 $(KRB5LIBS) $(LDAP_LIBS)
1278 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1279 @echo Linking $@
1280 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1281 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1282 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1284 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1285 @echo Linking $@
1286 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1287 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1288 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1289 $(WINBIND_LIBS)
1291 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1292 @echo Linking $@
1293 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1294 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1295 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1296 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1298 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1299 @echo Linking $@
1300 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1301 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1302 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1303 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBNETAPI_LIBS)
1305 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1306 @echo Linking $@
1307 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1308 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1310 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1311 @echo Linking $@
1312 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1313 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1315 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1316 @echo Linking $@
1317 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1319 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1320 @echo Linking $@
1321 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1323 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1324 @echo Linking $@
1325 @$(CC) $(FLAGS) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1326 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ1) $(KRB5LIBS) \
1327 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(WINBIND_LIBS) \
1328 $(LIBTDB_LIBS) $(NSCD_LIBS)
1330 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1331 @echo Linking $@
1332 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1333 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1335 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1336 @echo Linking $@
1337 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1338 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1340 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1341 @echo Linking $@
1342 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1343 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1344 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1345 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1347 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1348 @echo Linking $@
1349 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1350 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1351 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1353 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1354 @echo Linking $@
1355 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1356 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1357 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1359 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1360 @echo Linking $@
1361 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1362 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1363 $(LIBTDB_LIBS) $(WINBIND_LIBS)
1365 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1366 @echo Linking $@
1367 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1368 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1369 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1371 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1372 @echo Linking $@
1373 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1374 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1376 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1377 @echo Linking $@
1378 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1379 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1380 $(LIBTDB_LIBS)
1382 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1383 @echo Linking $@
1384 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1385 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1386 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1388 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1389 @echo Linking $@
1390 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1391 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1393 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1394 @echo Linking $@
1395 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1396 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1397 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1399 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1400 @echo Linking $@
1401 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1402 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1403 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1405 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1406 @echo Linking $@
1407 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1408 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1409 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1411 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1412 @echo Linking $@
1413 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1414 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1415 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1417 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1418 @echo Linking $@
1419 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1420 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1421 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1423 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1424 @echo Linking $@
1425 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1426 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1428 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1429 @echo Linking $@
1430 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1431 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1433 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1434 @echo Linking $@
1435 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1436 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1437 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1439 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1440 @echo Linking $@
1441 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1442 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1443 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1445 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1446 @echo Linking $@
1447 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1448 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1449 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1451 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1452 @echo Linking $@
1453 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1454 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1455 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1456 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1457 $(WINBIND_LIBS)
1459 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1460 @echo Linking $@
1461 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1462 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1463 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1465 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1466 @echo Linking $@
1467 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1468 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1470 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1471 @echo Linking $@
1472 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1473 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1474 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1476 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1477 @echo Linking $@
1478 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1479 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1481 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1482 @echo Linking $@
1483 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1484 $(LIBS) $(LIBTALLOC_LIBS)
1486 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1487 @echo Linking $@
1488 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1489 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1490 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1492 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1493 @echo Linking $@
1494 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1495 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1496 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1498 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1499 @echo Linking $@
1500 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1501 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1502 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1504 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1505 @echo Linking $@
1506 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1507 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1508 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1510 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1511 @echo Linking $@
1512 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1513 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1514 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1516 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1517 @echo Linking $@
1518 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1519 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1520 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1523 #####################################################################
1525 # libraries
1527 #####################################################################
1529 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1532 #-------------------------------------------------------------------
1534 # libtalloc
1536 #-------------------------------------------------------------------
1538 TALLOC_OBJ = @TALLOC_OBJS@
1540 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
1541 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1543 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1544 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1545 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1546 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1547 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
1548 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1549 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1551 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1552 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1554 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1555 @echo Linking shared library $@
1556 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1558 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1559 @rm -f $@
1560 @ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1562 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1563 @echo Linking non-shared library $@
1564 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1566 libtalloc: $(LIBTALLOC)
1568 cleanlibtalloc::
1569 -rm -f \
1570 $(LIBTALLOC_SYMS) \
1571 $(LIBTALLOC_STATIC_TARGET) \
1572 $(LIBTALLOC_SHARED_TARGET) \
1573 $(LIBTALLOC_SHARED_TARGET_SONAME)
1575 installlibtalloc:: installdirs libtalloc
1576 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1577 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1578 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1579 -if test -e $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1580 ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1581 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1583 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1584 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1585 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1587 uninstalllibtalloc::
1588 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1589 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1590 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1591 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1593 libs:: libtalloc
1594 installlibs:: @INSTALL_LIBTALLOC@
1595 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1596 cleanlibs:: cleanlibtalloc
1597 shlibs test_shlibs: @LIBTALLOC_SHARED@
1599 #-------------------------------------------------------------------
1601 # libtdb
1603 #-------------------------------------------------------------------
1605 LIBTDB_OBJ0 = @TDB_OBJS@
1606 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1608 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1609 LIBTDB_SOVER=@LIBTDB_SOVER@
1610 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1611 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1612 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
1613 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1614 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1616 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1617 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1619 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1620 @echo Linking shared library $@
1621 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1622 @SONAMEFLAG@`basename $@`
1624 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1625 @rm -f $@
1626 @ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1628 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1629 @echo Linking non-shared library $@
1630 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1632 libtdb: $(LIBTDB)
1634 cleanlibtdb::
1635 -rm -f \
1636 $(LIBTDB_SYMS) \
1637 $(LIBTDB_STATIC_TARGET) \
1638 $(LIBTDB_SHARED_TARGET) \
1639 $(LIBTDB_SHARED_TARGET_SONAME)
1642 installlibtdb:: installdirs libtdb
1643 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1644 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1645 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1646 -if test -e $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1647 ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1648 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1650 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1651 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1652 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1654 uninstalllibtdb::
1655 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1656 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1657 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1658 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1660 libs:: libtdb
1661 installlibs:: @INSTALL_LIBTDB@
1662 uninstalllibs:: @UNINSTALL_LIBTDB@
1663 cleanlibs:: cleanlibtdb
1664 shlibs test_shlibs: @LIBTDB_SHARED@
1666 #-------------------------------------------------------------------
1668 # libwbclient
1670 #-------------------------------------------------------------------
1672 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
1673 nsswitch/libwbclient/wbc_util.o \
1674 nsswitch/libwbclient/wbc_pwd.o \
1675 nsswitch/libwbclient/wbc_idmap.o \
1676 nsswitch/libwbclient/wbc_sid.o \
1677 nsswitch/libwbclient/wbc_pam.o
1678 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1679 $(WBCOMMON_OBJ) \
1680 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
1682 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1683 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1684 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1685 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1686 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1687 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1688 LIBWBCLIENT_HEADERS=$(srcdir)/nsswitch/libwbclient/wbclient.h
1690 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1691 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1693 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_SHARED@
1694 @echo Linking shared library $@
1695 @$(SHLD_DSO) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_OBJ) \
1696 @SONAMEFLAG@`basename $@`
1698 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1699 @rm -f $@
1700 @ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1702 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1703 @echo Linking non-shared library $@
1704 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1706 libwbclient: $(LIBWBCLIENT)
1708 cleanlibwbclient::
1709 -rm -f \
1710 $(LIBWBCLIENT_SYMS) \
1711 $(LIBWBCLIENT_STATIC_TARGET) \
1712 $(LIBWBCLIENT_SHARED_TARGET) \
1713 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1715 installlibwbclient:: installdirs libwbclient
1716 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1717 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1718 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1719 -if test -e $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1720 ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1721 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1723 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1724 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1726 uninstalllibwbclient::
1727 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1728 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1729 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1731 libs:: libwbclient
1732 installlibs:: @INSTALL_LIBWBCLIENT@
1733 uninstalllibs:: uninstalllibwbclient
1734 cleanlibs:: cleanlibwbclient
1735 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1738 #-------------------------------------------------------------------
1740 # libaddns
1742 #-------------------------------------------------------------------
1745 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1746 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1747 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1748 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1749 LIBADDNS=$(LIBADDNS_STATIC_TARGET) @LIBADDNS_SHARED@
1750 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1751 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1753 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1754 @echo Linking shared library $@
1755 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1756 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1757 @SONAMEFLAG@`basename $@`
1759 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1760 @rm -f $@
1761 @ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1763 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1764 @echo Linking non-shared library $@
1765 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1767 libaddns: $(LIBADDNS)
1769 cleanlibaddns::
1770 -rm -f \
1771 $(LIBADDNS_SHARED_TARGET) \
1772 $(LIBADDNS_SHARED_TARGET_SONAME) \
1773 $(LIBADDNS_STATIC_TARGET)
1775 installlibaddns:: installdirs libaddns
1776 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1777 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1778 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1779 -if test -e $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1780 ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1781 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1783 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1785 uninstalllibaddns::
1786 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1787 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1788 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
1790 libs:: libaddns
1791 installlibs:: @INSTALL_LIBADDNS@
1792 uninstalllibs:: @UNINSTALL_LIBADDNS@
1793 cleanlibs:: cleanlibaddns
1794 shlibs test_shlibs: @LIBADDNS_SHARED@
1796 #-------------------------------------------------------------------
1798 # libnetapi
1800 #-------------------------------------------------------------------
1802 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
1803 lib/netapi/cm.o \
1804 librpc/gen_ndr/ndr_libnetapi.o \
1805 lib/netapi/libnetapi.o \
1806 lib/netapi/joindomain.o \
1807 lib/netapi/serverinfo.o \
1808 lib/netapi/getdc.o \
1809 lib/netapi/user.o
1811 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
1812 $(LIBSMBCONF_OBJ) \
1813 $(REG_SMBCONF_OBJ) \
1814 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
1815 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1816 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1817 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1818 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ)
1820 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
1821 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
1822 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
1823 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
1824 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
1825 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
1826 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
1828 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
1829 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
1831 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1832 @echo Linking shared library $@
1833 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1834 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1835 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1836 @SONAMEFLAG@`basename $@`
1838 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
1839 @rm -f $@
1840 @ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
1842 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
1843 @echo Linking non-shared library $@
1844 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
1846 libnetapi: $(LIBNETAPI)
1848 cleanlibnetapi::
1849 -rm -f \
1850 $(LIBNETAPI_SYMS) \
1851 $(LIBNETAPI_STATIC_TARGET) \
1852 $(LIBNETAPI_SHARED_TARGET) \
1853 $(LIBNETAPI_SHARED_TARGET_SONAME)
1855 installlibnetapi:: installdirs libnetapi
1856 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1857 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1858 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1859 -if test -e $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
1860 ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
1861 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
1863 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1864 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1865 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
1867 uninstalllibnetapi::
1868 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1869 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
1870 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
1871 -rm -f $(DESTDIR)${prefix}/include/netapi.h
1873 libs:: libnetapi
1874 installlibs:: @INSTALL_LIBNETAPI@
1875 uninstalllibs:: @UNINSTALL_LIBNETAPI@
1876 cleanlibs:: cleanlibnetapi
1877 shlibs test_shlibs: @LIBNETAPI_SHARED@
1879 #-------------------------------------------------------------------
1881 # libsmbclient
1883 #-------------------------------------------------------------------
1885 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
1886 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
1887 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
1888 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
1889 LIBSMBCLIENT=$(LIBSMBCLIENT_STATIC_TARGET) @LIBSMBCLIENT_SHARED@
1890 #LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
1891 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
1893 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1894 @echo Linking shared library $@
1895 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
1896 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1897 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1898 @SONAMEFLAG@`basename $@`
1900 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
1901 @rm -f $@
1902 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
1904 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
1905 @echo Linking non-shared library $@
1906 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
1908 libsmbclient: $(LIBSMBCLIENT)
1910 cleanlibsmbclient::
1911 -rm -f \
1912 $(LIBSMBCLIENT_SHARED_TARGET) \
1913 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
1914 $(LIBSMBCLIENT_STATIC_TARGET)
1916 installlibsmbclient:: installdirs libsmbclient
1917 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1918 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1919 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1920 -if test -e $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
1921 ln -s -f `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
1922 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
1924 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1925 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1926 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1928 installclientlib:: installlibsmbclient
1930 uninstalllibsmbclient::
1931 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1932 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
1933 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
1934 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
1936 uninstallclientlib:: uninstalllibsmbclient
1938 libs:: libsmbclient
1939 installlibs:: @INSTALL_LIBSMBCLIENT@
1940 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
1941 cleanlibs:: cleanlibsmbclient
1942 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
1944 #-------------------------------------------------------------------
1946 # libsmbsharemodes
1948 #-------------------------------------------------------------------
1950 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
1952 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0) @LIBTDB_STATIC@
1954 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
1955 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
1956 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
1957 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
1958 LIBSMBSHAREMODES=$(LIBSMBSHAREMODES_STATIC_TARGET) @LIBSMBSHAREMODES_SHARED@
1959 #LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
1960 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
1962 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
1964 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1965 @echo Linking shared library $@
1966 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
1967 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1968 $(KRB5LIBS) $(LDAP_LIBS) \
1969 @SONAMEFLAG@`basename $@`
1971 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
1972 @rm -f $@
1973 @ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
1975 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
1976 @echo Linking non-shared library $@
1977 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
1979 libsmbsharemodes: $(LIBSMBSHAREMODES)
1981 cleanlibsmbsharemodes::
1982 -rm -f \
1983 $(LIBSMBSHAREMODES_SHARED_TARGET) \
1984 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
1985 $(LIBSMBSHAREMODES_STATIC_TARGET)
1987 installlibsmbsharemodes:: installdirs libsmbsharemodes
1988 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1989 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1990 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
1991 -if test -e $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
1992 ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
1993 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
1995 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1996 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1997 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
1999 uninstalllibsmbsharemodes::
2000 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2001 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2002 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2003 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2005 libs:: libsmbsharemodes
2006 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2007 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2008 cleanlibs:: cleanlibsmbsharemodes
2009 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2011 #-------------------------------------------------------------------
2013 # libbigballofmud
2015 #-------------------------------------------------------------------
2017 # This is probably wrong for anything other than the GNU linker.
2018 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
2019 @echo Linking shared library $@
2020 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2021 $(LIBS) $(LIBTALLOC_LIBS) \
2022 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2023 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2024 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2026 # It would be nice to build a static bigballofmud too, but when I try
2027 # I get linker errors about dl_open and similar things. I'm not sure if
2028 # it can be fixed or if they just can't be called from a static
2029 # library.
2033 #####################################################################
2035 # shared modules
2037 #####################################################################
2039 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2040 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2041 -o $@ @SONAMEFLAG@`basename $@`
2043 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2044 @echo "Linking $@"
2045 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2047 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2048 @echo "Linking $@"
2049 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2051 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2052 @echo "Linking $@"
2053 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2055 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2056 @echo "Linking $@"
2057 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2059 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2060 @echo "Linking $@"
2061 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2063 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2064 @echo "Linking $@"
2065 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2067 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2068 @echo "Linking $@"
2069 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2071 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2072 @echo "Linking $@"
2073 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2075 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2076 @echo "Linking $@"
2077 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2079 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2080 @echo "Linking $@"
2081 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2083 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2084 @echo "Linking $@"
2085 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2087 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2088 @echo "Linking $@"
2089 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2091 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2092 @echo "Linking $@"
2093 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2095 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2096 @echo "Linking $@"
2097 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2099 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2100 @echo "Linking $@"
2101 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2102 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2103 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2105 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2106 @echo "Linking $@"
2107 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2108 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2109 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2110 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2112 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2113 @echo "Linking $@"
2114 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2115 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2116 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2118 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2119 @echo "Linking $@"
2120 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2121 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2122 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2124 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
2125 @echo "Linking $@"
2126 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
2127 @SONAMEFLAG@`basename $@`
2129 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
2130 @echo "Linking shared library $@"
2131 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2132 $(PAM_WINBIND_EXTRA_LIBS) @SONAMEFLAG@`basename $@`
2134 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2135 @echo "Building plugin $@"
2136 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2138 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2139 @echo "Building plugin $@"
2140 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2142 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2143 @echo "Building plugin $@"
2144 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2146 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2147 @echo "Building plugin $@"
2148 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2150 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2151 @echo "Building plugin $@"
2152 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2154 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2155 @echo "Building plugin $@"
2156 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2158 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2159 @echo "Building plugin $@"
2160 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2162 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2163 @echo "Building plugin $@"
2164 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2166 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2167 @echo "Building plugin $@"
2168 @$(SHLD_MODULE) passdb/pdb_tdb.o
2170 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2171 @echo "Building plugin $@"
2172 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2174 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2175 @echo "Building plugin $@"
2176 @$(SHLD_MODULE) winbindd/idmap_rid.o
2178 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2179 @echo "Building plugin $@"
2180 @$(SHLD_MODULE) winbindd/idmap_ad.o
2182 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2183 @echo "Building plugin $@"
2184 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2186 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2187 @echo "Building plugin $@"
2188 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2190 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2191 @echo "Building plugin $@"
2192 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2194 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2195 @echo "Building plugin $@"
2196 @$(SHLD_MODULE) $(CP850_OBJ)
2198 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2199 @echo "Building plugin $@"
2200 @$(SHLD_MODULE) $(CP437_OBJ)
2202 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2203 @echo "Building plugin $@"
2204 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2206 # NOTE, there is no build rule for a dynamic default VFS module because
2207 # this one MUST MUST MUST be built statically.
2209 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2210 @echo "Building plugin $@"
2211 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2213 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2214 @echo "Building plugin $@"
2215 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2217 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2218 @echo "Building plugin $@"
2219 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2221 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2222 @echo "Building plugin $@"
2223 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2225 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2226 @echo "Building plugin $@"
2227 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2229 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2230 @echo "Building plugin $@"
2231 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2233 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2234 @echo "Building plugin $@"
2235 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2237 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2238 @echo "Building plugin $@"
2239 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2241 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2242 @echo "Building plugin $@"
2243 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2245 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2246 @echo "Building plugin $@"
2247 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2249 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2250 @echo "Building plugin $@"
2251 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2253 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2254 @echo "Building plugin $@"
2255 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2257 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2258 @echo "Building plugin $@"
2259 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2261 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2262 @echo "Building plugin $@"
2263 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2265 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2266 @echo "Building plugin $@"
2267 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2269 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2270 @echo "Building plugin $@"
2271 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2273 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2274 @echo "Building plugin $@"
2275 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2277 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2278 @echo "Building plugin $@"
2279 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2281 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2282 @echo "Building plugin $@"
2283 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2285 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2286 @echo "Building plugin $@"
2287 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2289 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2290 @echo "Building plugin $@"
2291 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2293 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2294 @echo "Building plugin $@"
2295 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2297 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2298 @echo "Building plugin $@"
2299 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2301 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2302 @echo "Building plugin $@"
2303 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2305 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2306 @echo "Building plugin $@"
2307 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2309 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2310 @echo "Building plugin $@"
2311 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2313 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2314 @echo "Building plugin $@"
2315 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2317 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2318 @echo "Building plugin $@"
2319 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2321 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2322 @echo "Building plugin $@"
2323 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2325 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2326 @echo "Building plugin $@"
2327 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2329 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2330 @echo "Building plugin $@"
2331 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2333 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2334 @echo "Building plugin $@"
2335 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2337 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2338 @echo "Building plugin $@"
2339 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2341 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2342 @echo "Building plugin $@"
2343 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2345 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2346 @echo "Building plugin $@"
2347 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2349 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2350 @echo "Building plugin $@"
2351 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2352 #########################################################
2353 ## IdMap NSS plugins
2355 ## None here right now
2356 #########################################################
2358 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2359 @echo Linking $@
2360 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2361 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2362 $(WINBIND_LIBS)
2364 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2365 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2366 @echo Linking $@
2367 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2368 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2369 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2370 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2372 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2373 @echo "Linking shared library $@"
2374 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2375 $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
2376 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2378 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2379 @echo Linking $@
2380 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2381 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2383 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2384 @echo Linking $@
2385 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2386 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2388 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2389 @echo Linking $@
2390 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2391 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2393 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2394 @echo Linking $@
2395 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2396 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2398 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2399 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2400 torture/t_strcmp.o -L ./bin -lbigballofmud
2402 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2403 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2404 torture/t_strstr.o -L ./bin -lbigballofmud
2406 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2407 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2408 torture/t_strappend.o -L ./bin -lbigballofmud
2410 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2411 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2412 -L./bin -lbigballofmud
2414 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2415 @echo Linking $@
2416 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
2418 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2419 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2420 @INSTALL_PAM_MODULES@ installlibs
2422 install-everything:: install installmodules
2424 # DESTDIR is used here to prevent packagers wasting their time
2425 # duplicating the Makefile. Remove it and you will have the privelege
2426 # of package each samba release for muliple versions of multiple
2427 # distributions and operating systems, or at least supplying patches
2428 # to all the packaging files required for this, prior to committing
2429 # the removal of DESTDIR. Do not remove it even though you think it
2430 # is not used
2432 installdirs::
2433 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
2435 installservers:: all installdirs
2436 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2438 installbin:: all installdirs
2439 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2441 installcifsmount:: @CIFSMOUNT_PROGS@
2442 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2443 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2445 installcifsupcall:: @CIFSUPCALL_PROGS@
2446 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(SBINDIR)
2447 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) @CIFSUPCALL_PROGS@
2449 # Some symlinks are required for the 'probing' of modules.
2450 # This mechanism should go at some point..
2451 installmodules:: modules installdirs
2452 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2453 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2454 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2455 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2456 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2457 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2458 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2459 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2460 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2461 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2462 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2463 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2464 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2465 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2466 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2468 installscripts:: installdirs
2469 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2471 installdat:: installdirs
2472 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2474 installmsg:: installdirs
2475 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2477 installswat:: installdirs installmsg
2478 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2480 installpammodules:: $(PAM_MODULES)
2481 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2482 @for module in $(PAM_MODULES); do \
2483 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2484 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2485 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2486 done
2488 # revert to the previously installed version
2489 revert::
2490 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2491 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2493 installman:: installdirs
2494 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2496 .PHONY: showlayout
2498 showlayout::
2499 @echo "Samba will be installed into:"
2500 @echo " prefix: $(prefix)"
2501 @echo " bindir: $(BINDIR)"
2502 @echo " sbindir: $(SBINDIR)"
2503 @echo " libdir: $(LIBDIR)"
2504 @echo " vardir: $(VARDIR)"
2505 @echo " mandir: $(MANDIR)"
2506 @echo " privatedir: $(PRIVATE_DIR)"
2507 @echo " configdir: $(CONFIGDIR)"
2508 @echo " lockdir: $(LOCKDIR)"
2509 @echo " piddir: $(PIDDIR)"
2510 @echo " swatdir: $(SWATDIR)"
2513 uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2515 uninstallman::
2516 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2518 uninstallservers::
2519 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2521 uninstallbin::
2522 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2524 uninstallcifsmount::
2525 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2527 uninstallcifsupcall::
2528 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2530 uninstallmodules::
2531 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2532 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2533 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2534 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2535 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2536 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2538 uninstallscripts::
2539 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2541 uninstalldat::
2542 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2544 uninstallmsg::
2545 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2547 uninstallswat:: uninstallmsg
2548 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2550 uninstallpammodules::
2551 @for module in $(PAM_MODULES); do \
2552 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2553 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2554 done
2556 # Toplevel clean files
2557 TOPFILES=dynconfig.o
2559 clean:: delheaders cleanlibs
2560 -rm -f $(PRECOMPILED_HEADER)
2561 -rm -f core */*~ *~ \
2562 */*.o */*/*.o */*/*/*.o \
2563 ../testsuite/*/*.o \
2564 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2565 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2566 $(MODULES) $(TORTURE_PROGS) \
2567 $(EVERYTHING_PROGS) \
2568 bin/timelimit \
2569 .headers.stamp */src/*.o proto_exists
2570 -rm -rf t_dir
2572 # Making this target will just make sure that the prototype files
2573 # exist, not necessarily that they are up to date. Since they're
2574 # removed by "make clean" this will always be run when you do anything
2575 # afterwards.
2576 proto_exists:: include/proto.h include/build_env.h \
2577 winbindd/winbindd_proto.h web/swat_proto.h \
2578 libnet/libnet_proto.h \
2579 client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
2580 @touch proto_exists
2582 delheaders::
2583 @echo Removing prototype headers
2584 @rm -f include/proto.h include/build_env.h \
2585 winbindd/winbindd_proto.h web/swat_proto.h \
2586 client/client_proto.h utils/net_proto.h \
2587 smbd/build_options.c utils/ntlm_auth_proto.h \
2588 utils/passwd_proto.h libnet/libnet_proto.h
2590 MKPROTO_SH = $(srcdir)/script/mkproto.sh
2592 include/proto.h: smbd/build_options.c
2593 @echo Building include/proto.h
2594 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2595 -h _PROTO_H_ $(builddir)/include/proto.h \
2596 $(PROTO_OBJ)
2598 include/build_env.h: script/build_env.sh
2599 @echo Building include/build_env.h
2600 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2601 > $(builddir)/include/build_env.h
2603 winbindd/winbindd_proto.h:
2604 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2605 -h _WINBINDD_PROTO_H_ $(builddir)/winbindd/winbindd_proto.h \
2606 $(WINBINDD_OBJ1)
2608 web/swat_proto.h:
2609 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2610 -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
2611 $(SWAT_OBJ1)
2613 client/client_proto.h:
2614 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2615 -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
2616 $(CLIENT_OBJ1)
2618 utils/net_proto.h:
2619 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2620 -h _NET_PROTO_H_ $(builddir)/utils/net_proto.h \
2621 $(NET_OBJ1)
2623 utils/passwd_proto.h:
2624 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2625 -h _PASSWD_PROTO_H_ $(builddir)/utils/passwd_proto.h \
2626 $(PASSWD_UTIL_OBJ)
2628 utils/ntlm_auth_proto.h:
2629 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2630 -h _NTLM_AUTH_PROTO_H_ $(builddir)/utils/ntlm_auth_proto.h \
2631 $(NTLM_AUTH_OBJ1)
2633 libnet/libnet_proto.h:
2634 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2635 -h _LIBNET_PROTO_H_ $(builddir)/libnet/libnet_proto.h \
2636 $(LIBNET_OBJ)
2638 # "make headers" or "make proto" calls a subshell because we need to
2639 # make sure these commands are executed in sequence even for a
2640 # parallel make.
2641 headers::
2642 $(MAKE) delheaders; \
2643 $(MAKE) smbd/build_options.c; \
2644 $(MAKE) include/proto.h; \
2645 $(MAKE) include/build_env.h; \
2646 $(MAKE) winbindd/winbindd_proto.h; \
2647 $(MAKE) web/swat_proto.h; \
2648 $(MAKE) client/client_proto.h; \
2649 $(MAKE) utils/ntlm_auth_proto.h; \
2650 $(MAKE) utils/net_proto.h; \
2651 $(MAKE) utils/passwd_proto.h; \
2652 $(MAKE) libnet/libnet_proto.h;
2654 proto:: headers
2656 .PHONY: headers proto
2658 etags:
2659 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2661 ctags:
2662 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2664 realclean:: clean delheaders
2665 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2666 -rm -f script/installbin.sh script/uninstallbin.sh
2668 distclean:: realclean
2669 -rm -f smbadduser
2670 -rm -f include/config.h Makefile
2671 -rm -f config.status config.cache so_locations
2672 -rm -rf .deps TAGS
2674 realdistclean:: distclean
2675 -rm -f include/config.h.in
2676 -rm -f include/version.h
2677 -rm -f configure
2679 # this target is really just for my use. It only works on a limited
2680 # range of machines and is used to produce a list of potentially
2681 # dead (ie. unused) functions in the code. (tridge)
2682 finddead::
2683 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2684 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2685 comm -13 nmused.txt nmfns.txt
2688 # when configure.in is updated, reconfigure
2689 $(srcdir)/configure: $(srcdir)/configure.in
2690 @echo "WARNING: you need to rerun ./autogen.sh"
2692 config.status: $(srcdir)/configure
2693 @echo "WARNING: you need to run ./configure"
2695 Makefile: $(srcdir)/Makefile.in config.status
2696 @echo "WARNING: you need to run ./config.status"
2698 ######################################################################
2699 # Samba Testing Framework
2701 # Check shared libs for unresolved symbols
2702 test_shlibs:
2703 @echo "Testing $? "
2704 @export $(LIB_PATH_VAR)=./bin && \
2705 for module in $?; do \
2706 ./script/tests/dlopen.sh $${module} \
2707 || exit 1; \
2708 done
2710 # Check for NSS module problems.
2711 test_nss_modules:: nss_modules
2712 @echo "Testing $(NSS_MODULES) "
2713 @export $(LIB_PATH_VAR)=./bin && \
2714 for module in $(NSS_MODULES); do \
2715 ./script/tests/dlopen.sh $${module} \
2716 || exit 1; \
2717 done
2719 # Check for PAM module problems. Specifically, check that every module we
2720 # built can actually be loaded by a minimal PAM-aware application.
2721 test_pam_modules:: pam_modules
2722 @echo "Testing $(PAM_MODULES) "
2723 @export $(LIB_PATH_VAR)=./bin && \
2724 for module in $(PAM_MODULES); do \
2725 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2726 || exit 1; \
2727 done
2731 ## Targets for 'make test'
2733 test:: all torture timelimit
2734 @echo Running Test suite
2735 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2737 valgrindtest:: all torture timelimit
2738 @echo Running Test suite with valgrind
2739 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2740 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2741 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2742 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2743 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2744 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"