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 ###########################################################################
14 exec_prefix=@
exec_prefix@
15 sysconfdir
=@sysconfdir@
16 localstatedir
=@localstatedir@
17 datarootdir
=@datarootdir@
19 selftest_prefix
=@selftest_prefix@
20 smbtorture4_path
=@smbtorture4_path@
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@
41 CPPFLAGS
=-DHAVE_CONFIG_H @CPPFLAGS@
45 LDSHFLAGS
=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
46 LDFLAGS
=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
48 WINBIND_NSS_LDSHFLAGS
=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
56 TERMLDFLAGS
=@TERMLDFLAGS@
58 PRINT_LIBS
=@PRINT_LIBS@
61 PASSDB_LIBS
=@PASSDB_LIBS@
62 IDMAP_LIBS
=@IDMAP_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@
73 LIBTALLOC_LIBS
=@LIBTALLOC_LIBS@
74 LIBTDB_LIBS
=@LIBTDB_LIBS@
75 LIBNETAPI_LIBS
=@LIBNETAPI_LIBS@
78 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
79 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
80 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
81 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
85 builddir
=@abs_builddir@
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.
98 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
100 ROOTSBINDIR
= @rootsbindir@
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@
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
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
138 # the directory where lock files go
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
151 FLAGS1
= $(CFLAGS
) @FLAGS1@ @SAMBA_CPPFLAGS@
$(CPPFLAGS
)
154 FLAGS4
= -I
$(CTDBDIR
)/include
155 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
156 FLAGS
= $(ISA
) $(FLAGS5
) -I
$(srcdir)/lib
-D_SAMBA_BUILD_
=3
158 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
159 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
160 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
161 -DSBINDIR
=\"$(SBINDIR
)\" \
162 -DBINDIR
=\"$(BINDIR
)\" \
163 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
164 -DSWATDIR
=\"$(SWATDIR
)\" \
165 -DLOCKDIR
=\"$(LOCKDIR
)\" \
166 -DPIDDIR
=\"$(PIDDIR
)\" \
167 -DLIBDIR
=\"$(LIBDIR
)\" \
168 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
169 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
170 -DCTDBDIR
=\"$(CTDBDIR
)\" \
171 -DCONFIGDIR
=\"$(CONFIGDIR
)\" \
172 -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\" \
173 -DCACHEDIR
=\"$(CACHEDIR
)\" \
174 -DSTATEDIR
=\"$(STATEDIR
)\"
176 # Note that all executable programs now provide for an optional executable suffix.
178 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
180 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@
182 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
183 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
184 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
185 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
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 EXTRA_ALL_TARGETS
= @EXTRA_ALL_TARGETS@
226 #####################################################################
228 ######################################################################
230 TDB_OBJ
= lib
/util_tdb.o \
231 lib
/dbwrap.o lib
/dbwrap_tdb.o \
232 lib
/dbwrap_tdb2.o lib
/dbwrap_ctdb.o \
233 lib
/dbwrap_rbt.o @LIBTDB_STATIC@
235 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
237 VERSION_OBJ
= lib
/version.o
239 WBCOMMON_OBJ
= nsswitch
/wb_common.o
243 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
245 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
247 PASSCHANGE_OBJ
= libsmb
/passchange.o
250 LIBNDR_OBJ
= librpc
/ndr
/ndr_basic.o \
252 librpc
/ndr
/ndr_misc.o \
253 librpc
/gen_ndr
/ndr_misc.o \
254 librpc
/gen_ndr
/ndr_security.o \
255 librpc
/ndr
/ndr_sec_helper.o \
256 librpc
/ndr
/ndr_string.o \
260 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
262 LIBNDR_GEN_OBJ0
= librpc
/gen_ndr
/ndr_samr.o \
263 librpc
/gen_ndr
/ndr_lsa.o
265 LIBNDR_GEN_OBJ1
= librpc
/gen_ndr
/ndr_netlogon.o
267 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_wkssvc.o \
269 librpc
/gen_ndr
/ndr_dfs.o \
270 librpc
/gen_ndr
/ndr_echo.o \
271 librpc
/gen_ndr
/ndr_winreg.o \
272 librpc
/gen_ndr
/ndr_initshutdown.o \
273 librpc
/gen_ndr
/ndr_srvsvc.o \
274 librpc
/gen_ndr
/ndr_eventlog.o \
276 librpc
/gen_ndr
/ndr_dssetup.o \
277 librpc
/gen_ndr
/ndr_notify.o \
278 librpc
/gen_ndr
/ndr_xattr.o \
279 librpc
/gen_ndr
/ndr_ntsvcs.o
281 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
283 # this includes only the low level parse code, not stuff
284 # that requires knowledge of security contexts
285 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
) rpc_parse
/parse_sec.o
287 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o \
288 rpc_client
/init_netlogon.o \
289 rpc_client
/init_lsa.o \
290 rpc_client
/init_srvsvc.o
292 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
294 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
295 NSS_WRAPPER_OBJ
= @NSS_WRAPPER_OBJS@
297 LIBSAMBAUTIL_OBJ
= @LIBTALLOC_STATIC@ \
299 $(SOCKET_WRAPPER_OBJ
) \
302 LIB_WITHOUT_PROTO_OBJ
= $(LIBSAMBAUTIL_OBJ
) \
303 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
304 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o lib
/talloc_stack.o \
305 lib
/interfaces.o lib
/rbtree.o lib
/memcache.o \
306 lib
/util_transfer_file.o lib
/async_req.o \
309 LIB_WITH_PROTO_OBJ
= $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
310 lib
/interface.o lib
/md4.o \
312 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/recvfile.o lib
/time.o \
313 lib
/ufc.o lib
/genrand.o lib
/username.o \
314 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
315 lib
/bitmap.o lib
/crc32.o lib
/dprintf.o \
316 lib
/xfile.o lib
/wins_srv.o
$(UTIL_REG_OBJ
) \
317 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
318 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
319 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
320 lib
/substitute.o lib
/fsusage.o lib
/dbwrap_util.o \
321 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
322 lib
/tallocmsg.o lib
/dmallocmsg.o libsmb
/smb_signing.o \
323 lib
/md5.o lib
/hmacmd5.o lib
/arc4.o lib
/iconv.o \
324 lib
/pam_errors.o intl
/lang_tdb.o lib
/conn_tdb.o \
325 lib
/adt_tree.o lib
/gencache.o \
326 lib
/module.o lib
/events.o lib
/ldap_escape.o @CHARSET_STATIC@ \
327 lib
/secdesc.o lib
/util_seaccess.o lib
/secace.o lib
/secacl.o \
328 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
331 LIB_OBJ
= $(LIB_WITHOUT_PROTO_OBJ
) $(LIB_WITH_PROTO_OBJ
)
333 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
334 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
336 READLINE_OBJ
= lib
/readline.o
338 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
339 # Be sure to include them into your application
340 POPT_LIB_OBJ
= lib
/popt_common.o
342 PARAM_WITHOUT_REG_OBJ
= dynconfig.o param
/loadparm.o param
/params.o param
/util.o lib
/sharesec.o lib
/ldap_debug_handler.o
343 PARAM_REG_ADD_OBJ
= $(REG_SMBCONF_OBJ
) $(LIBSMBCONF_OBJ
) $(PRIVILEGES_BASIC_OBJ
)
344 PARAM_OBJ
= $(PARAM_WITHOUT_REG_OBJ
) $(PARAM_REG_ADD_OBJ
)
346 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
348 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
349 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
350 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(SOCKET_WRAPPER_OBJ
) @LIBTALLOC_STATIC@
352 LIBGPO_OBJ0
= libgpo
/gpo_ldap.o libgpo
/gpo_ini.o libgpo
/gpo_util.o \
353 libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o libgpo
/gpo_sec.o
354 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
356 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o \
357 libads
/sasl.o libads
/sasl_wrapping.o \
358 libads
/krb5_setpw.o libads
/ldap_user.o \
359 libads
/ads_struct.o libads
/kerberos_keytab.o \
360 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
361 libads
/ldap_schema.o libads
/util.o libads
/ndr.o
363 LIBADS_SERVER_OBJ
= libads
/kerberos_verify.o libads
/authdata.o \
364 librpc
/ndr
/ndr_krb5pac.o \
365 librpc
/gen_ndr
/ndr_krb5pac.o
367 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
369 LIBNBT_OBJ
= libcli
/nbt
/nbtname.o \
370 librpc
/gen_ndr
/ndr_nbt.o \
371 librpc
/gen_ndr
/ndr_svcctl.o
373 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
374 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
376 NTERR_OBJ
= libsmb
/nterr.o
377 DOSERR_OBJ
= libsmb
/doserr.o
378 ERRORMAP_OBJ
= libsmb
/errormap.o
379 DCE_RPC_ERR_OBJ
= libsmb
/dcerpc_err.o
381 LIBSMB_ERR_OBJ0
= $(NTERR_OBJ
) $(DOSERR_OBJ
) $(ERRORMAP_OBJ
) $(DCE_RPC_ERR_OBJ
) \
382 libsmb
/smbdes.o libsmb
/smbencrypt.o libsmb
/ntlmssp_parse.o
384 LIBSMB_ERR_OBJ
= $(LIBSMB_ERR_OBJ0
) \
389 libsmb
/ntlm_check.o \
391 libsmb
/ntlmssp_sign.o
393 LIBSAMBA_OBJ
= $(LIBSMB_OBJ0
) \
396 CLDAP_OBJ
= libads
/cldap.o
398 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
399 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
400 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
401 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
402 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
403 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
404 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
405 libsmb
/clioplock.o libsmb
/clirap2.o \
406 libsmb
/smb_seal.o libsmb
/async_smb.o \
412 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o
414 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
415 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
416 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
417 rpc_client
/cli_svcctl.o \
418 rpc_client
/init_samr.o
420 LIBMSRPC_GEN_OBJ
= librpc
/gen_ndr
/cli_lsa.o \
421 librpc
/gen_ndr
/cli_dfs.o \
422 librpc
/gen_ndr
/cli_echo.o \
423 librpc
/gen_ndr
/cli_srvsvc.o \
424 librpc
/gen_ndr
/cli_svcctl.o \
425 librpc
/gen_ndr
/cli_winreg.o \
426 librpc
/gen_ndr
/cli_initshutdown.o \
427 librpc
/gen_ndr
/cli_eventlog.o \
428 librpc
/gen_ndr
/cli_wkssvc.o \
429 librpc
/gen_ndr
/cli_netlogon.o \
430 librpc
/gen_ndr
/cli_samr.o \
431 librpc
/gen_ndr
/cli_dssetup.o \
432 librpc
/gen_ndr
/cli_ntsvcs.o \
437 # registry-related objects
439 UTIL_REG_OBJ
= lib
/util_reg.o
440 UTIL_REG_API_OBJ
= lib
/util_reg_api.o
442 REG_INIT_BASIC_OBJ
= registry
/reg_init_basic.o
443 REG_INIT_SMBCONF_OBJ
= registry
/reg_init_smbconf.o
444 REG_INIT_FULL_OBJ
= registry
/reg_init_full.o
446 REGFIO_OBJ
= registry
/regfio.o
448 REGOBJS_OBJ
= registry
/reg_objects.o
450 REG_BACKENDS_BASE_OBJ
= registry
/reg_backend_db.o
452 REG_BACKENDS_SMBCONF_OBJ
= registry
/reg_backend_smbconf.o
454 REG_BACKENDS_EXTRA_OBJ
= registry
/reg_backend_printing.o \
455 registry
/reg_backend_shares.o \
456 registry
/reg_backend_netlogon_params.o \
457 registry
/reg_backend_prod_options.o \
458 registry
/reg_backend_tcpip_params.o \
459 registry
/reg_backend_hkpt_params.o \
460 registry
/reg_backend_current_version.o \
461 registry
/reg_backend_perflib.o
463 REG_BASE_OBJ
= registry
/reg_api.o \
464 registry
/reg_dispatcher.o \
465 registry
/reg_cachehook.o \
468 registry
/reg_util.o \
469 $(UTIL_REG_API_OBJ
) \
471 $(REG_BACKENDS_BASE_OBJ
) \
472 $(REG_INIT_BASIC_OBJ
)
474 REG_SMBCONF_OBJ
= $(REG_BASE_OBJ
) \
475 $(REG_BACKENDS_SMBCONF_OBJ
) \
476 $(REG_INIT_SMBCONF_OBJ
)
478 REG_FULL_OBJ
= $(REG_SMBCONF_OBJ
) \
479 $(REG_BACKENDS_EXTRA_OBJ
) \
480 $(REG_INIT_FULL_OBJ
) \
481 registry
/reg_eventlog.o \
482 registry
/reg_perfcount.o \
483 registry
/reg_util_legacy.o
486 RPC_LSA_OBJ
= rpc_server
/srv_lsa_nt.o librpc
/gen_ndr
/srv_lsa.o
488 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog_nt.o \
489 librpc
/gen_ndr
/srv_netlogon.o
491 RPC_SAMR_OBJ
= rpc_server
/srv_samr_nt.o \
492 rpc_server
/srv_samr_util.o \
493 librpc
/gen_ndr
/srv_samr.o
495 RPC_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
497 RPC_REG_OBJ
= rpc_server
/srv_winreg_nt.o \
498 librpc
/gen_ndr
/srv_winreg.o
500 RPC_DSSETUP_OBJ
= rpc_server
/srv_dssetup_nt.o librpc
/gen_ndr
/srv_dssetup.o
502 RPC_SVC_OBJ
= rpc_server
/srv_srvsvc_nt.o \
503 librpc
/gen_ndr
/srv_srvsvc.o
505 RPC_WKS_OBJ
= librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
507 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl.o rpc_server
/srv_svcctl_nt.o \
508 librpc
/gen_ndr
/srv_svcctl.o \
509 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
510 services
/svc_netlogon.o services
/svc_winreg.o \
513 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs.o rpc_server
/srv_ntsvcs_nt.o \
514 librpc
/gen_ndr
/srv_ntsvcs.o
516 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
518 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
520 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog.o rpc_server
/srv_eventlog_nt.o \
521 rpc_server
/srv_eventlog_lib.o librpc
/gen_ndr
/srv_eventlog.o
523 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
524 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
526 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o librpc
/gen_ndr
/srv_echo.o
528 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
530 RPC_PARSE_OBJ
= $(RPC_PARSE_OBJ2
) \
531 rpc_parse
/parse_spoolss.o \
532 rpc_parse
/parse_eventlog.o rpc_parse
/parse_buffer.o \
533 rpc_parse
/parse_ntsvcs.o rpc_parse
/parse_svcctl.o
535 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
537 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
539 PRIVILEGES_BASIC_OBJ
= lib
/privileges_basic.o
541 PRIVILEGES_OBJ
= lib
/privileges.o
543 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
545 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
546 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
547 passdb
/util_unixsids.o passdb
/lookup_sid.o \
548 passdb
/login_cache.o @PDB_STATIC@ \
549 lib
/account_pol.o
$(PRIVILEGES_OBJ
) \
550 lib
/util_nscd.o lib
/winbind_util.o
$(SERVER_MUTEX_OBJ
)
552 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
553 CP850_OBJ
= modules
/CP850.o
554 CP437_OBJ
= modules
/CP437.o
555 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
557 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o groupdb
/mapping_ldb.o
559 PROFILE_OBJ
= profile
/profile.o
560 PROFILES_OBJ
= utils
/profiles.o \
563 $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
566 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
568 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
570 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
571 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
572 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
573 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
574 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
575 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
576 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
577 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
578 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
579 VFS_CAP_OBJ
= modules
/vfs_cap.o
580 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
581 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
582 VFS_SHADOW_COPY2_OBJ
= modules
/vfs_shadow_copy2.o
583 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
584 VFS_XATTR_TDB_OBJ
= modules
/vfs_xattr_tdb.o
585 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
586 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
587 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
588 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
589 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
590 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
591 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
592 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
593 VFS_CATIA_OBJ
= modules
/vfs_catia.o
594 VFS_STREAMS_XATTR_OBJ
= modules
/vfs_streams_xattr.o
595 VFS_STREAMS_DEPOT_OBJ
= modules
/vfs_streams_depot.o
596 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
597 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
598 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
599 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
600 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
601 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
602 VFS_TSMSM_OBJ
= modules
/vfs_tsmsm.o
603 VFS_FILEID_OBJ
= modules
/vfs_fileid.o
604 VFS_AIO_FORK_OBJ
= modules
/vfs_aio_fork.o
605 VFS_SYNCOPS_OBJ
= modules
/vfs_syncops.o
606 VFS_SMB_TRAFFIC_ANALYZER_OBJ
= modules
/vfs_smb_traffic_analyzer.o
608 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
610 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
612 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o libsmb
/dsgetdcname.o
614 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
615 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
616 AUTH_SAM_OBJ
= auth
/auth_sam.o
617 AUTH_SERVER_OBJ
= auth
/auth_server.o
618 AUTH_UNIX_OBJ
= auth
/auth_unix.o
619 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
620 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
622 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
623 auth
/auth_compat.o auth
/auth_ntlmssp.o \
624 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
626 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_hash2.o
628 SMBD_OBJ_MAIN
= smbd
/server.o
630 BUILDOPT_OBJ
= smbd
/build_options.o
632 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
633 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
634 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
635 smbd
/share_access.o smbd
/fileio.o \
636 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
637 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
638 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
639 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
640 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
641 smbd
/vfs.o smbd
/statcache.o smbd
/seal.o \
642 smbd
/posix_acls.o lib
/sysacls.o \
643 smbd
/process.o smbd
/service.o smbd
/error.o \
644 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
645 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
646 smbd
/change_trust_pw.o smbd
/fake_file.o \
647 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
648 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
652 $(MANGLE_OBJ
) @VFS_STATIC@
654 SMBD_OBJ_BASE
= $(PARAM_WITHOUT_REG_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
655 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) \
656 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
657 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
658 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
659 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
660 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
661 $(REG_FULL_OBJ
) $(POPT_LIB_OBJ
) $(BUILDOPT_OBJ
) \
662 $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(LIBNET_OBJ
) @LIBWBCLIENT_STATIC@ \
664 $(PRIVILEGES_BASIC_OBJ
)
666 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
667 printing
/print_cups.o printing
/print_generic.o \
668 printing
/lpq_parse.o printing
/load.o \
669 printing
/print_iprint.o
671 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
672 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
674 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
676 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
677 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
678 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
679 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
680 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
681 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
682 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
683 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
684 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
685 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
686 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
687 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o smbd
/connection.o
689 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
690 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
693 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
694 web
/swat.o web
/neg_lang.o
696 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(PRINTBASE_OBJ
) $(LIBSMB_OBJ
) \
697 $(LOCKING_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(KRBCLIENT_OBJ
) \
698 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
699 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
700 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
702 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
703 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
704 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
707 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
708 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
712 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
713 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
714 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
715 rpc_client
/cli_pipe.o
$(RPC_PARSE_OBJ2
) \
717 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
720 TESTPARM_OBJ
= utils
/testparm.o \
721 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
724 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
726 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
727 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
728 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
729 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) \
730 $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
732 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
734 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
735 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) libsmb
/asn1.o \
738 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ1
) @LIBWBCLIENT_STATIC@
740 DISPLAY_SEC_OBJ
= lib
/display_sec.o
742 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
743 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
744 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
745 rpcclient
/cmd_dfs.o \
746 rpcclient
/cmd_dssetup.o rpcclient
/cmd_echo.o \
747 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
748 rpcclient
/cmd_wkssvc.o rpcclient
/cmd_ntsvcs.o \
751 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
752 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
753 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
754 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
755 $(LIBADS_OBJ
) $(POPT_LIB_OBJ
) \
756 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
758 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
759 $(LIBREPLACE_OBJ
) @BUILD_INIPARSER@
761 LIBSMBCLIENT_OBJ0
= \
762 libsmb
/libsmb_cache.o \
763 libsmb
/libsmb_compat.o \
764 libsmb
/libsmb_context.o \
765 libsmb
/libsmb_dir.o \
766 libsmb
/libsmb_file.o \
767 libsmb
/libsmb_misc.o \
768 libsmb
/libsmb_path.o \
769 libsmb
/libsmb_printjob.o \
770 libsmb
/libsmb_server.o \
771 libsmb
/libsmb_stat.o \
772 libsmb
/libsmb_xattr.o \
773 libsmb
/libsmb_setget.o
775 LIBSMBCLIENT_OBJ1
= $(LIBSMBCLIENT_OBJ0
) \
776 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
777 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
778 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
779 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
781 LIBSMBCLIENT_OBJ
= $(LIBSMBCLIENT_OBJ1
) @LIBWBCLIENT_STATIC@
783 # This shared library is intended for linking with unit test programs
784 # to test Samba internals. It's called libbigballofmud.so to
785 # discourage casual usage.
787 LIBBIGBALLOFMUD_MAJOR
= 0
789 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
790 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
791 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
793 CLIENT_OBJ1
= client
/client.o client
/clitar.o rpc_client
/cli_pipe.o \
798 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
799 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
800 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
801 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
804 LIBSMBCONF_OBJ
= lib
/smbconf
/smbconf.o lib
/smbconf
/smbconf_util.o \
805 lib
/smbconf
/smbconf_reg.o \
806 lib
/smbconf
/smbconf_txt.o \
807 lib
/smbconf
/smbconf_init.o
809 SMBCONFTORT_OBJ0
= lib
/smbconf
/testsuite.o
811 SMBCONFTORT_OBJ
= $(SMBCONFTORT_OBJ0
) \
817 LIBNET_OBJ
= libnet
/libnet_join.o \
818 libnet
/libnet_samsync.o \
819 librpc
/gen_ndr
/ndr_libnet_join.o
821 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_help.o \
822 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
823 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
824 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
825 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
826 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
827 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
828 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
829 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
831 utils
/net_registry.o \
832 auth
/token_util.o utils
/net_dom.o
834 # these are not processed by make proto
835 NET_OBJ2
= utils
/net_registry_util.o
837 NET_OBJ
= $(NET_OBJ1
) \
839 $(PARAM_WITHOUT_REG_OBJ
) $(LIBSMB_OBJ
) \
840 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
841 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
842 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
843 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
844 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) \
845 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(READLINE_OBJ
) \
846 $(LDB_OBJ
) $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) \
847 $(REG_SMBCONF_OBJ
) @LIBNETAPI_STATIC@
$(LIBNET_OBJ
) \
849 @LIBWBCLIENT_STATIC@ \
850 $(PRIVILEGES_BASIC_OBJ
)
852 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
853 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
856 CIFS_MOUNT_OBJ
= client
/mount.cifs.o client
/mtab.o
858 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o client
/mtab.o
860 CIFS_UPCALL_OBJ
= client
/cifs.upcall.o
862 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) \
863 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
865 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
866 torture
/denytest.o torture
/mangle_test.o
868 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
869 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
872 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
876 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
880 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
881 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
884 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
888 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
889 $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
890 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
) \
893 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
895 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
897 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
899 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
900 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
903 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
904 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
905 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
906 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
908 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
910 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
911 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(POPT_LIB_OBJ
) \
912 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
914 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
916 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
918 registry
/reg_eventlog.o rpc_server
/srv_eventlog_lib.o
920 SHARESEC_OBJ0
= utils
/sharesec.o
921 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
925 TALLOCTORT_OBJ
= @tallocdir@
/testsuite.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
928 REPLACETORT_OBJ
= lib
/replace
/test/testsuite.o \
929 lib
/replace
/test/getifaddrs.o \
930 lib
/replace
/test/os2_delete.o \
931 lib
/replace
/test/strptime.o \
934 NDRDUMP_OBJ
= librpc
/tools
/ndrdump.o \
935 $(PARAM_OBJ
) $(LIBNDR_GEN_OBJ
) \
936 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
937 librpc
/gen_ndr
/ndr_svcctl.o
939 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
941 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
942 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
945 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) $(LIBNDR_OBJ
) $(LIBNDR_GEN_OBJ
) \
946 $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(LIBSMB_OBJ
) \
947 $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
949 $(LIB_WITH_PROTO_OBJ
) \
950 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) $(KRBCLIENT_OBJ
) \
951 $(AUTH_OBJ
) $(PARAM_WITHOUT_REG_OBJ
) $(LOCKING_OBJ
) \
952 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
953 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
954 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
955 $(AUTH_SAM_OBJ
) $(REG_FULL_OBJ
) $(POPT_LIB_OBJ
) \
956 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) $(RPC_DSSETUP_OBJ
) \
957 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
) \
958 $(RPC_ECHO_OBJ
) $(RPC_SVCCTL_OBJ
) $(RPC_EVENTLOG_OBJ
) $(SMBLDAP_OBJ
) \
959 $(IDMAP_OBJ
) libsmb
/spnego.o
$(PASSCHANGE_OBJ
) \
960 $(RPC_NTSVCS_OBJ
) $(RPC_INITSHUTDOWN_OBJ
) \
961 utils
/passwd_util.o
$(LIBGPO_OBJ
) $(NSS_INFO_OBJ
) \
962 $(RPCCLIENT_NDR_OBJ
) \
963 $(PRIVILEGES_BASIC_OBJ
)
965 WINBIND_WINS_NSS_OBJ
= nsswitch
/wins.o
$(PARAM_OBJ
) \
966 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) \
969 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
970 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o
971 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
972 $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
975 IDMAP_OBJ
= winbindd
/idmap.o winbindd
/idmap_cache.o winbindd
/idmap_util.o @IDMAP_STATIC@
977 NSS_INFO_OBJ
= winbindd
/nss_info.o @NSS_INFO_STATIC@
980 winbindd
/winbindd.o \
981 winbindd
/winbindd_user.o \
982 winbindd
/winbindd_group.o \
983 winbindd
/winbindd_util.o \
984 winbindd
/winbindd_cache.o \
985 winbindd
/winbindd_pam.o \
986 winbindd
/winbindd_sid.o \
987 winbindd
/winbindd_misc.o \
988 winbindd
/winbindd_cm.o \
989 winbindd
/winbindd_wins.o \
990 winbindd
/winbindd_rpc.o \
991 winbindd
/winbindd_reconnect.o \
992 winbindd
/winbindd_ads.o \
993 winbindd
/winbindd_passdb.o \
994 winbindd
/winbindd_dual.o \
995 winbindd
/winbindd_async.o \
996 winbindd
/winbindd_creds.o \
997 winbindd
/winbindd_cred_cache.o \
998 winbindd
/winbindd_ccache_access.o \
999 winbindd
/winbindd_domain.o \
1000 winbindd
/winbindd_idmap.o \
1001 winbindd
/winbindd_locator.o \
1002 winbindd
/winbindd_ndr.o \
1007 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
1008 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1009 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
1010 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
1011 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
1012 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
1013 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1014 $(LIBADS_SERVER_OBJ
) $(LDB_OBJ
)
1016 WBINFO_OBJ
= nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1017 $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1018 lib
/winbind_util.o
$(WBCOMMON_OBJ
) @LIBWBCLIENT_STATIC@
1020 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
1022 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
1023 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
1024 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
1025 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
1026 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
1028 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
1029 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
1030 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
1032 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
1033 lib
/ldb
/modules
/objectclass.o \
1034 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
1036 # enabled in configure.in
1037 LDB_LDAP_OBJ
=@LDBLDAP@
1039 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1041 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) \
1042 $(POPT_LIB_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) $(LIBSMB_ERR_OBJ0
) \
1043 $(RPC_PARSE_OBJ1
) $(SECRETS_OBJ
) \
1044 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
1047 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
1048 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
1049 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
1050 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
1051 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
1053 WINBIND_KRB5_LOCATOR_OBJ1
= nsswitch
/winbind_krb5_locator.o
1054 WINBIND_KRB5_LOCATOR_OBJ
= $(WINBIND_KRB5_LOCATOR_OBJ1
) $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
)
1056 POPT_OBJ
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
1057 popt
/popthelp.o popt
/poptparse.o
1059 INIPARSER_OBJ
= iniparser_build
/iniparser.o iniparser_build
/dictionary.o \
1060 iniparser_build
/strlib.o
1062 TDBBACKUP_OBJ
= @tdbdir@
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
1063 @LIBTDB_STATIC@
$(SOCKET_WRAPPER_OBJ
)
1065 TDBTOOL_OBJ
= @tdbdir@
/tools
/tdbtool.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1066 $(SOCKET_WRAPPER_OBJ
)
1068 TDBDUMP_OBJ
= @tdbdir@
/tools
/tdbdump.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1069 $(SOCKET_WRAPPER_OBJ
)
1071 TDBTORTURE_OBJ
= @tdbdir@
/tools
/tdbtorture.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1072 $(SOCKET_WRAPPER_OBJ
)
1075 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
1077 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
1078 libsmb
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
1079 $(LIBADS_SERVER_OBJ
) \
1080 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1081 $(SMBLDAP_OBJ
) $(LIBNMB_OBJ
) \
1082 $(LDB_OBJ
) $(WBCOMMON_OBJ
) @LIBWBCLIENT_STATIC@ \
1083 $(LIBNDR_GEN_OBJ0
) $(LIBNDR_GEN_OBJ1
)
1086 VLP_OBJ1
= ..
/testsuite
/printing
/vlp.o
$(RPC_CLIENT_OBJ1
) $(RPC_PARSE_OBJ2
) $(RPC_CLIENT_OBJ
)
1088 VLP_OBJ
= $(VLP_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1089 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1090 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
1091 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
1094 ######################################################################
1096 ######################################################################
1097 all:: SHOWFLAGS libs
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1098 $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @CIFSUPCALL_PROGS@ \
1099 $(EXTRA_ALL_TARGETS
)
1101 nss_modules
:: $(NSS_MODULES
)
1103 pam_modules
:: $(PAM_MODULES
)
1105 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
1107 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
1109 torture
:: SHOWFLAGS
$(TORTURE_PROGS
)
1111 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
1113 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
1115 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
1117 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
1119 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
1121 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
1123 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
1125 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
1127 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
1129 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
1131 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
1133 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
1135 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
1137 smbconftort
: SHOWFLAGS bin
/smbconftort@EXEEXT@
1139 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
1141 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1142 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1143 bin
/pam_winbind.@SHLIBEXT@ bin
/smbcontrol@EXEEXT@
1145 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
1147 modules
:: SHOWFLAGS
$(MODULES
)
1149 #####################################################################
1150 ## Perl IDL Compiler
1151 IDL_FILES
= lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1152 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1153 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1154 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl
1156 PIDL
= "$(srcdir)/pidl/pidl"
1159 @IDL_FILES
="$(IDL_FILES)" CPP
="$(CPP)" PERL
="$(PERL)" PIDL
="$(PIDL)"\
1160 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(PIDL_ARGS
)
1163 #####################################################################
1166 everything
:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1170 .SUFFIXES
: .c .o .lo
1173 @echo
"Using FLAGS = $(FLAGS)"
1174 @echo
" PICFLAG = $(PICFLAG)"
1175 @echo
" LIBS = $(LIBS)"
1176 @echo
" LDFLAGS = $(LDFLAGS)"
1177 @echo
" DYNEXP = $(DYNEXP)"
1178 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1179 @echo
" SHLIBEXT = @SHLIBEXT@"
1180 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1182 MAKEDIR
= || exec false
; \
1183 if
test -d
"$$dir"; then
:; else \
1184 echo mkdir
"$$dir"; \
1185 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1186 test -d
"$$dir" || \
1188 exec false
; fi || exec false
1190 # Run a static checker.
1191 CHECK_CC
= $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1192 # Compile a source file.
1193 COMPILE_CC
= $(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1194 # Compile a source file with the installation paths defined.
1195 COMPILE_CC_PATH
= $(CC
) -I.
-I
$(srcdir) $(PATH_FLAGS
) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1197 COMPILE
= $(COMPILE_CC
)
1200 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1201 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1202 @if
test -n
"$(CC_CHECKER)"; then \
1203 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1206 @echo Compiling
$*.c
1207 @
$(COMPILE
) && exit
0;\
1208 echo
"The following command failed:" 1>&2;\
1209 echo
"$(COMPILE_CC)" 1>&2;\
1210 $(COMPILE_CC
) >/dev
/null
2>&1
1211 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
1213 PRECOMPILED_HEADER
= $(builddir
)/include/includes.h.gch
1215 # this adds support for precompiled headers. To use it, install a snapshot
1216 # of gcc-3.4 and run 'make pch' before you do the main build.
1218 rm -f
$(PRECOMPILED_HEADER
)
1219 $(MAKE
) $(PRECOMPILED_HEADER
)
1221 $(PRECOMPILED_HEADER
): $(srcdir)/include/includes.h
1224 BINARY_PREREQS
= proto_exists bin
/.dummy
1226 # These dependencies are only approximately correct: we want to make
1227 # sure Samba's paths are updated if ./configure is re-run. Really it
1228 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1229 # but since we also require "make install prefix=/opt/samba" *not* to
1230 # rebuild it's a bit hard.
1232 dynconfig.o
: dynconfig.c Makefile
1233 @echo Compiling
$*.c
1234 @
$(COMPILE_CC_PATH
) && exit
0;\
1235 echo
"The following command failed:" 1>&2;\
1236 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1237 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1239 lib
/pidfile.o
: lib
/pidfile.c
1240 @echo Compiling
$*.c
1241 @
$(COMPILE_CC_PATH
) && exit
0;\
1242 echo
"The following command failed:" 1>&2;\
1243 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1244 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1246 lib
/version.o
: lib
/version.c
include/version.h
1247 @echo Compiling
$*.c
1248 @
$(COMPILE_CC_PATH
) && exit
0;\
1249 echo
"The following command failed:" 1>&2;\
1250 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1251 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1253 smbd
/build_options.o
: smbd
/build_options.c Makefile
include/config.h
include/build_env.h
include/proto.h
1254 @echo Compiling
$*.c
1255 @
$(COMPILE_CC_PATH
) && exit
0;\
1256 echo
"The following command failed:" 1>&2;\
1257 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1258 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1260 smbd
/build_options.c
: include/config.h.in script
/mkbuildoptions.awk
1262 @
dir=smbd
$(MAKEDIR
) && $(AWK
) -f
$(srcdir)/script
/mkbuildoptions.awk
> $(builddir
)/smbd
/build_options.c
< $(srcdir)/include/config.h.in
1265 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
1266 dir=bin
$(MAKEDIR
); fi
1267 @
: >> $@ ||
: > $@
# what a fancy emoticon!
1269 bin
/smbd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBD_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1271 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LDAP_LIBS
) \
1272 $(KRB5LIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
1273 $(ACL_LIBS
) $(PASSDB_LIBS
) $(LIBS
) $(DNSSD_LIBS
) \
1274 $(POPT_LIBS
) @SMBD_LIBS@
$(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
1277 bin
/nmbd@EXEEXT@
: $(BINARY_PREREQS
) $(NMBD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1279 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1280 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(POPT_LIBS
) \
1281 $(KRB5LIBS
) $(LDAP_LIBS
)
1283 bin
/swat@EXEEXT@
: $(BINARY_PREREQS
) $(SWAT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1285 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINT_LIBS
) \
1286 $(AUTH_LIBS
) $(LIBS
) $(PASSDB_LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) \
1287 $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1289 bin
/rpcclient@EXEEXT@
: $(BINARY_PREREQS
) $(RPCCLIENT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1291 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(PASSDB_LIBS
) $(RPCCLIENT_OBJ
) \
1292 $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) $(POPT_LIBS
) \
1293 $(KRB5LIBS
) $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
1296 bin
/smbclient@EXEEXT@
: $(BINARY_PREREQS
) $(CLIENT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1298 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1299 $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) $(POPT_LIBS
) \
1300 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) $(DNSSD_LIBS
) \
1301 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1303 bin
/net@EXEEXT@
: $(BINARY_PREREQS
) $(NET_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1305 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1306 $(POPT_LIBS
) $(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) \
1307 $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) \
1308 @INIPARSERLIBS@
$(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
) $(LIBNETAPI_LIBS
)
1310 bin
/profiles@EXEEXT@
: $(BINARY_PREREQS
) $(PROFILES_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1312 @
$(CC
) $(FLAGS
) -o
$@
$(PROFILES_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1313 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1315 bin
/smbspool@EXEEXT@
: $(BINARY_PREREQS
) $(CUPS_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1317 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1318 $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1320 bin
/mount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_MOUNT_OBJ
) @BUILD_POPT@
1322 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(POPT_LIBS
)
1324 bin
/umount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_UMOUNT_OBJ
) @BUILD_POPT@
1326 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(POPT_LIBS
)
1328 bin
/cifs.upcall@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_UPCALL_OBJ
) $(LIBSMBCLIENT_OBJ1
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1330 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_UPCALL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1331 -lkeyutils
$(LIBS
) $(LIBSMBCLIENT_OBJ1
) $(KRB5LIBS
) \
1332 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(WINBIND_LIBS
) \
1333 $(LIBTDB_LIBS
) $(NSCD_LIBS
)
1335 bin
/testparm@EXEEXT@
: $(BINARY_PREREQS
) $(TESTPARM_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1337 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1338 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1340 bin
/smbstatus@EXEEXT@
: $(BINARY_PREREQS
) $(STATUS_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1342 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1343 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1345 bin
/smbcontrol@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCONTROL_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1347 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) -o
$@ \
1348 $(SMBCONTROL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1349 $(LIBS
) $(LDAP_LIBS
) @LIBUNWIND_PTRACE@
$(POPT_LIBS
) \
1350 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1352 bin
/smbtree@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTREE_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1354 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1355 $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1356 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1358 bin
/smbpasswd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBPASSWD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1360 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(PASSDB_LIBS
) \
1361 $(DYNEXP
) $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1362 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1364 bin
/pdbedit@EXEEXT@
: $(BINARY_PREREQS
) $(PDBEDIT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1366 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1367 $(POPT_LIBS
) $(PASSDB_LIBS
) $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) \
1368 $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1370 bin
/smbget@EXEEXT@
: $(BINARY_PREREQS
) $(SMBGET_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1372 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGET_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1373 $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1374 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1376 bin
/nmblookup@EXEEXT@
: $(BINARY_PREREQS
) $(NMBLOOKUP_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1378 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1379 $(POPT_LIBS
) $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1381 bin
/smbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTORTURE_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1383 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1384 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) \
1387 bin
/talloctort@EXEEXT@
: $(BINARY_PREREQS
) $(TALLOCTORT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1389 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) \
1390 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1391 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1393 bin
/replacetort@EXEEXT@
: $(REPLACETORT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@
1395 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(REPLACETORT_OBJ
) $(LDFLAGS
) \
1396 $(DYNEXP
) $(LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
)
1398 bin
/smbconftort@EXEEXT@
: $(SMBCONFTORT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1400 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBCONFTORT_OBJ
) $(LDFLAGS
) \
1401 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1402 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1404 bin
/masktest@EXEEXT@
: $(BINARY_PREREQS
) $(MASKTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1406 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1407 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1408 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1410 bin
/msgtest@EXEEXT@
: $(BINARY_PREREQS
) $(MSGTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1412 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1413 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1414 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1416 bin
/smbcacls@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCACLS_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1418 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1419 $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1420 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1422 bin
/smbcquotas@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCQUOTAS_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1424 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCQUOTAS_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1425 $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1426 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1428 bin
/eventlogadm@EXEEXT@
: $(BINARY_PREREQS
) $(EVTLOGADM_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1430 @
$(CC
) $(FLAGS
) -o
$@
$(EVTLOGADM_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1431 $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1433 bin
/sharesec@EXEEXT@
: $(BINARY_PREREQS
) $(SHARESEC_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1435 @
$(CC
) $(FLAGS
) -o
$@
$(SHARESEC_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1436 $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1438 bin
/locktest@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1440 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1441 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1442 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1444 bin
/nsstest@EXEEXT@
: $(BINARY_PREREQS
) $(NSSTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1446 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1447 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1448 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1450 bin
/pdbtest@EXEEXT@
: $(BINARY_PREREQS
) $(PDBTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1452 @
$(CC
) $(FLAGS
) -o
$@
$(PDBTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1453 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) \
1454 $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1456 bin
/vfstest@EXEEXT@
: $(BINARY_PREREQS
) $(VFSTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1458 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) \
1459 $(TERMLIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) $(DNSSD_LIBS
) \
1460 $(ACL_LIBS
) $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1461 @SMBD_LIBS@
$(NSCD_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
1464 bin
/smbiconv@EXEEXT@
: $(BINARY_PREREQS
) $(SMBICONV_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1466 @
$(CC
) $(FLAGS
) -o
$@
$(SMBICONV_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) \
1467 $(TERMLIBS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1468 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1470 bin
/log2pcap@EXEEXT@
: $(BINARY_PREREQS
) $(LOG2PCAP_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@
1472 @
$(CC
) $(FLAGS
) -o
$@
$(LOG2PCAP_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1473 $(POPT_LIBS
) $(LIBS
) $(LIBTALLOC_LIBS
)
1475 bin
/locktest2@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST2_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1477 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1478 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1479 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1481 bin
/ndrdump@EXEEXT@
: $(BINARY_PREREQS
) $(NDRDUMP_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1483 @
$(CC
) $(FLAGS
) -o
$@
$(NDRDUMP_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1484 $(POPT_LIBS
) $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1486 bin
/debug2html@EXEEXT@
: $(BINARY_PREREQS
) $(DEBUG2HTML_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@
1488 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1489 $(LIBS
) $(LIBTALLOC_LIBS
)
1491 bin
/smbfilter@EXEEXT@
: $(BINARY_PREREQS
) $(SMBFILTER_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1493 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
) \
1494 $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1495 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1497 bin
/ldbedit
: $(BINARY_PREREQS
) $(LDBEDIT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1499 @
$(CC
) $(FLAGS
) -o
$@
$(LDBEDIT_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1500 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1501 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1503 bin
/ldbsearch
: $(BINARY_PREREQS
) $(LDBSEARCH_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1505 @
$(CC
) $(FLAGS
) -o
$@
$(LDBSEARCH_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1506 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1507 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1509 bin
/ldbadd
: $(BINARY_PREREQS
) $(LDBADD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1511 @
$(CC
) $(FLAGS
) -o
$@
$(LDBADD_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1512 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1513 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1515 bin
/ldbmodify
: $(BINARY_PREREQS
) $(LDBMODIFY_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1517 @
$(CC
) $(FLAGS
) -o
$@
$(LDBMODIFY_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1518 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1519 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1521 bin
/ldbdel
: $(BINARY_PREREQS
) $(LDBDEL_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1523 @
$(CC
) $(FLAGS
) -o
$@
$(LDBDEL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1524 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1525 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1528 #####################################################################
1532 #####################################################################
1534 MKSYMS_SH
= $(srcdir)/script
/mksyms.sh
1537 #-------------------------------------------------------------------
1541 #-------------------------------------------------------------------
1543 TALLOC_OBJ
= @TALLOC_OBJS@
1545 LIBTALLOC_OBJ0
= $(TALLOC_OBJ
)
1546 LIBTALLOC_OBJ
= $(LIBTALLOC_OBJ0
) $(LIBREPLACE_OBJ
)
1548 LIBTALLOC_SHARED_TARGET
=@LIBTALLOC_SHARED_TARGET@
1549 LIBTALLOC_SOVER
=@LIBTALLOC_SOVER@
1550 LIBTALLOC_SHARED_TARGET_SONAME
=$(LIBTALLOC_SHARED_TARGET
).
$(LIBTALLOC_SOVER
)
1551 LIBTALLOC_STATIC_TARGET
=@LIBTALLOC_STATIC_TARGET@
1552 LIBTALLOC
=$(LIBTALLOC_STATIC_TARGET
) @LIBTALLOC_SHARED@
1553 LIBTALLOC_SYMS
=$(srcdir)/exports
/libtalloc.@SYMSEXT@
1554 LIBTALLOC_HEADERS
=$(srcdir)/@tallocdir@
/talloc.h
1556 $(LIBTALLOC_SYMS
): $(LIBTALLOC_HEADERS
)
1557 @
$(MKSYMS_SH
) $(AWK
) $@
$(LIBTALLOC_HEADERS
)
1559 $(LIBTALLOC_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBTALLOC_OBJ
) $(LIBTALLOC_SYMS
)
1560 @echo Linking shared library
$@
1561 @
$(SHLD_DSO
) $(LIBTALLOC_OBJ
) @SONAMEFLAG@
`basename $@`
1563 $(LIBTALLOC_SHARED_TARGET
): $(LIBTALLOC_SHARED_TARGET_SONAME
)
1565 @ln
-f
-s
`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1567 $(LIBTALLOC_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBTALLOC_OBJ0
)
1568 @echo Linking non-shared library
$@
1569 @
-$(AR
) -rc
$@
$(LIBTALLOC_OBJ0
)
1571 libtalloc
: $(LIBTALLOC
)
1576 $(LIBTALLOC_STATIC_TARGET
) \
1577 $(LIBTALLOC_SHARED_TARGET
) \
1578 $(LIBTALLOC_SHARED_TARGET_SONAME
)
1580 installlibtalloc
:: installdirs libtalloc
1581 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1582 -$(INSTALLLIBCMD_SH
) $(LIBTALLOC_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1583 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_SHARED_TARGET)`
1584 -if
test -r
$(LIBTALLOC_SHARED_TARGET_SONAME
) ; then \
1585 ln
-f
-s
`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1586 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1588 -$(INSTALLLIBCMD_A
) $(LIBTALLOC_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1589 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1590 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBTALLOC_HEADERS
) $(DESTDIR
)${prefix}/include
1592 uninstalllibtalloc
::
1593 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_SHARED_TARGET)`
1594 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1595 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_STATIC_TARGET)`
1596 -rm -f
$(DESTDIR
)${prefix}/include/talloc.h
1599 installlibs
:: @INSTALL_LIBTALLOC@
1600 uninstalllibs
:: @UNINSTALL_LIBTALLOC@
1601 cleanlibs
:: cleanlibtalloc
1602 shlibs test_shlibs
: @LIBTALLOC_SHARED@
1604 #-------------------------------------------------------------------
1608 #-------------------------------------------------------------------
1610 LIBTDB_OBJ0
= @TDB_OBJS@
1611 LIBTDB_OBJ
= $(LIBTDB_OBJ0
) $(LIBREPLACE_OBJ
)
1613 LIBTDB_SHARED_TARGET
=@LIBTDB_SHARED_TARGET@
1614 LIBTDB_SOVER
=@LIBTDB_SOVER@
1615 LIBTDB_SHARED_TARGET_SONAME
=$(LIBTDB_SHARED_TARGET
).
$(LIBTDB_SOVER
)
1616 LIBTDB_STATIC_TARGET
=@LIBTDB_STATIC_TARGET@
1617 LIBTDB
=$(LIBTDB_STATIC_TARGET
) @LIBTDB_SHARED@
1618 LIBTDB_SYMS
=$(srcdir)/exports
/libtdb.@SYMSEXT@
1619 LIBTDB_HEADERS
=$(srcdir)/@tdbdir@
/include/tdb.h
1621 $(LIBTDB_SYMS
): $(LIBTDB_HEADERS
)
1622 @
$(MKSYMS_SH
) $(AWK
) $@
$(LIBTDB_HEADERS
)
1624 $(LIBTDB_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBTDB_OBJ
) $(LIBTDB_SYMS
)
1625 @echo Linking shared library
$@
1626 @
$(SHLD_DSO
) $(LIBTDB_OBJ
) \
1627 @SONAMEFLAG@
`basename $@`
1629 $(LIBTDB_SHARED_TARGET
): $(LIBTDB_SHARED_TARGET_SONAME
)
1631 @ln
-f
-s
`basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1633 $(LIBTDB_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBTDB_OBJ0
)
1634 @echo Linking non-shared library
$@
1635 @
-$(AR
) -rc
$@
$(LIBTDB_OBJ0
)
1642 $(LIBTDB_STATIC_TARGET
) \
1643 $(LIBTDB_SHARED_TARGET
) \
1644 $(LIBTDB_SHARED_TARGET_SONAME
)
1647 installlibtdb
:: installdirs libtdb
1648 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1649 -$(INSTALLLIBCMD_SH
) $(LIBTDB_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1650 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_SHARED_TARGET)`
1651 -if
test -r
$(LIBTDB_SHARED_TARGET_SONAME
) ; then \
1652 ln
-f
-s
`basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1653 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1655 -$(INSTALLLIBCMD_A
) $(LIBTDB_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1656 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1657 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBTDB_HEADERS
) $(DESTDIR
)${prefix}/include
1660 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_SHARED_TARGET)`
1661 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1662 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_STATIC_TARGET)`
1663 -rm -f
$(DESTDIR
)${prefix}/include/tdb.h
1666 installlibs
:: @INSTALL_LIBTDB@
1667 uninstalllibs
:: @UNINSTALL_LIBTDB@
1668 cleanlibs
:: cleanlibtdb
1669 shlibs test_shlibs
: @LIBTDB_SHARED@
1671 #-------------------------------------------------------------------
1675 #-------------------------------------------------------------------
1677 LIBWBCLIENT_OBJ0
= nsswitch
/libwbclient
/wbclient.o \
1678 nsswitch
/libwbclient
/wbc_util.o \
1679 nsswitch
/libwbclient
/wbc_pwd.o \
1680 nsswitch
/libwbclient
/wbc_idmap.o \
1681 nsswitch
/libwbclient
/wbc_sid.o \
1682 nsswitch
/libwbclient
/wbc_pam.o
1683 LIBWBCLIENT_OBJ
= $(LIBWBCLIENT_OBJ0
) \
1685 @LIBTALLOC_STATIC@
$(LIBREPLACE_OBJ
)
1687 LIBWBCLIENT_SHARED_TARGET
=@LIBWBCLIENT_SHARED_TARGET@
1688 LIBWBCLIENT_SOVER
=@LIBWBCLIENT_SOVER@
1689 LIBWBCLIENT_SHARED_TARGET_SONAME
=$(LIBWBCLIENT_SHARED_TARGET
).
$(LIBWBCLIENT_SOVER
)
1690 LIBWBCLIENT_STATIC_TARGET
=@LIBWBCLIENT_STATIC_TARGET@
1691 LIBWBCLIENT
=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1692 LIBWBCLIENT_SYMS
=$(srcdir)/exports
/libwbclient.@SYMSEXT@
1693 LIBWBCLIENT_HEADERS
=$(srcdir)/nsswitch
/libwbclient
/wbclient.h
1695 $(LIBWBCLIENT_SYMS
): $(LIBWBCLIENT_HEADERS
)
1696 @
$(MKSYMS_SH
) $(AWK
) $@
$(LIBWBCLIENT_HEADERS
)
1698 $(LIBWBCLIENT_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBWBCLIENT_OBJ
) $(LIBWBCLIENT_SYMS
) @LIBTALLOC_SHARED@
1699 @echo Linking shared library
$@
1700 @
$(SHLD_DSO
) $(LIBTALLOC_LIBS
) $(LIBWBCLIENT_OBJ
) \
1701 @SONAMEFLAG@
`basename $@`
1703 $(LIBWBCLIENT_SHARED_TARGET
): $(LIBWBCLIENT_SHARED_TARGET_SONAME
)
1705 @ln
-f
-s
`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1707 $(LIBWBCLIENT_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBWBCLIENT_OBJ0
) $(WBCOMMON_OBJ
)
1708 @echo Linking non-shared library
$@
1709 @
-$(AR
) -rc
$@
$(LIBWBCLIENT_OBJ0
) $(WBCOMMON_OBJ
)
1711 libwbclient
: $(LIBWBCLIENT
)
1715 $(LIBWBCLIENT_SYMS
) \
1716 $(LIBWBCLIENT_STATIC_TARGET
) \
1717 $(LIBWBCLIENT_SHARED_TARGET
) \
1718 $(LIBWBCLIENT_SHARED_TARGET_SONAME
)
1720 installlibwbclient
:: installdirs libwbclient
1721 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1722 -$(INSTALLLIBCMD_SH
) $(LIBWBCLIENT_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1723 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1724 -if
test -r
$(LIBWBCLIENT_SHARED_TARGET_SONAME
) ; then \
1725 ln
-f
-s
`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1726 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1728 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1729 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBWBCLIENT_HEADERS
) $(DESTDIR
)${prefix}/include
1731 uninstalllibwbclient
::
1732 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1733 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1734 -rm -f
$(DESTDIR
)${prefix}/include/wbclient.h
1737 installlibs
:: @INSTALL_LIBWBCLIENT@
1738 uninstalllibs
:: uninstalllibwbclient
1739 cleanlibs
:: cleanlibwbclient
1740 shlibs test_shlibs
: @LIBWBCLIENT_SHARED@
1743 #-------------------------------------------------------------------
1747 #-------------------------------------------------------------------
1750 LIBADDNS_SHARED_TARGET
=@LIBADDNS_SHARED_TARGET@
1751 LIBADDNS_SOVER
=@LIBADDNS_SOVER@
1752 LIBADDNS_SHARED_TARGET_SONAME
=$(LIBADDNS_SHARED_TARGET
).
$(LIBADDNS_SOVER
)
1753 LIBADDNS_STATIC_TARGET
=@LIBADDNS_STATIC_TARGET@
1754 LIBADDNS
=$(LIBADDNS_STATIC_TARGET
) @LIBADDNS_SHARED@
1755 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1756 LIBADDNS_HEADERS
=$(srcdir)/libaddns
/addns.h
1758 $(LIBADDNS_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBADDNS_OBJ
) @LIBTALLOC_SHARED@
1759 @echo Linking shared library
$@
1760 @
$(SHLD_DSO
) $(LIBADDNS_OBJ
) $(LIBS
) \
1761 $(KRB5LIBS
) $(UUID_LIBS
) $(LIBTALLOC_LIBS
) \
1762 @SONAMEFLAG@
`basename $@`
1764 $(LIBADDNS_SHARED_TARGET
): $(LIBADDNS_SHARED_TARGET_SONAME
)
1766 @ln
-f
-s
`basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1768 $(LIBADDNS_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBADDNS_OBJ0
)
1769 @echo Linking non-shared library
$@
1770 @
-$(AR
) -rc
$@
$(LIBADDNS_OBJ0
)
1772 libaddns
: $(LIBADDNS
)
1776 $(LIBADDNS_SHARED_TARGET
) \
1777 $(LIBADDNS_SHARED_TARGET_SONAME
) \
1778 $(LIBADDNS_STATIC_TARGET
)
1780 installlibaddns
:: installdirs libaddns
1781 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1782 -$(INSTALLLIBCMD_SH
) $(LIBADDNS_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1783 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_SHARED_TARGET)`
1784 -if
test -r
$(LIBADDNS_SHARED_TARGET_SONAME
) ; then \
1785 ln
-f
-s
`basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1786 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1788 -$(INSTALLLIBCMD_A
) $(LIBADDNS_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1791 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1792 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_SHARED_TARGET)`
1793 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_STATIC_TARGET)`
1796 installlibs
:: @INSTALL_LIBADDNS@
1797 uninstalllibs
:: @UNINSTALL_LIBADDNS@
1798 cleanlibs
:: cleanlibaddns
1799 shlibs test_shlibs
: @LIBADDNS_SHARED@
1801 #-------------------------------------------------------------------
1805 #-------------------------------------------------------------------
1807 LIBNETAPI_OBJ0
= lib
/netapi
/netapi.o \
1809 librpc
/gen_ndr
/ndr_libnetapi.o \
1810 lib
/netapi
/libnetapi.o \
1811 lib
/netapi
/joindomain.o \
1812 lib
/netapi
/serverinfo.o \
1813 lib
/netapi
/getdc.o \
1816 LIBNETAPI_OBJ
= $(LIBNETAPI_OBJ0
) $(LIBNET_OBJ
) \
1818 $(REG_SMBCONF_OBJ
) \
1819 $(PARAM_WITHOUT_REG_OBJ
) $(LIB_NONSMBD_OBJ
) \
1820 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1821 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
1822 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
1823 $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(PRIVILEGES_BASIC_OBJ
)
1825 LIBNETAPI_SHARED_TARGET
=@LIBNETAPI_SHARED_TARGET@
1826 LIBNETAPI_SOVER
=@LIBNETAPI_SOVER@
1827 LIBNETAPI_SHARED_TARGET_SONAME
=$(LIBNETAPI_SHARED_TARGET
).
$(LIBNETAPI_SOVER
)
1828 LIBNETAPI_STATIC_TARGET
=@LIBNETAPI_STATIC_TARGET@
1829 LIBNETAPI
=$(LIBNETAPI_STATIC_TARGET
) @LIBNETAPI_SHARED@
1830 LIBNETAPI_SYMS
=$(srcdir)/exports
/libnetapi.@SYMSEXT@
1831 LIBNETAPI_HEADERS
=$(srcdir)/lib
/netapi
/netapi.h
1833 $(LIBNETAPI_SYMS
): $(LIBNETAPI_HEADERS
)
1834 @
$(MKSYMS_SH
) $(AWK
) $@
$(LIBNETAPI_HEADERS
)
1836 $(LIBNETAPI_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBNETAPI_OBJ
) $(LIBNETAPI_SYMS
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1837 @echo Linking shared library
$@
1838 @
$(SHLD_DSO
) $(LIBNETAPI_OBJ
) \
1839 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
) $(LIBS
) \
1840 $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
) \
1841 @SONAMEFLAG@
`basename $@`
1843 $(LIBNETAPI_SHARED_TARGET
): $(LIBNETAPI_SHARED_TARGET_SONAME
)
1845 @ln
-f
-s
`basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
1847 $(LIBNETAPI_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBNETAPI_OBJ0
)
1848 @echo Linking non-shared library
$@
1849 @
-$(AR
) -rc
$@
$(LIBNETAPI_OBJ0
)
1851 libnetapi
: $(LIBNETAPI
)
1856 $(LIBNETAPI_STATIC_TARGET
) \
1857 $(LIBNETAPI_SHARED_TARGET
) \
1858 $(LIBNETAPI_SHARED_TARGET_SONAME
)
1860 installlibnetapi
:: installdirs libnetapi
1861 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1862 -$(INSTALLLIBCMD_SH
) $(LIBNETAPI_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1863 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_SHARED_TARGET)`
1864 -if
test -r
$(LIBNETAPI_SHARED_TARGET_SONAME
) ; then \
1865 ln
-f
-s
`basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
1866 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
1868 -$(INSTALLLIBCMD_A
) $(LIBNETAPI_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1869 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1870 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/lib
/netapi
/netapi.h
$(DESTDIR
)${prefix}/include
1872 uninstalllibnetapi
::
1873 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_SHARED_TARGET)`
1874 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
1875 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_STATIC_TARGET)`
1876 -rm -f
$(DESTDIR
)${prefix}/include/netapi.h
1879 installlibs
:: @INSTALL_LIBNETAPI@
1880 uninstalllibs
:: @UNINSTALL_LIBNETAPI@
1881 cleanlibs
:: cleanlibnetapi
1882 shlibs test_shlibs
: @LIBNETAPI_SHARED@
1884 #-------------------------------------------------------------------
1888 #-------------------------------------------------------------------
1890 LIBSMBCLIENT_SHARED_TARGET
=@LIBSMBCLIENT_SHARED_TARGET@
1891 LIBSMBCLIENT_SOVER
=@LIBSMBCLIENT_SOVER@
1892 LIBSMBCLIENT_SHARED_TARGET_SONAME
=$(LIBSMBCLIENT_SHARED_TARGET
).
$(LIBSMBCLIENT_SOVER
)
1893 LIBSMBCLIENT_STATIC_TARGET
=@LIBSMBCLIENT_STATIC_TARGET@
1894 LIBSMBCLIENT
=$(LIBSMBCLIENT_STATIC_TARGET
) @LIBSMBCLIENT_SHARED@
1895 #LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
1896 LIBSMBCLIENT_HEADERS
=$(srcdir)/include/libsmbclient.h
1898 $(LIBSMBCLIENT_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1899 @echo Linking shared library
$@
1900 @
$(SHLD_DSO
) $(LIBSMBCLIENT_OBJ
) \
1901 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
) $(LIBS
) \
1902 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1903 @SONAMEFLAG@
`basename $@`
1905 $(LIBSMBCLIENT_SHARED_TARGET
): $(LIBSMBCLIENT_SHARED_TARGET_SONAME
)
1907 @ln
-s
`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
1909 $(LIBSMBCLIENT_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ1
)
1910 @echo Linking non-shared library
$@
1911 @
-$(AR
) -rc
$@
$(LIBSMBCLIENT_OBJ1
)
1913 libsmbclient
: $(LIBSMBCLIENT
)
1917 $(LIBSMBCLIENT_SHARED_TARGET
) \
1918 $(LIBSMBCLIENT_SHARED_TARGET_SONAME
) \
1919 $(LIBSMBCLIENT_STATIC_TARGET
)
1921 installlibsmbclient
:: installdirs libsmbclient
1922 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1923 -$(INSTALLLIBCMD_SH
) $(LIBSMBCLIENT_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1924 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1925 -if
test -r
$(LIBSMBCLIENT_SHARED_TARGET_SONAME
) ; then \
1926 ln
-f
-s
`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
1927 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
1929 -$(INSTALLLIBCMD_A
) $(LIBSMBCLIENT_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1930 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1931 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBSMBCLIENT_HEADERS
) $(DESTDIR
)${prefix}/include
1933 installclientlib
:: installlibsmbclient
1935 uninstalllibsmbclient
::
1936 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1937 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
1938 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
1939 -rm -f
$(DESTDIR
)${prefix}/include/libsmbclient.h
1941 uninstallclientlib
:: uninstalllibsmbclient
1944 installlibs
:: @INSTALL_LIBSMBCLIENT@
1945 uninstalllibs
:: @UNINSTALL_LIBSMBCLIENT@
1946 cleanlibs
:: cleanlibsmbclient
1947 shlibs test_shlibs
: @LIBSMBCLIENT_SHARED@
1949 #-------------------------------------------------------------------
1953 #-------------------------------------------------------------------
1955 LIBSMBSHAREMODES_OBJ0
= libsmb
/smb_share_modes.o
1957 LIBSMBSHAREMODES_OBJ
= $(LIBSMBSHAREMODES_OBJ0
) @LIBTDB_STATIC@
1959 LIBSMBSHAREMODES_SHARED_TARGET
=@LIBSMBSHAREMODES_SHARED_TARGET@
1960 LIBSMBSHAREMODES_SOVER
=@LIBSMBSHAREMODES_SOVER@
1961 LIBSMBSHAREMODES_SHARED_TARGET_SONAME
=$(LIBSMBSHAREMODES_SHARED_TARGET
).
$(LIBSMBSHAREMODES_SOVER
)
1962 LIBSMBSHAREMODES_STATIC_TARGET
=@LIBSMBSHAREMODES_STATIC_TARGET@
1963 LIBSMBSHAREMODES
=$(LIBSMBSHAREMODES_STATIC_TARGET
) @LIBSMBSHAREMODES_SHARED@
1964 #LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
1965 LIBSMBSHAREMODES_HEADERS
=$(srcdir)/include/smb_share_modes.h
1967 LIBSMBSHAREMODES
=bin
/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
1969 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1970 @echo Linking shared library
$@
1971 @
$(SHLD_DSO
) $(LIBSMBSHAREMODES_OBJ
) \
1972 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
1973 $(KRB5LIBS
) $(LDAP_LIBS
) \
1974 @SONAMEFLAG@
`basename $@`
1976 $(LIBSMBSHAREMODES_SHARED_TARGET
): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
)
1978 @ln
-f
-s
`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
1980 $(LIBSMBSHAREMODES_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ0
)
1981 @echo Linking non-shared library
$@
1982 @
-$(AR
) -rc
$@
$(LIBSMBSHAREMODES_OBJ0
)
1984 libsmbsharemodes
: $(LIBSMBSHAREMODES
)
1986 cleanlibsmbsharemodes
::
1988 $(LIBSMBSHAREMODES_SHARED_TARGET
) \
1989 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
) \
1990 $(LIBSMBSHAREMODES_STATIC_TARGET
)
1992 installlibsmbsharemodes
:: installdirs libsmbsharemodes
1993 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1994 -$(INSTALLLIBCMD_SH
) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1995 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
1996 -if
test -r
$(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
) ; then \
1997 ln
-f
-s
`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
1998 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2000 -$(INSTALLLIBCMD_A
) $(LIBSMBSHAREMODES_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
2001 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
2002 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBSMBSHAREMODES_HEADERS
) $(DESTDIR
)${prefix}/include
2004 uninstalllibsmbsharemodes
::
2005 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2006 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2007 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2008 -rm -f
$(DESTDIR
)${prefix}/include/smb_share_modes.h
2010 libs
:: libsmbsharemodes
2011 installlibs
:: @INSTALL_LIBSMBSHAREMODES@
2012 uninstalllibs
:: @UNINSTALL_LIBSMBSHAREMODES@
2013 cleanlibs
:: cleanlibsmbsharemodes
2014 shlibs test_shlibs
: @LIBSMBSHAREMODES_SHARED@
2016 #-------------------------------------------------------------------
2020 #-------------------------------------------------------------------
2022 # This is probably wrong for anything other than the GNU linker.
2023 bin
/libbigballofmud.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBBIGBALLOFMUD_OBJ
) @LIBTALLOC_SHARED@
2024 @echo Linking shared library
$@
2025 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_OBJ
) \
2026 $(LIBS
) $(LIBTALLOC_LIBS
) \
2027 $(PASSDB_LIBS
) $(IDMAP_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
2028 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
2029 ln
-snf libbigballofmud.so bin
/libbigballofmud.so
.0
2031 # It would be nice to build a static bigballofmud too, but when I try
2032 # I get linker errors about dl_open and similar things. I'm not sure if
2033 # it can be fixed or if they just can't be called from a static
2038 #####################################################################
2042 #####################################################################
2044 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2045 SHLD_MODULE
= $(SHLD
) $(LDSHFLAGS
) $(MODULE_EXPORTS
) \
2046 -o
$@ @SONAMEFLAG@
`basename $@`
2048 bin
/librpc_lsarpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_OBJ
)
2050 @
$(SHLD_MODULE
) $(RPC_LSA_OBJ
)
2052 bin
/librpc_samr.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SAMR_OBJ
)
2054 @
$(SHLD_MODULE
) $(RPC_SAMR_OBJ
)
2056 bin
/librpc_srvsvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVC_OBJ
)
2058 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
2060 bin
/librpc_svcctl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVCCTL_OBJ
)
2062 @
$(SHLD_MODULE
) $(RPC_SVCCTL_OBJ
)
2064 bin
/librpc_ntsvcs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NTSVCS_OBJ
)
2066 @
$(SHLD_MODULE
) $(RPC_NTSVCS_OBJ
)
2068 bin
/librpc_wkssvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_WKS_OBJ
)
2070 @
$(SHLD_MODULE
) $(RPC_WKS_OBJ
)
2072 bin
/librpc_NETLOGON.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NETLOG_OBJ
)
2074 @
$(SHLD_MODULE
) $(RPC_NETLOG_OBJ
)
2076 bin
/librpc_winreg.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_REG_OBJ
)
2078 @
$(SHLD_MODULE
) $(RPC_REG_OBJ
)
2080 bin
/librpc_initshutdown.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_INITSHUTDOWN_OBJ
)
2082 @
$(SHLD_MODULE
) $(RPC_INITSHUTDOWN_OBJ
)
2084 bin
/librpc_dssetup.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_DSSETUP_OBJ
)
2086 @
$(SHLD_MODULE
) $(RPC_DSSETUP_OBJ
)
2088 bin
/librpc_spoolss.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SPOOLSS_OBJ
)
2090 @
$(SHLD_MODULE
) $(RPC_SPOOLSS_OBJ
)
2092 bin
/librpc_eventlog.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EVENTLOG_OBJ
)
2094 @
$(SHLD_MODULE
) $(RPC_EVENTLOG_OBJ
)
2096 bin
/librpc_netdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_DFS_OBJ
)
2098 @
$(SHLD_MODULE
) $(RPC_DFS_OBJ
)
2100 bin
/librpc_echo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_ECHO_OBJ
)
2102 @
$(SHLD_MODULE
) $(RPC_ECHO_OBJ
)
2104 bin
/winbindd@EXEEXT@
: $(BINARY_PREREQS
) $(WINBINDD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2106 @
$(CC
) $(FLAGS
) -o
$@
$(WINBINDD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
2107 $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
2108 $(PASSDB_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
2110 bin
/vlp@EXEEXT@
: $(BINARY_PREREQS
) $(VLP_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2112 @
$(CC
) $(FLAGS
) -o
$@
$(VLP_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
2113 $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) $(POPT_LIBS
) \
2114 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
2115 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
2117 @WINBIND_NSS@
: $(BINARY_PREREQS
) $(WINBIND_NSS_OBJ
)
2119 @
$(SHLD
) $(WINBIND_NSS_LDSHFLAGS
) -o
$@
$(WINBIND_NSS_OBJ
) \
2120 $(WINBIND_NSS_EXTRA_LIBS
) $(WINBIND_NSS_PTHREAD
) \
2121 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
2123 @WINBIND_WINS_NSS@
: $(BINARY_PREREQS
) $(WINBIND_WINS_NSS_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2125 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_WINS_NSS_OBJ
) \
2126 $(LDAP_LIBS
) $(KRB5LIBS
) $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
2127 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
2129 bin
/winbind_krb5_locator.@SHLIBEXT@
: $(BINARY_PREREQS
) $(WINBIND_KRB5_LOCATOR_OBJ
)
2131 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_KRB5_LOCATOR_OBJ
) \
2132 @SONAMEFLAG@
`basename $@`
2134 bin
/pam_winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_WINBIND_OBJ
)
2135 @echo
"Linking shared library $@"
2136 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) -lpam @INIPARSERLIBS@ \
2137 $(PAM_WINBIND_EXTRA_LIBS
) @SONAMEFLAG@
`basename $@`
2139 bin
/builtin.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_BUILTIN_OBJ
)
2140 @echo
"Building plugin $@"
2141 @
$(SHLD_MODULE
) $(AUTH_BUILTIN_OBJ
)
2143 bin
/domain.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_DOMAIN_OBJ
)
2144 @echo
"Building plugin $@"
2145 @
$(SHLD_MODULE
) $(AUTH_DOMAIN_OBJ
)
2147 bin
/script.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SCRIPT_OBJ
)
2148 @echo
"Building plugin $@"
2149 @
$(SHLD_MODULE
) $(AUTH_SCRIPT_OBJ
)
2151 bin
/smbserver.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SERVER_OBJ
)
2152 @echo
"Building plugin $@"
2153 @
$(SHLD_MODULE
) $(AUTH_SERVER_OBJ
)
2155 bin
/winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_WINBIND_OBJ
)
2156 @echo
"Building plugin $@"
2157 @
$(SHLD_MODULE
) $(AUTH_WINBIND_OBJ
)
2159 bin
/unix.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_UNIX_OBJ
)
2160 @echo
"Building plugin $@"
2161 @
$(SHLD_MODULE
) $(AUTH_UNIX_OBJ
)
2163 bin
/sam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SAM_OBJ
)
2164 @echo
"Building plugin $@"
2165 @
$(SHLD_MODULE
) $(AUTH_SAM_OBJ
)
2167 bin
/ldapsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
2168 @echo
"Building plugin $@"
2169 @
$(SHLD_MODULE
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
$(LDAP_LIBS
)
2171 bin
/tdbsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_tdb.o
2172 @echo
"Building plugin $@"
2173 @
$(SHLD_MODULE
) passdb
/pdb_tdb.o
2175 bin
/smbpasswd.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_smbpasswd.o
2176 @echo
"Building plugin $@"
2177 @
$(SHLD_MODULE
) passdb
/pdb_smbpasswd.o
2179 bin
/rid.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_rid.o
2180 @echo
"Building plugin $@"
2181 @
$(SHLD_MODULE
) winbindd
/idmap_rid.o
2183 bin
/ad.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_ad.o
2184 @echo
"Building plugin $@"
2185 @
$(SHLD_MODULE
) winbindd
/idmap_ad.o
2187 bin
/tdb2.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_tdb2.o
2188 @echo
"Building plugin $@"
2189 @
$(SHLD_MODULE
) winbindd
/idmap_tdb2.o
2191 bin
/ldap.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_ldap.o
2192 @echo
"Building plugin $@"
2193 @
$(SHLD_MODULE
) winbindd
/idmap_ldap.o
2195 bin
/weird.@SHLIBEXT@
: $(BINARY_PREREQS
) $(DEVEL_HELP_WEIRD_OBJ
)
2196 @echo
"Building plugin $@"
2197 @
$(SHLD_MODULE
) $(DEVEL_HELP_WEIRD_OBJ
)
2199 bin
/CP850.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP850_OBJ
)
2200 @echo
"Building plugin $@"
2201 @
$(SHLD_MODULE
) $(CP850_OBJ
)
2203 bin
/CP437.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP437_OBJ
)
2204 @echo
"Building plugin $@"
2205 @
$(SHLD_MODULE
) $(CP437_OBJ
)
2207 bin
/macosxfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CHARSET_MACOSXFS_OBJ
)
2208 @echo
"Building plugin $@"
2209 @
$(SHLD_MODULE
) $(CHARSET_MACOSXFS_OBJ
) -framework CoreFoundation
2211 # NOTE, there is no build rule for a dynamic default VFS module because
2212 # this one MUST MUST MUST be built statically.
2214 bin
/audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AUDIT_OBJ
)
2215 @echo
"Building plugin $@"
2216 @
$(SHLD_MODULE
) $(VFS_AUDIT_OBJ
)
2218 bin
/extd_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXTD_AUDIT_OBJ
)
2219 @echo
"Building plugin $@"
2220 @
$(SHLD_MODULE
) $(VFS_EXTD_AUDIT_OBJ
)
2222 bin
/full_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FULL_AUDIT_OBJ
)
2223 @echo
"Building plugin $@"
2224 @
$(SHLD_MODULE
) $(VFS_FULL_AUDIT_OBJ
)
2226 bin
/recycle.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_RECYCLE_OBJ
)
2227 @echo
"Building plugin $@"
2228 @
$(SHLD_MODULE
) $(VFS_RECYCLE_OBJ
)
2230 bin
/netatalk.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NETATALK_OBJ
)
2231 @echo
"Building plugin $@"
2232 @
$(SHLD_MODULE
) $(VFS_NETATALK_OBJ
)
2234 bin
/fake_perms.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FAKE_PERMS_OBJ
)
2235 @echo
"Building plugin $@"
2236 @
$(SHLD_MODULE
) $(VFS_FAKE_PERMS_OBJ
)
2238 bin
/default_quota.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_DEFAULT_QUOTA_OBJ
)
2239 @echo
"Building plugin $@"
2240 @
$(SHLD_MODULE
) $(VFS_DEFAULT_QUOTA_OBJ
)
2242 bin
/readonly.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READONLY_OBJ
)
2243 @echo
"Building plugin $@"
2244 @
$(SHLD_MODULE
) $(VFS_READONLY_OBJ
)
2246 bin
/shadow_copy.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SHADOW_COPY_OBJ
)
2247 @echo
"Building plugin $@"
2248 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY_OBJ
)
2250 bin
/shadow_copy2.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SHADOW_COPY2_OBJ
)
2251 @echo
"Building plugin $@"
2252 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY2_OBJ
)
2254 bin
/syncops.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SYNCOPS_OBJ
)
2255 @echo
"Building plugin $@"
2256 @
$(SHLD_MODULE
) $(VFS_SYNCOPS_OBJ
)
2258 bin
/cap.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CAP_OBJ
)
2259 @echo
"Building plugin $@"
2260 @
$(SHLD_MODULE
) $(VFS_CAP_OBJ
)
2262 bin
/expand_msdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXPAND_MSDFS_OBJ
)
2263 @echo
"Building plugin $@"
2264 @
$(SHLD_MODULE
) $(VFS_EXPAND_MSDFS_OBJ
)
2266 bin
/afsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AFSACL_OBJ
)
2267 @echo
"Building plugin $@"
2268 @
$(SHLD_MODULE
) $(VFS_AFSACL_OBJ
)
2270 bin
/xattr_tdb.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_XATTR_TDB_OBJ
)
2271 @echo
"Building plugin $@"
2272 @
$(SHLD_MODULE
) $(VFS_XATTR_TDB_OBJ
)
2274 bin
/posixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_POSIXACL_OBJ
)
2275 @echo
"Building plugin $@"
2276 @
$(SHLD_MODULE
) $(VFS_POSIXACL_OBJ
)
2278 bin
/aixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL_OBJ
)
2279 @echo
"Building plugin $@"
2280 @
$(SHLD_MODULE
) $(VFS_AIXACL_OBJ
)
2282 bin
/aixacl2.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL2_OBJ
)
2283 @echo
"Building plugin $@"
2284 @
$(SHLD_MODULE
) $(VFS_AIXACL2_OBJ
)
2286 bin
/solarisacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SOLARISACL_OBJ
)
2287 @echo
"Building plugin $@"
2288 @
$(SHLD_MODULE
) $(VFS_SOLARISACL_OBJ
)
2290 bin
/zfsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_ZFSACL_OBJ
)
2291 @echo
"Building plugin $@"
2292 @
$(SHLD_MODULE
) $(VFS_ZFSACL_OBJ
)
2294 bin
/irixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_IRIXACL_OBJ
)
2295 @echo
"Building plugin $@"
2296 @
$(SHLD_MODULE
) $(VFS_IRIXACL_OBJ
)
2298 bin
/hpuxacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_HPUXACL_OBJ
)
2299 @echo
"Building plugin $@"
2300 @
$(SHLD_MODULE
) $(VFS_HPUXACL_OBJ
)
2302 bin
/tru64acl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_TRU64ACL_OBJ
)
2303 @echo
"Building plugin $@"
2304 @
$(SHLD_MODULE
) $(VFS_TRU64ACL_OBJ
)
2306 bin
/catia.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CATIA_OBJ
)
2307 @echo
"Building plugin $@"
2308 @
$(SHLD_MODULE
) $(VFS_CATIA_OBJ
)
2310 bin
/streams_xattr.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_STREAMS_XATTR_OBJ
)
2311 @echo
"Building plugin $@"
2312 @
$(SHLD_MODULE
) $(VFS_STREAMS_XATTR_OBJ
)
2314 bin
/streams_depot.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_STREAMS_DEPOT_OBJ
)
2315 @echo
"Building plugin $@"
2316 @
$(SHLD_MODULE
) $(VFS_STREAMS_DEPOT_OBJ
)
2318 bin
/cacheprime.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CACHEPRIME_OBJ
)
2319 @echo
"Building plugin $@"
2320 @
$(SHLD_MODULE
) $(VFS_CACHEPRIME_OBJ
)
2322 bin
/prealloc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_PREALLOC_OBJ
)
2323 @echo
"Building plugin $@"
2324 @
$(SHLD_MODULE
) $(VFS_PREALLOC_OBJ
)
2326 bin
/commit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_COMMIT_OBJ
)
2327 @echo
"Building plugin $@"
2328 @
$(SHLD_MODULE
) $(VFS_COMMIT_OBJ
)
2330 bin
/gpfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_GPFS_OBJ
)
2331 @echo
"Building plugin $@"
2332 @
$(SHLD_MODULE
) $(VFS_GPFS_OBJ
)
2334 bin
/notify_fam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NOTIFY_FAM_OBJ
)
2335 @echo
"Building plugin $@"
2336 @
$(SHLD_MODULE
) $(VFS_NOTIFY_FAM_OBJ
) @SMB_FAM_LIBS@
2338 bin
/readahead.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READAHEAD_OBJ
)
2339 @echo
"Building plugin $@"
2340 @
$(SHLD_MODULE
) $(VFS_READAHEAD_OBJ
)
2342 bin
/tsmsm.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_TSMSM_OBJ
)
2343 @echo
"Building plugin $@"
2344 @
$(SHLD_MODULE
) $(VFS_TSMSM_OBJ
)
2346 bin
/fileid.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FILEID_OBJ
)
2347 @echo
"Building plugin $@"
2348 @
$(SHLD_MODULE
) $(VFS_FILEID_OBJ
)
2350 bin
/aio_fork.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIO_FORK_OBJ
)
2351 @echo
"Building plugin $@"
2352 @
$(SHLD_MODULE
) $(VFS_AIO_FORK_OBJ
)
2354 bin
/smb_traffic_analyzer.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ
)
2355 @echo
"Building plugin $@"
2356 @
$(SHLD_MODULE
) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ
)
2357 #########################################################
2358 ## IdMap NSS plugins
2360 ## None here right now
2361 #########################################################
2363 bin
/wbinfo@EXEEXT@
: $(BINARY_PREREQS
) $(WBINFO_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2365 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(WBINFO_OBJ
) $(DYNEXP
) $(LIBS
) \
2366 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
2369 bin
/ntlm_auth@EXEEXT@
: $(BINARY_PREREQS
) $(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) \
2370 $(LIB_NONSMBD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2372 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(NTLM_AUTH_OBJ
) \
2373 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBS
) \
2374 $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
2375 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
2377 bin
/pam_smbpass.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_SMBPASS_OBJ
) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2378 @echo
"Linking shared library $@"
2379 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_OBJ
) -lpam
$(DYNEXP
) \
2380 $(LIBS
) $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
) \
2381 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
2383 bin
/tdbbackup@EXEEXT@
: $(BINARY_PREREQS
) $(TDBBACKUP_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2385 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(TDBBACKUP_OBJ
) $(DYNEXP
) \
2386 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
2388 bin
/tdbtool@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTOOL_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2390 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(TDBTOOL_OBJ
) $(DYNEXP
) \
2391 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
2393 bin
/tdbdump@EXEEXT@
: $(BINARY_PREREQS
) $(TDBDUMP_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2395 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(TDBDUMP_OBJ
) $(DYNEXP
) \
2396 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
2398 bin
/tdbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTORTURE_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2400 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(TDBTORTURE_OBJ
) $(DYNEXP
) \
2401 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
2403 bin
/t_strcmp@EXEEXT@
: $(BINARY_PREREQS
) @LIBTALLOC_SHARED@ bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strcmp.o
2404 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) $(LIBTALLOC_LIBS
) \
2405 torture
/t_strcmp.o
-L .
/bin
-lbigballofmud
2407 bin
/t_strstr@EXEEXT@
: $(BINARY_PREREQS
) @LIBTALLOC_SHARED@ bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strstr.o
2408 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) $(LIBTALLOC_LIBS
) \
2409 torture
/t_strstr.o
-L .
/bin
-lbigballofmud
2411 bin
/t_strappend@EXEEXT@
: $(BINARY_PREREQS
) @LIBTALLOC_SHARED@ bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strappend.o
2412 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) $(LIBTALLOC_LIBS
) \
2413 torture
/t_strappend.o
-L .
/bin
-lbigballofmud
2415 bin
/t_stringoverflow@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_stringoverflow.o
2416 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) torture
/t_stringoverflow.o \
2417 -L.
/bin
-lbigballofmud
2419 bin
/timelimit@EXEEXT@
: script
/tests
/timelimit.o
2421 @
$(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) script
/tests
/timelimit.o
2423 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2424 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2425 @INSTALL_PAM_MODULES@ installlibs
2427 install-everything
:: install installmodules
2429 # DESTDIR is used here to prevent packagers wasting their time
2430 # duplicating the Makefile. Remove it and you will have the privelege
2431 # of package each samba release for muliple versions of multiple
2432 # distributions and operating systems, or at least supplying patches
2433 # to all the packaging files required for this, prior to committing
2434 # the removal of DESTDIR. Do not remove it even though you think it
2438 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
) $(PIDDIR
) $(LOCKDIR
) $(MANDIR
)
2440 installservers
:: all installdirs
2441 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
2443 installbin
:: all installdirs
2444 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
2446 installcifsmount
:: @CIFSMOUNT_PROGS@
2447 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(ROOTSBINDIR
)
2448 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
2450 installcifsupcall
:: @CIFSUPCALL_PROGS@
2451 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(SBINDIR
)
2452 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) @CIFSUPCALL_PROGS@
2454 # Some symlinks are required for the 'probing' of modules.
2455 # This mechanism should go at some point..
2456 installmodules
:: modules
installdirs
2457 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
2458 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
2459 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
2460 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
2461 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(NSSINFOLIBDIR
) $(NSS_INFO_MODULES
)
2462 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
2463 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
2464 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2465 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2466 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2467 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2468 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2469 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2470 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2471 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(NSSINFOLIBDIR
) ..
/idmap
/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2473 installscripts
:: installdirs
2474 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
2476 installdat
:: installdirs
2477 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
) $(CODEPAGEDIR
) $(srcdir)
2479 installmsg
:: installdirs
2480 @
$(SHELL
) $(srcdir)/script
/installmsg.sh
$(DESTDIR
) $(CODEPAGEDIR
) $(srcdir)
2482 installswat
:: installdirs installmsg
2483 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
2485 installpammodules
:: $(PAM_MODULES
)
2486 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(PAMMODULESDIR
)
2487 @for module in
$(PAM_MODULES
); do \
2488 echo
"Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2489 $(INSTALLCMD
) -m
$(INSTALLPERMS_BIN
) bin
/$${module}.@SHLIBEXT@ \
2490 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2493 # revert to the previously installed version
2495 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
2496 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
2498 installman
:: installdirs
2499 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
"@ROFF@"
2504 @echo
"Samba will be installed into:"
2505 @echo
" prefix: $(prefix)"
2506 @echo
" bindir: $(BINDIR)"
2507 @echo
" sbindir: $(SBINDIR)"
2508 @echo
" libdir: $(LIBDIR)"
2509 @echo
" vardir: $(VARDIR)"
2510 @echo
" mandir: $(MANDIR)"
2511 @echo
" privatedir: $(PRIVATE_DIR)"
2512 @echo
" configdir: $(CONFIGDIR)"
2513 @echo
" lockdir: $(LOCKDIR)"
2514 @echo
" piddir: $(PIDDIR)"
2515 @echo
" swatdir: $(SWATDIR)"
2518 uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2521 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
2524 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
2527 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
2529 uninstallcifsmount
::
2530 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
2532 uninstallcifsupcall
::
2533 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSUPCALL_PROGS@
2536 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
2537 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
2538 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
2539 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
2540 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
2541 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
2544 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
2547 @
$(SHELL
) $(srcdir)/script
/uninstalldat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
2550 @
$(SHELL
) $(srcdir)/script
/uninstallmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
2552 uninstallswat
:: uninstallmsg
2553 @
$(SHELL
) $(srcdir)/script
/uninstallswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
2555 uninstallpammodules
::
2556 @for module in
$(PAM_MODULES
); do \
2557 echo
"Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2558 rm -f
"$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2561 # Toplevel clean files
2562 TOPFILES
=dynconfig.o
2564 clean:: delheaders cleanlibs
2565 -rm -f
$(PRECOMPILED_HEADER
)
2566 -rm -f core
*/*~
*~ \
2567 */*.o
*/*/*.o
*/*/*/*.o \
2568 ..
/testsuite
/*/*.o \
2569 */*.@SHLIBEXT@
*/*/*.@SHLIBEXT@
*/*/*/*.@SHLIBEXT@ \
2570 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(ROOT_SBIN_PROGS
) \
2571 $(MODULES
) $(TORTURE_PROGS
) \
2572 $(EVERYTHING_PROGS
) \
2574 .headers.stamp
*/src
/*.o proto_exists
2577 # Making this target will just make sure that the prototype files
2578 # exist, not necessarily that they are up to date. Since they're
2579 # removed by "make clean" this will always be run when you do anything
2581 proto_exists
:: include/proto.h
include/build_env.h \
2582 winbindd
/winbindd_proto.h web
/swat_proto.h \
2583 libnet
/libnet_proto.h \
2584 client
/client_proto.h utils
/net_proto.h utils
/ntlm_auth_proto.h smbd
/build_options.c
2588 @echo Removing prototype headers
2589 @
rm -f
include/proto.h
include/build_env.h \
2590 winbindd
/winbindd_proto.h web
/swat_proto.h \
2591 client
/client_proto.h utils
/net_proto.h \
2592 smbd
/build_options.c utils
/ntlm_auth_proto.h \
2593 utils
/passwd_proto.h libnet
/libnet_proto.h
2595 MKPROTO_SH
= $(srcdir)/script
/mkproto.sh
2597 include/proto.h
: smbd
/build_options.c
2598 @echo Building
include/proto.h
2599 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2600 -h _PROTO_H_
$(builddir
)/include/proto.h \
2603 include/build_env.h
: script
/build_env.sh
2604 @echo Building
include/build_env.h
2605 @
$(SHELL
) $(srcdir)/script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) \
2606 > $(builddir
)/include/build_env.h
2608 winbindd
/winbindd_proto.h
:
2609 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2610 -h _WINBINDD_PROTO_H_
$(builddir
)/winbindd
/winbindd_proto.h \
2614 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2615 -h _SWAT_PROTO_H_
$(builddir
)/web
/swat_proto.h \
2618 client
/client_proto.h
:
2619 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2620 -h _CLIENT_PROTO_H_
$(builddir
)/client
/client_proto.h \
2624 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2625 -h _NET_PROTO_H_
$(builddir
)/utils
/net_proto.h \
2628 utils
/passwd_proto.h
:
2629 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2630 -h _PASSWD_PROTO_H_
$(builddir
)/utils
/passwd_proto.h \
2633 utils
/ntlm_auth_proto.h
:
2634 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2635 -h _NTLM_AUTH_PROTO_H_
$(builddir
)/utils
/ntlm_auth_proto.h \
2638 libnet
/libnet_proto.h
:
2639 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2640 -h _LIBNET_PROTO_H_
$(builddir
)/libnet
/libnet_proto.h \
2643 # "make headers" or "make proto" calls a subshell because we need to
2644 # make sure these commands are executed in sequence even for a
2647 $(MAKE
) delheaders
; \
2648 $(MAKE
) smbd
/build_options.c
; \
2649 $(MAKE
) include/proto.h
; \
2650 $(MAKE
) include/build_env.h
; \
2651 $(MAKE
) winbindd
/winbindd_proto.h
; \
2652 $(MAKE
) web
/swat_proto.h
; \
2653 $(MAKE
) client
/client_proto.h
; \
2654 $(MAKE
) utils
/ntlm_auth_proto.h
; \
2655 $(MAKE
) utils
/net_proto.h
; \
2656 $(MAKE
) utils
/passwd_proto.h
; \
2657 $(MAKE
) libnet
/libnet_proto.h
;
2661 .PHONY
: headers proto
2664 etags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2667 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2669 realclean:: clean delheaders
2670 -rm -f config.log bin
/.dummy script
/findsmb script
/gen-8bit-gap.sh
2671 -rm -f script
/installbin.sh script
/uninstallbin.sh
2673 distclean:: realclean
2675 -rm -f
include/config.h Makefile
2676 -rm -f config.status config.cache so_locations
2679 realdistclean
:: distclean
2680 -rm -f
include/config.h.in
2681 -rm -f
include/version.h
2684 # this target is really just for my use. It only works on a limited
2685 # range of machines and is used to produce a list of potentially
2686 # dead (ie. unused) functions in the code. (tridge)
2688 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
2689 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
2690 comm
-13 nmused.txt nmfns.txt
2693 # when configure.in is updated, reconfigure
2694 $(srcdir)/configure
: $(srcdir)/configure.in
2695 @echo
"WARNING: you need to rerun ./autogen.sh"
2697 config.status
: $(srcdir)/configure
2698 @echo
"WARNING: you need to run ./configure"
2700 Makefile
: $(srcdir)/Makefile.in config.status
2701 @echo
"WARNING: you need to run ./config.status"
2703 ######################################################################
2704 # Samba Testing Framework
2706 # Check shared libs for unresolved symbols
2709 @
$(LIB_PATH_VAR
)=.
/bin
&& \
2710 export $(LIB_PATH_VAR
) && \
2711 for module in
$?
; do \
2712 .
/script
/tests
/dlopen.sh
$${module} \
2716 # Check for NSS module problems.
2717 test_nss_modules
:: nss_modules
2718 @echo
"Testing $(NSS_MODULES) "
2719 @
$(LIB_PATH_VAR
)=.
/bin
&& \
2720 export $(LIB_PATH_VAR
) && \
2721 for module in
$(NSS_MODULES
); do \
2722 .
/script
/tests
/dlopen.sh
$${module} \
2726 # Check for PAM module problems. Specifically, check that every module we
2727 # built can actually be loaded by a minimal PAM-aware application.
2728 test_pam_modules
:: pam_modules
2729 @echo
"Testing $(PAM_MODULES) "
2730 @
$(LIB_PATH_VAR
)=.
/bin
&& \
2731 export $(LIB_PATH_VAR
) && \
2732 for module in
$(PAM_MODULES
); do \
2733 .
/script
/tests
/dlopen.sh
-lpam
-ldl bin
/$${module}.@SHLIBEXT@ \
2739 ## Targets for 'make test'
2741 test:: all torture timelimit
2742 @echo Running Test suite
2743 @LIB_PATH_VAR
=$(LIB_PATH_VAR
) PERL
="$(PERL)" $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix} all "${smbtorture4_path}"
2745 valgrindtest
:: all torture timelimit
2746 @echo Running Test suite with valgrind
2747 @LIB_PATH_VAR
=$(LIB_PATH_VAR
) \
2748 NMBD_VALGRIND
="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2749 WINBINDD_VALGRIND
="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2750 SMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2751 VALGRIND
="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2752 PERL
="$(PERL)" $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix} all "${smbtorture4_path}"