build: fix bug #5590 by not linking in the static libs but the objects.
[Samba.git] / source / Makefile.in
blob2a8bec061f3de01c3d66a38967944d42bd3165dc
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@ @CIFSUPCALL_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
605 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
607 SLCACHE_OBJ = libsmb/samlogon_cache.o
609 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
611 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
612 AUTH_DOMAIN_OBJ = auth/auth_domain.o
613 AUTH_SAM_OBJ = auth/auth_sam.o
614 AUTH_SERVER_OBJ = auth/auth_server.o
615 AUTH_UNIX_OBJ = auth/auth_unix.o
616 AUTH_WINBIND_OBJ = auth/auth_winbind.o
617 AUTH_SCRIPT_OBJ = auth/auth_script.o
619 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
620 auth/auth_compat.o auth/auth_ntlmssp.o \
621 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
623 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
625 SMBD_OBJ_MAIN = smbd/server.o
627 BUILDOPT_OBJ = smbd/build_options.o
629 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
630 smbd/utmp.o smbd/session.o smbd/map_username.o \
631 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
632 smbd/share_access.o smbd/fileio.o \
633 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
634 smbd/message.o smbd/nttrans.o smbd/pipes.o \
635 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
636 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
637 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
638 smbd/vfs.o smbd/statcache.o smbd/seal.o \
639 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
640 smbd/process.o smbd/service.o smbd/error.o \
641 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
642 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
643 smbd/change_trust_pw.o smbd/fake_file.o \
644 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
645 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
646 smbd/dmapi.o \
647 smbd/file_access.o \
648 smbd/dnsregister.o \
649 $(MANGLE_OBJ) @VFS_STATIC@
651 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
652 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
653 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
654 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
655 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
656 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
657 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
658 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
659 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
660 $(LIBSMBCONF_OBJ) \
661 $(PRIVILEGES_BASIC_OBJ)
663 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
664 printing/print_cups.o printing/print_generic.o \
665 printing/lpq_parse.o printing/load.o \
666 printing/print_iprint.o
668 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
669 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
671 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
673 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
674 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
675 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
676 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
677 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
678 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
679 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
680 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
681 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
682 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
683 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
684 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
686 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
687 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
688 $(LIBNDR_GEN_OBJ0)
690 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
691 web/swat.o web/neg_lang.o
693 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
694 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(KRBCLIENT_OBJ) \
695 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
696 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
697 $(PASSCHANGE_OBJ) $(LDB_OBJ)
699 STATUS_OBJ = utils/status.o utils/status_profile.o \
700 $(LOCKING_OBJ) $(PARAM_OBJ) \
701 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
702 $(LIBSAMBA_OBJ)
704 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
705 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
706 $(LIBSAMBA_OBJ) \
707 $(PRINTBASE_OBJ)
709 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
710 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
711 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
712 rpc_client/cli_pipe.o $(RPC_PARSE_OBJ2) \
713 $(RPC_CLIENT_OBJ1) \
714 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
715 $(LIBMSRPC_GEN_OBJ)
717 TESTPARM_OBJ = utils/testparm.o \
718 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
719 $(LIBSAMBA_OBJ)
721 PASSWD_UTIL_OBJ = utils/passwd_util.o
723 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
724 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
725 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
726 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
727 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
729 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
730 $(LIBSAMBA_OBJ) \
731 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
732 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
733 $(LDB_OBJ)
735 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
737 DISPLAY_SEC_OBJ= lib/display_sec.o
739 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
740 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
741 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
742 rpcclient/cmd_dfs.o \
743 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
744 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
745 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
746 $(DISPLAY_SEC_OBJ)
748 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
749 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
750 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
751 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
752 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
753 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
755 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
756 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
758 LIBSMBCLIENT_OBJ0 = \
759 libsmb/libsmb_cache.o \
760 libsmb/libsmb_compat.o \
761 libsmb/libsmb_context.o \
762 libsmb/libsmb_dir.o \
763 libsmb/libsmb_file.o \
764 libsmb/libsmb_misc.o \
765 libsmb/libsmb_path.o \
766 libsmb/libsmb_printjob.o \
767 libsmb/libsmb_server.o \
768 libsmb/libsmb_stat.o \
769 libsmb/libsmb_xattr.o \
770 libsmb/libsmb_setget.o
772 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
773 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
774 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
775 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
776 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
778 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
780 # This shared library is intended for linking with unit test programs
781 # to test Samba internals. It's called libbigballofmud.so to
782 # discourage casual usage.
784 LIBBIGBALLOFMUD_MAJOR = 0
786 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
787 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
788 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
790 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
791 client/dnsbrowse.o \
792 $(RPC_CLIENT_OBJ1) \
793 $(RPC_PARSE_OBJ2)
795 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
796 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
797 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
798 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
799 $(DISPLAY_SEC_OBJ)
801 LIBSMBCONF_OBJ = lib/smbconf/smbconf.o lib/smbconf/smbconf_util.o \
802 lib/smbconf/smbconf_reg.o \
803 lib/smbconf/smbconf_txt.o \
804 lib/smbconf/smbconf_init.o
806 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
808 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
809 $(LIB_NONSMBD_OBJ) \
810 $(PARAM_OBJ) \
811 $(LIBSMB_ERR_OBJ) \
812 $(POPT_LIB_OBJ)
814 LIBNET_OBJ = libnet/libnet_join.o \
815 libnet/libnet_samsync.o \
816 librpc/gen_ndr/ndr_libnet_join.o
818 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
819 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
820 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
821 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
822 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
823 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
824 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
825 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
826 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
827 utils/net_conf.o \
828 utils/net_registry.o \
829 auth/token_util.o utils/net_dom.o
831 # these are not processed by make proto
832 NET_OBJ2 = utils/net_registry_util.o
834 NET_OBJ = $(NET_OBJ1) \
835 $(NET_OBJ2) \
836 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
837 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
838 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
839 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
840 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
841 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
842 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
843 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
844 $(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
845 $(LIBSMBCONF_OBJ) \
846 @LIBWBCLIENT_STATIC@ \
847 $(PRIVILEGES_BASIC_OBJ)
849 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
850 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
851 $(LIBNDR_GEN_OBJ0)
853 CIFS_MOUNT_OBJ = client/mount.cifs.o
855 CIFS_UMOUNT_OBJ = client/umount.cifs.o
857 CIFS_UPCALL_OBJ = client/cifs.upcall.o
859 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
860 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
862 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
863 torture/denytest.o torture/mangle_test.o
865 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
866 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
867 $(LIBNDR_GEN_OBJ0)
869 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
870 $(LIB_NONSMBD_OBJ) \
871 $(LIBNDR_GEN_OBJ0)
873 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
874 $(LIB_NONSMBD_OBJ) \
875 $(LIBNDR_GEN_OBJ0)
877 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
878 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
879 $(LIBNDR_GEN_OBJ0)
881 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
882 $(LIB_NONSMBD_OBJ) \
883 $(LIBNDR_GEN_OBJ0)
885 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
886 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
887 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
888 $(LIBNDR_GEN_OBJ0)
890 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
892 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
894 LOG2PCAP_OBJ = utils/log2pcaphex.o
896 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
897 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
898 $(LIBNDR_GEN_OBJ0)
900 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
901 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
902 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
903 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
905 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
906 $(PARAM_OBJ) \
907 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
908 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
909 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
911 EVTLOGADM_OBJ0 = utils/eventlogadm.o
913 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
914 $(LIBSAMBA_OBJ) \
915 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
917 SHARESEC_OBJ0 = utils/sharesec.o
918 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
919 $(LIBSAMBA_OBJ) \
920 $(POPT_LIB_OBJ)
922 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
923 $(LIBSAMBA_OBJ)
925 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
926 lib/replace/test/getifaddrs.o \
927 lib/replace/test/os2_delete.o \
928 lib/replace/test/strptime.o \
929 $(LIBREPLACE_OBJ)
931 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
932 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
933 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
934 librpc/gen_ndr/ndr_svcctl.o
936 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
938 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
939 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
940 $(LIBNDR_GEN_OBJ0)
942 PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
943 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(LIBSMB_OBJ) \
944 $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
945 $(LIBMSRPC_OBJ) \
946 $(LIB_WITH_PROTO_OBJ) \
947 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
948 $(AUTH_OBJ) $(PARAM_WITHOUT_REG_OBJ) $(LOCKING_OBJ) \
949 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
950 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
951 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
952 $(AUTH_SAM_OBJ) $(REG_FULL_OBJ) $(POPT_LIB_OBJ) \
953 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_DSSETUP_OBJ) \
954 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
955 $(RPC_ECHO_OBJ) $(RPC_SVCCTL_OBJ) $(RPC_EVENTLOG_OBJ) $(SMBLDAP_OBJ) \
956 $(IDMAP_OBJ) libsmb/spnego.o $(PASSCHANGE_OBJ) \
957 $(RPC_NTSVCS_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
958 utils/passwd_util.o $(LIBGPO_OBJ) $(NSS_INFO_OBJ) \
959 $(RPCCLIENT_NDR_OBJ) \
960 $(PRIVILEGES_BASIC_OBJ)
962 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
963 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
964 $(LIBNDR_GEN_OBJ0)
966 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
967 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
968 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
969 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
970 $(LDB_OBJ)
972 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
974 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
976 WINBINDD_OBJ1 = \
977 winbindd/winbindd.o \
978 winbindd/winbindd_user.o \
979 winbindd/winbindd_group.o \
980 winbindd/winbindd_util.o \
981 winbindd/winbindd_cache.o \
982 winbindd/winbindd_pam.o \
983 winbindd/winbindd_sid.o \
984 winbindd/winbindd_misc.o \
985 winbindd/winbindd_cm.o \
986 winbindd/winbindd_wins.o \
987 winbindd/winbindd_rpc.o \
988 winbindd/winbindd_reconnect.o \
989 winbindd/winbindd_ads.o \
990 winbindd/winbindd_passdb.o \
991 winbindd/winbindd_dual.o \
992 winbindd/winbindd_async.o \
993 winbindd/winbindd_creds.o \
994 winbindd/winbindd_cred_cache.o \
995 winbindd/winbindd_ccache_access.o \
996 winbindd/winbindd_domain.o \
997 winbindd/winbindd_idmap.o \
998 winbindd/winbindd_locator.o \
999 winbindd/winbindd_ndr.o \
1000 auth/token_util.o \
1001 smbd/connection.o
1003 WINBINDD_OBJ = \
1004 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1005 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1006 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1007 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1008 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1009 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1010 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1011 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
1013 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1014 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1015 lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@
1017 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1019 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1020 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1021 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1022 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1023 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1025 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1026 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1027 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1029 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1030 lib/ldb/modules/objectclass.o \
1031 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1033 # enabled in configure.in
1034 LDB_LDAP_OBJ=@LDBLDAP@
1036 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1038 LDB_CMDLINE_OBJ = $(PARAM_OBJ) \
1039 $(POPT_LIB_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) $(LIBSMB_ERR_OBJ0) \
1040 $(RPC_PARSE_OBJ1) $(SECRETS_OBJ) \
1041 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1044 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1045 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1046 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1047 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1048 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1050 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1051 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
1053 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1054 popt/popthelp.o popt/poptparse.o
1056 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1057 iniparser_build/strlib.o
1059 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1060 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1062 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1063 $(SOCKET_WRAPPER_OBJ)
1065 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1066 $(SOCKET_WRAPPER_OBJ)
1068 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1069 $(SOCKET_WRAPPER_OBJ)
1072 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1074 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1075 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1076 $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1077 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1078 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1079 $(LDB_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1080 $(LIBNDR_GEN_OBJ0) $(LIBNDR_GEN_OBJ1)
1083 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ)
1085 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1086 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1087 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1088 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1089 $(DISPLAY_SEC_OBJ)
1091 ######################################################################
1092 # now the rules...
1093 ######################################################################
1094 all:: SHOWFLAGS libs $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1095 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1097 nss_modules:: $(NSS_MODULES)
1099 pam_modules:: $(PAM_MODULES)
1101 pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1103 pam_winbind : SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1105 torture:: SHOWFLAGS $(TORTURE_PROGS)
1107 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1109 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1111 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1113 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1115 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1117 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1119 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1121 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1123 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1125 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1127 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1129 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1131 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1133 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1135 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1137 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1138 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1139 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1141 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1143 modules:: SHOWFLAGS $(MODULES)
1145 #####################################################################
1146 ## Perl IDL Compiler
1147 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1148 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1149 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1150 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl
1152 idl::
1153 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1154 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1157 #####################################################################
1160 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1161 $(EVERYTHING_PROGS)
1163 .SUFFIXES:
1164 .SUFFIXES: .c .o .lo
1166 SHOWFLAGS::
1167 @echo "Using FLAGS = $(FLAGS)"
1168 @echo " PICFLAG = $(PICFLAG)"
1169 @echo " LIBS = $(LIBS)"
1170 @echo " LDFLAGS = $(LDFLAGS)"
1171 @echo " DYNEXP = $(DYNEXP)"
1172 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1173 @echo " SHLIBEXT = @SHLIBEXT@"
1174 @echo " SONAMEFLAG = @SONAMEFLAG@"
1176 MAKEDIR = || exec false; \
1177 if test -d "$$dir"; then :; else \
1178 echo mkdir "$$dir"; \
1179 mkdir -p "$$dir" >/dev/null 2>&1 || \
1180 test -d "$$dir" || \
1181 mkdir "$$dir" || \
1182 exec false; fi || exec false
1184 # Run a static checker.
1185 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1186 # Compile a source file.
1187 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1188 # Compile a source file with the installation paths defined.
1189 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1191 COMPILE = $(COMPILE_CC)
1193 .c.o:
1194 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1195 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1196 @if test -n "$(CC_CHECKER)"; then \
1197 echo "Checking $*.c with '$(CC_CHECKER)'";\
1198 $(CHECK_CC); \
1200 @echo Compiling $*.c
1201 @$(COMPILE) && exit 0;\
1202 echo "The following command failed:" 1>&2;\
1203 echo "$(COMPILE_CC)" 1>&2;\
1204 $(COMPILE_CC) >/dev/null 2>&1
1205 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1207 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1209 # this adds support for precompiled headers. To use it, install a snapshot
1210 # of gcc-3.4 and run 'make pch' before you do the main build.
1211 pch:: proto_exists
1212 rm -f $(PRECOMPILED_HEADER)
1213 $(MAKE) $(PRECOMPILED_HEADER)
1215 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1216 $(COMPILE)
1218 BINARY_PREREQS = proto_exists bin/.dummy
1220 # These dependencies are only approximately correct: we want to make
1221 # sure Samba's paths are updated if ./configure is re-run. Really it
1222 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1223 # but since we also require "make install prefix=/opt/samba" *not* to
1224 # rebuild it's a bit hard.
1226 dynconfig.o: dynconfig.c Makefile
1227 @echo Compiling $*.c
1228 @$(COMPILE_CC_PATH) && exit 0;\
1229 echo "The following command failed:" 1>&2;\
1230 echo "$(COMPILE_CC_PATH)" 1>&2;\
1231 $(COMPILE_CC_PATH) >/dev/null 2>&1
1233 lib/pidfile.o: lib/pidfile.c
1234 @echo Compiling $*.c
1235 @$(COMPILE_CC_PATH) && exit 0;\
1236 echo "The following command failed:" 1>&2;\
1237 echo "$(COMPILE_CC_PATH)" 1>&2;\
1238 $(COMPILE_CC_PATH) >/dev/null 2>&1
1240 lib/version.o: lib/version.c include/version.h
1241 @echo Compiling $*.c
1242 @$(COMPILE_CC_PATH) && exit 0;\
1243 echo "The following command failed:" 1>&2;\
1244 echo "$(COMPILE_CC_PATH)" 1>&2;\
1245 $(COMPILE_CC_PATH) >/dev/null 2>&1
1247 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1248 @echo Compiling $*.c
1249 @$(COMPILE_CC_PATH) && exit 0;\
1250 echo "The following command failed:" 1>&2;\
1251 echo "$(COMPILE_CC_PATH)" 1>&2;\
1252 $(COMPILE_CC_PATH) >/dev/null 2>&1
1254 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1255 @echo Generating $@
1256 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1258 bin/.dummy:
1259 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1260 dir=bin $(MAKEDIR); fi
1261 @: >> $@ || : > $@ # what a fancy emoticon!
1263 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1264 @echo Linking $@
1265 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1266 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1267 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1268 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1269 $(WINBIND_LIBS)
1271 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1272 @echo Linking $@
1273 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1274 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1275 $(KRB5LIBS) $(LDAP_LIBS)
1277 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1278 @echo Linking $@
1279 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1280 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1281 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1283 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1284 @echo Linking $@
1285 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1286 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1287 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1288 $(WINBIND_LIBS)
1290 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1291 @echo Linking $@
1292 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1293 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1294 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1295 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1297 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1298 @echo Linking $@
1299 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1300 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1301 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1302 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBNETAPI_LIBS)
1304 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1305 @echo Linking $@
1306 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1307 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1309 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1310 @echo Linking $@
1311 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1312 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1314 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1315 @echo Linking $@
1316 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1318 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1319 @echo Linking $@
1320 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1322 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1323 @echo Linking $@
1324 @$(CC) $(FLAGS) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1325 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ1) $(KRB5LIBS) \
1326 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(WINBIND_LIBS) \
1327 $(LIBTDB_LIBS) $(NSCD_LIBS)
1329 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1330 @echo Linking $@
1331 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1332 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1334 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1335 @echo Linking $@
1336 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1337 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1339 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1340 @echo Linking $@
1341 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1342 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1343 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1344 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1346 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1347 @echo Linking $@
1348 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1349 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1350 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1352 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1353 @echo Linking $@
1354 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1355 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1356 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1358 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1359 @echo Linking $@
1360 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1361 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1362 $(LIBTDB_LIBS) $(WINBIND_LIBS)
1364 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1365 @echo Linking $@
1366 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1367 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1368 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1370 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1371 @echo Linking $@
1372 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1373 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1375 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1376 @echo Linking $@
1377 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1378 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1379 $(LIBTDB_LIBS)
1381 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1382 @echo Linking $@
1383 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1384 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1385 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1387 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1388 @echo Linking $@
1389 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1390 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1392 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1393 @echo Linking $@
1394 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1395 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1396 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1398 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1399 @echo Linking $@
1400 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1401 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1402 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1404 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1405 @echo Linking $@
1406 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1407 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1408 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1410 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1411 @echo Linking $@
1412 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1413 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1414 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1416 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1417 @echo Linking $@
1418 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1419 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1420 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1422 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1423 @echo Linking $@
1424 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1425 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1427 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1428 @echo Linking $@
1429 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1430 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1432 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1433 @echo Linking $@
1434 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1435 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1436 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1438 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1439 @echo Linking $@
1440 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1441 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1442 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1444 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1445 @echo Linking $@
1446 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1447 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1448 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1450 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1451 @echo Linking $@
1452 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1453 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1454 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1455 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1456 $(WINBIND_LIBS)
1458 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1459 @echo Linking $@
1460 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1461 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1462 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1464 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1465 @echo Linking $@
1466 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1467 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1469 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1470 @echo Linking $@
1471 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1472 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1473 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1475 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1476 @echo Linking $@
1477 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1478 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1480 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1481 @echo Linking $@
1482 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1483 $(LIBS) $(LIBTALLOC_LIBS)
1485 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1486 @echo Linking $@
1487 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1488 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1489 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1491 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1492 @echo Linking $@
1493 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1494 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1495 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1497 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1498 @echo Linking $@
1499 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1500 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1501 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1503 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1504 @echo Linking $@
1505 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1506 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1507 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1509 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1510 @echo Linking $@
1511 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1512 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1513 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1515 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1516 @echo Linking $@
1517 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1518 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1519 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1522 #####################################################################
1524 # libraries
1526 #####################################################################
1528 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1531 #-------------------------------------------------------------------
1533 # libtalloc
1535 #-------------------------------------------------------------------
1537 TALLOC_OBJ = @TALLOC_OBJS@
1539 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
1540 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1542 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1543 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1544 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1545 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1546 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
1547 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1548 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1550 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1551 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1553 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1554 @echo Linking shared library $@
1555 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1557 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1558 @rm -f $@
1559 @ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1561 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1562 @echo Linking non-shared library $@
1563 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1565 libtalloc: $(LIBTALLOC)
1567 cleanlibtalloc::
1568 -rm -f \
1569 $(LIBTALLOC_SYMS) \
1570 $(LIBTALLOC_STATIC_TARGET) \
1571 $(LIBTALLOC_SHARED_TARGET) \
1572 $(LIBTALLOC_SHARED_TARGET_SONAME)
1574 installlibtalloc:: installdirs libtalloc
1575 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1576 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1577 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1578 -if test -e $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1579 ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1580 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1582 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1583 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1584 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1586 uninstalllibtalloc::
1587 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1588 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1589 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1590 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1592 libs:: libtalloc
1593 installlibs:: @INSTALL_LIBTALLOC@
1594 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1595 cleanlibs:: cleanlibtalloc
1596 shlibs test_shlibs: @LIBTALLOC_SHARED@
1598 #-------------------------------------------------------------------
1600 # libtdb
1602 #-------------------------------------------------------------------
1604 LIBTDB_OBJ0 = @TDB_OBJS@
1605 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1607 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1608 LIBTDB_SOVER=@LIBTDB_SOVER@
1609 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1610 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1611 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
1612 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1613 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1615 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1616 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1618 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1619 @echo Linking shared library $@
1620 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1621 @SONAMEFLAG@`basename $@`
1623 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1624 @rm -f $@
1625 @ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1627 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1628 @echo Linking non-shared library $@
1629 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1631 libtdb: $(LIBTDB)
1633 cleanlibtdb::
1634 -rm -f \
1635 $(LIBTDB_SYMS) \
1636 $(LIBTDB_STATIC_TARGET) \
1637 $(LIBTDB_SHARED_TARGET) \
1638 $(LIBTDB_SHARED_TARGET_SONAME)
1641 installlibtdb:: installdirs libtdb
1642 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1643 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1644 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1645 -if test -e $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1646 ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1647 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1649 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1650 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1651 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1653 uninstalllibtdb::
1654 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1655 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1656 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1657 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1659 libs:: libtdb
1660 installlibs:: @INSTALL_LIBTDB@
1661 uninstalllibs:: @UNINSTALL_LIBTDB@
1662 cleanlibs:: cleanlibtdb
1663 shlibs test_shlibs: @LIBTDB_SHARED@
1665 #-------------------------------------------------------------------
1667 # libwbclient
1669 #-------------------------------------------------------------------
1671 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
1672 nsswitch/libwbclient/wbc_util.o \
1673 nsswitch/libwbclient/wbc_pwd.o \
1674 nsswitch/libwbclient/wbc_idmap.o \
1675 nsswitch/libwbclient/wbc_sid.o \
1676 nsswitch/libwbclient/wbc_pam.o
1677 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1678 $(WBCOMMON_OBJ) \
1679 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
1681 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1682 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1683 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1684 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1685 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1686 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1687 LIBWBCLIENT_HEADERS=$(srcdir)/nsswitch/libwbclient/wbclient.h
1689 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1690 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1692 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_SHARED@
1693 @echo Linking shared library $@
1694 @$(SHLD_DSO) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_OBJ) \
1695 @SONAMEFLAG@`basename $@`
1697 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1698 @rm -f $@
1699 @ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1701 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1702 @echo Linking non-shared library $@
1703 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1705 libwbclient: $(LIBWBCLIENT)
1707 cleanlibwbclient::
1708 -rm -f \
1709 $(LIBWBCLIENT_SYMS) \
1710 $(LIBWBCLIENT_STATIC_TARGET) \
1711 $(LIBWBCLIENT_SHARED_TARGET) \
1712 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1714 installlibwbclient:: installdirs libwbclient
1715 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1716 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1717 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1718 -if test -e $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1719 ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1720 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1722 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1723 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1725 uninstalllibwbclient::
1726 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1727 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1728 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1730 libs:: libwbclient
1731 installlibs:: @INSTALL_LIBWBCLIENT@
1732 uninstalllibs:: uninstalllibwbclient
1733 cleanlibs:: cleanlibwbclient
1734 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1737 #-------------------------------------------------------------------
1739 # libaddns
1741 #-------------------------------------------------------------------
1744 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1745 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1746 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1747 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1748 LIBADDNS=$(LIBADDNS_STATIC_TARGET) @LIBADDNS_SHARED@
1749 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1750 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1752 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1753 @echo Linking shared library $@
1754 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1755 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1756 @SONAMEFLAG@`basename $@`
1758 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1759 @rm -f $@
1760 @ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1762 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1763 @echo Linking non-shared library $@
1764 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1766 libaddns: $(LIBADDNS)
1768 cleanlibaddns::
1769 -rm -f \
1770 $(LIBADDNS_SHARED_TARGET) \
1771 $(LIBADDNS_SHARED_TARGET_SONAME) \
1772 $(LIBADDNS_STATIC_TARGET)
1774 installlibaddns:: installdirs libaddns
1775 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1776 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1777 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1778 -if test -e $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1779 ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1780 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1782 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1784 uninstalllibaddns::
1785 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1786 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1787 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
1789 libs:: libaddns
1790 installlibs:: @INSTALL_LIBADDNS@
1791 uninstalllibs:: @UNINSTALL_LIBADDNS@
1792 cleanlibs:: cleanlibaddns
1793 shlibs test_shlibs: @LIBADDNS_SHARED@
1795 #-------------------------------------------------------------------
1797 # libnetapi
1799 #-------------------------------------------------------------------
1801 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
1802 lib/netapi/cm.o \
1803 librpc/gen_ndr/ndr_libnetapi.o \
1804 lib/netapi/libnetapi.o \
1805 lib/netapi/joindomain.o \
1806 lib/netapi/serverinfo.o \
1807 lib/netapi/getdc.o \
1808 lib/netapi/user.o
1810 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
1811 $(LIBSMBCONF_OBJ) \
1812 $(REG_SMBCONF_OBJ) \
1813 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
1814 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1815 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1816 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1817 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ)
1819 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
1820 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
1821 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
1822 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
1823 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
1824 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
1825 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
1827 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
1828 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
1830 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1831 @echo Linking shared library $@
1832 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1833 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1834 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1835 @SONAMEFLAG@`basename $@`
1837 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
1838 @rm -f $@
1839 @ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
1841 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
1842 @echo Linking non-shared library $@
1843 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
1845 libnetapi: $(LIBNETAPI)
1847 cleanlibnetapi::
1848 -rm -f \
1849 $(LIBNETAPI_SYMS) \
1850 $(LIBNETAPI_STATIC_TARGET) \
1851 $(LIBNETAPI_SHARED_TARGET) \
1852 $(LIBNETAPI_SHARED_TARGET_SONAME)
1854 installlibnetapi:: installdirs libnetapi
1855 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1856 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1857 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1858 -if test -e $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
1859 ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
1860 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
1862 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1863 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1864 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
1866 uninstalllibnetapi::
1867 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1868 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
1869 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
1870 -rm -f $(DESTDIR)${prefix}/include/netapi.h
1872 libs:: libnetapi
1873 installlibs:: @INSTALL_LIBNETAPI@
1874 uninstalllibs:: @UNINSTALL_LIBNETAPI@
1875 cleanlibs:: cleanlibnetapi
1876 shlibs test_shlibs: @LIBNETAPI_SHARED@
1878 #-------------------------------------------------------------------
1880 # libsmbclient
1882 #-------------------------------------------------------------------
1884 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
1885 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
1886 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
1887 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
1888 LIBSMBCLIENT=$(LIBSMBCLIENT_STATIC_TARGET) @LIBSMBCLIENT_SHARED@
1889 #LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
1890 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
1892 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1893 @echo Linking shared library $@
1894 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
1895 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1896 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1897 @SONAMEFLAG@`basename $@`
1899 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
1900 @rm -f $@
1901 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
1903 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
1904 @echo Linking non-shared library $@
1905 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
1907 libsmbclient: $(LIBSMBCLIENT)
1909 cleanlibsmbclient::
1910 -rm -f \
1911 $(LIBSMBCLIENT_SHARED_TARGET) \
1912 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
1913 $(LIBSMBCLIENT_STATIC_TARGET)
1915 installlibsmbclient:: installdirs libsmbclient
1916 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1917 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1918 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1919 -if test -e $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
1920 ln -s -f `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
1921 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
1923 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1924 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1925 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1927 installclientlib:: installlibsmbclient
1929 uninstalllibsmbclient::
1930 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1931 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
1932 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
1933 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
1935 uninstallclientlib:: uninstalllibsmbclient
1937 libs:: libsmbclient
1938 installlibs:: @INSTALL_LIBSMBCLIENT@
1939 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
1940 cleanlibs:: cleanlibsmbclient
1941 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
1943 #-------------------------------------------------------------------
1945 # libsmbsharemodes
1947 #-------------------------------------------------------------------
1949 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
1951 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0) @LIBTDB_STATIC@
1953 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
1954 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
1955 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
1956 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
1957 LIBSMBSHAREMODES=$(LIBSMBSHAREMODES_STATIC_TARGET) @LIBSMBSHAREMODES_SHARED@
1958 #LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
1959 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
1961 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
1963 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1964 @echo Linking shared library $@
1965 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
1966 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1967 $(KRB5LIBS) $(LDAP_LIBS) \
1968 @SONAMEFLAG@`basename $@`
1970 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
1971 @rm -f $@
1972 @ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
1974 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
1975 @echo Linking non-shared library $@
1976 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
1978 libsmbsharemodes: $(LIBSMBSHAREMODES)
1980 cleanlibsmbsharemodes::
1981 -rm -f \
1982 $(LIBSMBSHAREMODES_SHARED_TARGET) \
1983 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
1984 $(LIBSMBSHAREMODES_STATIC_TARGET)
1986 installlibsmbsharemodes:: installdirs libsmbsharemodes
1987 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1988 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1989 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
1990 -if test -e $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
1991 ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
1992 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
1994 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1995 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1996 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
1998 uninstalllibsmbsharemodes::
1999 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2000 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2001 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2002 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2004 libs:: libsmbsharemodes
2005 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2006 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2007 cleanlibs:: cleanlibsmbsharemodes
2008 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2010 #-------------------------------------------------------------------
2012 # libbigballofmud
2014 #-------------------------------------------------------------------
2016 # This is probably wrong for anything other than the GNU linker.
2017 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
2018 @echo Linking shared library $@
2019 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2020 $(LIBS) $(LIBTALLOC_LIBS) \
2021 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2022 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2023 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2025 # It would be nice to build a static bigballofmud too, but when I try
2026 # I get linker errors about dl_open and similar things. I'm not sure if
2027 # it can be fixed or if they just can't be called from a static
2028 # library.
2032 #####################################################################
2034 # shared modules
2036 #####################################################################
2038 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2039 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2040 -o $@ @SONAMEFLAG@`basename $@`
2042 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2043 @echo "Linking $@"
2044 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2046 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2047 @echo "Linking $@"
2048 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2050 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2051 @echo "Linking $@"
2052 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2054 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2055 @echo "Linking $@"
2056 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2058 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2059 @echo "Linking $@"
2060 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2062 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2063 @echo "Linking $@"
2064 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2066 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2067 @echo "Linking $@"
2068 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2070 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2071 @echo "Linking $@"
2072 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2074 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2075 @echo "Linking $@"
2076 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2078 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2079 @echo "Linking $@"
2080 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2082 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2083 @echo "Linking $@"
2084 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2086 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2087 @echo "Linking $@"
2088 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2090 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2091 @echo "Linking $@"
2092 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2094 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2095 @echo "Linking $@"
2096 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2098 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2099 @echo "Linking $@"
2100 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2101 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2102 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2104 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2105 @echo "Linking $@"
2106 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2107 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2108 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2109 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2111 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2112 @echo "Linking $@"
2113 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2114 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2115 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2117 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2118 @echo "Linking $@"
2119 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2120 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2121 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2123 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
2124 @echo "Linking $@"
2125 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
2126 @SONAMEFLAG@`basename $@`
2128 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
2129 @echo "Linking shared library $@"
2130 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2131 $(PAM_WINBIND_EXTRA_LIBS) @SONAMEFLAG@`basename $@`
2133 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2134 @echo "Building plugin $@"
2135 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2137 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2138 @echo "Building plugin $@"
2139 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2141 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2142 @echo "Building plugin $@"
2143 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2145 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2146 @echo "Building plugin $@"
2147 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2149 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2150 @echo "Building plugin $@"
2151 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2153 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2154 @echo "Building plugin $@"
2155 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2157 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2158 @echo "Building plugin $@"
2159 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2161 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2162 @echo "Building plugin $@"
2163 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2165 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2166 @echo "Building plugin $@"
2167 @$(SHLD_MODULE) passdb/pdb_tdb.o
2169 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2170 @echo "Building plugin $@"
2171 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2173 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2174 @echo "Building plugin $@"
2175 @$(SHLD_MODULE) winbindd/idmap_rid.o
2177 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2178 @echo "Building plugin $@"
2179 @$(SHLD_MODULE) winbindd/idmap_ad.o
2181 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2182 @echo "Building plugin $@"
2183 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2185 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2186 @echo "Building plugin $@"
2187 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2189 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2190 @echo "Building plugin $@"
2191 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2193 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2194 @echo "Building plugin $@"
2195 @$(SHLD_MODULE) $(CP850_OBJ)
2197 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2198 @echo "Building plugin $@"
2199 @$(SHLD_MODULE) $(CP437_OBJ)
2201 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2202 @echo "Building plugin $@"
2203 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2205 # NOTE, there is no build rule for a dynamic default VFS module because
2206 # this one MUST MUST MUST be built statically.
2208 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2209 @echo "Building plugin $@"
2210 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2212 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2213 @echo "Building plugin $@"
2214 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2216 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2217 @echo "Building plugin $@"
2218 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2220 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2221 @echo "Building plugin $@"
2222 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2224 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2225 @echo "Building plugin $@"
2226 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2228 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2229 @echo "Building plugin $@"
2230 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2232 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2233 @echo "Building plugin $@"
2234 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2236 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2237 @echo "Building plugin $@"
2238 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2240 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2241 @echo "Building plugin $@"
2242 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2244 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2245 @echo "Building plugin $@"
2246 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2248 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2249 @echo "Building plugin $@"
2250 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2252 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2253 @echo "Building plugin $@"
2254 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2256 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2257 @echo "Building plugin $@"
2258 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2260 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2261 @echo "Building plugin $@"
2262 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2264 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2265 @echo "Building plugin $@"
2266 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2268 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2269 @echo "Building plugin $@"
2270 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2272 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2273 @echo "Building plugin $@"
2274 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2276 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2277 @echo "Building plugin $@"
2278 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2280 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2281 @echo "Building plugin $@"
2282 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2284 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2285 @echo "Building plugin $@"
2286 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2288 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2289 @echo "Building plugin $@"
2290 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2292 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2293 @echo "Building plugin $@"
2294 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2296 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2297 @echo "Building plugin $@"
2298 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2300 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2301 @echo "Building plugin $@"
2302 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2304 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2305 @echo "Building plugin $@"
2306 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2308 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2309 @echo "Building plugin $@"
2310 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2312 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2313 @echo "Building plugin $@"
2314 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2316 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2317 @echo "Building plugin $@"
2318 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2320 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2321 @echo "Building plugin $@"
2322 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2324 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2325 @echo "Building plugin $@"
2326 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2328 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2329 @echo "Building plugin $@"
2330 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2332 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2333 @echo "Building plugin $@"
2334 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2336 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2337 @echo "Building plugin $@"
2338 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2340 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2341 @echo "Building plugin $@"
2342 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2344 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2345 @echo "Building plugin $@"
2346 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2348 #########################################################
2349 ## IdMap NSS plugins
2351 ## None here right now
2352 #########################################################
2354 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2355 @echo Linking $@
2356 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2357 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2358 $(WINBIND_LIBS)
2360 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2361 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2362 @echo Linking $@
2363 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2364 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2365 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2366 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2368 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2369 @echo "Linking shared library $@"
2370 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2371 $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
2372 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2374 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2375 @echo Linking $@
2376 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2377 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2379 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2380 @echo Linking $@
2381 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2382 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2384 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2385 @echo Linking $@
2386 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2387 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2389 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2390 @echo Linking $@
2391 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2392 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2394 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2395 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2396 torture/t_strcmp.o -L ./bin -lbigballofmud
2398 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2399 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2400 torture/t_strstr.o -L ./bin -lbigballofmud
2402 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2403 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2404 torture/t_strappend.o -L ./bin -lbigballofmud
2406 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2407 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2408 -L./bin -lbigballofmud
2410 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2411 @echo Linking $@
2412 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
2414 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2415 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2416 @INSTALL_PAM_MODULES@ installlibs
2418 install-everything:: install installmodules
2420 # DESTDIR is used here to prevent packagers wasting their time
2421 # duplicating the Makefile. Remove it and you will have the privelege
2422 # of package each samba release for muliple versions of multiple
2423 # distributions and operating systems, or at least supplying patches
2424 # to all the packaging files required for this, prior to committing
2425 # the removal of DESTDIR. Do not remove it even though you think it
2426 # is not used
2428 installdirs::
2429 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
2431 installservers:: all installdirs
2432 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2434 installbin:: all installdirs
2435 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2437 installcifsmount:: @CIFSMOUNT_PROGS@
2438 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2439 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2441 installcifsupcall:: @CIFSUPCALL_PROGS@
2442 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2443 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2445 # Some symlinks are required for the 'probing' of modules.
2446 # This mechanism should go at some point..
2447 installmodules:: modules installdirs
2448 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2449 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2450 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2451 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2452 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2453 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2454 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2455 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2456 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2457 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2458 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2459 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2460 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2461 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2462 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2464 installscripts:: installdirs
2465 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2467 installdat:: installdirs
2468 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2470 installmsg:: installdirs
2471 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2473 installswat:: installdirs installmsg
2474 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2476 installpammodules:: $(PAM_MODULES)
2477 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2478 @for module in $(PAM_MODULES); do \
2479 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2480 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2481 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2482 done
2484 # revert to the previously installed version
2485 revert::
2486 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2487 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2489 installman:: installdirs
2490 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2492 .PHONY: showlayout
2494 showlayout::
2495 @echo "Samba will be installed into:"
2496 @echo " prefix: $(prefix)"
2497 @echo " bindir: $(BINDIR)"
2498 @echo " sbindir: $(SBINDIR)"
2499 @echo " libdir: $(LIBDIR)"
2500 @echo " vardir: $(VARDIR)"
2501 @echo " mandir: $(MANDIR)"
2502 @echo " privatedir: $(PRIVATE_DIR)"
2503 @echo " configdir: $(CONFIGDIR)"
2504 @echo " lockdir: $(LOCKDIR)"
2505 @echo " piddir: $(PIDDIR)"
2506 @echo " swatdir: $(SWATDIR)"
2509 uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2511 uninstallman::
2512 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2514 uninstallservers::
2515 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2517 uninstallbin::
2518 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2520 uninstallcifsmount::
2521 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2523 uninstallcifsupcall::
2524 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2526 uninstallmodules::
2527 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2528 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2529 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2530 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2531 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2532 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2534 uninstallscripts::
2535 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2537 uninstalldat::
2538 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2540 uninstallmsg::
2541 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2543 uninstallswat:: uninstallmsg
2544 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2546 uninstallpammodules::
2547 @for module in $(PAM_MODULES); do \
2548 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2549 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2550 done
2552 # Toplevel clean files
2553 TOPFILES=dynconfig.o
2555 clean:: delheaders cleanlibs
2556 -rm -f $(PRECOMPILED_HEADER)
2557 -rm -f core */*~ *~ \
2558 */*.o */*/*.o */*/*/*.o \
2559 ../testsuite/*/*.o \
2560 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2561 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2562 $(MODULES) $(TORTURE_PROGS) \
2563 $(EVERYTHING_PROGS) \
2564 bin/timelimit \
2565 .headers.stamp */src/*.o proto_exists
2566 -rm -rf t_dir
2568 # Making this target will just make sure that the prototype files
2569 # exist, not necessarily that they are up to date. Since they're
2570 # removed by "make clean" this will always be run when you do anything
2571 # afterwards.
2572 proto_exists:: include/proto.h include/build_env.h \
2573 winbindd/winbindd_proto.h web/swat_proto.h \
2574 libnet/libnet_proto.h \
2575 client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
2576 @touch proto_exists
2578 delheaders::
2579 @echo Removing prototype headers
2580 @rm -f include/proto.h include/build_env.h \
2581 winbindd/winbindd_proto.h web/swat_proto.h \
2582 client/client_proto.h utils/net_proto.h \
2583 smbd/build_options.c utils/ntlm_auth_proto.h \
2584 utils/passwd_proto.h libnet/libnet_proto.h
2586 MKPROTO_SH = $(srcdir)/script/mkproto.sh
2588 include/proto.h: smbd/build_options.c
2589 @echo Building include/proto.h
2590 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2591 -h _PROTO_H_ $(builddir)/include/proto.h \
2592 $(PROTO_OBJ)
2594 include/build_env.h: script/build_env.sh
2595 @echo Building include/build_env.h
2596 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2597 > $(builddir)/include/build_env.h
2599 winbindd/winbindd_proto.h:
2600 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2601 -h _WINBINDD_PROTO_H_ $(builddir)/winbindd/winbindd_proto.h \
2602 $(WINBINDD_OBJ1)
2604 web/swat_proto.h:
2605 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2606 -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
2607 $(SWAT_OBJ1)
2609 client/client_proto.h:
2610 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2611 -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
2612 $(CLIENT_OBJ1)
2614 utils/net_proto.h:
2615 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2616 -h _NET_PROTO_H_ $(builddir)/utils/net_proto.h \
2617 $(NET_OBJ1)
2619 utils/passwd_proto.h:
2620 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2621 -h _PASSWD_PROTO_H_ $(builddir)/utils/passwd_proto.h \
2622 $(PASSWD_UTIL_OBJ)
2624 utils/ntlm_auth_proto.h:
2625 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2626 -h _NTLM_AUTH_PROTO_H_ $(builddir)/utils/ntlm_auth_proto.h \
2627 $(NTLM_AUTH_OBJ1)
2629 libnet/libnet_proto.h:
2630 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2631 -h _LIBNET_PROTO_H_ $(builddir)/libnet/libnet_proto.h \
2632 $(LIBNET_OBJ)
2634 # "make headers" or "make proto" calls a subshell because we need to
2635 # make sure these commands are executed in sequence even for a
2636 # parallel make.
2637 headers::
2638 $(MAKE) delheaders; \
2639 $(MAKE) smbd/build_options.c; \
2640 $(MAKE) include/proto.h; \
2641 $(MAKE) include/build_env.h; \
2642 $(MAKE) winbindd/winbindd_proto.h; \
2643 $(MAKE) web/swat_proto.h; \
2644 $(MAKE) client/client_proto.h; \
2645 $(MAKE) utils/ntlm_auth_proto.h; \
2646 $(MAKE) utils/net_proto.h; \
2647 $(MAKE) utils/passwd_proto.h; \
2648 $(MAKE) libnet/libnet_proto.h;
2650 proto:: headers
2652 .PHONY: headers proto
2654 etags:
2655 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2657 ctags:
2658 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2660 realclean:: clean delheaders
2661 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2662 -rm -f script/installbin.sh script/uninstallbin.sh
2664 distclean:: realclean
2665 -rm -f smbadduser
2666 -rm -f include/config.h Makefile
2667 -rm -f config.status config.cache so_locations
2668 -rm -rf .deps TAGS
2670 realdistclean:: distclean
2671 -rm -f include/config.h.in
2672 -rm -f include/version.h
2673 -rm -f configure
2675 # this target is really just for my use. It only works on a limited
2676 # range of machines and is used to produce a list of potentially
2677 # dead (ie. unused) functions in the code. (tridge)
2678 finddead::
2679 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2680 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2681 comm -13 nmused.txt nmfns.txt
2684 # when configure.in is updated, reconfigure
2685 $(srcdir)/configure: $(srcdir)/configure.in
2686 @echo "WARNING: you need to rerun ./autogen.sh"
2688 config.status: $(srcdir)/configure
2689 @echo "WARNING: you need to run ./configure"
2691 Makefile: $(srcdir)/Makefile.in config.status
2692 @echo "WARNING: you need to run ./config.status"
2694 ######################################################################
2695 # Samba Testing Framework
2697 # Check shared libs for unresolved symbols
2698 test_shlibs:
2699 @echo "Testing $? "
2700 @export $(LIB_PATH_VAR)=./bin && \
2701 for module in $?; do \
2702 ./script/tests/dlopen.sh $${module} \
2703 || exit 1; \
2704 done
2706 # Check for NSS module problems.
2707 test_nss_modules:: nss_modules
2708 @echo "Testing $(NSS_MODULES) "
2709 @export $(LIB_PATH_VAR)=./bin && \
2710 for module in $(NSS_MODULES); do \
2711 ./script/tests/dlopen.sh $${module} \
2712 || exit 1; \
2713 done
2715 # Check for PAM module problems. Specifically, check that every module we
2716 # built can actually be loaded by a minimal PAM-aware application.
2717 test_pam_modules:: pam_modules
2718 @echo "Testing $(PAM_MODULES) "
2719 @export $(LIB_PATH_VAR)=./bin && \
2720 for module in $(PAM_MODULES); do \
2721 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2722 || exit 1; \
2723 done
2727 ## Targets for 'make test'
2729 test:: all torture timelimit
2730 @echo Running Test suite
2731 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2733 valgrindtest:: all torture timelimit
2734 @echo Running Test suite with valgrind
2735 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2736 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2737 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2738 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2739 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2740 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"