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 ###########################################################################
12 exec_prefix=@
exec_prefix@
13 sysconfdir
=@sysconfdir@
14 localstatedir
=@localstatedir@
15 datarootdir
=@datarootdir@
17 selftest_prefix
=@selftest_prefix@
18 smbtorture4_path
=@smbtorture4_path@
24 ## Dynamic shared libraries build settings
25 DSO_EXPORTS_CMD
=-Wl
,--version-script
,$(srcdir)/exports
/`basename $@ | sed 's/@SHLIBEXT@$$/syms/'`
26 DSO_EXPORTS
=@DSO_EXPORTS@
27 SONAME_VER
=`grep ^$@ $(builddir)/library-versions | cut -d: -f2`
28 SHLD_DSO
= $(SHLD
) $(LDSHFLAGS
) $(DSO_EXPORTS
) -o
$@
30 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
31 # (GCC) warnings. This is done automtically for --enable-developer
32 # and --enable-krb5developer.
33 DEVELOPER_CFLAGS
=@DEVELOPER_CFLAGS@
35 CPPFLAGS
=-DHAVE_CONFIG_H @CPPFLAGS@
39 LDSHFLAGS
=@LDSHFLAGS@ @LDFLAGS@
40 LDFLAGS
=@PIE_LDFLAGS@ @LDFLAGS@
42 # The MODULE_EXPORTS variable conatins the platform-specific linker flags
43 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
44 MODULE_EXPORTS
=@MODULE_EXPORTS@
46 WINBIND_NSS_LDSHFLAGS
=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
55 TERMLDFLAGS
=@TERMLDFLAGS@
57 PRINT_LIBS
=@PRINT_LIBS@
60 PASSDB_LIBS
=@PASSDB_LIBS@
61 IDMAP_LIBS
=@IDMAP_LIBS@
68 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
69 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
70 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
71 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
75 builddir
=@abs_builddir@
79 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
80 # will search for a POSIX-compliant shell, and that might not be
81 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
83 # See the autoconf manual "Installation Directory Variables" for a
84 # discussion of the subtle use of these variables.
88 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
90 ROOTSBINDIR
= @rootsbindir@
92 PAMMODULESDIR
= @pammodulesdir@
93 VFSLIBDIR
= $(LIBDIR
)/vfs
94 PDBLIBDIR
= $(LIBDIR
)/pdb
95 RPCLIBDIR
= $(LIBDIR
)/rpc
96 IDMAPLIBDIR
= $(LIBDIR
)/idmap
97 NSSINFOLIBDIR
= $(LIBDIR
)/nss_info
98 CHARSETLIBDIR
= $(LIBDIR
)/charset
99 AUTHLIBDIR
= $(LIBDIR
)/auth
100 CONFIGLIBDIR
= $(LIBDIR
)/config
101 CONFIGDIR
= @configdir@
102 VARDIR
= @localstatedir@
106 # The permissions to give the executables and other data
107 INSTALLPERMS_BIN
= 0755
108 INSTALLPERMS_DATA
= 0644
110 # set these to where to find various files
111 # These can be overridden by command line switches (see smbd(8))
112 # or in smb.conf (see smb.conf(5))
113 LOGFILEBASE
= @logfilebase@
114 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
115 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
118 # This is where smbpasswd et al go
119 PRIVATEDIR
= @privatedir@
121 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
122 PRIVATE_DIR
= $(PRIVATEDIR
)
124 # This is where SWAT images and help files go
127 # the directory where lock files go
130 # the directory where pid files go
133 LIBSMBCLIENT
=bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
134 LIBMSRPC
=bin
/libmsrpc.a @LIBMSRPC_SHARED@
135 LIBSMBSHAREMODES
=bin
/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
136 LIBADDNS
=bin
/libaddns.a @LIBADDNS_SHARED@
138 FLAGS1
= $(CFLAGS
) @FLAGS1@ @SAMBA_CPPFLAGS@
$(CPPFLAGS
)
141 FLAGS4
= -I
$(CTDBDIR
)/include
142 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
143 FLAGS
= $(ISA
) $(FLAGS5
) -I
$(srcdir)/lib
-D_SAMBA_BUILD_
=3
145 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
146 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
147 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
148 -DSBINDIR
=\"$(SBINDIR
)\" \
149 -DBINDIR
=\"$(BINDIR
)\" \
150 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
151 -DSWATDIR
=\"$(SWATDIR
)\" \
152 -DLOCKDIR
=\"$(LOCKDIR
)\" \
153 -DPIDDIR
=\"$(PIDDIR
)\" \
154 -DLIBDIR
=\"$(LIBDIR
)\" \
155 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
156 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
157 -DCTDBDIR
=\"$(CTDBDIR
)\" \
158 -DCONFIGDIR
=\"$(CONFIGDIR
)\"
160 # Note that all executable programs now provide for an optional executable suffix.
162 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
164 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@
166 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
167 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
168 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
169 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
171 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
172 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ \
173 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
174 BIN_PROGS4
= bin
/ldbedit@EXEEXT@ bin
/ldbsearch@EXEEXT@ bin
/ldbadd@EXEEXT@ \
175 bin
/ldbdel@EXEEXT@ bin
/ldbmodify@EXEEXT@
177 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
178 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
179 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
180 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
181 bin
/tdbtorture@EXEEXT@
183 BIN_PROGS
= @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@ \
184 $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) $(BIN_PROGS4
)
186 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
187 bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
188 bin
/log2pcap@EXEEXT@ bin
/sharesec@EXEEXT@ bin
/ndrdump@EXEEXT@
190 SHLIBS
= @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBADDNS@
192 PAM_MODULES
= @PAM_MODULES@
194 NSS_MODULES
= @NSS_MODULES@
196 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
198 VFS_MODULES
= @VFS_MODULES@
199 PDB_MODULES
= @PDB_MODULES@
200 RPC_MODULES
= @RPC_MODULES@
201 IDMAP_MODULES
= @IDMAP_MODULES@
202 CHARSET_MODULES
= @CHARSET_MODULES@
203 AUTH_MODULES
= @AUTH_MODULES@
204 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
205 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
206 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
)
208 ######################################################################
210 ######################################################################
212 TDBBASE_OBJ
= lib
/tdb
/common
/tdb.o lib
/tdb
/common
/dump.o lib
/tdb
/common
/error.o \
213 lib
/tdb
/common
/freelist.o lib
/tdb
/common
/freelistcheck.o \
214 lib
/tdb
/common
/io.o lib
/tdb
/common
/lock.o \
215 lib
/tdb
/common
/open.o lib
/tdb
/common
/transaction.o \
216 lib
/tdb
/common
/traverse.o
218 TDB_OBJ
= $(TDBBASE_OBJ
) lib
/util_tdb.o\
219 lib
/dbwrap.o lib
/dbwrap_tdb.o lib
/dbwrap_ctdb.o
221 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
223 VERSION_OBJ
= lib
/version.o
225 DOSERR_OBJ
= libsmb
/doserr.o
227 WBCOMMON_OBJ
= nsswitch
/wb_common.o
231 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
233 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
235 ERRORMAP_OBJ
= libsmb
/errormap.o
237 PASSCHANGE_OBJ
= libsmb
/passchange.o
240 LIBNDR_OBJ
= librpc
/ndr
/ndr_basic.o librpc
/ndr
/ndr.o librpc
/ndr
/ndr_misc.o \
241 librpc
/ndr
/ndr_sec_helper.o librpc
/ndr
/ndr_string.o librpc
/ndr
/sid.o
243 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
245 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_wkssvc.o \
246 librpc
/gen_ndr
/ndr_lsa.o \
247 librpc
/gen_ndr
/ndr_dfs.o \
248 librpc
/gen_ndr
/ndr_echo.o \
249 librpc
/gen_ndr
/ndr_winreg.o \
250 librpc
/gen_ndr
/ndr_initshutdown.o \
251 librpc
/gen_ndr
/ndr_srvsvc.o \
252 librpc
/gen_ndr
/ndr_svcctl.o \
253 librpc
/gen_ndr
/ndr_eventlog.o \
254 librpc
/gen_ndr
/ndr_unixinfo.o \
255 librpc
/gen_ndr
/ndr_notify.o \
256 librpc
/gen_ndr
/ndr_epmapper.o
258 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
260 # this includes only the low level parse code, not stuff
261 # that requires knowledge of security contexts
262 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
) rpc_parse
/parse_sec.o
264 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o rpc_parse
/parse_net.o
266 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
268 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
270 TALLOC_OBJ
= lib
/talloc
/talloc.o
273 LIB_WITHOUT_PROTO_OBJ
= $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) $(TALLOC_OBJ
) \
274 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
275 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o lib
/talloc_stack.o
277 LIB_WITH_PROTO_OBJ
= $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
278 lib
/interface.o lib
/md4.o \
279 lib
/interfaces.o lib
/pidfile.o \
280 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/time.o \
281 lib
/ufc.o lib
/genrand.o lib
/username.o \
282 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
283 lib
/bitmap.o lib
/crc32.o lib
/dprintf.o \
284 lib
/xfile.o lib
/wins_srv.o
$(UTIL_REG_OBJ
) \
285 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
286 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
287 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
288 lib
/substitute.o lib
/fsusage.o \
289 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
290 lib
/tallocmsg.o lib
/dmallocmsg.o libsmb
/smb_signing.o \
291 lib
/md5.o lib
/hmacmd5.o lib
/arc4.o lib
/iconv.o \
292 nsswitch
/wb_client.o
$(WBCOMMON_OBJ
) \
293 lib
/pam_errors.o intl
/lang_tdb.o lib
/conn_tdb.o \
294 lib
/adt_tree.o lib
/gencache.o
$(TDB_OBJ
) \
295 lib
/module.o lib
/events.o lib
/ldap_escape.o @CHARSET_STATIC@ \
296 lib
/secdesc.o lib
/util_seaccess.o lib
/secace.o lib
/secacl.o \
297 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
300 LIB_OBJ
= $(LIB_WITHOUT_PROTO_OBJ
) $(LIB_WITH_PROTO_OBJ
)
302 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
303 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
305 READLINE_OBJ
= lib
/readline.o
307 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
308 # Be sure to include them into your application
309 POPT_LIB_OBJ
= lib
/popt_common.o
311 PARAM_WITHOUT_REG_OBJ
= dynconfig.o param
/loadparm.o param
/params.o lib
/sharesec.o
312 PARAM_REG_ADD_OBJ
= $(UTIL_REG_API_OBJ
)
313 PARAM_OBJ
= $(PARAM_WITHOUT_REG_OBJ
) $(PARAM_REG_ADD_OBJ
)
315 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
317 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
318 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
319 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(TALLOC_OBJ
)
321 LIBGPO_OBJ0
= libgpo
/gpo_ldap.o libgpo
/gpo_ini.o libgpo
/gpo_util.o \
322 libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o libgpo
/gpo_sec.o
323 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
325 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o \
326 libads
/sasl.o libads
/sasl_wrapping.o \
327 libads
/krb5_setpw.o libads
/ldap_user.o \
328 libads
/ads_struct.o libads
/kerberos_keytab.o \
329 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
330 libads
/cldap.o libads
/ldap_schema.o libads
/util.o
332 LIBADS_SERVER_OBJ
= libads
/kerberos_verify.o libads
/authdata.o
334 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
336 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
337 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
339 LIBSAMBA_OBJ
= libsmb
/nterr.o libsmb
/dcerpc_err.o libsmb
/smbdes.o \
340 libsmb
/smbencrypt.o libsmb
/ntlm_check.o \
341 libsmb
/ntlmssp.o libsmb
/ntlmssp_parse.o libsmb
/ntlmssp_sign.o
343 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
344 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
345 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
346 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
347 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
348 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
349 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
350 libsmb
/clioplock.o
$(ERRORMAP_OBJ
) libsmb
/clirap2.o \
351 libsmb
/smb_seal.o
$(DOSERR_OBJ
) \
352 $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(LIBNMB_OBJ
)
354 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o
356 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
357 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
358 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
359 rpc_client
/cli_ds.o rpc_client
/cli_svcctl.o
361 LIBMSRPC_GEN_OBJ
= librpc
/gen_ndr
/cli_lsa.o \
362 librpc
/gen_ndr
/cli_dfs.o \
363 librpc
/gen_ndr
/cli_echo.o \
364 librpc
/gen_ndr
/cli_srvsvc.o \
365 librpc
/gen_ndr
/cli_svcctl.o \
366 librpc
/gen_ndr
/cli_winreg.o \
367 librpc
/gen_ndr
/cli_initshutdown.o \
368 librpc
/gen_ndr
/cli_eventlog.o \
369 librpc
/gen_ndr
/cli_unixinfo.o \
370 librpc
/gen_ndr
/cli_epmapper.o \
374 REGOBJS_OBJ
= registry
/reg_objects.o
376 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
377 registry
/reg_db.o registry
/reg_eventlog.o registry
/reg_shares.o \
378 registry
/reg_util.o registry
/reg_dynamic.o registry
/reg_perfcount.o \
379 registry
/reg_smbconf.o registry
/reg_api.o \
380 registry
/reg_frontend_hilvl.o \
381 $(UTIL_REG_API_OBJ
) $(UTIL_REG_SMBCONF_OBJ
)
383 RPC_LSA_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o librpc
/gen_ndr
/srv_lsa.o
385 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o
387 RPC_SAMR_OBJ
= rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o \
388 rpc_server
/srv_samr_util.o
390 RPC_UNIXINFO_OBJ
= librpc
/gen_ndr
/srv_unixinfo.o rpc_server
/srv_unixinfo_nt.o
391 REGFIO_OBJ
= registry
/regfio.o
393 RPC_EPMAPPER_OBJ
= librpc
/gen_ndr
/srv_epmapper.o rpc_server
/srv_epmapper_nt.o
395 RPC_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
397 RPC_REG_OBJ
= rpc_server
/srv_winreg_nt.o \
398 librpc
/gen_ndr
/srv_winreg.o \
400 RPC_LSA_DS_OBJ
= rpc_server
/srv_lsa_ds.o rpc_server
/srv_lsa_ds_nt.o
402 RPC_SVC_OBJ
= librpc
/gen_ndr
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o
404 RPC_WKS_OBJ
= librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
406 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl.o rpc_server
/srv_svcctl_nt.o \
407 librpc
/gen_ndr
/srv_svcctl.o \
408 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
409 services
/svc_netlogon.o services
/svc_winreg.o \
412 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs.o rpc_server
/srv_ntsvcs_nt.o
414 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
416 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
418 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog.o rpc_server
/srv_eventlog_nt.o \
419 rpc_server
/srv_eventlog_lib.o librpc
/gen_ndr
/srv_eventlog.o
421 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
422 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
424 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o librpc
/gen_ndr
/srv_echo.o
426 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
428 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o
$(RPC_PARSE_OBJ2
) \
429 rpc_parse
/parse_samr.o \
430 rpc_parse
/parse_ds.o rpc_parse
/parse_spoolss.o \
431 rpc_parse
/parse_eventlog.o rpc_parse
/parse_buffer.o \
432 rpc_parse
/parse_ntsvcs.o rpc_parse
/parse_svcctl.o
$(REGOBJS_OBJ
)
434 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
436 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
438 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
440 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
441 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
442 passdb
/util_unixsids.o passdb
/lookup_sid.o \
443 passdb
/login_cache.o @PDB_STATIC@ \
444 lib
/account_pol.o lib
/privileges.o lib
/privileges_basic.o \
447 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
448 CP850_OBJ
= modules
/CP850.o
449 CP437_OBJ
= modules
/CP437.o
450 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
452 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o groupdb
/mapping_ldb.o
454 PROFILE_OBJ
= profile
/profile.o
455 PROFILES_OBJ
= utils
/profiles.o \
456 $(REGFIO_OBJ
) $(REGOBJS_OBJ
) $(ERRORMAP_OBJ
) \
457 $(RPC_PARSE_OBJ1
) $(PARAM_OBJ
) $(LIBSAMBA_OBJ
) \
458 $(DOSERR_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
459 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
461 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
463 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
465 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
466 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
467 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
468 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
469 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
470 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
471 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
472 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
473 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
474 VFS_CAP_OBJ
= modules
/vfs_cap.o
475 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
476 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
477 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
478 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
479 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
480 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
481 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
482 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
483 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
484 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
485 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
486 VFS_CATIA_OBJ
= modules
/vfs_catia.o
487 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
488 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
489 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
490 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
491 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
492 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
493 VFS_FILEID_OBJ
= modules
/vfs_fileid.o
495 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
497 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
499 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o libsmb
/dsgetdcname.o
501 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
502 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
503 AUTH_SAM_OBJ
= auth
/auth_sam.o
504 AUTH_SERVER_OBJ
= auth
/auth_server.o
505 AUTH_UNIX_OBJ
= auth
/auth_unix.o
506 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
507 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
509 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
511 auth
/auth_compat.o auth
/auth_ntlmssp.o \
512 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
514 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_hash2.o
516 SMBD_OBJ_MAIN
= smbd
/server.o
518 BUILDOPT_OBJ
= smbd
/build_options.o
520 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
521 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
522 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
523 smbd
/share_access.o smbd
/fileio.o \
524 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
525 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
526 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
527 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
528 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
529 smbd
/vfs.o smbd
/statcache.o smbd
/seal.o \
530 smbd
/posix_acls.o lib
/sysacls.o
$(SERVER_MUTEX_OBJ
) \
531 smbd
/process.o smbd
/service.o smbd
/error.o \
532 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
533 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
534 smbd
/change_trust_pw.o smbd
/fake_file.o \
535 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
536 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
537 smbd
/dmapi.o lib
/launchd.o smbd
/sockinit.o \
538 $(MANGLE_OBJ
) @VFS_STATIC@
540 SMBD_OBJ_BASE
= $(PARAM_WITHOUT_REG_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
541 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
542 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
543 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
544 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
545 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
546 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
547 $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
548 $(BUILDOPT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
550 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
551 printing
/print_cups.o printing
/print_generic.o \
552 printing
/lpq_parse.o printing
/load.o \
553 printing
/print_iprint.o printing
/print_test.o
555 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
556 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
558 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
559 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
560 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
561 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
562 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
563 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
564 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
565 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
566 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
567 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
568 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
569 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
570 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
572 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
573 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
575 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
576 web
/swat.o web
/neg_lang.o
578 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) \
579 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) \
580 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
581 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
582 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
584 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
585 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
586 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
587 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) \
590 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
591 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
592 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
593 $(PRINTBASE_OBJ
) $(ERRORMAP_OBJ
)
595 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
596 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
597 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
598 rpc_client
/cli_pipe.o
$(RPC_PARSE_OBJ2
) \
600 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
603 TESTPARM_OBJ
= utils
/testparm.o \
604 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
605 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
607 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
609 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
610 $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
611 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
612 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
614 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) \
615 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
616 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) libsmb
/asn1.o \
617 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) $(ERRORMAP_OBJ
)
619 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ
)
621 DISPLAY_SEC_OBJ
= lib
/display_sec.o
622 DISPLAY_DSDCINFO_OBJ
= lib
/display_dsdcinfo.o
624 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
625 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
626 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
627 rpcclient
/cmd_dfs.o \
628 rpcclient
/cmd_ds.o rpcclient
/cmd_echo.o \
629 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
630 rpcclient
/cmd_unixinfo.o \
631 $(DISPLAY_SEC_OBJ
) $(DISPLAY_DSDCINFO_OBJ
)
633 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
634 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
635 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
636 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
637 $(LIBADS_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
638 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
640 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
641 $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @BUILD_INIPARSER@
643 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
644 libsmb
/libsmb_cache.o \
645 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
646 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
647 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
648 $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
650 CAC_OBJ
= $(LIBSMBCLIENT_OBJ
) \
651 libmsrpc
/libmsrpc.o libmsrpc
/libmsrpc_internal.o \
652 libmsrpc
/cac_lsarpc.o libmsrpc
/cac_winreg.o libmsrpc
/cac_samr.o \
653 libmsrpc
/cac_svcctl.o
655 LIBSMBSHAREMODES_OBJ
= libsmb
/smb_share_modes.o
$(TDB_BASE_OBJ
)
657 # This shared library is intended for linking with unit test programs
658 # to test Samba internals. It's called libbigballofmud.so to
659 # discourage casual usage.
661 LIBBIGBALLOFMUD_MAJOR
= 0
663 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) \
664 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
665 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
667 CLIENT_OBJ1
= client
/client.o client
/clitar.o rpc_client
/cli_pipe.o \
671 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
672 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
673 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
674 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
677 TOOL_OBJ
= client
/smbctool.o client
/clitar.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
678 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
679 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
682 UTIL_REG_OBJ
= lib
/util_reg.o
683 UTIL_REG_API_OBJ
= lib
/util_reg_api.o
684 UTIL_REG_SMBCONF_OBJ
= lib
/util_reg_smbconf.o
686 # objects to be used when not all of the registry code should be
687 # loaded but only the portion needed by reg_api, typically for
688 # using smbconf (registry) - full access
689 REG_API_OBJ
= registry
/reg_api.o \
690 registry
/reg_frontend_hilvl.o \
691 registry
/reg_smbconf.o \
693 registry
/reg_util.o \
695 registry
/reg_cachehook.o \
696 registry
/reg_eventlog.o \
697 registry
/reg_perfcount.o \
698 registry
/reg_dynamic.o \
701 $(UTIL_REG_API_OBJ
) \
702 $(UTIL_REG_SMBCONF_OBJ
)
704 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_domain.o utils
/net_help.o \
705 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
706 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
707 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
708 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
709 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
710 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
711 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
712 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
713 utils
/net_conf.o auth
/token_util.o
715 NET_OBJ
= $(NET_OBJ1
) $(PARAM_WITHOUT_REG_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
716 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
717 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
718 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
719 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
720 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
721 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
722 $(LDB_OBJ
) $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) \
723 $(REG_API_OBJ
) $(DISPLAY_DSDCINFO_OBJ
)
725 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
726 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
728 MOUNT_OBJ
= client
/smbmount.o \
729 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
731 MNT_OBJ
= client
/smbmnt.o
$(VERSION_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
733 UMOUNT_OBJ
= client
/smbumount.o
$(SOCKET_WRAPPER_OBJ
)
735 CIFS_MOUNT_OBJ
= client
/mount.cifs.o
737 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o
739 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
740 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
742 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
743 torture
/denytest.o torture
/mangle_test.o
745 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
746 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
748 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
749 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
751 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
752 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
754 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
755 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
757 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
758 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
760 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
761 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
762 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
)
765 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
767 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
769 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
771 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
772 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
774 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
775 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
776 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) \
777 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
779 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
781 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
782 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
783 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
785 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
787 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
788 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
790 registry
/reg_eventlog.o rpc_server
/srv_eventlog_lib.o registry
/reg_util.o \
793 SHARESEC_OBJ0
= utils
/sharesec.o
794 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
795 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
796 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
798 TALLOCTORT_OBJ
= lib
/talloc
/testsuite.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
799 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LIBSAMBA_OBJ
) $(SECRETS_OBJ
)
801 REPLACETORT_OBJ
= lib
/replace
/test/testsuite.o \
802 lib
/replace
/test/os2_delete.o \
803 lib
/replace
/test/strptime.o \
806 NDRDUMP_OBJ
= librpc
/tools
/ndrdump.o \
807 $(PARAM_OBJ
) $(LIBNDR_GEN_OBJ
) \
808 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
809 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(SECRETS_OBJ
)
811 RPCTORTURE_OBJ
= torture
/rpctorture.o \
812 rpcclient
/display.o \
813 rpcclient
/cmd_lsarpc.o \
814 rpcclient
/cmd_wkssvc.o \
815 rpcclient
/cmd_samr.o \
816 rpcclient
/cmd_srvsvc.o \
817 rpcclient
/cmd_netlogon.o \
818 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
819 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) $(SECRETS_OBJ
)
821 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
823 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(SECRETS_OBJ
) \
824 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
)
826 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) $(LIBNDR_OBJ
) $(LIBNDR_GEN_OBJ
) \
827 $(RPCCLIENT_NDR_OBJ
) \
828 $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(LIBSMB_OBJ
) \
829 $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
831 $(LIB_WITH_PROTO_OBJ
) \
832 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) $(KRBCLIENT_OBJ
) \
833 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
834 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
835 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
836 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
837 $(AUTH_SAM_OBJ
) $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
838 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) $(RPC_LSA_DS_OBJ
) \
839 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
) \
840 $(RPC_ECHO_OBJ
) $(RPC_SVCCTL_OBJ
) $(RPC_EVENTLOG_OBJ
) $(SMBLDAP_OBJ
) \
841 $(IDMAP_OBJ
) libsmb
/spnego.o
$(PASSCHANGE_OBJ
) $(RPC_UNIXINFO_OBJ
) \
842 $(RPC_NTSVCS_OBJ
) $(RPC_INITSHUTDOWN_OBJ
) \
843 utils
/passwd_util.o
$(LIBGPO_OBJ
) $(NSS_INFO_OBJ
) \
844 $(RPC_EPMAPPER_OBJ
) $(DISPLAY_DSDCINFO_OBJ
)
846 WINBIND_WINS_NSS_OBJ
= nsswitch
/wins.o
$(PARAM_OBJ
) \
847 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
849 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
850 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o
851 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
852 $(SECRETS_OBJ
) $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
853 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) $(ERRORMAP_OBJ
)
855 IDMAP_OBJ
= nsswitch
/idmap.o nsswitch
/idmap_cache.o nsswitch
/idmap_util.o @IDMAP_STATIC@
857 NSS_INFO_OBJ
= nsswitch
/nss_info.o @NSS_INFO_STATIC@
859 IDMAP_NSS_OBJ
= sam
/idmap_nss.o @IDMAP_NSS_STATIC@
862 nsswitch
/winbindd.o \
863 nsswitch
/winbindd_sockinit.o \
864 nsswitch
/winbindd_user.o \
865 nsswitch
/winbindd_group.o \
866 nsswitch
/winbindd_util.o \
867 nsswitch
/winbindd_cache.o \
868 nsswitch
/winbindd_pam.o \
869 nsswitch
/winbindd_sid.o \
870 nsswitch
/winbindd_misc.o \
871 nsswitch
/winbindd_cm.o \
872 nsswitch
/winbindd_wins.o \
873 nsswitch
/winbindd_rpc.o \
874 nsswitch
/winbindd_reconnect.o \
875 nsswitch
/winbindd_ads.o \
876 nsswitch
/winbindd_passdb.o \
877 nsswitch
/winbindd_dual.o \
878 nsswitch
/winbindd_async.o \
879 nsswitch
/winbindd_creds.o \
880 nsswitch
/winbindd_cred_cache.o \
881 nsswitch
/winbindd_ccache_access.o \
885 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
886 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
887 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
888 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
889 $(SECRETS_OBJ
) $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
890 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
891 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) lib
/launchd.o \
892 $(LIBADS_SERVER_OBJ
) $(SERVER_MUTEX_OBJ
) $(LDB_OBJ
)
894 WBINFO_OBJ
= nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
895 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
897 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
899 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
900 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
901 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
902 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
903 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
905 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
906 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
907 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
909 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
910 lib
/ldb
/modules
/objectclass.o \
911 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
913 # enabled in configure.in
914 LDB_LDAP_OBJ
=@LDBLDAP@
916 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
918 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
919 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
920 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
921 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
922 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
923 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
924 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
925 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
928 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
929 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
930 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
931 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
932 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
934 SMB_KRB5_LOCATOR_OBJ1
= nsswitch
/smb_krb5_locator.o
935 SMB_KRB5_LOCATOR_OBJ
= $(SMB_KRB5_LOCATOR_OBJ1
) $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
937 POPT_OBJ
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
938 popt
/popthelp.o popt
/poptparse.o
940 INIPARSER_OBJ
= iniparser_build
/iniparser.o iniparser_build
/dictionary.o \
941 iniparser_build
/strlib.o
943 TDBBACKUP_OBJ
= lib
/tdb
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
944 $(TDBBASE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
946 TDBTOOL_OBJ
= lib
/tdb
/tools
/tdbtool.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
947 $(SOCKET_WRAPPER_OBJ
)
949 TDBDUMP_OBJ
= lib
/tdb
/tools
/tdbdump.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
950 $(SOCKET_WRAPPER_OBJ
)
952 TDBTORTURE_OBJ
= lib
/tdb
/tools
/tdbtorture.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
953 $(SOCKET_WRAPPER_OBJ
)
956 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
958 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
959 libsmb
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
960 libads
/kerberos_verify.o
$(SECRETS_OBJ
) $(SERVER_MUTEX_OBJ
) \
961 libads
/authdata.o
$(RPC_PARSE_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
962 $(SMBLDAP_OBJ
) $(DOSERR_OBJ
) rpc_parse
/parse_net.o
$(LIBNMB_OBJ
) \
963 $(LDB_OBJ
) $(ERRORMAP_OBJ
)
965 ######################################################################
967 ######################################################################
968 all : SHOWFLAGS
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
969 $(SHLIBS
) $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @EXTRA_ALL_TARGETS@
971 nss_modules
: $(NSS_MODULES
)
973 pam_modules
: $(PAM_MODULES
)
975 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
977 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
979 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
981 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
983 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
985 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
987 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
989 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
991 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
993 smbctool
: SHOWFLAGS bin
/smbctool@EXEEXT@
995 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
997 rpctorture
: SHOWFLAGS bin
/rpctorture@EXEEXT@
999 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
1001 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
1003 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
1005 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
1007 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
1009 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
1011 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
1013 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1014 @WINBIND_WINS_NSS@ bin
/pam_winbind.@SHLIBEXT@ @SMB_KRB5_LOCATOR@
1016 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
1018 modules
: SHOWFLAGS
$(MODULES
)
1020 #####################################################################
1021 ## Perl IDL Compiler
1022 IDL_FILES
= unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1023 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1024 epmapper.idl messaging.idl
1027 @IDL_FILES
="$(IDL_FILES)" CPP
="$(CPP)" PERL
="$(PERL)" \
1028 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(PIDL_ARGS
)
1031 #####################################################################
1034 everything
: all libsmbclient debug2html smbfilter talloctort replacetort modules torture \
1038 .SUFFIXES
: .c .o .lo
1041 @echo
"Using FLAGS = $(FLAGS)"
1042 @echo
" PICFLAG = $(PICFLAG)"
1043 @echo
" LIBS = $(LIBS)"
1044 @echo
" LDFLAGS = $(LDFLAGS)"
1045 @echo
" DYNEXP = $(DYNEXP)"
1046 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1047 @echo
" SHLIBEXT = @SHLIBEXT@"
1048 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1050 MAKEDIR
= || exec false
; \
1051 if
test -d
"$$dir"; then
:; else \
1052 echo mkdir
"$$dir"; \
1053 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1054 test -d
"$$dir" || \
1056 exec false
; fi || exec false
1058 # Run a static checker.
1059 CHECK_CC
= $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1060 # Compile a source file.
1061 COMPILE_CC
= $(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1062 # Compile a source file with the installation paths defined.
1063 COMPILE_CC_PATH
= $(CC
) -I.
-I
$(srcdir) $(PATH_FLAGS
) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1065 COMPILE
= $(COMPILE_CC
)
1067 # BEGIN GNU make specific
1068 # Rewrite the COMPILE rule to generate dependencies as a side-effect.
1069 # This is is actually toolchain-independent, but making use of the dependency
1070 # files requires GNU make, so it's pointless to have them otherwise.
1072 @ifGNUmake@COMPILE_DEPENDS
= source
=$< object
=$@ libtool
=no \
1073 @ifGNUmake@ tmpdepfile
=$(DEPDIR
)/$*.TPo depfile
=$(DEPDIR
)/$*.d \
1074 @ifGNUmake@ DEPDIR
=$(DEPDIR
) @CCDEPMODE@ \
1075 @ifGNUmake@
$(srcdir)/depcomp
$(COMPILE_CC
)
1076 @ifGNUmake@COMPILE
= $(COMPILE_DEPENDS
)
1077 # END GNU make specific
1080 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1081 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1082 @if
test -n
"$(CC_CHECKER)"; then \
1083 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1086 @echo Compiling
$*.c
1087 @
$(COMPILE
) && exit
0;\
1088 echo
"The following command failed:" 1>&2;\
1089 echo
"$(COMPILE_CC)" 1>&2;\
1090 $(COMPILE_CC
) >/dev
/null
2>&1
1091 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
1093 # BEGIN GNU make specific
1094 # Include all the generated dependency files. The sort is done to
1095 # remove duplicates.
1096 @ifGNUmake@DEPENDS_OBJ
= $(SMBD_SRV_OBJ
) $(NET_OBJ
) $(WINBINDD_OBJ
)
1097 @ifGNUmake@
-include $(patsubst %.o
, %.d
, $(sort $(DEPENDS_OBJ
)))
1098 # END GNU make specific
1100 PRECOMPILED_HEADER
= $(builddir
)/include/includes.h.gch
1102 # this adds support for precompiled headers. To use it, install a snapshot
1103 # of gcc-3.4 and run 'make pch' before you do the main build.
1105 rm -f
$(PRECOMPILED_HEADER
)
1106 $(MAKE
) $(PRECOMPILED_HEADER
)
1108 $(PRECOMPILED_HEADER
): $(srcdir)/include/includes.h
1111 BINARY_PREREQS
= proto_exists bin
/.dummy
1113 # These dependencies are only approximately correct: we want to make
1114 # sure Samba's paths are updated if ./configure is re-run. Really it
1115 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1116 # but since we also require "make install prefix=/opt/samba" *not* to
1117 # rebuild it's a bit hard.
1119 dynconfig.o
: dynconfig.c Makefile
1120 @echo Compiling
$*.c
1121 @
$(COMPILE_CC_PATH
) && exit
0;\
1122 echo
"The following command failed:" 1>&2;\
1123 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1124 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1126 lib
/pidfile.o
: lib
/pidfile.c
1127 @echo Compiling
$*.c
1128 @
$(COMPILE_CC_PATH
) && exit
0;\
1129 echo
"The following command failed:" 1>&2;\
1130 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1131 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1133 lib
/version.o
: lib
/version.c
include/version.h
1134 @echo Compiling
$*.c
1135 @
$(COMPILE_CC_PATH
) && exit
0;\
1136 echo
"The following command failed:" 1>&2;\
1137 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1138 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1140 smbd
/build_options.o
: smbd
/build_options.c Makefile
include/config.h
include/build_env.h
include/proto.h
1141 @echo Compiling
$*.c
1142 @
$(COMPILE_CC_PATH
) && exit
0;\
1143 echo
"The following command failed:" 1>&2;\
1144 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1145 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1147 smbd
/build_options.c
: include/config.h.in script
/mkbuildoptions.awk
1149 @
dir=smbd
$(MAKEDIR
) && $(AWK
) -f
$(srcdir)/script
/mkbuildoptions.awk
> $(builddir
)/smbd
/build_options.c
< $(srcdir)/include/config.h.in
1152 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
1153 dir=bin
$(MAKEDIR
); fi
1154 @
: >> $@ ||
: > $@
# what a fancy emoticon!
1156 bin
/smbd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBD_OBJ
) @BUILD_POPT@
1158 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LDAP_LIBS
) \
1159 $(KRB5LIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
1160 $(ACL_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@ @SMBD_LIBS@
1162 bin
/nmbd@EXEEXT@
: $(BINARY_PREREQS
) $(NMBD_OBJ
) @BUILD_POPT@
1164 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1166 bin
/swat@EXEEXT@
: $(BINARY_PREREQS
) $(SWAT_OBJ
) @BUILD_POPT@
1168 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINT_LIBS
) \
1169 $(AUTH_LIBS
) $(LIBS
) $(PASSDB_LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1171 bin
/rpcclient@EXEEXT@
: $(BINARY_PREREQS
) $(RPCCLIENT_OBJ
) @BUILD_POPT@
1173 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(PASSDB_LIBS
) $(RPCCLIENT_OBJ
) \
1174 $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@ \
1175 $(KRB5LIBS
) $(LDAP_LIBS
)
1177 bin
/smbclient@EXEEXT@
: $(BINARY_PREREQS
) $(CLIENT_OBJ
) @BUILD_POPT@
1179 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1181 bin
/smbctool@EXEEXT@
: $(BINARY_PREREQS
) $(TOOL_OBJ
) @BUILD_POPT@
1183 @
$(CC
) $(FLAGS
) -o
$@
$(TOOL_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) -Lbin
-lsmbclient
1185 bin
/net@EXEEXT@
: $(BINARY_PREREQS
) $(NET_OBJ
) @BUILD_POPT@
1187 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @INIPARSERLIBS@
1189 bin
/profiles@EXEEXT@
: $(BINARY_PREREQS
) $(PROFILES_OBJ
) @BUILD_POPT@
1191 @
$(CC
) $(FLAGS
) -o
$@
$(PROFILES_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1193 bin
/smbspool@EXEEXT@
: $(BINARY_PREREQS
) $(CUPS_OBJ
)
1195 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1197 bin
/smbmount@EXEEXT@
: $(BINARY_PREREQS
) $(MOUNT_OBJ
)
1199 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1201 bin
/smbmnt@EXEEXT@
: $(BINARY_PREREQS
) $(MNT_OBJ
)
1203 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1205 bin
/smbumount@EXEEXT@
: $(BINARY_PREREQS
) $(UMOUNT_OBJ
)
1207 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1209 bin
/mount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_MOUNT_OBJ
)
1211 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1213 bin
/umount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_UMOUNT_OBJ
)
1215 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1217 bin
/testparm@EXEEXT@
: $(BINARY_PREREQS
) $(TESTPARM_OBJ
) @BUILD_POPT@
1219 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1221 bin
/smbstatus@EXEEXT@
: $(BINARY_PREREQS
) $(STATUS_OBJ
) @BUILD_POPT@
1223 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) \
1226 bin
/smbcontrol@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCONTROL_OBJ
) @BUILD_POPT@
1228 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) -o
$@ \
1229 $(SMBCONTROL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1230 $(LIBS
) $(LDAP_LIBS
) @LIBUNWIND_PTRACE@ @POPTLIBS@
1232 bin
/smbtree@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTREE_OBJ
) @BUILD_POPT@
1234 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1236 bin
/smbpasswd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBPASSWD_OBJ
) @BUILD_POPT@
1238 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(PASSDB_LIBS
) \
1239 $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1241 bin
/pdbedit@EXEEXT@
: $(BINARY_PREREQS
) $(PDBEDIT_OBJ
) @BUILD_POPT@
1243 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(LDAP_LIBS
)
1245 bin
/smbget@EXEEXT@
: $(BINARY_PREREQS
) $(SMBGET_OBJ
) @BUILD_POPT@
1247 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGET_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1249 bin
/samtest@EXEEXT@
: $(SAMTEST_OBJ
) @BUILD_POPT@
1251 @
$(CC
) $(FLAGS
) -o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1253 bin
/nmblookup@EXEEXT@
: $(BINARY_PREREQS
) $(NMBLOOKUP_OBJ
) @BUILD_POPT@
1255 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(LDAP_LIBS
)
1257 bin
/smbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTORTURE_OBJ
)
1259 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1261 bin
/talloctort@EXEEXT@
: $(BINARY_PREREQS
) $(TALLOCTORT_OBJ
)
1263 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) \
1264 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
)
1266 bin
/replacetort@EXEEXT@
: $(REPLACETORT_OBJ
)
1268 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(REPLACETORT_OBJ
) $(LDFLAGS
) \
1271 bin
/masktest@EXEEXT@
: $(BINARY_PREREQS
) $(MASKTEST_OBJ
)
1273 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1275 bin
/msgtest@EXEEXT@
: $(BINARY_PREREQS
) $(MSGTEST_OBJ
)
1277 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1279 bin
/smbcacls@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCACLS_OBJ
) @BUILD_POPT@
1281 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1282 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1284 bin
/smbcquotas@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCQUOTAS_OBJ
) @BUILD_POPT@
1286 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCQUOTAS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1287 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1289 bin
/eventlogadm@EXEEXT@
: $(BINARY_PREREQS
) $(EVTLOGADM_OBJ
) @BUILD_POPT@
1291 @
$(CC
) $(FLAGS
) -o
$@
$(EVTLOGADM_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1293 bin
/sharesec@EXEEXT@
: $(BINARY_PREREQS
) $(SHARESEC_OBJ
) @BUILD_POPT@
1295 @
$(CC
) $(FLAGS
) -o
$@
$(SHARESEC_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1297 bin
/locktest@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST_OBJ
)
1299 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1301 bin
/nsstest@EXEEXT@
: $(BINARY_PREREQS
) $(NSSTEST_OBJ
)
1303 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1305 bin
/pdbtest@EXEEXT@
: $(BINARY_PREREQS
) $(PDBTEST_OBJ
)
1307 @
$(CC
) $(FLAGS
) -o
$@
$(PDBTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@
1309 bin
/vfstest@EXEEXT@
: $(BINARY_PREREQS
) $(VFSTEST_OBJ
) @BUILD_POPT@
1311 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) $(ACL_LIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) @SMBD_LIBS@
$(NSCD_LIBS
)
1313 bin
/smbiconv@EXEEXT@
: $(BINARY_PREREQS
) $(SMBICONV_OBJ
) @BUILD_POPT@
1315 @
$(CC
) $(FLAGS
) -o
$@
$(SMBICONV_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
1317 bin
/log2pcap@EXEEXT@
: $(BINARY_PREREQS
) $(LOG2PCAP_OBJ
) @BUILD_POPT@
1319 @
$(CC
) $(FLAGS
) -o
$@
$(LOG2PCAP_OBJ
) $(LDFLAGS
) $(DYNEXP
) @POPTLIBS@
$(LIBS
)
1321 bin
/locktest2@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST2_OBJ
)
1323 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1325 bin
/rpctorture@EXEEXT@
: $(BINARY_PREREQS
) $(RPCTORTURE_OBJ
)
1327 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1329 bin
/ndrdump@EXEEXT@
: $(BINARY_PREREQS
) $(NDRDUMP_OBJ
)
1331 @
$(CC
) $(FLAGS
) -o
$@
$(NDRDUMP_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1332 @POPTLIBS@ @LDAP_LIBS@
1334 bin
/debug2html@EXEEXT@
: $(BINARY_PREREQS
) $(DEBUG2HTML_OBJ
)
1336 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
1338 bin
/smbfilter@EXEEXT@
: $(BINARY_PREREQS
) $(SMBFILTER_OBJ
)
1340 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1342 bin
/ldbedit
: $(BINARY_PREREQS
) $(LDBEDIT_OBJ
) @BUILD_POPT@
1344 @
$(CC
) $(FLAGS
) -o
$@
$(LDBEDIT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1346 bin
/ldbsearch
: $(BINARY_PREREQS
) $(LDBSEARCH_OBJ
) @BUILD_POPT@
1348 @
$(CC
) $(FLAGS
) -o
$@
$(LDBSEARCH_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1350 bin
/ldbadd
: $(BINARY_PREREQS
) $(LDBADD_OBJ
) @BUILD_POPT@
1352 @
$(CC
) $(FLAGS
) -o
$@
$(LDBADD_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1354 bin
/ldbmodify
: $(BINARY_PREREQS
) $(LDBMODIFY_OBJ
) @BUILD_POPT@
1356 @
$(CC
) $(FLAGS
) -o
$@
$(LDBMODIFY_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1358 bin
/ldbdel
: $(BINARY_PREREQS
) $(LDBDEL_OBJ
) @BUILD_POPT@
1360 @
$(CC
) $(FLAGS
) -o
$@
$(LDBDEL_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1362 bin
/libaddns.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBADDNS_OBJ
)
1363 @echo Linking shared library
$@
1364 @
$(SHLD_DSO
) $(LIBADDNS_OBJ
) $(LIBS
) \
1365 $(KRB5LIBS
) $(UUID_LIBS
)\
1366 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1368 bin
/libaddns.a
: $(BINARY_PREREQS
) $(LIBADDNS_OBJ
)
1369 @echo Linking non-shared library
$@
1370 @
-$(AR
) -rc
$@
$(LIBADDNS_OBJ
)
1372 bin
/libsmbclient.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
)
1373 @echo Linking shared library
$@
1374 @
$(SHLD_DSO
) $(LIBSMBCLIENT_OBJ
) $(LIBS
) \
1375 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1376 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1378 bin
/libsmbclient.a
: $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
)
1379 @echo Linking non-shared library
$@
1380 @
-$(AR
) -rc
$@
$(LIBSMBCLIENT_OBJ
)
1382 bin
/libsmbsharemodes.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
)
1383 @echo Linking shared library
$@
1384 @
$(SHLD_DSO
) $(LIBSMBSHAREMODES_OBJ
) $(LIBS
) \
1385 $(KRB5LIBS
) $(LDAP_LIBS
) \
1386 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1388 bin
/libsmbsharemodes.a
: $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
)
1389 @echo Linking non-shared library
$@
1390 @
-$(AR
) -rc
$@
$(LIBSMBSHAREMODES_OBJ
)
1392 bin
/libmsrpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CAC_OBJ
)
1393 @echo Linking shared library
$@
1394 @
$(SHLD_DSO
) $(CAC_OBJ
) $(LDFLAGS
) $(LIBS
) \
1395 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1397 bin
/libmsrpc.a
: $(BINARY_PREREQS
) $(CAC_OBJ
)
1398 @echo Linking non-shared library
$@
1399 @
-$(AR
) -rc
$@
$(CAC_OBJ
)
1401 # This is probably wrong for anything other than the GNU linker.
1402 bin
/libbigballofmud.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBBIGBALLOFMUD_OBJ
)
1403 @echo Linking shared library
$@
1404 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_OBJ
) $(LIBS
) \
1405 $(PASSDB_LIBS
) $(IDMAP_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1406 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
1407 ln
-snf libbigballofmud.so bin
/libbigballofmud.so
.0
1409 # It would be nice to build a static bigballofmud too, but when I try
1410 # I get linker errors about dl_open and similar things. I'm not sure if
1411 # it can be fixed or if they just can't be called from a static
1414 libsmbclient
: $(LIBSMBCLIENT
)
1415 libsmbsharemodes
: $(LIBSMBSHAREMODES
)
1416 libaddns
: $(LIBADDNS
)
1418 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1419 SHLD_MODULE
= $(SHLD
) $(LDSHFLAGS
) $(MODULE_EXPORTS
) \
1420 -o
$@ @SONAMEFLAG@
`basename $@`
1422 bin
/librpc_lsarpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_OBJ
)
1424 @
$(SHLD_MODULE
) $(RPC_LSA_OBJ
)
1426 bin
/librpc_samr.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SAMR_OBJ
)
1428 @
$(SHLD_MODULE
) $(RPC_SAMR_OBJ
)
1430 bin
/librpc_unixinfo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_UNIXINFO_OBJ
)
1432 @
$(SHLD_MODULE
) $(RPC_UNIXINFO_OBJ
)
1434 bin
/librpc_epmapper.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EPMAPPER_OBJ
)
1436 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1438 bin
/librpc_srvsvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVC_OBJ
)
1440 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1442 bin
/librpc_svcctl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVCCTL_OBJ
)
1444 @
$(SHLD_MODULE
) $(RPC_SVCCTL_OBJ
)
1446 bin
/librpc_ntsvcs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NTSVCS_OBJ
)
1448 @
$(SHLD_MODULE
) $(RPC_NTSVCS_OBJ
)
1450 bin
/librpc_wkssvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_WKS_OBJ
)
1452 @
$(SHLD_MODULE
) $(RPC_WKS_OBJ
)
1454 bin
/librpc_NETLOGON.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NETLOG_OBJ
)
1456 @
$(SHLD_MODULE
) $(RPC_NETLOG_OBJ
)
1458 bin
/librpc_winreg.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_REG_OBJ
)
1460 @
$(SHLD_MODULE
) $(RPC_REG_OBJ
)
1462 bin
/librpc_initshutdown.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_INITSHUTDOWN_OBJ
)
1464 @
$(SHLD_MODULE
) $(RPC_INITSHUTDOWN_OBJ
)
1466 bin
/librpc_lsa_ds.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_DS_OBJ
)
1468 @
$(SHLD_MODULE
) $(RPC_LSA_DS_OBJ
)
1470 bin
/librpc_spoolss.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SPOOLSS_OBJ
)
1472 @
$(SHLD_MODULE
) $(RPC_SPOOLSS_OBJ
)
1474 bin
/librpc_eventlog.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EVENTLOG_OBJ
)
1476 @
$(SHLD_MODULE
) $(RPC_EVENTLOG_OBJ
)
1478 bin
/librpc_netdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_DFS_OBJ
)
1480 @
$(SHLD_MODULE
) $(RPC_DFS_OBJ
)
1482 bin
/librpc_echo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_ECHO_OBJ
)
1484 @
$(SHLD_MODULE
) $(RPC_ECHO_OBJ
)
1486 bin
/winbindd@EXEEXT@
: $(BINARY_PREREQS
) $(WINBINDD_OBJ
) @BUILD_POPT@
1488 @
$(CC
) $(FLAGS
) -o
$@
$(WINBINDD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1489 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
)
1491 @WINBIND_NSS@
: $(BINARY_PREREQS
) $(WINBIND_NSS_OBJ
)
1493 @
$(SHLD
) $(WINBIND_NSS_LDSHFLAGS
) -o
$@
$(WINBIND_NSS_OBJ
) \
1494 @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1496 @WINBIND_WINS_NSS@
: $(BINARY_PREREQS
) $(WINBIND_WINS_NSS_OBJ
)
1498 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_WINS_NSS_OBJ
) \
1499 $(LDAP_LIBS
) $(KRB5LIBS
) $(LIBS
) \
1500 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1502 bin
/smb_krb5_locator.@SHLIBEXT@
: $(BINARY_PREREQS
) $(SMB_KRB5_LOCATOR_OBJ
)
1504 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(SMB_KRB5_LOCATOR_OBJ
) \
1505 @SONAMEFLAG@
`basename $@`
1507 bin
/pam_winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_WINBIND_OBJ
)
1508 @echo
"Linking shared library $@"
1509 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) -lpam @INIPARSERLIBS@ \
1510 @SONAMEFLAG@
`basename $@`
1512 bin
/builtin.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_BUILTIN_OBJ
)
1513 @echo
"Building plugin $@"
1514 @
$(SHLD_MODULE
) $(AUTH_BUILTIN_OBJ
)
1516 bin
/domain.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_DOMAIN_OBJ
)
1517 @echo
"Building plugin $@"
1518 @
$(SHLD_MODULE
) $(AUTH_DOMAIN_OBJ
)
1520 bin
/script.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SCRIPT_OBJ
)
1521 @echo
"Building plugin $@"
1522 @
$(SHLD_MODULE
) $(AUTH_SCRIPT_OBJ
)
1524 bin
/smbserver.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SERVER_OBJ
)
1525 @echo
"Building plugin $@"
1526 @
$(SHLD_MODULE
) $(AUTH_SERVER_OBJ
)
1528 bin
/winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_WINBIND_OBJ
)
1529 @echo
"Building plugin $@"
1530 @
$(SHLD_MODULE
) $(AUTH_WINBIND_OBJ
)
1532 bin
/unix.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_UNIX_OBJ
)
1533 @echo
"Building plugin $@"
1534 @
$(SHLD_MODULE
) $(AUTH_UNIX_OBJ
)
1536 bin
/sam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SAM_OBJ
)
1537 @echo
"Building plugin $@"
1538 @
$(SHLD_MODULE
) $(AUTH_SAM_OBJ
)
1540 bin
/ldapsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
1541 @echo
"Building plugin $@"
1542 @
$(SHLD_MODULE
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
$(LDAP_LIBS
)
1544 bin
/tdbsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_tdb.o
1545 @echo
"Building plugin $@"
1546 @
$(SHLD_MODULE
) passdb
/pdb_tdb.o
1548 bin
/smbpasswd.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_smbpasswd.o
1549 @echo
"Building plugin $@"
1550 @
$(SHLD_MODULE
) passdb
/pdb_smbpasswd.o
1552 bin
/rid.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_rid.o
1553 @echo
"Building plugin $@"
1554 @
$(SHLD_MODULE
) nsswitch
/idmap_rid.o
1556 bin
/ad.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_ad.o
1557 @echo
"Building plugin $@"
1558 @
$(SHLD_MODULE
) nsswitch
/idmap_ad.o
1560 bin
/ldap.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_ldap.o
1561 @echo
"Building plugin $@"
1562 @
$(SHLD_MODULE
) nsswitch
/idmap_ldap.o
1564 bin
/weird.@SHLIBEXT@
: $(BINARY_PREREQS
) $(DEVEL_HELP_WEIRD_OBJ
)
1565 @echo
"Building plugin $@"
1566 @
$(SHLD_MODULE
) $(DEVEL_HELP_WEIRD_OBJ
)
1568 bin
/CP850.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP850_OBJ
)
1569 @echo
"Building plugin $@"
1570 @
$(SHLD_MODULE
) $(CP850_OBJ
)
1572 bin
/CP437.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP437_OBJ
)
1573 @echo
"Building plugin $@"
1574 @
$(SHLD_MODULE
) $(CP437_OBJ
)
1576 bin
/macosxfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CHARSET_MACOSXFS_OBJ
)
1577 @echo
"Building plugin $@"
1578 @
$(SHLD_MODULE
) $(CHARSET_MACOSXFS_OBJ
) -framework CoreFoundation
1580 # NOTE, there is no build rule for a dynamic default VFS module because
1581 # this one MUST MUST MUST be built statically.
1583 bin
/audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AUDIT_OBJ
)
1584 @echo
"Building plugin $@"
1585 @
$(SHLD_MODULE
) $(VFS_AUDIT_OBJ
)
1587 bin
/extd_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXTD_AUDIT_OBJ
)
1588 @echo
"Building plugin $@"
1589 @
$(SHLD_MODULE
) $(VFS_EXTD_AUDIT_OBJ
)
1591 bin
/full_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FULL_AUDIT_OBJ
)
1592 @echo
"Building plugin $@"
1593 @
$(SHLD_MODULE
) $(VFS_FULL_AUDIT_OBJ
)
1595 bin
/recycle.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_RECYCLE_OBJ
)
1596 @echo
"Building plugin $@"
1597 @
$(SHLD_MODULE
) $(VFS_RECYCLE_OBJ
)
1599 bin
/netatalk.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NETATALK_OBJ
)
1600 @echo
"Building plugin $@"
1601 @
$(SHLD_MODULE
) $(VFS_NETATALK_OBJ
)
1603 bin
/fake_perms.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FAKE_PERMS_OBJ
)
1604 @echo
"Building plugin $@"
1605 @
$(SHLD_MODULE
) $(VFS_FAKE_PERMS_OBJ
)
1607 bin
/default_quota.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_DEFAULT_QUOTA_OBJ
)
1608 @echo
"Building plugin $@"
1609 @
$(SHLD_MODULE
) $(VFS_DEFAULT_QUOTA_OBJ
)
1611 bin
/readonly.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READONLY_OBJ
)
1612 @echo
"Building plugin $@"
1613 @
$(SHLD_MODULE
) $(VFS_READONLY_OBJ
)
1615 bin
/shadow_copy.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SHADOW_COPY_OBJ
)
1616 @echo
"Building plugin $@"
1617 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY_OBJ
)
1619 bin
/cap.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CAP_OBJ
)
1620 @echo
"Building plugin $@"
1621 @
$(SHLD_MODULE
) $(VFS_CAP_OBJ
)
1623 bin
/expand_msdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXPAND_MSDFS_OBJ
)
1624 @echo
"Building plugin $@"
1625 @
$(SHLD_MODULE
) $(VFS_EXPAND_MSDFS_OBJ
)
1627 bin
/afsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AFSACL_OBJ
)
1628 @echo
"Building plugin $@"
1629 @
$(SHLD_MODULE
) $(VFS_AFSACL_OBJ
)
1631 bin
/posixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_POSIXACL_OBJ
)
1632 @echo
"Building plugin $@"
1633 @
$(SHLD_MODULE
) $(VFS_POSIXACL_OBJ
)
1635 bin
/aixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL_OBJ
)
1636 @echo
"Building plugin $@"
1637 @
$(SHLD_MODULE
) $(VFS_AIXACL_OBJ
)
1639 bin
/aixacl2.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL2_OBJ
)
1640 @echo
"Building plugin $@"
1641 @
$(SHLD_MODULE
) $(VFS_AIXACL2_OBJ
)
1643 bin
/solarisacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SOLARISACL_OBJ
)
1644 @echo
"Building plugin $@"
1645 @
$(SHLD_MODULE
) $(VFS_SOLARISACL_OBJ
)
1647 bin
/zfsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_ZFSACL_OBJ
)
1648 @echo
"Building plugin $@"
1649 @
$(SHLD_MODULE
) $(VFS_ZFSACL_OBJ
)
1651 bin
/irixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_IRIXACL_OBJ
)
1652 @echo
"Building plugin $@"
1653 @
$(SHLD_MODULE
) $(VFS_IRIXACL_OBJ
)
1655 bin
/hpuxacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_HPUXACL_OBJ
)
1656 @echo
"Building plugin $@"
1657 @
$(SHLD_MODULE
) $(VFS_HPUXACL_OBJ
)
1659 bin
/tru64acl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_TRU64ACL_OBJ
)
1660 @echo
"Building plugin $@"
1661 @
$(SHLD_MODULE
) $(VFS_TRU64ACL_OBJ
)
1663 bin
/catia.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CATIA_OBJ
)
1664 @echo
"Building plugin $@"
1665 @
$(SHLD_MODULE
) $(VFS_CATIA_OBJ
)
1667 bin
/cacheprime.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CACHEPRIME_OBJ
)
1668 @echo
"Building plugin $@"
1669 @
$(SHLD_MODULE
) $(VFS_CACHEPRIME_OBJ
)
1671 bin
/prealloc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_PREALLOC_OBJ
)
1672 @echo
"Building plugin $@"
1673 @
$(SHLD_MODULE
) $(VFS_PREALLOC_OBJ
)
1675 bin
/commit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_COMMIT_OBJ
)
1676 @echo
"Building plugin $@"
1677 @
$(SHLD_MODULE
) $(VFS_COMMIT_OBJ
)
1679 bin
/gpfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_GPFS_OBJ
)
1680 @echo
"Building plugin $@"
1681 @
$(SHLD_MODULE
) $(VFS_GPFS_OBJ
)
1683 bin
/notify_fam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NOTIFY_FAM_OBJ
)
1684 @echo
"Building plugin $@"
1685 @
$(SHLD_MODULE
) $(VFS_NOTIFY_FAM_OBJ
) @SMB_FAM_LIBS@
1687 bin
/readahead.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READAHEAD_OBJ
)
1688 @echo
"Building plugin $@"
1689 @
$(SHLD_MODULE
) $(VFS_READAHEAD_OBJ
)
1691 bin
/fileid.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FILEID_OBJ
)
1692 @echo
"Building plugin $@"
1693 @
$(SHLD_MODULE
) $(VFS_FILEID_OBJ
)
1695 #########################################################
1696 ## IdMap NSS plugins
1698 ## None here right now
1699 #########################################################
1701 bin
/wbinfo@EXEEXT@
: $(BINARY_PREREQS
) $(WBINFO_OBJ
) @BUILD_POPT@
1703 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(WBINFO_OBJ
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1705 bin
/ntlm_auth@EXEEXT@
: $(BINARY_PREREQS
) $(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) \
1706 $(LIB_NONSMBD_OBJ
) @BUILD_POPT@
1708 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(NTLM_AUTH_OBJ
) \
1709 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBS
) \
1710 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1712 bin
/pam_smbpass.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_SMBPASS_OBJ
)
1713 @echo
"Linking shared library $@"
1714 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_OBJ
) -lpam
$(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
)
1716 bin
/tdbbackup@EXEEXT@
: $(BINARY_PREREQS
) $(TDBBACKUP_OBJ
)
1718 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBBACKUP_OBJ
)
1720 bin
/tdbtool@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTOOL_OBJ
)
1722 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTOOL_OBJ
)
1724 bin
/tdbdump@EXEEXT@
: $(BINARY_PREREQS
) $(TDBDUMP_OBJ
)
1726 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBDUMP_OBJ
)
1728 bin
/tdbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTORTURE_OBJ
)
1730 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTORTURE_OBJ
)
1732 bin
/t_strcmp@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strcmp.o
1733 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strcmp.o
-L .
/bin
-lbigballofmud
1735 bin
/t_strstr@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strstr.o
1736 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strstr.o
-L .
/bin
-lbigballofmud
1738 bin
/t_strappend@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strappend.o
1739 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strappend.o
-L .
/bin
-lbigballofmud
1741 bin
/t_stringoverflow@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_stringoverflow.o
1742 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) torture
/t_stringoverflow.o
-L.
/bin
-lbigballofmud
1744 bin
/t_doschar@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_doschar.o
1745 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_doschar.o
-L .
/bin
-lbigballofmud
1746 bin
/t_push_ucs2@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_push_ucs2.o
1747 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_push_ucs2.o
-L .
/bin
-lbigballofmud
1749 bin
/timelimit@EXEEXT@
: script
/tests
/timelimit.o
1751 @
$(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) script
/tests
/timelimit.o
1753 install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ @INSTALL_LIBSMBCLIENT@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@
1756 install-everything
: install installmodules
1758 # DESTDIR is used here to prevent packagers wasting their time
1759 # duplicating the Makefile. Remove it and you will have the privelege
1760 # of package each samba release for muliple versions of multiple
1761 # distributions and operating systems, or at least supplying patches
1762 # to all the packaging files required for this, prior to committing
1763 # the removal of DESTDIR. Do not remove it even though you think it
1767 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
) $(PIDDIR
) $(LOCKDIR
) $(MANDIR
)
1769 installservers
: all installdirs
1770 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1772 installbin
: all installdirs
1773 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1775 installcifsmount
: @CIFSMOUNT_PROGS@
1776 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(ROOTSBINDIR
)
1777 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1779 # Some symlinks are required for the 'probing' of modules.
1780 # This mechanism should go at some point..
1781 installmodules
: modules
installdirs
1782 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1783 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1784 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1785 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1786 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(NSSINFOLIBDIR
) $(NSS_INFO_MODULES
)
1787 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1788 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1789 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
1790 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
1791 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1792 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1793 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1794 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1795 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1796 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(NSSINFOLIBDIR
) ..
/idmap
/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
1798 installscripts
: installdirs
1799 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1801 installdat
: installdirs
1802 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1804 installmsg
: installdirs
1805 @
$(SHELL
) $(srcdir)/script
/installmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1807 installswat
: installdirs installmsg
1808 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1810 installclientlib
: installdirs libsmbclient
1811 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1812 -$(INSTALLLIBCMD_SH
) bin
/libsmbclient.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1813 -$(INSTALLLIBCMD_A
) bin
/libsmbclient.a
$(DESTDIR
)$(LIBDIR
)
1814 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1815 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/libsmbclient.h
$(DESTDIR
)${prefix}/include
1817 installlibsmbsharemodes
: installdirs libsmbsharemodes
1818 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1819 -$(INSTALLLIBCMD_SH
) bin
/libsmbsharemodes.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1820 -$(INSTALLLIBCMD_A
) bin
/libsmbsharemodes.a
$(DESTDIR
)$(LIBDIR
)
1821 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/smb_share_modes.h
$(DESTDIR
)${prefix}/include
1823 installlibaddns
: installdirs libaddns
1824 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1825 -$(INSTALLLIBCMD_SH
) bin
/libaddns.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1826 -$(INSTALLLIBCMD_A
) bin
/libaddns.a
$(DESTDIR
)$(LIBDIR
)
1828 installpammodules
: $(PAM_MODULES
)
1829 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(PAMMODULESDIR
)
1830 @for module in
$(PAM_MODULES
); do \
1831 echo
"Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1832 $(INSTALLCMD
) -m
$(INSTALLPERMS_BIN
) bin
/$${module}.@SHLIBEXT@ \
1833 "$(DESTDIR)/$(PAMMODULESDIR)"; \
1838 PYTHON_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) $(RPC_PARSE_OBJ
) \
1839 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1840 $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
1842 python_ext
: $(PYTHON_OBJ
)
1843 @if
test -z
"$(PYTHON)"; then \
1844 echo Use the option
--with-python to configure python
; \
1847 PYTHON_OBJS
="$(PYTHON_OBJ)" \
1848 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
1849 LIBS
="$(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
1850 $(PYTHON
) python
/setup.py build
1852 python_install
: $(PYTHON_OBJ
)
1853 @if
test -z
"$(PYTHON)"; then \
1854 echo Use the option
--with-python to configure python
; \
1857 PYTHON_OBJS
="$(PYTHON_OBJ)" \
1858 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS)" \
1859 LIBS
="$(LDFLAGS) $(LIBS)" \
1860 $(PYTHON
) python
/setup.py
install --root
=$(DESTDIR
)
1863 @
-if
test -n
"$(PYTHON)"; then
$(PYTHON
) python
/setup.py
clean; fi
1866 # revert to the previously installed version
1868 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
1869 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
1871 installman
: installdirs
1872 @SMBMOUNT_PROGS
="@SMBMOUNT_PROGS@" $(SHELL
) \
1873 $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
"@ROFF@"
1878 @echo
"Samba will be installed into:"
1879 @echo
" prefix: $(prefix)"
1880 @echo
" bindir: $(BINDIR)"
1881 @echo
" sbindir: $(SBINDIR)"
1882 @echo
" libdir: $(LIBDIR)"
1883 @echo
" vardir: $(VARDIR)"
1884 @echo
" mandir: $(MANDIR)"
1885 @echo
" privatedir: $(PRIVATE_DIR)"
1886 @echo
" configdir: $(CONFIGDIR)"
1887 @echo
" lockdir: $(LOCKDIR)"
1888 @echo
" piddir: $(PIDDIR)"
1889 @echo
" swatdir: $(SWATDIR)"
1892 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@
1895 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
1898 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1901 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1904 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1907 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1908 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1909 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1910 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1911 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1912 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1915 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1918 @
$(SHELL
) $(srcdir)/script
/uninstalldat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1921 @
$(SHELL
) $(srcdir)/script
/uninstallmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1923 uninstallswat
: uninstallmsg
1924 @
$(SHELL
) $(srcdir)/script
/uninstallswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1927 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.@SHLIBEXT@
1928 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.a
1929 -rm -f
$(DESTDIR
)${prefix}/include/libsmbclient.h
1931 uninstalllibsmbsharemodes
:
1932 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.@SHLIBEXT@
1933 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.a
1936 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libaddns.@SHLIBEXT@
1937 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libaddns.a
1939 uninstallpammodules
:
1940 @for module in
$(PAM_MODULES
); do \
1941 echo
"Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1942 rm -f
"$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
1945 # Toplevel clean files
1946 TOPFILES
=dynconfig.o
1948 clean: delheaders python_clean
1949 -rm -f
$(PRECOMPILED_HEADER
)
1950 -rm -f core
*/*~
*~ \
1951 */*.o
*/*/*.o
*/*/*/*.o \
1952 */*.d
*/*/*.d
*/*/*/*.d \
1953 */*.@SHLIBEXT@
*/*/*.@SHLIBEXT@
*/*/*/*.@SHLIBEXT@ \
1954 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1955 $(MODULES
) $(TORTURE_PROGS
) $(LIBSMBCLIENT
) $(LIBADDNS
) \
1956 $(LIBSMBSHAREMODES
) $(EVERYTHING_PROGS
) \
1957 .headers.stamp
*/src
/*.o proto_exists
1960 # Making this target will just make sure that the prototype files
1961 # exist, not necessarily that they are up to date. Since they're
1962 # removed by "make clean" this will always be run when you do anything
1964 proto_exists
: include/proto.h
include/build_env.h \
1965 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1966 client
/client_proto.h utils
/net_proto.h utils
/ntlm_auth_proto.h smbd
/build_options.c
1970 @echo Removing prototype headers
1971 @
rm -f
include/proto.h
include/build_env.h \
1972 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1973 client
/client_proto.h utils
/net_proto.h \
1974 smbd
/build_options.c utils
/ntlm_auth_proto.h \
1975 utils
/passwd_proto.h
1977 MKPROTO_SH
= $(srcdir)/script
/mkproto.sh
1979 include/proto.h
: smbd
/build_options.c
1980 @echo Building
include/proto.h
1981 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1982 -h _PROTO_H_
$(builddir
)/include/proto.h \
1985 include/build_env.h
: script
/build_env.sh
1986 @echo Building
include/build_env.h
1987 @
$(SHELL
) $(srcdir)/script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) \
1988 > $(builddir
)/include/build_env.h
1990 nsswitch
/winbindd_proto.h
:
1991 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1992 -h _WINBINDD_PROTO_H_
$(builddir
)/nsswitch
/winbindd_proto.h \
1996 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1997 -h _SWAT_PROTO_H_
$(builddir
)/web
/swat_proto.h \
2000 client
/client_proto.h
:
2001 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2002 -h _CLIENT_PROTO_H_
$(builddir
)/client
/client_proto.h \
2006 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2007 -h _NET_PROTO_H_
$(builddir
)/utils
/net_proto.h \
2010 utils
/passwd_proto.h
:
2011 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2012 -h _PASSWD_PROTO_H_
$(builddir
)/utils
/passwd_proto.h \
2015 utils
/ntlm_auth_proto.h
:
2016 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2017 -h _NTLM_AUTH_PROTO_H_
$(builddir
)/utils
/ntlm_auth_proto.h \
2020 # "make headers" or "make proto" calls a subshell because we need to
2021 # make sure these commands are executed in sequence even for a
2024 $(MAKE
) delheaders
; \
2025 $(MAKE
) smbd
/build_options.c
; \
2026 $(MAKE
) include/proto.h
; \
2027 $(MAKE
) include/build_env.h
; \
2028 $(MAKE
) nsswitch
/winbindd_proto.h
; \
2029 $(MAKE
) web
/swat_proto.h
; \
2030 $(MAKE
) client
/client_proto.h
; \
2031 $(MAKE
) utils
/ntlm_auth_proto.h
; \
2032 $(MAKE
) utils
/net_proto.h
; \
2033 $(MAKE
) utils
/passwd_proto.h
;
2037 .PHONY
: headers proto
2040 etags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2043 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2045 realclean: clean delheaders
2046 -rm -f config.log bin
/.dummy script
/findsmb script
/gen-8bit-gap.sh
2047 -rm -f script
/installbin.sh script
/uninstallbin.sh
2049 distclean: realclean
2051 -rm -f
include/config.h Makefile
2052 -rm -f config.status config.cache so_locations
2055 realdistclean
: distclean
2056 -rm -f
include/config.h.in
2057 -rm -f
include/version.h
2060 # this target is really just for my use. It only works on a limited
2061 # range of machines and is used to produce a list of potentially
2062 # dead (ie. unused) functions in the code. (tridge)
2064 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
2065 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
2066 comm
-13 nmused.txt nmfns.txt
2069 # when configure.in is updated, reconfigure
2070 $(srcdir)/configure
: $(srcdir)/configure.in
2071 @echo
"WARNING: you need to rerun ./autogen.sh"
2073 config.status
: $(srcdir)/configure
2074 @echo
"WARNING: you need to run ./configure"
2076 Makefile
: $(srcdir)/Makefile.in config.status
2077 @echo
"WARNING: you need to run ./config.status"
2079 ######################################################################
2080 # Samba Testing Framework
2082 # Check for NSS module problems.
2083 test_nss_modules
: nss_modules
2084 @echo
"Testing $(NSS_MODULES) "
2085 @for module in
$(NSS_MODULES
); do \
2086 .
/script
/tests
/dlopen.sh
$${module} \
2090 # Check for PAM module problems. Specifically, check that every module we
2091 # built can actually be loaded by a minimal PAM-aware application.
2092 test_pam_modules
: pam_modules
2093 @echo
"Testing $(PAM_MODULES) "
2094 @for module in
$(PAM_MODULES
); do \
2095 .
/script
/tests
/dlopen.sh
-lpam
-ldl bin
/$${module}.@SHLIBEXT@ \
2100 ## Targets for 'make test'
2102 test: all torture timelimit
2103 @echo Running Test suite
2104 @sh
$(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"
2106 valgrindtest
: all torture timelimit
2107 @echo Running Test suite with valgrind
2108 @NMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2109 SMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2110 VALGRIND
="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/st/valgrind.log" \
2111 $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"