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]\+\)\?$$/@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 DNSSD_LIBS
=@DNSSD_LIBS@
72 LIBTALLOC_LIBS
=@LIBTALLOC_LIBS@
73 LIBTDB_LIBS
=@LIBTDB_LIBS@
74 LIBNETAPI_LIBS
=@LIBNETAPI_LIBS@
77 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
78 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
79 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
80 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
84 builddir
=@abs_builddir@
88 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
89 # will search for a POSIX-compliant shell, and that might not be
90 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
92 # See the autoconf manual "Installation Directory Variables" for a
93 # discussion of the subtle use of these variables.
97 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
99 ROOTSBINDIR
= @rootsbindir@
101 INCLUDEDIR
=@
includedir@
102 PAMMODULESDIR
= @pammodulesdir@
103 VFSLIBDIR
= $(LIBDIR
)/vfs
104 PDBLIBDIR
= $(LIBDIR
)/pdb
105 RPCLIBDIR
= $(LIBDIR
)/rpc
106 IDMAPLIBDIR
= $(LIBDIR
)/idmap
107 NSSINFOLIBDIR
= $(LIBDIR
)/nss_info
108 CHARSETLIBDIR
= $(LIBDIR
)/charset
109 AUTHLIBDIR
= $(LIBDIR
)/auth
110 CONFIGLIBDIR
= $(LIBDIR
)/config
111 CONFIGDIR
= @configdir@
112 VARDIR
= @localstatedir@
116 # The permissions to give the executables and other data
117 INSTALLPERMS_BIN
= 0755
118 INSTALLPERMS_DATA
= 0644
120 # set these to where to find various files
121 # These can be overridden by command line switches (see smbd(8))
122 # or in smb.conf (see smb.conf(5))
123 LOGFILEBASE
= @logfilebase@
124 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
125 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
128 # This is where smbpasswd et al go
129 PRIVATEDIR
= @privatedir@
131 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
132 PRIVATE_DIR
= $(PRIVATEDIR
)
134 # This is where SWAT images and help files go
137 # the directory where lock files go
140 # FHS directories; equal to LOCKDIR if not using --with-fhs
141 CACHEDIR
= @cachedir@
142 STATEDIR
= @
statedir@
144 # Where to look for (and install) codepage databases.
145 CODEPAGEDIR
= @codepagedir@
147 # the directory where pid files go
150 FLAGS1
= $(CFLAGS
) @FLAGS1@ @SAMBA_CPPFLAGS@
$(CPPFLAGS
)
153 FLAGS4
= -I
$(CTDBDIR
)/include
154 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
155 FLAGS
= $(ISA
) $(FLAGS5
) -I
$(srcdir)/lib
-D_SAMBA_BUILD_
=3
157 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
158 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
159 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
160 -DSBINDIR
=\"$(SBINDIR
)\" \
161 -DBINDIR
=\"$(BINDIR
)\" \
162 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
163 -DSWATDIR
=\"$(SWATDIR
)\" \
164 -DLOCKDIR
=\"$(LOCKDIR
)\" \
165 -DPIDDIR
=\"$(PIDDIR
)\" \
166 -DLIBDIR
=\"$(LIBDIR
)\" \
167 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
168 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
169 -DCTDBDIR
=\"$(CTDBDIR
)\" \
170 -DCONFIGDIR
=\"$(CONFIGDIR
)\" \
171 -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\" \
172 -DCACHEDIR
=\"$(CACHEDIR
)\" \
173 -DSTATEDIR
=\"$(STATEDIR
)\"
175 # Note that all executable programs now provide for an optional executable suffix.
177 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
179 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@ @CIFSSPNEGO_PROGS@
181 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
182 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
183 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
184 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
186 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
187 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ \
188 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
189 BIN_PROGS4
= bin
/ldbedit@EXEEXT@ bin
/ldbsearch@EXEEXT@ bin
/ldbadd@EXEEXT@ \
190 bin
/ldbdel@EXEEXT@ bin
/ldbmodify@EXEEXT@
192 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
193 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
194 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
195 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
196 bin
/tdbtorture@EXEEXT@ \
197 bin
/smbconftort@EXEEXT@
199 BIN_PROGS
= @EXTRA_BIN_PROGS@ \
200 $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) $(BIN_PROGS4
)
202 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
203 bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
204 bin
/log2pcap@EXEEXT@ bin
/sharesec@EXEEXT@ bin
/ndrdump@EXEEXT@ \
205 bin
/vlp@EXEEXT@ bin
/smbiconv@EXEEXT@
207 PAM_MODULES
= @PAM_MODULES@
209 NSS_MODULES
= @NSS_MODULES@
211 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
213 VFS_MODULES
= @VFS_MODULES@
214 PDB_MODULES
= @PDB_MODULES@
215 RPC_MODULES
= @RPC_MODULES@
216 IDMAP_MODULES
= @IDMAP_MODULES@
217 CHARSET_MODULES
= @CHARSET_MODULES@
218 AUTH_MODULES
= @AUTH_MODULES@
219 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
220 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
221 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
)
223 ######################################################################
225 ######################################################################
227 TDB_OBJ
= lib
/util_tdb.o \
228 lib
/dbwrap.o lib
/dbwrap_tdb.o \
229 lib
/dbwrap_tdb2.o lib
/dbwrap_ctdb.o \
230 lib
/dbwrap_rbt.o @LIBTDB_STATIC@
232 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
234 VERSION_OBJ
= lib
/version.o
236 WBCOMMON_OBJ
= nsswitch
/wb_common.o
240 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
242 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
244 PASSCHANGE_OBJ
= libsmb
/passchange.o
247 LIBNDR_OBJ
= librpc
/ndr
/ndr_basic.o \
249 librpc
/ndr
/ndr_misc.o \
250 librpc
/gen_ndr
/ndr_misc.o \
251 librpc
/gen_ndr
/ndr_security.o \
252 librpc
/ndr
/ndr_sec_helper.o \
253 librpc
/ndr
/ndr_string.o \
257 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
259 LIBNDR_GEN_OBJ0
= librpc
/gen_ndr
/ndr_samr.o \
260 librpc
/gen_ndr
/ndr_lsa.o
262 LIBNDR_GEN_OBJ1
= librpc
/gen_ndr
/ndr_netlogon.o
264 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_wkssvc.o \
266 librpc
/gen_ndr
/ndr_dfs.o \
267 librpc
/gen_ndr
/ndr_echo.o \
268 librpc
/gen_ndr
/ndr_winreg.o \
269 librpc
/gen_ndr
/ndr_initshutdown.o \
270 librpc
/gen_ndr
/ndr_srvsvc.o \
271 librpc
/gen_ndr
/ndr_eventlog.o \
273 librpc
/gen_ndr
/ndr_dssetup.o \
274 librpc
/gen_ndr
/ndr_notify.o \
275 librpc
/gen_ndr
/ndr_xattr.o \
276 librpc
/gen_ndr
/ndr_ntsvcs.o
278 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
280 # this includes only the low level parse code, not stuff
281 # that requires knowledge of security contexts
282 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
) rpc_parse
/parse_sec.o
284 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o \
285 rpc_client
/init_netlogon.o \
286 rpc_client
/init_lsa.o \
287 rpc_client
/init_srvsvc.o
289 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
291 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
292 NSS_WRAPPER_OBJ
= @NSS_WRAPPER_OBJS@
294 LIBSAMBAUTIL_OBJ
= @LIBTALLOC_STATIC@ \
296 $(SOCKET_WRAPPER_OBJ
) \
299 LIB_WITHOUT_PROTO_OBJ
= $(LIBSAMBAUTIL_OBJ
) \
300 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
301 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o lib
/talloc_stack.o \
302 lib
/interfaces.o lib
/rbtree.o lib
/memcache.o \
303 lib
/util_transfer_file.o lib
/async_req.o \
306 LIB_WITH_PROTO_OBJ
= $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
307 lib
/interface.o lib
/md4.o \
309 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/recvfile.o lib
/time.o \
310 lib
/ufc.o lib
/genrand.o lib
/username.o \
311 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
312 lib
/bitmap.o lib
/crc32.o lib
/dprintf.o \
313 lib
/xfile.o lib
/wins_srv.o
$(UTIL_REG_OBJ
) \
314 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
315 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
316 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
317 lib
/substitute.o lib
/fsusage.o lib
/dbwrap_util.o \
318 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
319 lib
/tallocmsg.o lib
/dmallocmsg.o libsmb
/smb_signing.o \
320 lib
/md5.o lib
/hmacmd5.o lib
/arc4.o lib
/iconv.o \
321 lib
/pam_errors.o intl
/lang_tdb.o lib
/conn_tdb.o \
322 lib
/adt_tree.o lib
/gencache.o \
323 lib
/module.o lib
/events.o lib
/ldap_escape.o @CHARSET_STATIC@ \
324 lib
/secdesc.o lib
/util_seaccess.o lib
/secace.o lib
/secacl.o \
325 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
328 LIB_OBJ
= $(LIB_WITHOUT_PROTO_OBJ
) $(LIB_WITH_PROTO_OBJ
)
330 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
331 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
333 READLINE_OBJ
= lib
/readline.o
335 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
336 # Be sure to include them into your application
337 POPT_LIB_OBJ
= lib
/popt_common.o
339 PARAM_WITHOUT_REG_OBJ
= dynconfig.o param
/loadparm.o param
/params.o param
/util.o lib
/sharesec.o lib
/ldap_debug_handler.o
340 PARAM_REG_ADD_OBJ
= $(REG_SMBCONF_OBJ
) $(LIBSMBCONF_OBJ
) $(PRIVILEGES_BASIC_OBJ
)
341 PARAM_OBJ
= $(PARAM_WITHOUT_REG_OBJ
) $(PARAM_REG_ADD_OBJ
)
343 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
345 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
346 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
347 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) @LIBTALLOC_STATIC@
349 LIBGPO_OBJ0
= libgpo
/gpo_ldap.o libgpo
/gpo_ini.o libgpo
/gpo_util.o \
350 libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o libgpo
/gpo_sec.o
351 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
353 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o \
354 libads
/sasl.o libads
/sasl_wrapping.o \
355 libads
/krb5_setpw.o libads
/ldap_user.o \
356 libads
/ads_struct.o libads
/kerberos_keytab.o \
357 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
358 libads
/ldap_schema.o libads
/util.o libads
/ndr.o
360 LIBADS_SERVER_OBJ
= libads
/kerberos_verify.o libads
/authdata.o \
361 librpc
/ndr
/ndr_krb5pac.o \
362 librpc
/gen_ndr
/ndr_krb5pac.o
364 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
366 LIBNBT_OBJ
= libcli
/nbt
/nbtname.o \
367 librpc
/gen_ndr
/ndr_nbt.o \
368 librpc
/gen_ndr
/ndr_svcctl.o
370 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
371 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
373 NTERR_OBJ
= libsmb
/nterr.o
374 DOSERR_OBJ
= libsmb
/doserr.o
375 ERRORMAP_OBJ
= libsmb
/errormap.o
376 DCE_RPC_ERR_OBJ
= libsmb
/dcerpc_err.o
378 LIBSMB_ERR_OBJ0
= $(NTERR_OBJ
) $(DOSERR_OBJ
) $(ERRORMAP_OBJ
) $(DCE_RPC_ERR_OBJ
) \
379 libsmb
/smbdes.o libsmb
/smbencrypt.o libsmb
/ntlmssp_parse.o
381 LIBSMB_ERR_OBJ
= $(LIBSMB_ERR_OBJ0
) \
386 libsmb
/ntlm_check.o \
388 libsmb
/ntlmssp_sign.o
390 LIBSAMBA_OBJ
= $(LIBSMB_OBJ0
) \
393 CLDAP_OBJ
= libads
/cldap.o
395 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
396 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
397 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
398 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
399 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
400 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
401 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
402 libsmb
/clioplock.o libsmb
/clirap2.o \
403 libsmb
/smb_seal.o libsmb
/async_smb.o \
409 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o
411 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
412 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
413 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
414 rpc_client
/cli_svcctl.o \
415 rpc_client
/init_samr.o
417 LIBMSRPC_GEN_OBJ
= librpc
/gen_ndr
/cli_lsa.o \
418 librpc
/gen_ndr
/cli_dfs.o \
419 librpc
/gen_ndr
/cli_echo.o \
420 librpc
/gen_ndr
/cli_srvsvc.o \
421 librpc
/gen_ndr
/cli_svcctl.o \
422 librpc
/gen_ndr
/cli_winreg.o \
423 librpc
/gen_ndr
/cli_initshutdown.o \
424 librpc
/gen_ndr
/cli_eventlog.o \
425 librpc
/gen_ndr
/cli_wkssvc.o \
426 librpc
/gen_ndr
/cli_netlogon.o \
427 librpc
/gen_ndr
/cli_samr.o \
428 librpc
/gen_ndr
/cli_dssetup.o \
429 librpc
/gen_ndr
/cli_ntsvcs.o \
434 # registry-related objects
436 UTIL_REG_OBJ
= lib
/util_reg.o
437 UTIL_REG_API_OBJ
= lib
/util_reg_api.o
439 REG_INIT_BASIC_OBJ
= registry
/reg_init_basic.o
440 REG_INIT_SMBCONF_OBJ
= registry
/reg_init_smbconf.o
441 REG_INIT_FULL_OBJ
= registry
/reg_init_full.o
443 REGFIO_OBJ
= registry
/regfio.o
445 REGOBJS_OBJ
= registry
/reg_objects.o
447 REG_BACKENDS_BASE_OBJ
= registry
/reg_backend_db.o
449 REG_BACKENDS_SMBCONF_OBJ
= registry
/reg_backend_smbconf.o
451 REG_BACKENDS_EXTRA_OBJ
= registry
/reg_backend_printing.o \
452 registry
/reg_backend_shares.o \
453 registry
/reg_backend_netlogon_params.o \
454 registry
/reg_backend_prod_options.o \
455 registry
/reg_backend_tcpip_params.o \
456 registry
/reg_backend_hkpt_params.o \
457 registry
/reg_backend_current_version.o \
458 registry
/reg_backend_perflib.o
460 REG_BASE_OBJ
= registry
/reg_api.o \
461 registry
/reg_dispatcher.o \
462 registry
/reg_cachehook.o \
465 registry
/reg_util.o \
466 $(UTIL_REG_API_OBJ
) \
468 $(REG_BACKENDS_BASE_OBJ
) \
469 $(REG_INIT_BASIC_OBJ
)
471 REG_SMBCONF_OBJ
= $(REG_BASE_OBJ
) \
472 $(REG_BACKENDS_SMBCONF_OBJ
) \
473 $(REG_INIT_SMBCONF_OBJ
)
475 REG_FULL_OBJ
= $(REG_SMBCONF_OBJ
) \
476 $(REG_BACKENDS_EXTRA_OBJ
) \
477 $(REG_INIT_FULL_OBJ
) \
478 registry
/reg_eventlog.o \
479 registry
/reg_perfcount.o \
480 registry
/reg_util_legacy.o
483 RPC_LSA_OBJ
= rpc_server
/srv_lsa_nt.o librpc
/gen_ndr
/srv_lsa.o
485 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog_nt.o \
486 librpc
/gen_ndr
/srv_netlogon.o
488 RPC_SAMR_OBJ
= rpc_server
/srv_samr_nt.o \
489 rpc_server
/srv_samr_util.o \
490 librpc
/gen_ndr
/srv_samr.o
492 RPC_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
494 RPC_REG_OBJ
= rpc_server
/srv_winreg_nt.o \
495 librpc
/gen_ndr
/srv_winreg.o
497 RPC_DSSETUP_OBJ
= rpc_server
/srv_dssetup_nt.o librpc
/gen_ndr
/srv_dssetup.o
499 RPC_SVC_OBJ
= rpc_server
/srv_srvsvc_nt.o \
500 librpc
/gen_ndr
/srv_srvsvc.o
502 RPC_WKS_OBJ
= librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
504 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl.o rpc_server
/srv_svcctl_nt.o \
505 librpc
/gen_ndr
/srv_svcctl.o \
506 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
507 services
/svc_netlogon.o services
/svc_winreg.o \
510 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs.o rpc_server
/srv_ntsvcs_nt.o \
511 librpc
/gen_ndr
/srv_ntsvcs.o
513 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
515 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
517 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog.o rpc_server
/srv_eventlog_nt.o \
518 rpc_server
/srv_eventlog_lib.o librpc
/gen_ndr
/srv_eventlog.o
520 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
521 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
523 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o librpc
/gen_ndr
/srv_echo.o
525 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
527 RPC_PARSE_OBJ
= $(RPC_PARSE_OBJ2
) \
528 rpc_parse
/parse_spoolss.o \
529 rpc_parse
/parse_eventlog.o rpc_parse
/parse_buffer.o \
530 rpc_parse
/parse_ntsvcs.o rpc_parse
/parse_svcctl.o
532 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
534 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
536 PRIVILEGES_BASIC_OBJ
= lib
/privileges_basic.o
538 PRIVILEGES_OBJ
= lib
/privileges.o
540 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
542 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
543 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
544 passdb
/util_unixsids.o passdb
/lookup_sid.o \
545 passdb
/login_cache.o @PDB_STATIC@ \
546 lib
/account_pol.o
$(PRIVILEGES_OBJ
) \
547 lib
/util_nscd.o lib
/winbind_util.o
549 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
550 CP850_OBJ
= modules
/CP850.o
551 CP437_OBJ
= modules
/CP437.o
552 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
554 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o groupdb
/mapping_ldb.o
556 PROFILE_OBJ
= profile
/profile.o
557 PROFILES_OBJ
= utils
/profiles.o \
560 $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
563 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
565 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
567 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
568 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
569 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
570 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
571 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
572 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
573 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
574 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
575 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
576 VFS_CAP_OBJ
= modules
/vfs_cap.o
577 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
578 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
579 VFS_SHADOW_COPY2_OBJ
= modules
/vfs_shadow_copy2.o
580 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
581 VFS_XATTR_TDB_OBJ
= modules
/vfs_xattr_tdb.o
582 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
583 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
584 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
585 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
586 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
587 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
588 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
589 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
590 VFS_CATIA_OBJ
= modules
/vfs_catia.o
591 VFS_STREAMS_XATTR_OBJ
= modules
/vfs_streams_xattr.o
592 VFS_STREAMS_DEPOT_OBJ
= modules
/vfs_streams_depot.o
593 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
594 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
595 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
596 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
597 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
598 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
599 VFS_TSMSM_OBJ
= modules
/vfs_tsmsm.o
600 VFS_FILEID_OBJ
= modules
/vfs_fileid.o
601 VFS_AIO_FORK_OBJ
= modules
/vfs_aio_fork.o
602 VFS_SYNCOPS_OBJ
= modules
/vfs_syncops.o
604 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
606 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
608 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o libsmb
/dsgetdcname.o
610 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
611 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
612 AUTH_SAM_OBJ
= auth
/auth_sam.o
613 AUTH_SERVER_OBJ
= auth
/auth_server.o
614 AUTH_UNIX_OBJ
= auth
/auth_unix.o
615 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
616 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
618 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
619 auth
/auth_compat.o auth
/auth_ntlmssp.o \
620 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
622 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_hash2.o
624 SMBD_OBJ_MAIN
= smbd
/server.o
626 BUILDOPT_OBJ
= smbd
/build_options.o
628 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
629 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
630 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
631 smbd
/share_access.o smbd
/fileio.o \
632 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
633 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
634 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
635 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
636 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
637 smbd
/vfs.o smbd
/statcache.o smbd
/seal.o \
638 smbd
/posix_acls.o lib
/sysacls.o
$(SERVER_MUTEX_OBJ
) \
639 smbd
/process.o smbd
/service.o smbd
/error.o \
640 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
641 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
642 smbd
/change_trust_pw.o smbd
/fake_file.o \
643 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
644 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
648 $(MANGLE_OBJ
) @VFS_STATIC@
650 SMBD_OBJ_BASE
= $(PARAM_WITHOUT_REG_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
651 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) \
652 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
653 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
654 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
655 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
656 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
657 $(REG_FULL_OBJ
) $(POPT_LIB_OBJ
) $(BUILDOPT_OBJ
) \
658 $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(LIBNET_OBJ
) @LIBWBCLIENT_STATIC@ \
660 $(PRIVILEGES_BASIC_OBJ
)
662 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
663 printing
/print_cups.o printing
/print_generic.o \
664 printing
/lpq_parse.o printing
/load.o \
665 printing
/print_iprint.o
667 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
668 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
670 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
672 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
673 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
674 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
675 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
676 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
677 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
678 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
679 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
680 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
681 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
682 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
683 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o smbd
/connection.o
685 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
686 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
689 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
690 web
/swat.o web
/neg_lang.o
692 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) \
693 $(LOCKING_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(KRBCLIENT_OBJ
) \
694 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
695 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
696 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
698 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
699 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
700 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
703 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
704 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
708 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
709 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
710 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
711 rpc_client
/cli_pipe.o
$(RPC_PARSE_OBJ2
) \
713 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
716 TESTPARM_OBJ
= utils
/testparm.o \
717 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
720 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
722 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
723 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
724 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
725 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) \
726 $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
728 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
730 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
731 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) libsmb
/asn1.o \
734 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ1
) @LIBWBCLIENT_STATIC@
736 DISPLAY_SEC_OBJ
= lib
/display_sec.o
738 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
739 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
740 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
741 rpcclient
/cmd_dfs.o \
742 rpcclient
/cmd_dssetup.o rpcclient
/cmd_echo.o \
743 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
744 rpcclient
/cmd_wkssvc.o rpcclient
/cmd_ntsvcs.o \
747 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
748 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
749 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
750 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
751 $(LIBADS_OBJ
) $(POPT_LIB_OBJ
) \
752 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
754 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
755 $(LIBREPLACE_OBJ
) @BUILD_INIPARSER@
757 LIBSMBCLIENT_OBJ0
= \
758 libsmb
/libsmb_cache.o \
759 libsmb
/libsmb_compat.o \
760 libsmb
/libsmb_context.o \
761 libsmb
/libsmb_dir.o \
762 libsmb
/libsmb_file.o \
763 libsmb
/libsmb_misc.o \
764 libsmb
/libsmb_path.o \
765 libsmb
/libsmb_printjob.o \
766 libsmb
/libsmb_server.o \
767 libsmb
/libsmb_stat.o \
768 libsmb
/libsmb_xattr.o \
769 libsmb
/libsmb_setget.o
771 LIBSMBCLIENT_OBJ1
= $(LIBSMBCLIENT_OBJ0
) \
772 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
773 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
774 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
775 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
777 LIBSMBCLIENT_OBJ
= $(LIBSMBCLIENT_OBJ1
) @LIBWBCLIENT_STATIC@
779 # This shared library is intended for linking with unit test programs
780 # to test Samba internals. It's called libbigballofmud.so to
781 # discourage casual usage.
783 LIBBIGBALLOFMUD_MAJOR
= 0
785 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
786 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
787 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
789 CLIENT_OBJ1
= client
/client.o client
/clitar.o rpc_client
/cli_pipe.o \
794 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
795 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
796 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
797 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
800 LIBSMBCONF_OBJ
= lib
/smbconf
/smbconf.o lib
/smbconf
/smbconf_util.o \
801 lib
/smbconf
/smbconf_reg.o \
802 lib
/smbconf
/smbconf_txt.o \
803 lib
/smbconf
/smbconf_init.o
805 SMBCONFTORT_OBJ0
= lib
/smbconf
/testsuite.o
807 SMBCONFTORT_OBJ
= $(SMBCONFTORT_OBJ0
) \
813 LIBNET_OBJ
= libnet
/libnet_join.o \
814 libnet
/libnet_samsync.o \
815 librpc
/gen_ndr
/ndr_libnet_join.o
817 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_help.o \
818 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
819 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
820 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
821 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
822 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
823 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
824 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
825 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
827 utils
/net_registry.o \
828 auth
/token_util.o utils
/net_dom.o
830 # these are not processed by make proto
831 NET_OBJ2
= utils
/net_registry_util.o
833 NET_OBJ
= $(NET_OBJ1
) \
835 $(PARAM_WITHOUT_REG_OBJ
) $(LIBSMB_OBJ
) \
836 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
837 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
838 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
839 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
840 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
841 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(READLINE_OBJ
) \
842 $(LDB_OBJ
) $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) \
843 $(REG_SMBCONF_OBJ
) @LIBNETAPI_STATIC@
$(LIBNET_OBJ
) \
845 @LIBWBCLIENT_STATIC@ \
846 $(PRIVILEGES_BASIC_OBJ
)
848 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
849 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
852 CIFS_MOUNT_OBJ
= client
/mount.cifs.o
854 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o
856 CIFS_SPNEGO_OBJ
= client
/cifs.spnego.o
858 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) \
859 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
861 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
862 torture
/denytest.o torture
/mangle_test.o
864 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
865 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
868 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
872 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
876 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
877 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
880 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
884 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
885 $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
886 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
) \
889 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
891 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
893 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
895 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
896 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
899 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
900 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
901 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
902 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
904 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
906 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
907 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(POPT_LIB_OBJ
) \
908 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
910 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
912 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
914 registry
/reg_eventlog.o rpc_server
/srv_eventlog_lib.o
916 SHARESEC_OBJ0
= utils
/sharesec.o
917 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
921 TALLOCTORT_OBJ
= @tallocdir@
/testsuite.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
924 REPLACETORT_OBJ
= lib
/replace
/test/testsuite.o \
925 lib
/replace
/test/getifaddrs.o \
926 lib
/replace
/test/os2_delete.o \
927 lib
/replace
/test/strptime.o \
930 NDRDUMP_OBJ
= librpc
/tools
/ndrdump.o \
931 $(PARAM_OBJ
) $(LIBNDR_GEN_OBJ
) \
932 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
933 librpc
/gen_ndr
/ndr_svcctl.o
935 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
937 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
938 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
941 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) $(LIBNDR_OBJ
) $(LIBNDR_GEN_OBJ
) \
942 $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(LIBSMB_OBJ
) \
943 $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
945 $(LIB_WITH_PROTO_OBJ
) \
946 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) $(KRBCLIENT_OBJ
) \
947 $(AUTH_OBJ
) $(PARAM_WITHOUT_REG_OBJ
) $(LOCKING_OBJ
) \
948 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
949 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
950 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
951 $(AUTH_SAM_OBJ
) $(REG_FULL_OBJ
) $(POPT_LIB_OBJ
) \
952 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) $(RPC_DSSETUP_OBJ
) \
953 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
) \
954 $(RPC_ECHO_OBJ
) $(RPC_SVCCTL_OBJ
) $(RPC_EVENTLOG_OBJ
) $(SMBLDAP_OBJ
) \
955 $(IDMAP_OBJ
) libsmb
/spnego.o
$(PASSCHANGE_OBJ
) \
956 $(RPC_NTSVCS_OBJ
) $(RPC_INITSHUTDOWN_OBJ
) \
957 utils
/passwd_util.o
$(LIBGPO_OBJ
) $(NSS_INFO_OBJ
) \
958 $(RPCCLIENT_NDR_OBJ
) \
959 $(PRIVILEGES_BASIC_OBJ
)
961 WINBIND_WINS_NSS_OBJ
= nsswitch
/wins.o
$(PARAM_OBJ
) \
962 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) \
965 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
966 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o
967 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
968 $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
971 IDMAP_OBJ
= winbindd
/idmap.o winbindd
/idmap_cache.o winbindd
/idmap_util.o @IDMAP_STATIC@
973 NSS_INFO_OBJ
= winbindd
/nss_info.o @NSS_INFO_STATIC@
976 winbindd
/winbindd.o \
977 winbindd
/winbindd_user.o \
978 winbindd
/winbindd_group.o \
979 winbindd
/winbindd_util.o \
980 winbindd
/winbindd_cache.o \
981 winbindd
/winbindd_pam.o \
982 winbindd
/winbindd_sid.o \
983 winbindd
/winbindd_misc.o \
984 winbindd
/winbindd_cm.o \
985 winbindd
/winbindd_wins.o \
986 winbindd
/winbindd_rpc.o \
987 winbindd
/winbindd_reconnect.o \
988 winbindd
/winbindd_ads.o \
989 winbindd
/winbindd_passdb.o \
990 winbindd
/winbindd_dual.o \
991 winbindd
/winbindd_async.o \
992 winbindd
/winbindd_creds.o \
993 winbindd
/winbindd_cred_cache.o \
994 winbindd
/winbindd_ccache_access.o \
995 winbindd
/winbindd_domain.o \
996 winbindd
/winbindd_idmap.o \
997 winbindd
/winbindd_locator.o \
998 winbindd
/winbindd_ndr.o \
1003 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
1004 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1005 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
1006 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
1007 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
1008 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
1009 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1010 $(LIBADS_SERVER_OBJ
) $(SERVER_MUTEX_OBJ
) $(LDB_OBJ
)
1012 WBINFO_OBJ
= nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1013 $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1014 lib
/winbind_util.o
$(WBCOMMON_OBJ
) @LIBWBCLIENT_STATIC@
1016 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
1018 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
1019 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
1020 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
1021 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
1022 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
1024 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
1025 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
1026 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
1028 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
1029 lib
/ldb
/modules
/objectclass.o \
1030 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
1032 # enabled in configure.in
1033 LDB_LDAP_OBJ
=@LDBLDAP@
1035 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1037 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) \
1038 $(POPT_LIB_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) $(LIBSMB_ERR_OBJ0
) \
1039 $(RPC_PARSE_OBJ1
) $(SECRETS_OBJ
) \
1040 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
1043 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
1044 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
1045 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
1046 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
1047 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
1049 WINBIND_KRB5_LOCATOR_OBJ1
= nsswitch
/winbind_krb5_locator.o
1050 WINBIND_KRB5_LOCATOR_OBJ
= $(WINBIND_KRB5_LOCATOR_OBJ1
) $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
)
1052 POPT_OBJ
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
1053 popt
/popthelp.o popt
/poptparse.o
1055 INIPARSER_OBJ
= iniparser_build
/iniparser.o iniparser_build
/dictionary.o \
1056 iniparser_build
/strlib.o
1058 TDBBACKUP_OBJ
= @tdbdir@
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
1059 @LIBTDB_STATIC@
$(SOCKET_WRAPPER_OBJ
)
1061 TDBTOOL_OBJ
= @tdbdir@
/tools
/tdbtool.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1062 $(SOCKET_WRAPPER_OBJ
)
1064 TDBDUMP_OBJ
= @tdbdir@
/tools
/tdbdump.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1065 $(SOCKET_WRAPPER_OBJ
)
1067 TDBTORTURE_OBJ
= @tdbdir@
/tools
/tdbtorture.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1068 $(SOCKET_WRAPPER_OBJ
)
1071 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
1073 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
1074 libsmb
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
1075 $(SERVER_MUTEX_OBJ
) $(LIBADS_SERVER_OBJ
) \
1076 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1077 $(SMBLDAP_OBJ
) $(LIBNMB_OBJ
) \
1078 $(LDB_OBJ
) $(WBCOMMON_OBJ
) @LIBWBCLIENT_STATIC@ \
1079 $(LIBNDR_GEN_OBJ0
) $(LIBNDR_GEN_OBJ1
)
1082 VLP_OBJ1
= ..
/testsuite
/printing
/vlp.o
$(RPC_CLIENT_OBJ1
) $(RPC_PARSE_OBJ2
) $(RPC_CLIENT_OBJ
)
1084 VLP_OBJ
= $(VLP_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1085 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1086 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
1087 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
1090 ######################################################################
1092 ######################################################################
1093 all:: SHOWFLAGS libs
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1094 $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @EXTRA_ALL_TARGETS@
1096 nss_modules
:: $(NSS_MODULES
)
1098 pam_modules
:: $(PAM_MODULES
)
1100 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
1102 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
1104 torture
:: SHOWFLAGS
$(TORTURE_PROGS
)
1106 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
1108 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
1110 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
1112 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
1114 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
1116 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
1118 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
1120 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
1122 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
1124 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
1126 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
1128 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
1130 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
1132 smbconftort
: SHOWFLAGS bin
/smbconftort@EXEEXT@
1134 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
1136 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1137 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1138 bin
/pam_winbind.@SHLIBEXT@ bin
/smbcontrol@EXEEXT@
1140 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
1142 modules
:: SHOWFLAGS
$(MODULES
)
1144 #####################################################################
1145 ## Perl IDL Compiler
1146 IDL_FILES
= lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1147 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1148 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1149 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl
1152 @IDL_FILES
="$(IDL_FILES)" CPP
="$(CPP)" PERL
="$(PERL)" \
1153 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(PIDL_ARGS
)
1156 #####################################################################
1159 everything
:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1163 .SUFFIXES
: .c .o .lo
1166 @echo
"Using FLAGS = $(FLAGS)"
1167 @echo
" PICFLAG = $(PICFLAG)"
1168 @echo
" LIBS = $(LIBS)"
1169 @echo
" LDFLAGS = $(LDFLAGS)"
1170 @echo
" DYNEXP = $(DYNEXP)"
1171 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1172 @echo
" SHLIBEXT = @SHLIBEXT@"
1173 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1175 MAKEDIR
= || exec false
; \
1176 if
test -d
"$$dir"; then
:; else \
1177 echo mkdir
"$$dir"; \
1178 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1179 test -d
"$$dir" || \
1181 exec false
; fi || exec false
1183 # Run a static checker.
1184 CHECK_CC
= $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1185 # Compile a source file.
1186 COMPILE_CC
= $(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1187 # Compile a source file with the installation paths defined.
1188 COMPILE_CC_PATH
= $(CC
) -I.
-I
$(srcdir) $(PATH_FLAGS
) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1190 COMPILE
= $(COMPILE_CC
)
1193 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1194 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1195 @if
test -n
"$(CC_CHECKER)"; then \
1196 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1199 @echo Compiling
$*.c
1200 @
$(COMPILE
) && exit
0;\
1201 echo
"The following command failed:" 1>&2;\
1202 echo
"$(COMPILE_CC)" 1>&2;\
1203 $(COMPILE_CC
) >/dev
/null
2>&1
1204 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
1206 PRECOMPILED_HEADER
= $(builddir
)/include/includes.h.gch
1208 # this adds support for precompiled headers. To use it, install a snapshot
1209 # of gcc-3.4 and run 'make pch' before you do the main build.
1211 rm -f
$(PRECOMPILED_HEADER
)
1212 $(MAKE
) $(PRECOMPILED_HEADER
)
1214 $(PRECOMPILED_HEADER
): $(srcdir)/include/includes.h
1217 BINARY_PREREQS
= proto_exists bin
/.dummy
1219 # These dependencies are only approximately correct: we want to make
1220 # sure Samba's paths are updated if ./configure is re-run. Really it
1221 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1222 # but since we also require "make install prefix=/opt/samba" *not* to
1223 # rebuild it's a bit hard.
1225 dynconfig.o
: dynconfig.c Makefile
1226 @echo Compiling
$*.c
1227 @
$(COMPILE_CC_PATH
) && exit
0;\
1228 echo
"The following command failed:" 1>&2;\
1229 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1230 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1232 lib
/pidfile.o
: lib
/pidfile.c
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
/version.o
: lib
/version.c
include/version.h
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 smbd
/build_options.o
: smbd
/build_options.c Makefile
include/config.h
include/build_env.h
include/proto.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.c
: include/config.h.in script
/mkbuildoptions.awk
1255 @
dir=smbd
$(MAKEDIR
) && $(AWK
) -f
$(srcdir)/script
/mkbuildoptions.awk
> $(builddir
)/smbd
/build_options.c
< $(srcdir)/include/config.h.in
1258 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
1259 dir=bin
$(MAKEDIR
); fi
1260 @
: >> $@ ||
: > $@
# what a fancy emoticon!
1262 bin
/smbd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBD_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1264 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LDAP_LIBS
) \
1265 $(KRB5LIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
1266 $(ACL_LIBS
) $(PASSDB_LIBS
) $(LIBS
) $(DNSSD_LIBS
) \
1267 $(POPT_LIBS
) @SMBD_LIBS@
$(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
1270 bin
/nmbd@EXEEXT@
: $(BINARY_PREREQS
) $(NMBD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1272 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1273 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(POPT_LIBS
) \
1274 $(KRB5LIBS
) $(LDAP_LIBS
)
1276 bin
/swat@EXEEXT@
: $(BINARY_PREREQS
) $(SWAT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1278 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINT_LIBS
) \
1279 $(AUTH_LIBS
) $(LIBS
) $(PASSDB_LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) \
1280 $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1282 bin
/rpcclient@EXEEXT@
: $(BINARY_PREREQS
) $(RPCCLIENT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1284 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(PASSDB_LIBS
) $(RPCCLIENT_OBJ
) \
1285 $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) $(POPT_LIBS
) \
1286 $(KRB5LIBS
) $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
1289 bin
/smbclient@EXEEXT@
: $(BINARY_PREREQS
) $(CLIENT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1291 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1292 $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) $(POPT_LIBS
) \
1293 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) $(DNSSD_LIBS
) \
1294 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1296 bin
/net@EXEEXT@
: $(BINARY_PREREQS
) $(NET_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1298 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1299 $(POPT_LIBS
) $(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) \
1300 $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) \
1301 @INIPARSERLIBS@
$(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
) $(LIBNETAPI_LIBS
)
1303 bin
/profiles@EXEEXT@
: $(BINARY_PREREQS
) $(PROFILES_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1305 @
$(CC
) $(FLAGS
) -o
$@
$(PROFILES_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1306 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1308 bin
/smbspool@EXEEXT@
: $(BINARY_PREREQS
) $(CUPS_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1310 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1311 $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1313 bin
/mount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_MOUNT_OBJ
) @BUILD_POPT@
1315 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(POPT_LIBS
)
1317 bin
/umount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_UMOUNT_OBJ
) @BUILD_POPT@
1319 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(POPT_LIBS
)
1321 bin
/cifs.spnego@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_SPNEGO_OBJ
) $(LIBSMBCLIENT_OBJ1
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1323 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_SPNEGO_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1324 -lkeyutils
$(LIBS
) $(LIBSMBCLIENT_OBJ1
) $(KRB5LIBS
) \
1325 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(WINBIND_LIBS
) \
1328 bin
/testparm@EXEEXT@
: $(BINARY_PREREQS
) $(TESTPARM_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1330 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1331 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1333 bin
/smbstatus@EXEEXT@
: $(BINARY_PREREQS
) $(STATUS_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1335 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1336 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1338 bin
/smbcontrol@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCONTROL_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1340 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) -o
$@ \
1341 $(SMBCONTROL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1342 $(LIBS
) $(LDAP_LIBS
) @LIBUNWIND_PTRACE@
$(POPT_LIBS
) \
1343 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1345 bin
/smbtree@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTREE_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1347 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1348 $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1349 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1351 bin
/smbpasswd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBPASSWD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1353 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(PASSDB_LIBS
) \
1354 $(DYNEXP
) $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1355 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1357 bin
/pdbedit@EXEEXT@
: $(BINARY_PREREQS
) $(PDBEDIT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1359 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1360 $(POPT_LIBS
) $(PASSDB_LIBS
) $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) \
1361 $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1363 bin
/smbget@EXEEXT@
: $(BINARY_PREREQS
) $(SMBGET_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1365 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGET_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1366 $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1367 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1369 bin
/nmblookup@EXEEXT@
: $(BINARY_PREREQS
) $(NMBLOOKUP_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1371 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1372 $(POPT_LIBS
) $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1374 bin
/smbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTORTURE_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1376 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1377 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) \
1380 bin
/talloctort@EXEEXT@
: $(BINARY_PREREQS
) $(TALLOCTORT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1382 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) \
1383 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1384 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1386 bin
/replacetort@EXEEXT@
: $(REPLACETORT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@
1388 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(REPLACETORT_OBJ
) $(LDFLAGS
) \
1389 $(DYNEXP
) $(LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
)
1391 bin
/smbconftort@EXEEXT@
: $(SMBCONFTORT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1393 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBCONFTORT_OBJ
) $(LDFLAGS
) \
1394 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1395 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1397 bin
/masktest@EXEEXT@
: $(BINARY_PREREQS
) $(MASKTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1399 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1400 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1401 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1403 bin
/msgtest@EXEEXT@
: $(BINARY_PREREQS
) $(MSGTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1405 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1406 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1407 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1409 bin
/smbcacls@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCACLS_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1411 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1412 $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1413 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1415 bin
/smbcquotas@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCQUOTAS_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1417 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCQUOTAS_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1418 $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1419 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1421 bin
/eventlogadm@EXEEXT@
: $(BINARY_PREREQS
) $(EVTLOGADM_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1423 @
$(CC
) $(FLAGS
) -o
$@
$(EVTLOGADM_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1424 $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1426 bin
/sharesec@EXEEXT@
: $(BINARY_PREREQS
) $(SHARESEC_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1428 @
$(CC
) $(FLAGS
) -o
$@
$(SHARESEC_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1429 $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1431 bin
/locktest@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1433 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1434 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1435 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1437 bin
/nsstest@EXEEXT@
: $(BINARY_PREREQS
) $(NSSTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1439 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1440 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1441 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1443 bin
/pdbtest@EXEEXT@
: $(BINARY_PREREQS
) $(PDBTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1445 @
$(CC
) $(FLAGS
) -o
$@
$(PDBTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1446 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) \
1447 $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1449 bin
/vfstest@EXEEXT@
: $(BINARY_PREREQS
) $(VFSTEST_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1451 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) \
1452 $(TERMLIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
1453 $(ACL_LIBS
) $(LIBS
) $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1454 @SMBD_LIBS@
$(NSCD_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
1457 bin
/smbiconv@EXEEXT@
: $(BINARY_PREREQS
) $(SMBICONV_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1459 @
$(CC
) $(FLAGS
) -o
$@
$(SMBICONV_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) \
1460 $(TERMLIBS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1461 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1463 bin
/log2pcap@EXEEXT@
: $(BINARY_PREREQS
) $(LOG2PCAP_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@
1465 @
$(CC
) $(FLAGS
) -o
$@
$(LOG2PCAP_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1466 $(POPT_LIBS
) $(LIBS
) $(LIBTALLOC_LIBS
)
1468 bin
/locktest2@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST2_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1470 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1471 $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1472 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1474 bin
/ndrdump@EXEEXT@
: $(BINARY_PREREQS
) $(NDRDUMP_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1476 @
$(CC
) $(FLAGS
) -o
$@
$(NDRDUMP_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1477 $(POPT_LIBS
) $(LDAP_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1479 bin
/debug2html@EXEEXT@
: $(BINARY_PREREQS
) $(DEBUG2HTML_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@
1481 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1482 $(LIBS
) $(LIBTALLOC_LIBS
)
1484 bin
/smbfilter@EXEEXT@
: $(BINARY_PREREQS
) $(SMBFILTER_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1486 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
) \
1487 $(KRB5LIBS
) $(LDAP_LIBS
) $(POPT_LIBS
) \
1488 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
1490 bin
/ldbedit
: $(BINARY_PREREQS
) $(LDBEDIT_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1492 @
$(CC
) $(FLAGS
) -o
$@
$(LDBEDIT_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1493 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1494 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1496 bin
/ldbsearch
: $(BINARY_PREREQS
) $(LDBSEARCH_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1498 @
$(CC
) $(FLAGS
) -o
$@
$(LDBSEARCH_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1499 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1500 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1502 bin
/ldbadd
: $(BINARY_PREREQS
) $(LDBADD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1504 @
$(CC
) $(FLAGS
) -o
$@
$(LDBADD_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1505 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1506 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1508 bin
/ldbmodify
: $(BINARY_PREREQS
) $(LDBMODIFY_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1510 @
$(CC
) $(FLAGS
) -o
$@
$(LDBMODIFY_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1511 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1512 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1514 bin
/ldbdel
: $(BINARY_PREREQS
) $(LDBDEL_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1516 @
$(CC
) $(FLAGS
) -o
$@
$(LDBDEL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1517 $(LIBS
) $(POPT_LIBS
) $(LDAP_LIBS
) \
1518 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
1521 #####################################################################
1525 #####################################################################
1527 MKSYMS_SH
= $(srcdir)/script
/mksyms.sh
1530 #-------------------------------------------------------------------
1534 #-------------------------------------------------------------------
1536 TALLOC_OBJ
= @TALLOC_OBJS@
1538 LIBTALLOC_OBJ0
= $(TALLOC_OBJ
)
1539 LIBTALLOC_OBJ
= $(LIBTALLOC_OBJ0
) $(LIBREPLACE_OBJ
)
1541 LIBTALLOC_SHARED_TARGET
=@LIBTALLOC_SHARED_TARGET@
1542 LIBTALLOC_SOVER
=@LIBTALLOC_SOVER@
1543 LIBTALLOC_SHARED_TARGET_SONAME
=$(LIBTALLOC_SHARED_TARGET
).
$(LIBTALLOC_SOVER
)
1544 LIBTALLOC_STATIC_TARGET
=@LIBTALLOC_STATIC_TARGET@
1545 LIBTALLOC
=$(LIBTALLOC_STATIC_TARGET
) @LIBTALLOC_SHARED@
1546 LIBTALLOC_SYMS
=$(srcdir)/exports
/libtalloc.@SYMSEXT@
1547 LIBTALLOC_HEADERS
=$(srcdir)/@tallocdir@
/talloc.h
1549 $(LIBTALLOC_SYMS
): $(LIBTALLOC_HEADERS
)
1550 @
$(MKSYMS_SH
) $(AWK
) $@
$(LIBTALLOC_HEADERS
)
1552 $(LIBTALLOC_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBTALLOC_OBJ
) $(LIBTALLOC_SYMS
)
1553 @echo Linking shared library
$@
1554 @
$(SHLD_DSO
) $(LIBTALLOC_OBJ
) @SONAMEFLAG@
`basename $@`
1556 $(LIBTALLOC_SHARED_TARGET
): $(LIBTALLOC_SHARED_TARGET_SONAME
)
1558 @ln
-s
-f
`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1560 $(LIBTALLOC_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBTALLOC_OBJ0
)
1561 @echo Linking non-shared library
$@
1562 @
-$(AR
) -rc
$@
$(LIBTALLOC_OBJ0
)
1564 libtalloc
: $(LIBTALLOC
)
1569 $(LIBTALLOC_STATIC_TARGET
) \
1570 $(LIBTALLOC_SHARED_TARGET
) \
1571 $(LIBTALLOC_SHARED_TARGET_SONAME
)
1573 installlibtalloc
:: installdirs libtalloc
1574 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1575 -$(INSTALLLIBCMD_SH
) $(LIBTALLOC_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1576 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_SHARED_TARGET)`
1577 -if
test -e
$(LIBTALLOC_SHARD_TARGET_SONAME
) ; then \
1578 ln
-s
-f
`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1579 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1581 -$(INSTALLLIBCMD_A
) $(LIBTALLOC_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1582 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1583 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBTALLOC_HEADERS
) $(DESTDIR
)${prefix}/include
1585 uninstalllibtalloc
::
1586 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_SHARED_TARGET)`
1587 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1588 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTALLOC_STATIC_TARGET)`
1589 -rm -f
$(DESTDIR
)${prefix}/include/talloc.h
1592 installlibs
:: @INSTALL_LIBTALLOC@
1593 uninstalllibs
:: @UNINSTALL_LIBTALLOC@
1594 cleanlibs
:: cleanlibtalloc
1595 shlibs test_shlibs
: @LIBTALLOC_SHARED@
1597 #-------------------------------------------------------------------
1601 #-------------------------------------------------------------------
1603 LIBTDB_OBJ0
= @TDB_OBJS@
1604 LIBTDB_OBJ
= $(LIBTDB_OBJ0
) $(LIBREPLACE_OBJ
)
1606 LIBTDB_SHARED_TARGET
=@LIBTDB_SHARED_TARGET@
1607 LIBTDB_SOVER
=@LIBTDB_SOVER@
1608 LIBTDB_SHARED_TARGET_SONAME
=$(LIBTDB_SHARED_TARGET
).
$(LIBTDB_SOVER
)
1609 LIBTDB_STATIC_TARGET
=@LIBTDB_STATIC_TARGET@
1610 LIBTDB
=$(LIBTDB_STATIC_TARGET
) @LIBTDB_SHARED@
1611 LIBTDB_SYMS
=$(srcdir)/exports
/libtdb.@SYMSEXT@
1612 LIBTDB_HEADERS
=$(srcdir)/@tdbdir@
/include/tdb.h
1614 $(LIBTDB_SYMS
): $(LIBTDB_HEADERS
)
1615 @
$(MKSYMS_SH
) $(AWK
) $@
$(LIBTDB_HEADERS
)
1617 $(LIBTDB_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBTDB_OBJ
) $(LIBTDB_SYMS
)
1618 @echo Linking shared library
$@
1619 @
$(SHLD_DSO
) $(LIBTDB_OBJ
) \
1620 @SONAMEFLAG@
`basename $@`
1622 $(LIBTDB_SHARED_TARGET
): $(LIBTDB_SHARED_TARGET_SONAME
)
1624 @ln
-s
-f
`basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1626 $(LIBTDB_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBTDB_OBJ0
)
1627 @echo Linking non-shared library
$@
1628 @
-$(AR
) -rc
$@
$(LIBTDB_OBJ0
)
1635 $(LIBTDB_STATIC_TARGET
) \
1636 $(LIBTDB_SHARED_TARGET
) \
1637 $(LIBTDB_SHARED_TARGET_SONAME
)
1640 installlibtdb
:: installdirs libtdb
1641 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1642 -$(INSTALLLIBCMD_SH
) $(LIBTDB_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1643 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_SHARED_TARGET)`
1644 -if
test -e
$(LIBTDB_SHARED_TARGET_SONAME
) ; then \
1645 ln
-s
-f
`basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1646 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1648 -$(INSTALLLIBCMD_A
) $(LIBTDB_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1649 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1650 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBTDB_HEADERS
) $(DESTDIR
)${prefix}/include
1653 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_SHARED_TARGET)`
1654 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1655 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBTDB_STATIC_TARGET)`
1656 -rm -f
$(DESTDIR
)${prefix}/include/tdb.h
1659 installlibs
:: @INSTALL_LIBTDB@
1660 uninstalllibs
:: @UNINSTALL_LIBTDB@
1661 cleanlibs
:: cleanlibtdb
1662 shlibs test_shlibs
: @LIBTDB_SHARED@
1664 #-------------------------------------------------------------------
1668 #-------------------------------------------------------------------
1670 LIBWBCLIENT_OBJ0
= nsswitch
/libwbclient
/wbclient.o \
1671 nsswitch
/libwbclient
/wbc_util.o \
1672 nsswitch
/libwbclient
/wbc_pwd.o \
1673 nsswitch
/libwbclient
/wbc_idmap.o \
1674 nsswitch
/libwbclient
/wbc_sid.o \
1675 nsswitch
/libwbclient
/wbc_pam.o
1676 LIBWBCLIENT_OBJ
= $(LIBWBCLIENT_OBJ0
) \
1678 @LIBTALLOC_STATIC@
$(LIBREPLACE_OBJ
)
1680 LIBWBCLIENT_SHARED_TARGET
=@LIBWBCLIENT_SHARED_TARGET@
1681 LIBWBCLIENT_SOVER
=@LIBWBCLIENT_SOVER@
1682 LIBWBCLIENT_SHARED_TARGET_SONAME
=$(LIBWBCLIENT_SHARED_TARGET
).
$(LIBWBCLIENT_SOVER
)
1683 LIBWBCLIENT_STATIC_TARGET
=@LIBWBCLIENT_STATIC_TARGET@
1684 LIBWBCLIENT
=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1685 LIBWBCLIENT_SYMS
=$(srcdir)/exports
/libwbclient.@SYMSEXT@
1686 LIBWBCLIENT_HEADERS
=$(srcdir)/nsswitch
/libwbclient
/wbclient.h
1688 $(LIBWBCLIENT_SYMS
): $(LIBWBCLIENT_HEADERS
)
1689 @
$(MKSYMS_SH
) $(AWK
) $@
$(LIBWBCLIENT_HEADERS
)
1691 $(LIBWBCLIENT_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBWBCLIENT_OBJ
) $(LIBWBCLIENT_SYMS
) @LIBTALLOC_SHARED@
1692 @echo Linking shared library
$@
1693 @
$(SHLD_DSO
) $(LIBTALLOC_LIBS
) $(LIBWBCLIENT_OBJ
) \
1694 @SONAMEFLAG@
`basename $@`
1696 $(LIBWBCLIENT_SHARED_TARGET
): $(LIBWBCLIENT_SHARED_TARGET_SONAME
)
1698 @ln
-s
-f
`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1700 $(LIBWBCLIENT_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBWBCLIENT_OBJ0
) $(WBCOMMON_OBJ
)
1701 @echo Linking non-shared library
$@
1702 @
-$(AR
) -rc
$@
$(LIBWBCLIENT_OBJ0
) $(WBCOMMON_OBJ
)
1704 libwbclient
: $(LIBWBCLIENT
)
1708 $(LIBWBCLIENT_SYMS
) \
1709 $(LIBWBCLIENT_STATIC_TARGET
) \
1710 $(LIBWBCLIENT_SHARED_TARGET
) \
1711 $(LIBWBCLIENT_SHARED_TARGET_SONAME
)
1713 installlibwbclient
:: installdirs libwbclient
1714 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1715 -$(INSTALLLIBCMD_SH
) $(LIBWBCLIENT_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1716 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1717 -if
test -e
$(LIBWBCLIENT_SHARED_TARGET_SONAME
) ; then \
1718 ln
-s
-f
`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1719 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1721 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1722 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBWBCLIENT_HEADERS
) $(DESTDIR
)${prefix}/include
1724 uninstalllibwbclient
::
1725 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1726 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1727 -rm -f
$(DESTDIR
)${prefix}/include/wbclient.h
1730 installlibs
:: @INSTALL_LIBWBCLIENT@
1731 uninstalllibs
:: uninstalllibwbclient
1732 cleanlibs
:: cleanlibwbclient
1733 shlibs test_shlibs
: @LIBWBCLIENT_SHARED@
1736 #-------------------------------------------------------------------
1740 #-------------------------------------------------------------------
1743 LIBADDNS_SHARED_TARGET
=@LIBADDNS_SHARED_TARGET@
1744 LIBADDNS_SOVER
=@LIBADDNS_SOVER@
1745 LIBADDNS_SHARED_TARGET_SONAME
=$(LIBADDNS_SHARED_TARGET
).
$(LIBADDNS_SOVER
)
1746 LIBADDNS_STATIC_TARGET
=@LIBADDNS_STATIC_TARGET@
1747 LIBADDNS
=$(LIBADDNS_STATIC_TARGET
) @LIBADDNS_SHARED@
1748 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1749 LIBADDNS_HEADERS
=$(srcdir)/libaddns
/addns.h
1751 $(LIBADDNS_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBADDNS_OBJ
) @LIBTALLOC_SHARED@
1752 @echo Linking shared library
$@
1753 @
$(SHLD_DSO
) $(LIBADDNS_OBJ
) $(LIBS
) \
1754 $(KRB5LIBS
) $(UUID_LIBS
) $(LIBTALLOC_LIBS
) \
1755 @SONAMEFLAG@
`basename $@`
1757 $(LIBADDNS_SHARED_TARGET
): $(LIBADDNS_SHARED_TARGET_SONAME
)
1759 @ln
-s
-f
`basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1761 $(LIBADDNS_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBADDNS_OBJ0
)
1762 @echo Linking non-shared library
$@
1763 @
-$(AR
) -rc
$@
$(LIBADDNS_OBJ0
)
1765 libaddns
: $(LIBADDNS
)
1769 $(LIBADDNS_SHARED_TARGET
) \
1770 $(LIBADDNS_SHARED_TARGET_SONAME
) \
1771 $(LIBADDNS_STATIC_TARGET
)
1773 installlibaddns
:: installdirs libaddns
1774 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1775 -$(INSTALLLIBCMD_SH
) $(LIBADDNS_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1776 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_SHARED_TARGET)`
1777 -if
test -e
$(LIBADDNS_SHARED_TARGET_SONAME
) ; then \
1778 ln
-s
-f
`basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1779 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1781 -$(INSTALLLIBCMD_A
) $(LIBADDNS_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1784 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1785 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_SHARED_TARGET)`
1786 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBADDNS_STATIC_TARGET)`
1789 installlibs
:: @INSTALL_LIBADDNS@
1790 uninstalllibs
:: @UNINSTALL_LIBADDNS@
1791 cleanlibs
:: cleanlibaddns
1792 shlibs test_shlibs
: @LIBADDNS_SHARED@
1794 #-------------------------------------------------------------------
1798 #-------------------------------------------------------------------
1800 LIBNETAPI_OBJ1
= lib
/netapi
/netapi.o \
1802 librpc
/gen_ndr
/ndr_libnetapi.o \
1803 lib
/netapi
/libnetapi.o \
1804 lib
/netapi
/joindomain.o \
1805 lib
/netapi
/serverinfo.o \
1806 lib
/netapi
/getdc.o \
1809 LIBNETAPI_OBJ
= $(LIBNETAPI_OBJ1
) $(LIBNET_OBJ
) \
1811 $(REG_SMBCONF_OBJ
) \
1812 $(PARAM_WITHOUT_REG_OBJ
) $(LIB_NONSMBD_OBJ
) \
1813 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1814 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
1815 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
1816 $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(PRIVILEGES_BASIC_OBJ
)
1818 LIBNETAPI_SHARED_TARGET
=@LIBNETAPI_SHARED_TARGET@
1819 LIBNETAPI_SOVER
=@LIBNETAPI_SOVER@
1820 LIBNETAPI_SHARED_TARGET_SONAME
=$(LIBNETAPI_SHARED_TARGET
).
$(LIBNETAPI_SOVER
)
1821 LIBNETAPI_STATIC_TARGET
=@LIBNETAPI_STATIC_TARGET@
1822 LIBNETAPI
=$(LIBNETAPI_STATIC_TARGET
) @LIBNETAPI_SHARED@
1823 LIBNETAPI_SYMS
=$(srcdir)/exports
/libnetapi.@SYMSEXT@
1824 LIBNETAPI_HEADERS
=$(srcdir)/lib
/netapi
/netapi.h
1826 $(LIBNETAPI_SYMS
): $(LIBNETAPI_HEADERS
)
1827 @
$(MKSYMS_SH
) $(AWK
) $@
$(LIBNETAPI_HEADERS
)
1829 $(LIBNETAPI_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBNETAPI_OBJ
) $(LIBNETAPI_SYMS
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1830 @echo Linking shared library
$@
1831 @
$(SHLD_DSO
) $(LIBNETAPI_OBJ
) \
1832 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
) $(LIBS
) \
1833 $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
) \
1834 @SONAMEFLAG@
`basename $@`
1836 $(LIBNETAPI_SHARED_TARGET
): $(LIBNETAPI_SHARED_TARGET_SONAME
)
1838 @ln
-s
-f
`basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
1840 $(LIBNETAPI_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBNETAPI_OBJ1
)
1841 @echo Linking non-shared library
$@
1842 @
-$(AR
) -rc
$@
$(LIBNETAPI_OBJ1
)
1844 libnetapi
: $(LIBNETAPI
)
1849 $(LIBNETAPI_STATIC_TARGET
) \
1850 $(LIBNETAPI_SHARED_TARGET
) \
1851 $(LIBNETAPI_SHARED_TARGET_SONAME
)
1853 installlibnetapi
:: installdirs libnetapi
1854 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1855 -$(INSTALLLIBCMD_SH
) $(LIBNETAPI_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1856 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_SHARED_TARGET)`
1857 -if
test -e
$(LIBNETAPI_SHARED_TARGET_SONAME
) ; then \
1858 ln
-s
-f
`basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
1859 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
1861 -$(INSTALLLIBCMD_A
) $(LIBNETAPI_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1862 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1863 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/lib
/netapi
/netapi.h
$(DESTDIR
)${prefix}/include
1865 uninstalllibnetapi
::
1866 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_SHARED_TARGET)`
1867 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
1868 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBNETAPI_STATIC_TARGET)`
1869 -rm -f
$(DESTDIR
)${prefix}/include/netapi.h
1872 installlibs
:: @INSTALL_LIBNETAPI@
1873 uninstalllibs
:: @UNINSTALL_LIBNETAPI@
1874 cleanlibs
:: cleanlibnetapi
1875 shlibs test_shlibs
: @LIBNETAPI_SHARED@
1877 #-------------------------------------------------------------------
1881 #-------------------------------------------------------------------
1883 LIBSMBCLIENT_SHARED_TARGET
=@LIBSMBCLIENT_SHARED_TARGET@
1884 LIBSMBCLIENT_SOVER
=@LIBSMBCLIENT_SOVER@
1885 LIBSMBCLIENT_SHARED_TARGET_SONAME
=$(LIBSMBCLIENT_SHARED_TARGET
).
$(LIBSMBCLIENT_SOVER
)
1886 LIBSMBCLIENT_STATIC_TARGET
=@LIBSMBCLIENT_STATIC_TARGET@
1887 LIBSMBCLIENT
=$(LIBSMBCLIENT_STATIC_TARGET
) @LIBSMBCLIENT_SHARED@
1888 #LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
1889 LIBSMBCLIENT_HEADERS
=$(srcdir)/include/libsmbclient.h
1891 $(LIBSMBCLIENT_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1892 @echo Linking shared library
$@
1893 @
$(SHLD_DSO
) $(LIBSMBCLIENT_OBJ
) \
1894 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
) $(LIBS
) \
1895 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1896 @SONAMEFLAG@
`basename $@`
1898 $(LIBSMBCLIENT_SHARED_TARGET
): $(LIBSMBCLIENT_SHARED_TARGET_SONAME
)
1900 @ln
-s
`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
1902 $(LIBSMBCLIENT_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ0
)
1903 @echo Linking non-shared library
$@
1904 @
-$(AR
) -rc
$@
$(LIBSMBCLIENT_OBJ0
)
1906 libsmbclient
: $(LIBSMBCLIENT
)
1910 $(LIBSMBCLIENT_SHARED_TARGET
) \
1911 $(LIBSMBCLIENT_SHARED_TARGET_SONAME
) \
1912 $(LIBSMBCLIENT_STATIC_TARGET
)
1914 installlibsmbclient
:: installdirs libsmbclient
1915 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1916 -$(INSTALLLIBCMD_SH
) $(LIBSMBCLIENT_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1917 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1918 -if
test -e
$(LIBSMBCLIENT_SHARED_TARGET_SONAME
) ; then \
1919 ln
-s
-f
`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
1920 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
1922 -$(INSTALLLIBCMD_A
) $(LIBSMBCLIENT_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1923 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1924 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBSMBCLIENT_HEADERS
) $(DESTDIR
)${prefix}/include
1926 installclientlib
:: installlibsmbclient
1928 uninstalllibsmbclient
::
1929 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1930 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
1931 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
1932 -rm -f
$(DESTDIR
)${prefix}/include/libsmbclient.h
1934 uninstallclientlib
:: uninstalllibsmbclient
1937 installlibs
:: @INSTALL_LIBSMBCLIENT@
1938 uninstalllibs
:: @UNINSTALL_LIBSMBCLIENT@
1939 cleanlibs
:: cleanlibsmbclient
1940 shlibs test_shlibs
: @LIBSMBCLIENT_SHARED@
1942 #-------------------------------------------------------------------
1946 #-------------------------------------------------------------------
1948 LIBSMBSHAREMODES_OBJ0
= libsmb
/smb_share_modes.o
1950 LIBSMBSHAREMODES_OBJ
= $(LIBSMBSHAREMODES_OBJ0
) @LIBTDB_STATIC@
1952 LIBSMBSHAREMODES_SHARED_TARGET
=@LIBSMBSHAREMODES_SHARED_TARGET@
1953 LIBSMBSHAREMODES_SOVER
=@LIBSMBSHAREMODES_SOVER@
1954 LIBSMBSHAREMODES_SHARED_TARGET_SONAME
=$(LIBSMBSHAREMODES_SHARED_TARGET
).
$(LIBSMBSHAREMODES_SOVER
)
1955 LIBSMBSHAREMODES_STATIC_TARGET
=@LIBSMBSHAREMODES_STATIC_TARGET@
1956 LIBSMBSHAREMODES
=$(LIBSMBSHAREMODES_STATIC_TARGET
) @LIBSMBSHAREMODES_SHARED@
1957 #LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
1958 LIBSMBSHAREMODES_HEADERS
=$(srcdir)/include/smb_share_modes.h
1960 LIBSMBSHAREMODES
=bin
/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
1962 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
): $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1963 @echo Linking shared library
$@
1964 @
$(SHLD_DSO
) $(LIBSMBSHAREMODES_OBJ
) \
1965 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
1966 $(KRB5LIBS
) $(LDAP_LIBS
) \
1967 @SONAMEFLAG@
`basename $@`
1969 $(LIBSMBSHAREMODES_SHARED_TARGET
): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
)
1971 @ln
-s
-f
`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
1973 $(LIBSMBSHAREMODES_STATIC_TARGET
): $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ0
)
1974 @echo Linking non-shared library
$@
1975 @
-$(AR
) -rc
$@
$(LIBSMBSHAREMODES_OBJ0
)
1977 libsmbsharemodes
: $(LIBSMBSHAREMODES
)
1979 cleanlibsmbsharemodes
::
1981 $(LIBSMBSHAREMODES_SHARED_TARGET
) \
1982 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
) \
1983 $(LIBSMBSHAREMODES_STATIC_TARGET
)
1985 installlibsmbsharemodes
:: installdirs libsmbsharemodes
1986 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1987 -$(INSTALLLIBCMD_SH
) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
) $(DESTDIR
)$(LIBDIR
)
1988 @
rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
1989 -if
test -e
$(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
) ; then \
1990 ln
-s
-f
`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
1991 $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
1993 -$(INSTALLLIBCMD_A
) $(LIBSMBSHAREMODES_STATIC_TARGET
) $(DESTDIR
)$(LIBDIR
)
1994 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1995 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(LIBSMBSHAREMODES_HEADERS
) $(DESTDIR
)${prefix}/include
1997 uninstalllibsmbsharemodes
::
1998 -rm -f
$(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
1999 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2000 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2001 -rm -f
$(DESTDIR
)${prefix}/include/smb_share_modes.h
2003 libs
:: libsmbsharemodes
2004 installlibs
:: @INSTALL_LIBSMBSHAREMODES@
2005 uninstalllibs
:: @UNINSTALL_LIBSMBSHAREMODES@
2006 cleanlibs
:: cleanlibsmbsharemodes
2007 shlibs test_shlibs
: @LIBSMBSHAREMODES_SHARED@
2009 #-------------------------------------------------------------------
2013 #-------------------------------------------------------------------
2015 # This is probably wrong for anything other than the GNU linker.
2016 bin
/libbigballofmud.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBBIGBALLOFMUD_OBJ
) @LIBTALLOC_SHARED@
2017 @echo Linking shared library
$@
2018 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_OBJ
) \
2019 $(LIBS
) $(LIBTALLOC_LIBS
) \
2020 $(PASSDB_LIBS
) $(IDMAP_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
2021 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
2022 ln
-snf libbigballofmud.so bin
/libbigballofmud.so
.0
2024 # It would be nice to build a static bigballofmud too, but when I try
2025 # I get linker errors about dl_open and similar things. I'm not sure if
2026 # it can be fixed or if they just can't be called from a static
2031 #####################################################################
2035 #####################################################################
2037 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2038 SHLD_MODULE
= $(SHLD
) $(LDSHFLAGS
) $(MODULE_EXPORTS
) \
2039 -o
$@ @SONAMEFLAG@
`basename $@`
2041 bin
/librpc_lsarpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_OBJ
)
2043 @
$(SHLD_MODULE
) $(RPC_LSA_OBJ
)
2045 bin
/librpc_samr.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SAMR_OBJ
)
2047 @
$(SHLD_MODULE
) $(RPC_SAMR_OBJ
)
2049 bin
/librpc_srvsvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVC_OBJ
)
2051 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
2053 bin
/librpc_svcctl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVCCTL_OBJ
)
2055 @
$(SHLD_MODULE
) $(RPC_SVCCTL_OBJ
)
2057 bin
/librpc_ntsvcs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NTSVCS_OBJ
)
2059 @
$(SHLD_MODULE
) $(RPC_NTSVCS_OBJ
)
2061 bin
/librpc_wkssvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_WKS_OBJ
)
2063 @
$(SHLD_MODULE
) $(RPC_WKS_OBJ
)
2065 bin
/librpc_NETLOGON.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NETLOG_OBJ
)
2067 @
$(SHLD_MODULE
) $(RPC_NETLOG_OBJ
)
2069 bin
/librpc_winreg.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_REG_OBJ
)
2071 @
$(SHLD_MODULE
) $(RPC_REG_OBJ
)
2073 bin
/librpc_initshutdown.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_INITSHUTDOWN_OBJ
)
2075 @
$(SHLD_MODULE
) $(RPC_INITSHUTDOWN_OBJ
)
2077 bin
/librpc_dssetup.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_DSSETUP_OBJ
)
2079 @
$(SHLD_MODULE
) $(RPC_DSSETUP_OBJ
)
2081 bin
/librpc_spoolss.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SPOOLSS_OBJ
)
2083 @
$(SHLD_MODULE
) $(RPC_SPOOLSS_OBJ
)
2085 bin
/librpc_eventlog.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EVENTLOG_OBJ
)
2087 @
$(SHLD_MODULE
) $(RPC_EVENTLOG_OBJ
)
2089 bin
/librpc_netdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_DFS_OBJ
)
2091 @
$(SHLD_MODULE
) $(RPC_DFS_OBJ
)
2093 bin
/librpc_echo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_ECHO_OBJ
)
2095 @
$(SHLD_MODULE
) $(RPC_ECHO_OBJ
)
2097 bin
/winbindd@EXEEXT@
: $(BINARY_PREREQS
) $(WINBINDD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2099 @
$(CC
) $(FLAGS
) -o
$@
$(WINBINDD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
2100 $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
2101 $(PASSDB_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
2103 bin
/vlp@EXEEXT@
: $(BINARY_PREREQS
) $(VLP_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2105 @
$(CC
) $(FLAGS
) -o
$@
$(VLP_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
2106 $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) $(POPT_LIBS
) \
2107 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
2108 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
2110 @WINBIND_NSS@
: $(BINARY_PREREQS
) $(WINBIND_NSS_OBJ
)
2112 @
$(SHLD
) $(WINBIND_NSS_LDSHFLAGS
) -o
$@
$(WINBIND_NSS_OBJ
) \
2113 $(WINBIND_NSS_EXTRA_LIBS
) $(WINBIND_NSS_PTHREAD
) \
2114 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
2116 @WINBIND_WINS_NSS@
: $(BINARY_PREREQS
) $(WINBIND_WINS_NSS_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2118 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_WINS_NSS_OBJ
) \
2119 $(LDAP_LIBS
) $(KRB5LIBS
) $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
2120 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
2122 bin
/winbind_krb5_locator.@SHLIBEXT@
: $(BINARY_PREREQS
) $(WINBIND_KRB5_LOCATOR_OBJ
)
2124 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_KRB5_LOCATOR_OBJ
) \
2125 @SONAMEFLAG@
`basename $@`
2127 bin
/pam_winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_WINBIND_OBJ
)
2128 @echo
"Linking shared library $@"
2129 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) -lpam @INIPARSERLIBS@ \
2130 @PAM_WINBIND_EXTRA_LIBS@ @SONAMEFLAG@
`basename $@`
2132 bin
/builtin.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_BUILTIN_OBJ
)
2133 @echo
"Building plugin $@"
2134 @
$(SHLD_MODULE
) $(AUTH_BUILTIN_OBJ
)
2136 bin
/domain.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_DOMAIN_OBJ
)
2137 @echo
"Building plugin $@"
2138 @
$(SHLD_MODULE
) $(AUTH_DOMAIN_OBJ
)
2140 bin
/script.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SCRIPT_OBJ
)
2141 @echo
"Building plugin $@"
2142 @
$(SHLD_MODULE
) $(AUTH_SCRIPT_OBJ
)
2144 bin
/smbserver.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SERVER_OBJ
)
2145 @echo
"Building plugin $@"
2146 @
$(SHLD_MODULE
) $(AUTH_SERVER_OBJ
)
2148 bin
/winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_WINBIND_OBJ
)
2149 @echo
"Building plugin $@"
2150 @
$(SHLD_MODULE
) $(AUTH_WINBIND_OBJ
)
2152 bin
/unix.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_UNIX_OBJ
)
2153 @echo
"Building plugin $@"
2154 @
$(SHLD_MODULE
) $(AUTH_UNIX_OBJ
)
2156 bin
/sam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SAM_OBJ
)
2157 @echo
"Building plugin $@"
2158 @
$(SHLD_MODULE
) $(AUTH_SAM_OBJ
)
2160 bin
/ldapsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
2161 @echo
"Building plugin $@"
2162 @
$(SHLD_MODULE
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
$(LDAP_LIBS
)
2164 bin
/tdbsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_tdb.o
2165 @echo
"Building plugin $@"
2166 @
$(SHLD_MODULE
) passdb
/pdb_tdb.o
2168 bin
/smbpasswd.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_smbpasswd.o
2169 @echo
"Building plugin $@"
2170 @
$(SHLD_MODULE
) passdb
/pdb_smbpasswd.o
2172 bin
/rid.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_rid.o
2173 @echo
"Building plugin $@"
2174 @
$(SHLD_MODULE
) winbindd
/idmap_rid.o
2176 bin
/ad.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_ad.o
2177 @echo
"Building plugin $@"
2178 @
$(SHLD_MODULE
) winbindd
/idmap_ad.o
2180 bin
/tdb2.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_tdb2.o
2181 @echo
"Building plugin $@"
2182 @
$(SHLD_MODULE
) winbindd
/idmap_tdb2.o
2184 bin
/ldap.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_ldap.o
2185 @echo
"Building plugin $@"
2186 @
$(SHLD_MODULE
) winbindd
/idmap_ldap.o
2188 bin
/weird.@SHLIBEXT@
: $(BINARY_PREREQS
) $(DEVEL_HELP_WEIRD_OBJ
)
2189 @echo
"Building plugin $@"
2190 @
$(SHLD_MODULE
) $(DEVEL_HELP_WEIRD_OBJ
)
2192 bin
/CP850.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP850_OBJ
)
2193 @echo
"Building plugin $@"
2194 @
$(SHLD_MODULE
) $(CP850_OBJ
)
2196 bin
/CP437.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP437_OBJ
)
2197 @echo
"Building plugin $@"
2198 @
$(SHLD_MODULE
) $(CP437_OBJ
)
2200 bin
/macosxfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CHARSET_MACOSXFS_OBJ
)
2201 @echo
"Building plugin $@"
2202 @
$(SHLD_MODULE
) $(CHARSET_MACOSXFS_OBJ
) -framework CoreFoundation
2204 # NOTE, there is no build rule for a dynamic default VFS module because
2205 # this one MUST MUST MUST be built statically.
2207 bin
/audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AUDIT_OBJ
)
2208 @echo
"Building plugin $@"
2209 @
$(SHLD_MODULE
) $(VFS_AUDIT_OBJ
)
2211 bin
/extd_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXTD_AUDIT_OBJ
)
2212 @echo
"Building plugin $@"
2213 @
$(SHLD_MODULE
) $(VFS_EXTD_AUDIT_OBJ
)
2215 bin
/full_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FULL_AUDIT_OBJ
)
2216 @echo
"Building plugin $@"
2217 @
$(SHLD_MODULE
) $(VFS_FULL_AUDIT_OBJ
)
2219 bin
/recycle.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_RECYCLE_OBJ
)
2220 @echo
"Building plugin $@"
2221 @
$(SHLD_MODULE
) $(VFS_RECYCLE_OBJ
)
2223 bin
/netatalk.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NETATALK_OBJ
)
2224 @echo
"Building plugin $@"
2225 @
$(SHLD_MODULE
) $(VFS_NETATALK_OBJ
)
2227 bin
/fake_perms.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FAKE_PERMS_OBJ
)
2228 @echo
"Building plugin $@"
2229 @
$(SHLD_MODULE
) $(VFS_FAKE_PERMS_OBJ
)
2231 bin
/default_quota.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_DEFAULT_QUOTA_OBJ
)
2232 @echo
"Building plugin $@"
2233 @
$(SHLD_MODULE
) $(VFS_DEFAULT_QUOTA_OBJ
)
2235 bin
/readonly.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READONLY_OBJ
)
2236 @echo
"Building plugin $@"
2237 @
$(SHLD_MODULE
) $(VFS_READONLY_OBJ
)
2239 bin
/shadow_copy.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SHADOW_COPY_OBJ
)
2240 @echo
"Building plugin $@"
2241 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY_OBJ
)
2243 bin
/shadow_copy2.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SHADOW_COPY2_OBJ
)
2244 @echo
"Building plugin $@"
2245 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY2_OBJ
)
2247 bin
/syncops.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SYNCOPS_OBJ
)
2248 @echo
"Building plugin $@"
2249 @
$(SHLD_MODULE
) $(VFS_SYNCOPS_OBJ
)
2251 bin
/cap.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CAP_OBJ
)
2252 @echo
"Building plugin $@"
2253 @
$(SHLD_MODULE
) $(VFS_CAP_OBJ
)
2255 bin
/expand_msdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXPAND_MSDFS_OBJ
)
2256 @echo
"Building plugin $@"
2257 @
$(SHLD_MODULE
) $(VFS_EXPAND_MSDFS_OBJ
)
2259 bin
/afsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AFSACL_OBJ
)
2260 @echo
"Building plugin $@"
2261 @
$(SHLD_MODULE
) $(VFS_AFSACL_OBJ
)
2263 bin
/xattr_tdb.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_XATTR_TDB_OBJ
)
2264 @echo
"Building plugin $@"
2265 @
$(SHLD_MODULE
) $(VFS_XATTR_TDB_OBJ
)
2267 bin
/posixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_POSIXACL_OBJ
)
2268 @echo
"Building plugin $@"
2269 @
$(SHLD_MODULE
) $(VFS_POSIXACL_OBJ
)
2271 bin
/aixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL_OBJ
)
2272 @echo
"Building plugin $@"
2273 @
$(SHLD_MODULE
) $(VFS_AIXACL_OBJ
)
2275 bin
/aixacl2.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL2_OBJ
)
2276 @echo
"Building plugin $@"
2277 @
$(SHLD_MODULE
) $(VFS_AIXACL2_OBJ
)
2279 bin
/solarisacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SOLARISACL_OBJ
)
2280 @echo
"Building plugin $@"
2281 @
$(SHLD_MODULE
) $(VFS_SOLARISACL_OBJ
)
2283 bin
/zfsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_ZFSACL_OBJ
)
2284 @echo
"Building plugin $@"
2285 @
$(SHLD_MODULE
) $(VFS_ZFSACL_OBJ
)
2287 bin
/irixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_IRIXACL_OBJ
)
2288 @echo
"Building plugin $@"
2289 @
$(SHLD_MODULE
) $(VFS_IRIXACL_OBJ
)
2291 bin
/hpuxacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_HPUXACL_OBJ
)
2292 @echo
"Building plugin $@"
2293 @
$(SHLD_MODULE
) $(VFS_HPUXACL_OBJ
)
2295 bin
/tru64acl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_TRU64ACL_OBJ
)
2296 @echo
"Building plugin $@"
2297 @
$(SHLD_MODULE
) $(VFS_TRU64ACL_OBJ
)
2299 bin
/catia.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CATIA_OBJ
)
2300 @echo
"Building plugin $@"
2301 @
$(SHLD_MODULE
) $(VFS_CATIA_OBJ
)
2303 bin
/streams_xattr.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_STREAMS_XATTR_OBJ
)
2304 @echo
"Building plugin $@"
2305 @
$(SHLD_MODULE
) $(VFS_STREAMS_XATTR_OBJ
)
2307 bin
/streams_depot.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_STREAMS_DEPOT_OBJ
)
2308 @echo
"Building plugin $@"
2309 @
$(SHLD_MODULE
) $(VFS_STREAMS_DEPOT_OBJ
)
2311 bin
/cacheprime.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CACHEPRIME_OBJ
)
2312 @echo
"Building plugin $@"
2313 @
$(SHLD_MODULE
) $(VFS_CACHEPRIME_OBJ
)
2315 bin
/prealloc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_PREALLOC_OBJ
)
2316 @echo
"Building plugin $@"
2317 @
$(SHLD_MODULE
) $(VFS_PREALLOC_OBJ
)
2319 bin
/commit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_COMMIT_OBJ
)
2320 @echo
"Building plugin $@"
2321 @
$(SHLD_MODULE
) $(VFS_COMMIT_OBJ
)
2323 bin
/gpfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_GPFS_OBJ
)
2324 @echo
"Building plugin $@"
2325 @
$(SHLD_MODULE
) $(VFS_GPFS_OBJ
)
2327 bin
/notify_fam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NOTIFY_FAM_OBJ
)
2328 @echo
"Building plugin $@"
2329 @
$(SHLD_MODULE
) $(VFS_NOTIFY_FAM_OBJ
) @SMB_FAM_LIBS@
2331 bin
/readahead.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READAHEAD_OBJ
)
2332 @echo
"Building plugin $@"
2333 @
$(SHLD_MODULE
) $(VFS_READAHEAD_OBJ
)
2335 bin
/tsmsm.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_TSMSM_OBJ
)
2336 @echo
"Building plugin $@"
2337 @
$(SHLD_MODULE
) $(VFS_TSMSM_OBJ
)
2339 bin
/fileid.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FILEID_OBJ
)
2340 @echo
"Building plugin $@"
2341 @
$(SHLD_MODULE
) $(VFS_FILEID_OBJ
)
2343 bin
/aio_fork.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIO_FORK_OBJ
)
2344 @echo
"Building plugin $@"
2345 @
$(SHLD_MODULE
) $(VFS_AIO_FORK_OBJ
)
2347 #########################################################
2348 ## IdMap NSS plugins
2350 ## None here right now
2351 #########################################################
2353 bin
/wbinfo@EXEEXT@
: $(BINARY_PREREQS
) $(WBINFO_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2355 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(WBINFO_OBJ
) $(DYNEXP
) $(LIBS
) \
2356 $(LDAP_LIBS
) $(POPT_LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) \
2359 bin
/ntlm_auth@EXEEXT@
: $(BINARY_PREREQS
) $(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) \
2360 $(LIB_NONSMBD_OBJ
) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2362 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(NTLM_AUTH_OBJ
) \
2363 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBS
) \
2364 $(POPT_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
2365 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
2367 bin
/pam_smbpass.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_SMBPASS_OBJ
) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2368 @echo
"Linking shared library $@"
2369 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_OBJ
) -lpam
$(DYNEXP
) \
2370 $(LIBS
) $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
) \
2371 $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
) $(WINBIND_LIBS
)
2373 bin
/tdbbackup@EXEEXT@
: $(BINARY_PREREQS
) $(TDBBACKUP_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2375 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(TDBBACKUP_OBJ
) $(DYNEXP
) \
2376 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
2378 bin
/tdbtool@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTOOL_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2380 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(TDBTOOL_OBJ
) $(DYNEXP
) \
2381 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
2383 bin
/tdbdump@EXEEXT@
: $(BINARY_PREREQS
) $(TDBDUMP_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2385 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(TDBDUMP_OBJ
) $(DYNEXP
) \
2386 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
2388 bin
/tdbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTORTURE_OBJ
) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2390 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(TDBTORTURE_OBJ
) $(DYNEXP
) \
2391 $(LIBS
) $(LIBTALLOC_LIBS
) $(LIBTDB_LIBS
)
2393 bin
/t_strcmp@EXEEXT@
: $(BINARY_PREREQS
) @LIBTALLOC_SHARED@ bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strcmp.o
2394 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) $(LIBTALLOC_LIBS
) \
2395 torture
/t_strcmp.o
-L .
/bin
-lbigballofmud
2397 bin
/t_strstr@EXEEXT@
: $(BINARY_PREREQS
) @LIBTALLOC_SHARED@ bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strstr.o
2398 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) $(LIBTALLOC_LIBS
) \
2399 torture
/t_strstr.o
-L .
/bin
-lbigballofmud
2401 bin
/t_strappend@EXEEXT@
: $(BINARY_PREREQS
) @LIBTALLOC_SHARED@ bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strappend.o
2402 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) $(LIBTALLOC_LIBS
) \
2403 torture
/t_strappend.o
-L .
/bin
-lbigballofmud
2405 bin
/t_stringoverflow@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_stringoverflow.o
2406 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) torture
/t_stringoverflow.o \
2407 -L.
/bin
-lbigballofmud
2409 bin
/timelimit@EXEEXT@
: script
/tests
/timelimit.o
2411 @
$(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) script
/tests
/timelimit.o
2413 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSSPNEGO@ installman \
2414 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2415 @INSTALL_PAM_MODULES@ installlibs
2417 install-everything
:: install installmodules
2419 # DESTDIR is used here to prevent packagers wasting their time
2420 # duplicating the Makefile. Remove it and you will have the privelege
2421 # of package each samba release for muliple versions of multiple
2422 # distributions and operating systems, or at least supplying patches
2423 # to all the packaging files required for this, prior to committing
2424 # the removal of DESTDIR. Do not remove it even though you think it
2428 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
) $(PIDDIR
) $(LOCKDIR
) $(MANDIR
)
2430 installservers
:: all installdirs
2431 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
2433 installbin
:: all installdirs
2434 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
2436 installcifsmount
:: @CIFSMOUNT_PROGS@
2437 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(ROOTSBINDIR
)
2438 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
2440 installcifsspnego
:: @CIFSSPNEGO_PROGS@
2441 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(ROOTSBINDIR
)
2442 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSSPNEGO_PROGS@
2444 # Some symlinks are required for the 'probing' of modules.
2445 # This mechanism should go at some point..
2446 installmodules
:: modules
installdirs
2447 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
2448 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
2449 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
2450 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
2451 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(NSSINFOLIBDIR
) $(NSS_INFO_MODULES
)
2452 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
2453 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
2454 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2455 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2456 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2457 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2458 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2459 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2460 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2461 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(NSSINFOLIBDIR
) ..
/idmap
/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2463 installscripts
:: installdirs
2464 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
2466 installdat
:: installdirs
2467 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
) $(CODEPAGEDIR
) $(srcdir)
2469 installmsg
:: installdirs
2470 @
$(SHELL
) $(srcdir)/script
/installmsg.sh
$(DESTDIR
) $(CODEPAGEDIR
) $(srcdir)
2472 installswat
:: installdirs installmsg
2473 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
2475 installpammodules
:: $(PAM_MODULES
)
2476 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(PAMMODULESDIR
)
2477 @for module in
$(PAM_MODULES
); do \
2478 echo
"Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2479 $(INSTALLCMD
) -m
$(INSTALLPERMS_BIN
) bin
/$${module}.@SHLIBEXT@ \
2480 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2483 # revert to the previously installed version
2485 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
2486 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
2488 installman
:: installdirs
2489 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
"@ROFF@"
2494 @echo
"Samba will be installed into:"
2495 @echo
" prefix: $(prefix)"
2496 @echo
" bindir: $(BINDIR)"
2497 @echo
" sbindir: $(SBINDIR)"
2498 @echo
" libdir: $(LIBDIR)"
2499 @echo
" vardir: $(VARDIR)"
2500 @echo
" mandir: $(MANDIR)"
2501 @echo
" privatedir: $(PRIVATE_DIR)"
2502 @echo
" configdir: $(CONFIGDIR)"
2503 @echo
" lockdir: $(LOCKDIR)"
2504 @echo
" piddir: $(PIDDIR)"
2505 @echo
" swatdir: $(SWATDIR)"
2508 uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSSPNEGO@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2511 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
2514 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
2517 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
2519 uninstallcifsmount
::
2520 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
2522 uninstallcifsspnego
::
2523 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSSPNEGO_PROGS@
2526 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
2527 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
2528 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
2529 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
2530 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
2531 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
2534 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
2537 @
$(SHELL
) $(srcdir)/script
/uninstalldat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
2540 @
$(SHELL
) $(srcdir)/script
/uninstallmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
2542 uninstallswat
:: uninstallmsg
2543 @
$(SHELL
) $(srcdir)/script
/uninstallswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
2545 uninstallpammodules
::
2546 @for module in
$(PAM_MODULES
); do \
2547 echo
"Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2548 rm -f
"$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2551 # Toplevel clean files
2552 TOPFILES
=dynconfig.o
2554 clean:: delheaders cleanlibs
2555 -rm -f
$(PRECOMPILED_HEADER
)
2556 -rm -f core
*/*~
*~ \
2557 */*.o
*/*/*.o
*/*/*/*.o \
2558 ..
/testsuite
/*/*.o \
2559 */*.@SHLIBEXT@
*/*/*.@SHLIBEXT@
*/*/*/*.@SHLIBEXT@ \
2560 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(ROOT_SBIN_PROGS
) \
2561 $(MODULES
) $(TORTURE_PROGS
) \
2562 $(EVERYTHING_PROGS
) \
2564 .headers.stamp
*/src
/*.o proto_exists
2567 # Making this target will just make sure that the prototype files
2568 # exist, not necessarily that they are up to date. Since they're
2569 # removed by "make clean" this will always be run when you do anything
2571 proto_exists
:: include/proto.h
include/build_env.h \
2572 winbindd
/winbindd_proto.h web
/swat_proto.h \
2573 libnet
/libnet_proto.h \
2574 client
/client_proto.h utils
/net_proto.h utils
/ntlm_auth_proto.h smbd
/build_options.c
2578 @echo Removing prototype headers
2579 @
rm -f
include/proto.h
include/build_env.h \
2580 winbindd
/winbindd_proto.h web
/swat_proto.h \
2581 client
/client_proto.h utils
/net_proto.h \
2582 smbd
/build_options.c utils
/ntlm_auth_proto.h \
2583 utils
/passwd_proto.h libnet
/libnet_proto.h
2585 MKPROTO_SH
= $(srcdir)/script
/mkproto.sh
2587 include/proto.h
: smbd
/build_options.c
2588 @echo Building
include/proto.h
2589 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2590 -h _PROTO_H_
$(builddir
)/include/proto.h \
2593 include/build_env.h
: script
/build_env.sh
2594 @echo Building
include/build_env.h
2595 @
$(SHELL
) $(srcdir)/script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) \
2596 > $(builddir
)/include/build_env.h
2598 winbindd
/winbindd_proto.h
:
2599 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2600 -h _WINBINDD_PROTO_H_
$(builddir
)/winbindd
/winbindd_proto.h \
2604 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2605 -h _SWAT_PROTO_H_
$(builddir
)/web
/swat_proto.h \
2608 client
/client_proto.h
:
2609 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2610 -h _CLIENT_PROTO_H_
$(builddir
)/client
/client_proto.h \
2614 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2615 -h _NET_PROTO_H_
$(builddir
)/utils
/net_proto.h \
2618 utils
/passwd_proto.h
:
2619 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2620 -h _PASSWD_PROTO_H_
$(builddir
)/utils
/passwd_proto.h \
2623 utils
/ntlm_auth_proto.h
:
2624 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2625 -h _NTLM_AUTH_PROTO_H_
$(builddir
)/utils
/ntlm_auth_proto.h \
2628 libnet
/libnet_proto.h
:
2629 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2630 -h _LIBNET_PROTO_H_
$(builddir
)/libnet
/libnet_proto.h \
2633 # "make headers" or "make proto" calls a subshell because we need to
2634 # make sure these commands are executed in sequence even for a
2637 $(MAKE
) delheaders
; \
2638 $(MAKE
) smbd
/build_options.c
; \
2639 $(MAKE
) include/proto.h
; \
2640 $(MAKE
) include/build_env.h
; \
2641 $(MAKE
) winbindd
/winbindd_proto.h
; \
2642 $(MAKE
) web
/swat_proto.h
; \
2643 $(MAKE
) client
/client_proto.h
; \
2644 $(MAKE
) utils
/ntlm_auth_proto.h
; \
2645 $(MAKE
) utils
/net_proto.h
; \
2646 $(MAKE
) utils
/passwd_proto.h
; \
2647 $(MAKE
) libnet
/libnet_proto.h
;
2651 .PHONY
: headers proto
2654 etags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2657 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2659 realclean:: clean delheaders
2660 -rm -f config.log bin
/.dummy script
/findsmb script
/gen-8bit-gap.sh
2661 -rm -f script
/installbin.sh script
/uninstallbin.sh
2663 distclean:: realclean
2665 -rm -f
include/config.h Makefile
2666 -rm -f config.status config.cache so_locations
2669 realdistclean
:: distclean
2670 -rm -f
include/config.h.in
2671 -rm -f
include/version.h
2674 # this target is really just for my use. It only works on a limited
2675 # range of machines and is used to produce a list of potentially
2676 # dead (ie. unused) functions in the code. (tridge)
2678 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
2679 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
2680 comm
-13 nmused.txt nmfns.txt
2683 # when configure.in is updated, reconfigure
2684 $(srcdir)/configure
: $(srcdir)/configure.in
2685 @echo
"WARNING: you need to rerun ./autogen.sh"
2687 config.status
: $(srcdir)/configure
2688 @echo
"WARNING: you need to run ./configure"
2690 Makefile
: $(srcdir)/Makefile.in config.status
2691 @echo
"WARNING: you need to run ./config.status"
2693 ######################################################################
2694 # Samba Testing Framework
2696 # Check shared libs for unresolved symbols
2699 @
export $(LIB_PATH_VAR
)=.
/bin
&& \
2700 for module in
$?
; do \
2701 .
/script
/tests
/dlopen.sh
$${module} \
2705 # Check for NSS module problems.
2706 test_nss_modules
:: nss_modules
2707 @echo
"Testing $(NSS_MODULES) "
2708 @
export $(LIB_PATH_VAR
)=.
/bin
&& \
2709 for module in
$(NSS_MODULES
); do \
2710 .
/script
/tests
/dlopen.sh
$${module} \
2714 # Check for PAM module problems. Specifically, check that every module we
2715 # built can actually be loaded by a minimal PAM-aware application.
2716 test_pam_modules
:: pam_modules
2717 @echo
"Testing $(PAM_MODULES) "
2718 @
export $(LIB_PATH_VAR
)=.
/bin
&& \
2719 for module in
$(PAM_MODULES
); do \
2720 .
/script
/tests
/dlopen.sh
-lpam
-ldl bin
/$${module}.@SHLIBEXT@ \
2726 ## Targets for 'make test'
2728 test:: all torture timelimit
2729 @echo Running Test suite
2730 @LIB_PATH_VAR
=$(LIB_PATH_VAR
) PERL
="$(PERL)" $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix} all "${smbtorture4_path}"
2732 valgrindtest
:: all torture timelimit
2733 @echo Running Test suite with valgrind
2734 @LIB_PATH_VAR
=$(LIB_PATH_VAR
) \
2735 NMBD_VALGRIND
="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2736 WINBINDD_VALGRIND
="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2737 SMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2738 VALGRIND
="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2739 PERL
="$(PERL)" $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix} all "${smbtorture4_path}"