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 CPPFLAGS
=-DHAVE_CONFIG_H @CPPFLAGS@
26 LDFLAGS
=@PIE_LDFLAGS@ @LDFLAGS@
28 LDSHFLAGS
=@LDSHFLAGS@ @LDFLAGS@
30 # The MODULE_EXPORTS variable conatins the platform-specific linker flags
31 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
32 MODULE_EXPORTS
=@MODULE_EXPORTS@
34 WINBIND_NSS_LDSHFLAGS
=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
43 TERMLDFLAGS
=@TERMLDFLAGS@
45 PRINT_LIBS
=@PRINT_LIBS@
48 PASSDB_LIBS
=@PASSDB_LIBS@
49 IDMAP_LIBS
=@IDMAP_LIBS@
56 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
57 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
58 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
59 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
63 builddir
=@abs_builddir@
67 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
68 # will search for a POSIX-compliant shell, and that might not be
69 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
71 # See the autoconf manual "Installation Directory Variables" for a
72 # discussion of the subtle use of these variables.
76 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
78 ROOTSBINDIR
= @rootsbindir@
80 PAMMODULESDIR
= @pammodulesdir@
81 VFSLIBDIR
= $(LIBDIR
)/vfs
82 PDBLIBDIR
= $(LIBDIR
)/pdb
83 RPCLIBDIR
= $(LIBDIR
)/rpc
84 IDMAPLIBDIR
= $(LIBDIR
)/idmap
85 NSSINFOLIBDIR
= $(LIBDIR
)/nss_info
86 CHARSETLIBDIR
= $(LIBDIR
)/charset
87 AUTHLIBDIR
= $(LIBDIR
)/auth
88 CONFIGLIBDIR
= $(LIBDIR
)/config
89 CONFIGDIR
= @configdir@
90 VARDIR
= @localstatedir@
94 # The permissions to give the executables and other data
95 INSTALLPERMS_BIN
= 0755
96 INSTALLPERMS_DATA
= 0644
98 # set these to where to find various files
99 # These can be overridden by command line switches (see smbd(8))
100 # or in smb.conf (see smb.conf(5))
101 LOGFILEBASE
= @logfilebase@
102 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
103 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
106 # This is where smbpasswd et al go
107 PRIVATEDIR
= @privatedir@
109 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
110 PRIVATE_DIR
= $(PRIVATEDIR
)
112 # This is where SWAT images and help files go
115 # the directory where lock files go
118 # the directory where pid files go
121 LIBSMBCLIENT
=bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
125 LIBMSRPC
=bin
/libmsrpc.a @LIBMSRPC_SHARED@
129 LIBSMBSHAREMODES
=bin
/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
130 LIBSMBSHAREMODES_MAJOR
=0
131 LIBSMBSHAREMODES_MINOR
=2
133 LIBADDNS
=bin
/libaddns.a @LIBADDNS_SHARED@
137 FLAGS1
= $(CFLAGS
) @FLAGS1@ @SAMBA_CPPFLAGS@
$(CPPFLAGS
)
140 FLAGS4
= -I
$(CTDBDIR
)/include
141 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
142 FLAGS
= $(ISA
) $(FLAGS5
) -I
$(srcdir)/lib
-D_SAMBA_BUILD_
=3
144 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
145 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
146 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
147 -DSBINDIR
=\"$(SBINDIR
)\" \
148 -DBINDIR
=\"$(BINDIR
)\" \
149 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
150 -DSWATDIR
=\"$(SWATDIR
)\" \
151 -DLOCKDIR
=\"$(LOCKDIR
)\" \
152 -DPIDDIR
=\"$(PIDDIR
)\" \
153 -DLIBDIR
=\"$(LIBDIR
)\" \
154 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
155 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
156 -DCTDBDIR
=\"$(CTDBDIR
)\" \
157 -DCONFIGDIR
=\"$(CONFIGDIR
)\"
159 # Note that all executable programs now provide for an optional executable suffix.
161 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
163 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@
165 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
166 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
167 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
168 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
170 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
171 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ \
172 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
173 BIN_PROGS4
= bin
/ldbedit@EXEEXT@ bin
/ldbsearch@EXEEXT@ bin
/ldbadd@EXEEXT@ \
174 bin
/ldbdel@EXEEXT@ bin
/ldbmodify@EXEEXT@
176 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
177 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
178 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
179 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
180 bin
/tdbtorture@EXEEXT@
182 BIN_PROGS
= @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@ \
183 $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) $(BIN_PROGS4
)
185 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
186 bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
187 bin
/log2pcap@EXEEXT@ bin
/sharesec@EXEEXT@ bin
/ndrdump@EXEEXT@
189 SHLIBS
= @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@ @LIBADDNS@
191 PAM_MODULES
= @PAM_MODULES@
193 NSS_MODULES
= @NSS_MODULES@
195 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
197 VFS_MODULES
= @VFS_MODULES@
198 PDB_MODULES
= @PDB_MODULES@
199 RPC_MODULES
= @RPC_MODULES@
200 IDMAP_MODULES
= @IDMAP_MODULES@
201 CHARSET_MODULES
= @CHARSET_MODULES@
202 AUTH_MODULES
= @AUTH_MODULES@
203 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
204 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
205 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
)
207 ######################################################################
209 ######################################################################
211 TDBBASE_OBJ
= lib
/tdb
/common
/tdb.o lib
/tdb
/common
/dump.o lib
/tdb
/common
/error.o \
212 lib
/tdb
/common
/freelist.o lib
/tdb
/common
/freelistcheck.o \
213 lib
/tdb
/common
/io.o lib
/tdb
/common
/lock.o \
214 lib
/tdb
/common
/open.o lib
/tdb
/common
/transaction.o \
215 lib
/tdb
/common
/traverse.o
217 TDB_OBJ
= $(TDBBASE_OBJ
) lib
/util_tdb.o\
218 lib
/dbwrap.o lib
/dbwrap_tdb.o lib
/dbwrap_ctdb.o
220 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
222 VERSION_OBJ
= lib
/version.o
224 DOSERR_OBJ
= libsmb
/doserr.o
226 WBCOMMON_OBJ
= nsswitch
/wb_common.o
230 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
232 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
234 ERRORMAP_OBJ
= libsmb
/errormap.o
236 PASSCHANGE_OBJ
= libsmb
/passchange.o
239 LIBNDR_OBJ
= librpc
/ndr
/ndr_basic.o librpc
/ndr
/ndr.o librpc
/ndr
/ndr_misc.o \
240 librpc
/ndr
/ndr_sec_helper.o librpc
/ndr
/ndr_string.o librpc
/ndr
/sid.o
242 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
244 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_unixinfo.o librpc
/gen_ndr
/ndr_lsa.o \
245 librpc
/gen_ndr
/ndr_dfs.o librpc
/gen_ndr
/ndr_echo.o \
246 librpc
/gen_ndr
/ndr_winreg.o librpc
/gen_ndr
/ndr_initshutdown.o \
247 librpc
/gen_ndr
/ndr_srvsvc.o librpc
/gen_ndr
/ndr_svcctl.o \
248 librpc
/gen_ndr
/ndr_eventlog.o librpc
/gen_ndr
/ndr_wkssvc.o \
249 librpc
/gen_ndr
/ndr_notify.o \
250 librpc
/gen_ndr
/ndr_epmapper.o
252 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
254 # this includes only the low level parse code, not stuff
255 # that requires knowledge of security contexts
256 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
) rpc_parse
/parse_sec.o
258 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o rpc_parse
/parse_net.o
260 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
262 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
264 TALLOC_OBJ
= lib
/talloc
/talloc.o
267 LIB_WITHOUT_PROTO_OBJ
= $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) $(TALLOC_OBJ
) \
268 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
269 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o
271 LIB_WITH_PROTO_OBJ
= $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
272 lib
/interface.o lib
/md4.o \
273 lib
/interfaces.o lib
/pidfile.o \
274 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/time.o \
275 lib
/ufc.o lib
/genrand.o lib
/username.o \
276 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
277 lib
/bitmap.o lib
/crc32.o lib
/dprintf.o \
278 lib
/xfile.o lib
/wins_srv.o lib
/util_reg.o \
279 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
280 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
281 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
282 lib
/substitute.o lib
/fsusage.o \
283 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
284 lib
/tallocmsg.o lib
/dmallocmsg.o libsmb
/smb_signing.o \
285 lib
/md5.o lib
/hmacmd5.o lib
/arc4.o lib
/iconv.o \
286 nsswitch
/wb_client.o
$(WBCOMMON_OBJ
) \
287 lib
/pam_errors.o intl
/lang_tdb.o lib
/conn_tdb.o \
288 lib
/adt_tree.o lib
/gencache.o
$(TDB_OBJ
) \
289 lib
/module.o lib
/events.o lib
/ldap_escape.o @CHARSET_STATIC@ \
290 lib
/secdesc.o lib
/util_seaccess.o lib
/secace.o lib
/secacl.o \
291 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
294 LIB_OBJ
= $(LIB_WITHOUT_PROTO_OBJ
) $(LIB_WITH_PROTO_OBJ
)
296 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
297 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
299 READLINE_OBJ
= lib
/readline.o
301 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
302 # Be sure to include them into your application
303 POPT_LIB_OBJ
= lib
/popt_common.o
305 PARAM_OBJ
= dynconfig.o param
/loadparm.o param
/params.o lib
/sharesec.o
307 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
309 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
310 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
311 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(TALLOC_OBJ
)
313 LIBGPO_OBJ0
= libgpo
/gpo_ldap.o libgpo
/gpo_parse.o libgpo
/gpo_util.o \
314 libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o libgpo
/gpo_sec.o
315 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
317 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
318 libads
/krb5_setpw.o libads
/ldap_user.o \
319 libads
/ads_struct.o libads
/kerberos_keytab.o \
320 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
321 libads
/authdata.o libads
/cldap.o
323 LIBADS_SERVER_OBJ
= libads
/util.o libads
/kerberos_verify.o \
326 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
328 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
329 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
331 LIBSAMBA_OBJ
= libsmb
/nterr.o libsmb
/dcerpc_err.o libsmb
/smbdes.o \
332 libsmb
/smbencrypt.o libsmb
/ntlm_check.o \
333 libsmb
/ntlmssp.o libsmb
/ntlmssp_parse.o libsmb
/ntlmssp_sign.o
335 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
336 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
337 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
338 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
339 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
340 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
341 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
342 libsmb
/clioplock.o
$(ERRORMAP_OBJ
) libsmb
/clirap2.o \
343 libsmb
/smb_seal.o
$(DOSERR_OBJ
) \
344 $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(LIBNMB_OBJ
)
346 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o
348 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
349 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
350 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
351 rpc_client
/cli_ds.o rpc_client
/cli_svcctl.o
353 LIBMSRPC_GEN_OBJ
= librpc
/gen_ndr
/cli_unixinfo.o librpc
/gen_ndr
/cli_lsa.o \
354 librpc
/gen_ndr
/cli_dfs.o librpc
/gen_ndr
/cli_echo.o \
355 librpc
/gen_ndr
/cli_srvsvc.o librpc
/gen_ndr
/cli_svcctl.o \
356 librpc
/gen_ndr
/cli_winreg.o librpc
/gen_ndr
/cli_initshutdown.o \
357 librpc
/gen_ndr
/cli_eventlog.o librpc
/gen_ndr
/cli_epmapper.o \
358 $(LIBNDR_GEN_OBJ
) $(RPCCLIENT_NDR_OBJ
)
360 REGOBJS_OBJ
= registry
/reg_objects.o
362 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
363 registry
/reg_db.o registry
/reg_eventlog.o registry
/reg_shares.o \
364 registry
/reg_util.o registry
/reg_dynamic.o registry
/reg_perfcount.o \
365 registry
/reg_smbconf.o registry
/reg_api.o \
366 registry
/reg_frontend_hilvl.o
368 RPC_LSA_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o librpc
/gen_ndr
/srv_lsa.o
370 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o
372 RPC_SAMR_OBJ
= rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o \
373 rpc_server
/srv_samr_util.o
375 RPC_UNIXINFO_OBJ
= librpc
/gen_ndr
/srv_unixinfo.o rpc_server
/srv_unixinfo_nt.o
376 REGFIO_OBJ
= registry
/regfio.o
378 RPC_EPMAPPER_OBJ
= librpc
/gen_ndr
/srv_epmapper.o rpc_server
/srv_epmapper_nt.o
380 RPC_REG_OBJ
= librpc
/gen_ndr
/srv_winreg.o rpc_server
/srv_winreg_nt.o
$(REGFIO_OBJ
)
381 RPC_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
383 RPC_LSA_DS_OBJ
= rpc_server
/srv_lsa_ds.o rpc_server
/srv_lsa_ds_nt.o
385 RPC_SVC_OBJ
= librpc
/gen_ndr
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o
387 RPC_WKS_OBJ
= librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
389 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl.o rpc_server
/srv_svcctl_nt.o \
390 librpc
/gen_ndr
/srv_svcctl.o \
391 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
392 services
/svc_netlogon.o services
/svc_winreg.o \
395 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs.o rpc_server
/srv_ntsvcs_nt.o
397 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
399 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
401 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog.o rpc_server
/srv_eventlog_nt.o \
402 rpc_server
/srv_eventlog_lib.o librpc
/gen_ndr
/srv_eventlog.o
404 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
405 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
407 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o librpc
/gen_ndr
/srv_echo.o
409 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
411 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o
$(RPC_PARSE_OBJ2
) \
412 rpc_parse
/parse_samr.o \
413 rpc_parse
/parse_ds.o rpc_parse
/parse_spoolss.o \
414 rpc_parse
/parse_eventlog.o rpc_parse
/parse_buffer.o \
415 rpc_parse
/parse_ntsvcs.o rpc_parse
/parse_svcctl.o
$(REGOBJS_OBJ
)
417 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
419 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
421 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
423 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
424 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
425 passdb
/util_unixsids.o passdb
/lookup_sid.o \
426 passdb
/login_cache.o @PDB_STATIC@ \
427 lib
/account_pol.o lib
/privileges.o lib
/util_nscd.o
429 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
430 CP850_OBJ
= modules
/CP850.o
431 CP437_OBJ
= modules
/CP437.o
432 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
434 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o groupdb
/mapping_ldb.o
436 PROFILE_OBJ
= profile
/profile.o
437 PROFILES_OBJ
= utils
/profiles.o \
438 $(REGFIO_OBJ
) $(REGOBJS_OBJ
) $(ERRORMAP_OBJ
) \
439 $(RPC_PARSE_OBJ1
) $(PARAM_OBJ
) $(LIBSAMBA_OBJ
) \
440 $(DOSERR_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
441 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
443 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
445 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
447 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
448 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
449 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
450 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
451 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
452 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
453 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
454 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
455 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
456 VFS_CAP_OBJ
= modules
/vfs_cap.o
457 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
458 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
459 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
460 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
461 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
462 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
463 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
464 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
465 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
466 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
467 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
468 VFS_CATIA_OBJ
= modules
/vfs_catia.o
469 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
470 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
471 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
472 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
473 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
474 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
476 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
478 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
480 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o
482 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
483 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
484 AUTH_SAM_OBJ
= auth
/auth_sam.o
485 AUTH_SERVER_OBJ
= auth
/auth_server.o
486 AUTH_UNIX_OBJ
= auth
/auth_unix.o
487 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
488 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
490 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
491 auth
/auth_compat.o auth
/auth_ntlmssp.o \
492 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
494 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_map.o smbd
/mangle_hash2.o
496 SMBD_OBJ_MAIN
= smbd
/server.o
498 BUILDOPT_OBJ
= smbd
/build_options.o
500 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
501 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
502 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
503 smbd
/share_access.o smbd
/fileio.o \
504 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
505 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
506 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
507 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
508 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
509 smbd
/vfs.o smbd
/statcache.o smbd
/seal.o \
510 smbd
/posix_acls.o lib
/sysacls.o
$(SERVER_MUTEX_OBJ
) \
511 smbd
/process.o smbd
/service.o smbd
/error.o \
512 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
513 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
514 smbd
/change_trust_pw.o smbd
/fake_file.o \
515 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
516 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
517 smbd
/dmapi.o lib
/launchd.o smbd
/sockinit.o \
518 $(MANGLE_OBJ
) @VFS_STATIC@
520 SMBD_OBJ_BASE
= $(PARAM_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
521 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
522 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
523 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
524 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
525 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
526 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
527 $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
528 $(BUILDOPT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
530 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
531 printing
/print_cups.o printing
/print_generic.o \
532 printing
/lpq_parse.o printing
/load.o \
533 printing
/print_iprint.o printing
/print_test.o
535 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
536 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
538 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
539 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
540 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
541 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
542 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
543 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
544 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
545 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
546 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
547 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
548 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
549 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
550 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
552 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
553 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
555 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
556 web
/swat.o web
/neg_lang.o
558 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) \
559 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) \
560 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
561 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
562 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
564 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
565 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
566 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
567 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) \
570 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
571 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
572 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
573 $(PRINTBASE_OBJ
) $(ERRORMAP_OBJ
)
575 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
576 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
577 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
578 rpc_client
/cli_pipe.o
$(RPC_PARSE_OBJ2
) \
580 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
583 TESTPARM_OBJ
= utils
/testparm.o \
584 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
585 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
587 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
589 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
590 $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
591 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
592 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
594 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) \
595 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
596 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) libsmb
/asn1.o \
597 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) libsmb
/errormap.o
599 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ
)
601 DISPLAY_SEC_OBJ
= lib
/display_sec.o
603 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
604 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
605 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
606 rpcclient
/cmd_dfs.o \
607 rpcclient
/cmd_ds.o rpcclient
/cmd_echo.o \
608 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
609 rpcclient
/cmd_unixinfo.o
$(DISPLAY_SEC_OBJ
)
611 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
612 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
613 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
614 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
615 $(LIBADS_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
616 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
618 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
619 $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @BUILD_INIPARSER@
621 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
622 libsmb
/libsmb_cache.o \
623 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
624 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
625 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
626 $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
628 CAC_OBJ
= $(LIBSMBCLIENT_OBJ
) \
629 libmsrpc
/libmsrpc.o libmsrpc
/libmsrpc_internal.o \
630 libmsrpc
/cac_lsarpc.o libmsrpc
/cac_winreg.o libmsrpc
/cac_samr.o \
631 libmsrpc
/cac_svcctl.o
633 LIBSMBSHAREMODES_OBJ
= libsmb
/smb_share_modes.o
$(TDB_BASE_OBJ
)
635 # This shared library is intended for linking with unit test programs
636 # to test Samba internals. It's called libbigballofmud.so to
637 # discourage casual usage.
639 LIBBIGBALLOFMUD_MAJOR
= 0
641 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) \
642 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
643 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
645 CLIENT_OBJ1
= client
/client.o client
/clitar.o rpc_client
/cli_pipe.o \
649 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
650 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
651 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
652 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
655 TOOL_OBJ
= client
/smbctool.o client
/clitar.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
656 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
657 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
660 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_domain.o utils
/net_help.o \
661 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
662 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
663 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
664 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
665 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
666 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
667 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
668 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
671 NET_REG_OBJ
= registry
/reg_api.o \
672 registry
/reg_frontend_hilvl.o \
673 registry
/reg_smbconf.o \
675 registry
/reg_util.o \
677 registry
/reg_cachehook.o \
678 registry
/reg_eventlog.o \
679 registry
/reg_perfcount.o \
680 registry
/reg_dynamic.o \
684 NET_OBJ
= $(NET_OBJ1
) $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
685 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
686 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
687 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
688 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
689 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
690 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
691 $(LDB_OBJ
) $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) $(NET_REG_OBJ
)
693 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
694 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
696 MOUNT_OBJ
= client
/smbmount.o \
697 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
699 MNT_OBJ
= client
/smbmnt.o
$(VERSION_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
701 UMOUNT_OBJ
= client
/smbumount.o
$(SOCKET_WRAPPER_OBJ
)
703 CIFS_MOUNT_OBJ
= client
/mount.cifs.o
705 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o
707 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
708 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
710 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
711 torture
/denytest.o torture
/mangle_test.o
713 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
714 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
716 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
717 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
719 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
720 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
722 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
723 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
725 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
726 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
728 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
729 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
730 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
)
733 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
735 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
737 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
739 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
740 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
742 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
743 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
744 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) \
745 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
747 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
749 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
750 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
751 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
753 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
755 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
756 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
758 registry
/reg_eventlog.o rpc_server
/srv_eventlog_lib.o registry
/reg_util.o \
761 SHARESEC_OBJ0
= utils
/sharesec.o
762 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
763 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
764 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
766 TALLOCTORT_OBJ
= lib
/talloc
/testsuite.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
767 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LIBSAMBA_OBJ
) $(SECRETS_OBJ
)
769 REPLACETORT_OBJ
= lib
/replace
/test/testsuite.o \
770 lib
/replace
/test/os2_delete.o \
771 lib
/replace
/test/strptime.o \
774 NDRDUMP_OBJ
= librpc
/tools
/ndrdump.o \
775 $(PARAM_OBJ
) $(LIBNDR_GEN_OBJ
) \
776 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
777 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(SECRETS_OBJ
)
779 RPCTORTURE_OBJ
= torture
/rpctorture.o \
780 rpcclient
/display.o \
781 rpcclient
/cmd_lsarpc.o \
782 rpcclient
/cmd_wkssvc.o \
783 rpcclient
/cmd_samr.o \
784 rpcclient
/cmd_srvsvc.o \
785 rpcclient
/cmd_netlogon.o \
786 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
787 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) $(SECRETS_OBJ
)
789 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
791 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(SECRETS_OBJ
) \
792 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
)
794 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) $(LIBNDR_OBJ
) $(RPCCLIENT_NDR_OBJ
) \
795 $(LIBNDR_GEN_OBJ
) $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(LIBSMB_OBJ
) \
796 $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
798 $(LIB_WITH_PROTO_OBJ
) \
799 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) $(KRBCLIENT_OBJ
) \
800 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
801 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
802 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
803 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
804 $(AUTH_SAM_OBJ
) $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
805 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) $(RPC_LSA_DS_OBJ
) \
806 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
) \
807 $(RPC_ECHO_OBJ
) $(RPC_SVCCTL_OBJ
) $(RPC_EVENTLOG_OBJ
) $(SMBLDAP_OBJ
) \
808 $(IDMAP_OBJ
) libsmb
/spnego.o
$(PASSCHANGE_OBJ
) $(RPC_UNIXINFO_OBJ
) \
809 $(RPC_EPMAPPER_OBJ
) $(RPC_NTSVCS_OBJ
) $(RPC_INITSHUTDOWN_OBJ
) \
810 utils
/passwd_util.o
$(LIBGPO_OBJ
) $(NSS_INFO_OBJ
)
812 WINBIND_WINS_NSS_OBJ
= nsswitch
/wins.o
$(PARAM_OBJ
) \
813 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
815 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
816 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o
817 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
818 $(SECRETS_OBJ
) $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
819 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) $(ERRORMAP_OBJ
)
821 IDMAP_OBJ
= nsswitch
/idmap.o nsswitch
/idmap_cache.o nsswitch
/idmap_util.o @IDMAP_STATIC@
823 NSS_INFO_OBJ
= nsswitch
/nss_info.o @NSS_INFO_STATIC@
825 IDMAP_NSS_OBJ
= sam
/idmap_nss.o @IDMAP_NSS_STATIC@
828 nsswitch
/winbindd.o \
829 nsswitch
/winbindd_sockinit.o \
830 nsswitch
/winbindd_user.o \
831 nsswitch
/winbindd_group.o \
832 nsswitch
/winbindd_util.o \
833 nsswitch
/winbindd_cache.o \
834 nsswitch
/winbindd_pam.o \
835 nsswitch
/winbindd_sid.o \
836 nsswitch
/winbindd_misc.o \
837 nsswitch
/winbindd_cm.o \
838 nsswitch
/winbindd_wins.o \
839 nsswitch
/winbindd_rpc.o \
840 nsswitch
/winbindd_reconnect.o \
841 nsswitch
/winbindd_ads.o \
842 nsswitch
/winbindd_passdb.o \
843 nsswitch
/winbindd_dual.o \
844 nsswitch
/winbindd_async.o \
845 nsswitch
/winbindd_creds.o \
846 nsswitch
/winbindd_cred_cache.o \
847 nsswitch
/winbindd_ccache_access.o \
851 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
852 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
853 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
854 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
855 $(SECRETS_OBJ
) $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
856 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
857 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) lib
/launchd.o \
858 $(LIBADS_SERVER_OBJ
) $(SERVER_MUTEX_OBJ
) $(LDB_OBJ
)
860 WBINFO_OBJ
= nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
861 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
863 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
865 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
866 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
867 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
868 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
869 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
871 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
872 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
873 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
875 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
876 lib
/ldb
/modules
/objectclass.o \
877 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
879 # enabled in configure.in
880 LDB_LDAP_OBJ
=@LDBLDAP@
882 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
884 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
885 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
886 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
887 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
888 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
889 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
890 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
891 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
894 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
895 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
896 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
897 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
898 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
900 SMB_KRB5_LOCATOR_OBJ1
= libads
/smb_krb5_locator.o
901 SMB_KRB5_LOCATOR_OBJ
= $(SMB_KRB5_LOCATOR_OBJ1
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
902 $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
)
904 POPT_OBJ
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
905 popt
/popthelp.o popt
/poptparse.o
907 INIPARSER_OBJ
= iniparser_build
/iniparser.o iniparser_build
/dictionary.o \
908 iniparser_build
/strlib.o
910 TDBBACKUP_OBJ
= lib
/tdb
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
911 $(TDBBASE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
913 TDBTOOL_OBJ
= lib
/tdb
/tools
/tdbtool.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
914 $(SOCKET_WRAPPER_OBJ
)
916 TDBDUMP_OBJ
= lib
/tdb
/tools
/tdbdump.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
917 $(SOCKET_WRAPPER_OBJ
)
919 TDBTORTURE_OBJ
= lib
/tdb
/tools
/tdbtorture.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
920 $(SOCKET_WRAPPER_OBJ
)
923 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
925 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
926 libsmb
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
927 libads
/kerberos_verify.o
$(SECRETS_OBJ
) $(SERVER_MUTEX_OBJ
) \
928 libads
/authdata.o
$(RPC_PARSE_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
929 $(SMBLDAP_OBJ
) $(DOSERR_OBJ
) rpc_parse
/parse_net.o
$(LIBNMB_OBJ
) \
930 $(LDB_OBJ
) libsmb
/errormap.o
932 ######################################################################
934 ######################################################################
935 all : SHOWFLAGS
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
936 $(SHLIBS
) $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @EXTRA_ALL_TARGETS@
938 nss_modules
: $(NSS_MODULES
)
940 pam_modules
: $(PAM_MODULES
)
942 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
944 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
946 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
948 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
950 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
952 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
954 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
956 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
958 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
960 smbctool
: SHOWFLAGS bin
/smbctool@EXEEXT@
962 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
964 rpctorture
: SHOWFLAGS bin
/rpctorture@EXEEXT@
966 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
968 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
970 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
972 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
974 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
976 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
978 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
980 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
981 @WINBIND_WINS_NSS@ bin
/pam_winbind.@SHLIBEXT@
983 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
985 modules
: SHOWFLAGS
$(MODULES
)
987 cac
: SHOWFLAGS
$(LIBMSRPC
)
990 #####################################################################
992 IDL_FILES
= unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
993 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
994 epmapper.idl messaging.idl
997 @IDL_FILES
="$(IDL_FILES)" CPP
="$(CPP)" PERL
="$(PERL)" \
998 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(PIDL_ARGS
)
1001 #####################################################################
1004 everything
: all libsmbclient debug2html smbfilter talloctort replacetort modules torture \
1008 .SUFFIXES
: .c .o .lo
1011 @echo
"Using FLAGS = $(FLAGS)"
1012 @echo
" PICFLAG = $(PICFLAG)"
1013 @echo
" LIBS = $(LIBS)"
1014 @echo
" LDFLAGS = $(LDFLAGS)"
1015 @echo
" DYNEXP = $(DYNEXP)"
1016 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1017 @echo
" SHLIBEXT = @SHLIBEXT@"
1018 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1020 MAKEDIR
= || exec false
; \
1021 if
test -d
"$$dir"; then
:; else \
1022 echo mkdir
"$$dir"; \
1023 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1024 test -d
"$$dir" || \
1026 exec false
; fi || exec false
1028 # Run a static checker.
1029 CHECK_CC
= $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1030 # Compile a source file.
1031 COMPILE_CC
= $(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1032 # Compile a source file with the installation paths defined.
1033 COMPILE_CC_PATH
= $(CC
) -I.
-I
$(srcdir) $(PATH_FLAGS
) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1035 COMPILE
= $(COMPILE_CC
)
1037 # BEGIN GNU make specific
1038 # Rewrite the COMPILE rule to generate dependencies as a side-effect.
1039 # This is is actually toolchain-independent, but making use of the dependency
1040 # files requires GNU make, so it's pointless to have them otherwise.
1042 @ifGNUmake@COMPILE_DEPENDS
= source
=$< object
=$@ libtool
=no \
1043 @ifGNUmake@ tmpdepfile
=$(DEPDIR
)/$*.TPo depfile
=$(DEPDIR
)/$*.d \
1044 @ifGNUmake@ DEPDIR
=$(DEPDIR
) @CCDEPMODE@ \
1045 @ifGNUmake@
$(srcdir)/depcomp
$(COMPILE_CC
)
1046 @ifGNUmake@COMPILE
= $(COMPILE_DEPENDS
)
1047 # END GNU make specific
1050 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1051 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1052 @if
test -n
"$(CC_CHECKER)"; then \
1053 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1056 @echo Compiling
$*.c
1057 @
$(COMPILE
) && exit
0;\
1058 echo
"The following command failed:" 1>&2;\
1059 echo
"$(COMPILE_CC)" 1>&2;\
1060 $(COMPILE_CC
) >/dev
/null
2>&1
1061 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
1063 # BEGIN GNU make specific
1064 # Include all the generated dependency files. The sort is done to
1065 # remove duplicates.
1066 @ifGNUmake@DEPENDS_OBJ
= $(SMBD_SRV_OBJ
) $(NET_OBJ
) $(WINBINDD_OBJ
)
1067 @ifGNUmake@
-include $(patsubst %.o
, %.d
, $(sort $(DEPENDS_OBJ
)))
1068 # END GNU make specific
1070 PRECOMPILED_HEADER
= $(builddir
)/include/includes.h.gch
1072 # this adds support for precompiled headers. To use it, install a snapshot
1073 # of gcc-3.4 and run 'make pch' before you do the main build.
1075 rm -f
$(PRECOMPILED_HEADER
)
1076 $(MAKE
) $(PRECOMPILED_HEADER
)
1078 $(PRECOMPILED_HEADER
): $(srcdir)/include/includes.h
1081 BINARY_PREREQS
= proto_exists bin
/.dummy
1083 # These dependencies are only approximately correct: we want to make
1084 # sure Samba's paths are updated if ./configure is re-run. Really it
1085 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1086 # but since we also require "make install prefix=/opt/samba" *not* to
1087 # rebuild it's a bit hard.
1089 dynconfig.o
: dynconfig.c Makefile
1090 @echo Compiling
$*.c
1091 @
$(COMPILE_CC_PATH
) && exit
0;\
1092 echo
"The following command failed:" 1>&2;\
1093 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1094 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1096 lib
/pidfile.o
: lib
/pidfile.c
1097 @echo Compiling
$*.c
1098 @
$(COMPILE_CC_PATH
) && exit
0;\
1099 echo
"The following command failed:" 1>&2;\
1100 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1101 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1103 lib
/version.o
: lib
/version.c
include/version.h
1104 @echo Compiling
$*.c
1105 @
$(COMPILE_CC_PATH
) && exit
0;\
1106 echo
"The following command failed:" 1>&2;\
1107 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1108 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1110 smbd
/build_options.o
: smbd
/build_options.c Makefile
include/config.h
include/build_env.h
include/proto.h
1111 @echo Compiling
$*.c
1112 @
$(COMPILE_CC_PATH
) && exit
0;\
1113 echo
"The following command failed:" 1>&2;\
1114 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1115 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1117 smbd
/build_options.c
: include/config.h.in script
/mkbuildoptions.awk
1119 @
dir=smbd
$(MAKEDIR
) && $(AWK
) -f
$(srcdir)/script
/mkbuildoptions.awk
> $(builddir
)/smbd
/build_options.c
< $(srcdir)/include/config.h.in
1122 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
1123 dir=bin
$(MAKEDIR
); fi
1124 @
: >> $@ ||
: > $@
# what a fancy emoticon!
1126 bin
/smbd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBD_OBJ
) @BUILD_POPT@
1128 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LDAP_LIBS
) \
1129 $(KRB5LIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
1130 $(ACL_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@ @SMBD_LIBS@
1132 bin
/nmbd@EXEEXT@
: $(BINARY_PREREQS
) $(NMBD_OBJ
) @BUILD_POPT@
1134 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1136 bin
/swat@EXEEXT@
: $(BINARY_PREREQS
) $(SWAT_OBJ
) @BUILD_POPT@
1138 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINT_LIBS
) \
1139 $(AUTH_LIBS
) $(LIBS
) $(PASSDB_LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1141 bin
/rpcclient@EXEEXT@
: $(BINARY_PREREQS
) $(RPCCLIENT_OBJ
) @BUILD_POPT@
1143 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(PASSDB_LIBS
) $(RPCCLIENT_OBJ
) \
1144 $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@ \
1145 $(KRB5LIBS
) $(LDAP_LIBS
)
1147 bin
/smbclient@EXEEXT@
: $(BINARY_PREREQS
) $(CLIENT_OBJ
) @BUILD_POPT@
1149 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1151 bin
/smbctool@EXEEXT@
: $(BINARY_PREREQS
) $(TOOL_OBJ
) @BUILD_POPT@
1153 @
$(CC
) $(FLAGS
) -o
$@
$(TOOL_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) -Lbin
-lsmbclient
1155 bin
/net@EXEEXT@
: $(BINARY_PREREQS
) $(NET_OBJ
) @BUILD_POPT@
1157 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @INIPARSERLIBS@
1159 bin
/profiles@EXEEXT@
: $(BINARY_PREREQS
) $(PROFILES_OBJ
) @BUILD_POPT@
1161 @
$(CC
) $(FLAGS
) -o
$@
$(PROFILES_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1163 bin
/smbspool@EXEEXT@
: $(BINARY_PREREQS
) $(CUPS_OBJ
)
1165 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1167 bin
/smbmount@EXEEXT@
: $(BINARY_PREREQS
) $(MOUNT_OBJ
)
1169 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1171 bin
/smbmnt@EXEEXT@
: $(BINARY_PREREQS
) $(MNT_OBJ
)
1173 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1175 bin
/smbumount@EXEEXT@
: $(BINARY_PREREQS
) $(UMOUNT_OBJ
)
1177 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1179 bin
/mount.cifs@EXEEXT@
: $(CIFS_MOUNT_OBJ
) bin
/.dummy
1181 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1183 bin
/umount.cifs@EXEEXT@
: $(CIFS_UMOUNT_OBJ
) bin
/.dummy
1185 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1187 bin
/testparm@EXEEXT@
: $(BINARY_PREREQS
) $(TESTPARM_OBJ
) @BUILD_POPT@
1189 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1191 bin
/smbstatus@EXEEXT@
: $(BINARY_PREREQS
) $(STATUS_OBJ
) @BUILD_POPT@
1193 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) \
1196 bin
/smbcontrol@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCONTROL_OBJ
) @BUILD_POPT@
1198 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) -o
$@ \
1199 $(SMBCONTROL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1200 $(LIBS
) $(LDAP_LIBS
) @LIBUNWIND_PTRACE@ @POPTLIBS@
1202 bin
/smbtree@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTREE_OBJ
) @BUILD_POPT@
1204 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1206 bin
/smbpasswd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBPASSWD_OBJ
) @BUILD_POPT@
1208 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(PASSDB_LIBS
) \
1209 $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1211 bin
/pdbedit@EXEEXT@
: $(BINARY_PREREQS
) $(PDBEDIT_OBJ
) @BUILD_POPT@
1213 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(LDAP_LIBS
)
1215 bin
/smbget@EXEEXT@
: $(BINARY_PREREQS
) $(SMBGET_OBJ
) @BUILD_POPT@
1217 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGET_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1219 bin
/samtest@EXEEXT@
: $(SAMTEST_OBJ
) @BUILD_POPT@
1221 @
$(CC
) $(FLAGS
) -o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1223 bin
/nmblookup@EXEEXT@
: $(BINARY_PREREQS
) $(NMBLOOKUP_OBJ
) @BUILD_POPT@
1225 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(LDAP_LIBS
)
1227 bin
/smbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTORTURE_OBJ
)
1229 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1231 bin
/talloctort@EXEEXT@
: $(BINARY_PREREQS
) $(TALLOCTORT_OBJ
)
1233 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) \
1234 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
)
1236 bin
/replacetort@EXEEXT@
: $(REPLACETORT_OBJ
)
1238 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(REPLACETORT_OBJ
) $(LDFLAGS
) \
1241 bin
/masktest@EXEEXT@
: $(BINARY_PREREQS
) $(MASKTEST_OBJ
)
1243 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1245 bin
/msgtest@EXEEXT@
: $(BINARY_PREREQS
) $(MSGTEST_OBJ
)
1247 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1249 bin
/smbcacls@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCACLS_OBJ
) @BUILD_POPT@
1251 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1252 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1254 bin
/smbcquotas@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCQUOTAS_OBJ
) @BUILD_POPT@
1256 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCQUOTAS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1257 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1259 bin
/eventlogadm@EXEEXT@
: $(BINARY_PREREQS
) $(EVTLOGADM_OBJ
) @BUILD_POPT@
1261 @
$(CC
) $(FLAGS
) -o
$@
$(EVTLOGADM_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1263 bin
/sharesec@EXEEXT@
: $(BINARY_PREREQS
) $(SHARESEC_OBJ
) @BUILD_POPT@
1265 @
$(CC
) $(FLAGS
) -o
$@
$(SHARESEC_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1267 bin
/locktest@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST_OBJ
)
1269 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1271 bin
/nsstest@EXEEXT@
: $(BINARY_PREREQS
) $(NSSTEST_OBJ
)
1273 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1275 bin
/pdbtest@EXEEXT@
: $(BINARY_PREREQS
) $(PDBTEST_OBJ
)
1277 @
$(CC
) $(FLAGS
) -o
$@
$(PDBTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@
1279 bin
/vfstest@EXEEXT@
: $(BINARY_PREREQS
) $(VFSTEST_OBJ
) @BUILD_POPT@
1281 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) $(ACL_LIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) @SMBD_LIBS@
$(NSCD_LIBS
)
1283 bin
/smbiconv@EXEEXT@
: $(SMBICONV_OBJ
) @BUILD_POPT@
1285 @
$(CC
) $(FLAGS
) -o
$@
$(SMBICONV_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
1287 bin
/log2pcap@EXEEXT@
: $(BINARY_PREREQS
) $(LOG2PCAP_OBJ
) @BUILD_POPT@
1289 @
$(CC
) $(FLAGS
) -o
$@
$(LOG2PCAP_OBJ
) $(LDFLAGS
) $(DYNEXP
) @POPTLIBS@
$(LIBS
)
1291 bin
/locktest2@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST2_OBJ
)
1293 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1295 bin
/rpctorture@EXEEXT@
: $(RPCTORTURE_OBJ
)
1297 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1299 bin
/ndrdump@EXEEXT@
: $(NDRDUMP_OBJ
)
1301 @
$(CC
) $(FLAGS
) -o
$@
$(NDRDUMP_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1302 @POPTLIBS@ @LDAP_LIBS@
1304 bin
/debug2html@EXEEXT@
: $(BINARY_PREREQS
) $(DEBUG2HTML_OBJ
)
1306 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
1308 bin
/smbfilter@EXEEXT@
: $(BINARY_PREREQS
) $(SMBFILTER_OBJ
)
1310 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1312 bin
/ldbedit
: $(BINARY_PREREQS
) $(LDBEDIT_OBJ
) @BUILD_POPT@
1314 @
$(CC
) $(FLAGS
) -o
$@
$(LDBEDIT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1316 bin
/ldbsearch
: $(BINARY_PREREQS
) $(LDBSEARCH_OBJ
) @BUILD_POPT@
1318 @
$(CC
) $(FLAGS
) -o
$@
$(LDBSEARCH_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1320 bin
/ldbadd
: $(BINARY_PREREQS
) $(LDBADD_OBJ
) @BUILD_POPT@
1322 @
$(CC
) $(FLAGS
) -o
$@
$(LDBADD_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1324 bin
/ldbmodify
: $(BINARY_PREREQS
) $(LDBMODIFY_OBJ
) @BUILD_POPT@
1326 @
$(CC
) $(FLAGS
) -o
$@
$(LDBMODIFY_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1328 bin
/ldbdel
: $(BINARY_PREREQS
) $(LDBDEL_OBJ
) @BUILD_POPT@
1330 @
$(CC
) $(FLAGS
) -o
$@
$(LDBDEL_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1332 bin
/libaddns.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBADDNS_OBJ
)
1333 @echo Linking libaddns shared library
$@
1334 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBADDNS_OBJ
) $(LDFLAGS
) $(LIBS
) \
1335 $(KRB5LIBS
) $(UUID_LIBS
)\
1336 @SONAMEFLAG@
`basename $@`.
$(LIBADDNS_MAJOR
)
1338 bin
/libaddns.a
: $(BINARY_PREREQS
) $(LIBADDNS_OBJ
)
1339 @echo Linking libaddns non-shared library
$@
1340 @
-$(AR
) -rc
$@
$(LIBADDNS_OBJ
)
1342 bin
/libsmbclient.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
)
1343 @echo Linking libsmbclient shared library
$@
1344 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_OBJ
) $(LDFLAGS
) $(LIBS
) \
1345 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1346 @SONAMEFLAG@
`basename $@`.
$(LIBSMBCLIENT_MAJOR
)
1348 bin
/libsmbclient.a
: $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
)
1349 @echo Linking libsmbclient non-shared library
$@
1350 @
-$(AR
) -rc
$@
$(LIBSMBCLIENT_OBJ
)
1352 bin
/libsmbsharemodes.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
)
1353 @echo Linking libsmbsharemodes shared library
$@
1354 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBSHAREMODES_OBJ
) $(LDFLAGS
) $(LIBS
) \
1355 $(KRB5LIBS
) $(LDAP_LIBS
) \
1356 @SONAMEFLAG@
`basename $@`.
$(LIBSMBSHAREMODES_MAJOR
)
1358 bin
/libsmbsharemodes.a
: $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
)
1359 @echo Linking libsmbsharemodes non-shared library
$@
1360 @
-$(AR
) -rc
$@
$(LIBSMBSHAREMODES_OBJ
)
1362 bin
/libmsrpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CAC_OBJ
)
1363 @echo Linking libmsrpc shared library
$@
1364 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(CAC_OBJ
) $(LDFLAGS
) $(LIBS
) \
1365 @SONAMEFLAG@
`basename $@`.
$(LIBMSRPC_MAJOR
)
1367 bin
/libmsrpc.a
: $(BINARY_PREREQS
) $(CAC_OBJ
)
1368 @echo Linking libmsrpc non-shared library
$@
1369 @
-$(AR
) -rc
$@
$(CAC_OBJ
)
1371 # This is probably wrong for anything other than the GNU linker.
1372 bin
/libbigballofmud.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBBIGBALLOFMUD_OBJ
)
1373 @echo Linking bigballofmud shared library
$@
1374 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_OBJ
) $(LIBS
) \
1375 $(PASSDB_LIBS
) $(IDMAP_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1376 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
1377 ln
-snf libbigballofmud.so bin
/libbigballofmud.so
.0
1379 # It would be nice to build a static bigballofmud too, but when I try
1380 # I get linker errors about dl_open and similar things. I'm not sure if
1381 # it can be fixed or if they just can't be called from a static
1384 libsmbclient
: $(LIBSMBCLIENT
)
1385 libsmbsharemodes
: $(LIBSMBSHAREMODES
)
1386 libmsrpc
: $(LIBMSRPC
)
1387 libaddns
: $(LIBADDNS
)
1389 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1390 SHLD_MODULE
= $(SHLD
) $(LDSHFLAGS
) $(MODULE_EXPORTS
) \
1391 -o
$@ @SONAMEFLAG@
`basename $@`
1393 bin
/librpc_lsarpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_OBJ
)
1395 @
$(SHLD_MODULE
) $(RPC_LSA_OBJ
)
1396 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_LSA_OBJ
) -lc \
1397 @SONAMEFLAG@
`basename $@`
1399 bin
/librpc_samr.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SAMR_OBJ
)
1401 @
$(SHLD_MODULE
) $(RPC_SAMR_OBJ
)
1403 bin
/librpc_unixinfo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_UNIXINFO_OBJ
)
1405 @
$(SHLD_MODULE
) $(RPC_UNIXINFO_OBJ
)
1407 bin
/librpc_epmapper.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EPMAPPER_OBJ
)
1409 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1411 bin
/librpc_srvsvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVC_OBJ
)
1413 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1415 bin
/librpc_svcctl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVCCTL_OBJ
)
1417 @
$(SHLD_MODULE
) $(RPC_SVCCTL_OBJ
)
1419 bin
/librpc_ntsvcs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NTSVCS_OBJ
)
1421 @
$(SHLD_MODULE
) $(RPC_NTSVCS_OBJ
)
1423 bin
/librpc_wkssvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_WKS_OBJ
)
1425 @
$(SHLD_MODULE
) $(RPC_WKS_OBJ
)
1427 bin
/librpc_NETLOGON.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NETLOG_OBJ
)
1429 @
$(SHLD_MODULE
) $(RPC_NETLOG_OBJ
)
1431 bin
/librpc_winreg.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_REG_OBJ
)
1433 @
$(SHLD_MODULE
) $(RPC_REG_OBJ
)
1435 bin
/librpc_initshutdown.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_INITSHUTDOWN_OBJ
)
1437 @
$(SHLD_MODULE
) $(RPC_INITSHUTDOWN_OBJ
)
1439 bin
/librpc_lsa_ds.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_DS_OBJ
)
1441 @
$(SHLD_MODULE
) $(RPC_LSA_DS_OBJ
)
1443 bin
/librpc_spoolss.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SPOOLSS_OBJ
)
1445 @
$(SHLD_MODULE
) $(RPC_SPOOLSS_OBJ
)
1447 bin
/librpc_eventlog.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EVENTLOG_OBJ
)
1449 @
$(SHLD_MODULE
) $(RPC_EVENTLOG_OBJ
)
1451 bin
/librpc_netdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_DFS_OBJ
)
1453 @
$(SHLD_MODULE
) $(RPC_DFS_OBJ
)
1455 bin
/librpc_echo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_ECHO_OBJ
)
1457 @
$(SHLD_MODULE
) $(RPC_ECHO_OBJ
)
1459 bin
/winbindd@EXEEXT@
: $(BINARY_PREREQS
) $(WINBINDD_OBJ
) @BUILD_POPT@
1461 @
$(CC
) $(FLAGS
) -o
$@
$(WINBINDD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1462 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
)
1464 @WINBIND_NSS@
: $(BINARY_PREREQS
) $(WINBIND_NSS_OBJ
)
1466 @
$(SHLD
) $(WINBIND_NSS_LDSHFLAGS
) -o
$@
$(WINBIND_NSS_OBJ
) \
1467 @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1469 @WINBIND_WINS_NSS@
: $(BINARY_PREREQS
) $(WINBIND_WINS_NSS_OBJ
)
1471 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_WINS_NSS_OBJ
) \
1472 $(LDAP_LIBS
) $(KRB5LIBS
) $(LIBS
) \
1473 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1475 @SMB_KRB5_LOCATOR@
: $(BINARY_PREREQS
) $(SMB_KRB5_LOCATOR_OBJ
)
1477 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(SMB_KRB5_LOCATOR_OBJ
) \
1478 $(LDAP_LIBS
) $(LIBS
) -lcom_err \
1479 @SONAMEFLAG@
`basename $@`
1481 bin
/pam_winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_WINBIND_OBJ
)
1482 @echo
"Linking shared library $@"
1483 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) -lpam @INIPARSERLIBS@ \
1484 @SONAMEFLAG@
`basename $@`
1486 bin
/builtin.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_BUILTIN_OBJ
)
1487 @echo
"Building plugin $@"
1488 @
$(SHLD_MODULE
) $(AUTH_BUILTIN_OBJ
)
1490 bin
/domain.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_DOMAIN_OBJ
)
1491 @echo
"Building plugin $@"
1492 @
$(SHLD_MODULE
) $(AUTH_DOMAIN_OBJ
)
1494 bin
/script.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SCRIPT_OBJ
)
1495 @echo
"Building plugin $@"
1496 @
$(SHLD_MODULE
) $(AUTH_SCRIPT_OBJ
)
1498 bin
/smbserver.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SERVER_OBJ
)
1499 @echo
"Building plugin $@"
1500 @
$(SHLD_MODULE
) $(AUTH_SERVER_OBJ
)
1502 bin
/winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_WINBIND_OBJ
)
1503 @echo
"Building plugin $@"
1504 @
$(SHLD_MODULE
) $(AUTH_WINBIND_OBJ
)
1506 bin
/unix.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_UNIX_OBJ
)
1507 @echo
"Building plugin $@"
1508 @
$(SHLD_MODULE
) $(AUTH_UNIX_OBJ
)
1510 bin
/sam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SAM_OBJ
)
1511 @echo
"Building plugin $@"
1512 @
$(SHLD_MODULE
) $(AUTH_SAM_OBJ
)
1514 bin
/ldapsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
1515 @echo
"Building plugin $@"
1516 @
$(SHLD_MODULE
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
$(LDAP_LIBS
)
1518 bin
/tdbsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_tdb.o
1519 @echo
"Building plugin $@"
1520 @
$(SHLD_MODULE
) passdb
/pdb_tdb.o
1522 bin
/smbpasswd.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_smbpasswd.o
1523 @echo
"Building plugin $@"
1524 @
$(SHLD_MODULE
) passdb
/pdb_smbpasswd.o
1526 bin
/rid.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_rid.o
1527 @echo
"Building plugin $@"
1528 @
$(SHLD_MODULE
) nsswitch
/idmap_rid.o
1530 bin
/ad.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_ad.o
1531 @echo
"Building plugin $@"
1532 @
$(SHLD_MODULE
) nsswitch
/idmap_ad.o
1534 bin
/ldap.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_ldap.o
1535 @echo
"Building plugin $@"
1536 @
$(SHLD_MODULE
) nsswitch
/idmap_ldap.o
1538 bin
/weird.@SHLIBEXT@
: $(BINARY_PREREQS
) $(DEVEL_HELP_WEIRD_OBJ
)
1539 @echo
"Building plugin $@"
1540 @
$(SHLD_MODULE
) $(DEVEL_HELP_WEIRD_OBJ
)
1542 bin
/CP850.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP850_OBJ
)
1543 @echo
"Building plugin $@"
1544 @
$(SHLD_MODULE
) $(CP850_OBJ
)
1546 bin
/CP437.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP437_OBJ
)
1547 @echo
"Building plugin $@"
1548 @
$(SHLD_MODULE
) $(CP437_OBJ
)
1550 bin
/macosxfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CHARSET_MACOSXFS_OBJ
)
1551 @echo
"Building plugin $@"
1552 @
$(SHLD_MODULE
) $(CHARSET_MACOSXFS_OBJ
) -framework CoreFoundation
1554 # NOTE, there is no build rule for a dynamic default VFS module because
1555 # this one MUST MUST MUST be built statically.
1557 bin
/audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AUDIT_OBJ
)
1558 @echo
"Building plugin $@"
1559 @
$(SHLD_MODULE
) $(VFS_AUDIT_OBJ
)
1561 bin
/extd_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXTD_AUDIT_OBJ
)
1562 @echo
"Building plugin $@"
1563 @
$(SHLD_MODULE
) $(VFS_EXTD_AUDIT_OBJ
)
1565 bin
/full_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FULL_AUDIT_OBJ
)
1566 @echo
"Building plugin $@"
1567 @
$(SHLD_MODULE
) $(VFS_FULL_AUDIT_OBJ
)
1569 bin
/recycle.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_RECYCLE_OBJ
)
1570 @echo
"Building plugin $@"
1571 @
$(SHLD_MODULE
) $(VFS_RECYCLE_OBJ
)
1573 bin
/netatalk.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NETATALK_OBJ
)
1574 @echo
"Building plugin $@"
1575 @
$(SHLD_MODULE
) $(VFS_NETATALK_OBJ
)
1577 bin
/fake_perms.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FAKE_PERMS_OBJ
)
1578 @echo
"Building plugin $@"
1579 @
$(SHLD_MODULE
) $(VFS_FAKE_PERMS_OBJ
)
1581 bin
/default_quota.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_DEFAULT_QUOTA_OBJ
)
1582 @echo
"Building plugin $@"
1583 @
$(SHLD_MODULE
) $(VFS_DEFAULT_QUOTA_OBJ
)
1585 bin
/readonly.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READONLY_OBJ
)
1586 @echo
"Building plugin $@"
1587 @
$(SHLD_MODULE
) $(VFS_READONLY_OBJ
)
1589 bin
/shadow_copy.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SHADOW_COPY_OBJ
)
1590 @echo
"Building plugin $@"
1591 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY_OBJ
)
1593 bin
/cap.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CAP_OBJ
)
1594 @echo
"Building plugin $@"
1595 @
$(SHLD_MODULE
) $(VFS_CAP_OBJ
)
1597 bin
/expand_msdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXPAND_MSDFS_OBJ
)
1598 @echo
"Building plugin $@"
1599 @
$(SHLD_MODULE
) $(VFS_EXPAND_MSDFS_OBJ
)
1601 bin
/afsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AFSACL_OBJ
)
1602 @echo
"Building plugin $@"
1603 @
$(SHLD_MODULE
) $(VFS_AFSACL_OBJ
)
1605 bin
/posixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_POSIXACL_OBJ
)
1606 @echo
"Building plugin $@"
1607 @
$(SHLD_MODULE
) $(VFS_POSIXACL_OBJ
)
1609 bin
/aixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL_OBJ
)
1610 @echo
"Building plugin $@"
1611 @
$(SHLD_MODULE
) $(VFS_AIXACL_OBJ
)
1613 bin
/aixacl2.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL2_OBJ
)
1614 @echo
"Building plugin $@"
1615 @
$(SHLD_MODULE
) $(VFS_AIXACL2_OBJ
)
1617 bin
/solarisacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SOLARISACL_OBJ
)
1618 @echo
"Building plugin $@"
1619 @
$(SHLD_MODULE
) $(VFS_SOLARISACL_OBJ
)
1621 bin
/zfsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_ZFSACL_OBJ
)
1622 @echo
"Building plugin $@"
1623 @
$(SHLD_MODULE
) $(VFS_ZFSACL_OBJ
)
1625 bin
/irixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_IRIXACL_OBJ
)
1626 @echo
"Building plugin $@"
1627 @
$(SHLD_MODULE
) $(VFS_IRIXACL_OBJ
)
1629 bin
/hpuxacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_HPUXACL_OBJ
)
1630 @echo
"Building plugin $@"
1631 @
$(SHLD_MODULE
) $(VFS_HPUXACL_OBJ
)
1633 bin
/tru64acl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_TRU64ACL_OBJ
)
1634 @echo
"Building plugin $@"
1635 @
$(SHLD_MODULE
) $(VFS_TRU64ACL_OBJ
)
1637 bin
/catia.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CATIA_OBJ
)
1638 @echo
"Building plugin $@"
1639 @
$(SHLD_MODULE
) $(VFS_CATIA_OBJ
)
1641 bin
/cacheprime.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CACHEPRIME_OBJ
)
1642 @echo
"Building plugin $@"
1643 @
$(SHLD_MODULE
) $(VFS_CACHEPRIME_OBJ
)
1645 bin
/prealloc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_PREALLOC_OBJ
)
1646 @echo
"Building plugin $@"
1647 @
$(SHLD_MODULE
) $(VFS_PREALLOC_OBJ
)
1649 bin
/commit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_COMMIT_OBJ
)
1650 @echo
"Building plugin $@"
1651 @
$(SHLD_MODULE
) $(VFS_COMMIT_OBJ
)
1653 bin
/gpfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_GPFS_OBJ
)
1654 @echo
"Building plugin $@"
1655 @
$(SHLD_MODULE
) $(VFS_GPFS_OBJ
)
1657 bin
/notify_fam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NOTIFY_FAM_OBJ
)
1658 @echo
"Building plugin $@"
1659 @
$(SHLD_MODULE
) $(VFS_NOTIFY_FAM_OBJ
) @SMB_FAM_LIBS@
1661 bin
/readahead.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READAHEAD_OBJ
)
1662 @echo
"Building plugin $@"
1663 @
$(SHLD_MODULE
) $(VFS_READAHEAD_OBJ
)
1665 #########################################################
1666 ## IdMap NSS plugins
1668 ## None here right now
1669 #########################################################
1671 bin
/wbinfo@EXEEXT@
: $(BINARY_PREREQS
) $(WBINFO_OBJ
) @BUILD_POPT@
1673 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(WBINFO_OBJ
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1675 bin
/ntlm_auth@EXEEXT@
: $(BINARY_PREREQS
) $(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1678 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(NTLM_AUTH_OBJ
) \
1679 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBS
) \
1680 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1682 bin
/pam_smbpass.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_SMBPASS_OBJ
)
1683 @echo
"Linking shared library $@"
1684 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_OBJ
) -lpam
$(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
)
1686 bin
/tdbbackup@EXEEXT@
: $(BINARY_PREREQS
) $(TDBBACKUP_OBJ
)
1688 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBBACKUP_OBJ
)
1690 bin
/tdbtool@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTOOL_OBJ
)
1692 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTOOL_OBJ
)
1694 bin
/tdbdump@EXEEXT@
: $(BINARY_PREREQS
) $(TDBDUMP_OBJ
)
1696 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBDUMP_OBJ
)
1698 bin
/tdbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTORTURE_OBJ
)
1700 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTORTURE_OBJ
)
1702 bin
/t_strcmp@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strcmp.o
1703 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strcmp.o
-L .
/bin
-lbigballofmud
1705 bin
/t_strstr@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strstr.o
1706 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strstr.o
-L .
/bin
-lbigballofmud
1708 bin
/t_strappend@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strappend.o
1709 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strappend.o
-L .
/bin
-lbigballofmud
1711 bin
/t_stringoverflow@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_stringoverflow.o
1712 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) torture
/t_stringoverflow.o
-L.
/bin
-lbigballofmud
1714 bin
/t_doschar@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_doschar.o
1715 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_doschar.o
-L .
/bin
-lbigballofmud
1716 bin
/t_push_ucs2@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_push_ucs2.o
1717 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_push_ucs2.o
-L .
/bin
-lbigballofmud
1719 bin
/timelimit@EXEEXT@
: script
/tests
/timelimit.o
1721 @
$(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) script
/tests
/timelimit.o
1723 install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@
1726 install-everything
: install installmodules
1728 # DESTDIR is used here to prevent packagers wasting their time
1729 # duplicating the Makefile. Remove it and you will have the privelege
1730 # of package each samba release for muliple versions of multiple
1731 # distributions and operating systems, or at least supplying patches
1732 # to all the packaging files required for this, prior to committing
1733 # the removal of DESTDIR. Do not remove it even though you think it
1737 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
) $(PIDDIR
) $(LOCKDIR
) $(MANDIR
)
1739 installservers
: all installdirs
1740 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1742 installbin
: all installdirs
1743 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1745 installcifsmount
: @CIFSMOUNT_PROGS@
1746 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(ROOTSBINDIR
)
1747 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1749 # Some symlinks are required for the 'probing' of modules.
1750 # This mechanism should go at some point..
1751 installmodules
: modules
installdirs
1752 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1753 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1754 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1755 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1756 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(NSSINFOLIBDIR
) $(NSS_INFO_MODULES
)
1757 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1758 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1759 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
1760 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
1761 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1762 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1763 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1764 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1765 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1766 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(NSSINFOLIBDIR
) ..
/idmap
/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@
1768 installscripts
: installdirs
1769 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1771 installdat
: installdirs
1772 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1774 installmsg
: installdirs
1775 @
$(SHELL
) $(srcdir)/script
/installmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1777 installswat
: installdirs installmsg
1778 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1780 installclientlib
: installdirs libsmbclient
1781 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1782 -$(INSTALLLIBCMD_SH
) bin
/libsmbclient.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1783 -$(INSTALLLIBCMD_A
) bin
/libsmbclient.a
$(DESTDIR
)$(LIBDIR
)
1784 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1785 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/libsmbclient.h
$(DESTDIR
)${prefix}/include
1787 installlibmsrpc
: installdirs libmsrpc
1788 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1789 -$(INSTALLLIBCMD_SH
) bin
/libmsrpc.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1790 -$(INSTALLLIBCMD_A
) bin
/libmsrpc.a
$(DESTDIR
)$(LIBDIR
)
1791 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1792 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/libmsrpc.h
$(DESTDIR
)${prefix}/include
1794 installlibsmbsharemodes
: installdirs libsmbsharemodes
1795 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1796 -$(INSTALLLIBCMD_SH
) bin
/libsmbsharemodes.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1797 -$(INSTALLLIBCMD_A
) bin
/libsmbsharemodes.a
$(DESTDIR
)$(LIBDIR
)
1798 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/smb_share_modes.h
$(DESTDIR
)${prefix}/include
1800 installlibaddns
: installdirs libaddns
1801 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1802 -$(INSTALLLIBCMD_SH
) bin
/libaddns.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1803 -$(INSTALLLIBCMD_A
) bin
/libaddns.a
$(DESTDIR
)$(LIBDIR
)
1805 installpammodules
: $(PAM_MODULES
)
1806 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(PAMMODULESDIR
)
1807 @for module in
$(PAM_MODULES
); do \
1808 echo
"Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1809 $(INSTALLCMD
) -m
$(INSTALLPERMS_BIN
) bin
/$${module}.@SHLIBEXT@ \
1810 "$(DESTDIR)/$(PAMMODULESDIR)"; \
1815 PYTHON_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) $(RPC_PARSE_OBJ
) \
1816 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1817 $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
1819 python_ext
: $(PYTHON_OBJ
)
1820 @if
test -z
"$(PYTHON)"; then \
1821 echo Use the option
--with-python to configure python
; \
1824 PYTHON_OBJS
="$(PYTHON_OBJ)" \
1825 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
1826 LIBS
="$(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
1827 $(PYTHON
) python
/setup.py build
1829 python_install
: $(PYTHON_OBJ
)
1830 @if
test -z
"$(PYTHON)"; then \
1831 echo Use the option
--with-python to configure python
; \
1834 PYTHON_OBJS
="$(PYTHON_OBJ)" \
1835 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS)" \
1836 LIBS
="$(LDFLAGS) $(LIBS)" \
1837 $(PYTHON
) python
/setup.py
install --root
=$(DESTDIR
)
1840 @
-if
test -n
"$(PYTHON)"; then
$(PYTHON
) python
/setup.py
clean; fi
1843 # revert to the previously installed version
1845 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
1846 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
1848 installman
: installdirs
1849 @SMBMOUNT_PROGS
="@SMBMOUNT_PROGS@" $(SHELL
) \
1850 $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
"@ROFF@"
1855 @echo
"Samba will be installed into:"
1856 @echo
" prefix: $(prefix)"
1857 @echo
" bindir: $(BINDIR)"
1858 @echo
" sbindir: $(SBINDIR)"
1859 @echo
" libdir: $(LIBDIR)"
1860 @echo
" vardir: $(VARDIR)"
1861 @echo
" mandir: $(MANDIR)"
1862 @echo
" privatedir: $(PRIVATE_DIR)"
1863 @echo
" configdir: $(CONFIGDIR)"
1864 @echo
" lockdir: $(LOCKDIR)"
1865 @echo
" piddir: $(PIDDIR)"
1866 @echo
" swatdir: $(SWATDIR)"
1869 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_LIBMSRPC@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@
1872 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
1875 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1878 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1881 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1884 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1885 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1886 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1887 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1888 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1889 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1892 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1895 @
$(SHELL
) $(srcdir)/script
/uninstalldat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1898 @
$(SHELL
) $(srcdir)/script
/uninstallmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1900 uninstallswat
: uninstallmsg
1901 @
$(SHELL
) $(srcdir)/script
/uninstallswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1904 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.@SHLIBEXT@
1905 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.a
1906 -rm -f
$(DESTDIR
)${prefix}/include/libsmbclient.h
1909 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libmsrpc.@SHLIBEXT@
1910 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libmsrpc.a
1911 -rm -f
$(DESTDIR
)${prefix}/include/libmsrpc.h
1913 uninstalllibsmbsharemodes
:
1914 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.@SHLIBEXT@
1915 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.a
1918 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libaddns.@SHLIBEXT@
1919 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libaddns.a
1921 uninstallpammodules
:
1922 @for module in
$(PAM_MODULES
); do \
1923 echo
"Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1924 rm -f
"$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
1927 # Toplevel clean files
1928 TOPFILES
=dynconfig.o
1930 clean: delheaders python_clean
1931 -rm -f
$(PRECOMPILED_HEADER
)
1932 -rm -f core
*/*~
*~ \
1933 */*.o
*/*/*.o
*/*/*/*.o \
1934 */*.d
*/*/*.d
*/*/*/*.d \
1935 */*.@SHLIBEXT@
*/*/*.@SHLIBEXT@
*/*/*/*.@SHLIBEXT@ \
1936 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1937 $(MODULES
) $(TORTURE_PROGS
) $(LIBSMBCLIENT
) $(LIBADDNS
) \
1938 $(LIBSMBSHAREMODES
) $(EVERYTHING_PROGS
) $(LIBMSRPC
) \
1939 .headers.stamp
*/src
/*.o proto_exists
1942 # Making this target will just make sure that the prototype files
1943 # exist, not necessarily that they are up to date. Since they're
1944 # removed by "make clean" this will always be run when you do anything
1946 proto_exists
: include/proto.h
include/build_env.h \
1947 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1948 client
/client_proto.h utils
/net_proto.h utils
/ntlm_auth_proto.h smbd
/build_options.c
1952 @echo Removing prototype headers
1953 @
rm -f
include/proto.h
include/build_env.h \
1954 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1955 client
/client_proto.h utils
/net_proto.h \
1956 smbd
/build_options.c utils
/ntlm_auth_proto.h \
1957 utils
/passwd_proto.h
1959 MKPROTO_SH
= $(srcdir)/script
/mkproto.sh
1961 include/proto.h
: smbd
/build_options.c
1962 @echo Building
include/proto.h
1963 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1964 -h _PROTO_H_
$(builddir
)/include/proto.h \
1967 include/build_env.h
: script
/build_env.sh
1968 @echo Building
include/build_env.h
1969 @
$(SHELL
) $(srcdir)/script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) \
1970 > $(builddir
)/include/build_env.h
1972 nsswitch
/winbindd_proto.h
:
1973 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1974 -h _WINBINDD_PROTO_H_
$(builddir
)/nsswitch
/winbindd_proto.h \
1978 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1979 -h _SWAT_PROTO_H_
$(builddir
)/web
/swat_proto.h \
1982 client
/client_proto.h
:
1983 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1984 -h _CLIENT_PROTO_H_
$(builddir
)/client
/client_proto.h \
1988 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1989 -h _NET_PROTO_H_
$(builddir
)/utils
/net_proto.h \
1992 utils
/passwd_proto.h
:
1993 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1994 -h _PASSWD_PROTO_H_
$(builddir
)/utils
/passwd_proto.h \
1997 utils
/ntlm_auth_proto.h
:
1998 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1999 -h _NTLM_AUTH_PROTO_H_
$(builddir
)/utils
/ntlm_auth_proto.h \
2002 # "make headers" or "make proto" calls a subshell because we need to
2003 # make sure these commands are executed in sequence even for a
2006 $(MAKE
) delheaders
; \
2007 $(MAKE
) smbd
/build_options.c
; \
2008 $(MAKE
) include/proto.h
; \
2009 $(MAKE
) include/build_env.h
; \
2010 $(MAKE
) nsswitch
/winbindd_proto.h
; \
2011 $(MAKE
) web
/swat_proto.h
; \
2012 $(MAKE
) client
/client_proto.h
; \
2013 $(MAKE
) utils
/ntlm_auth_proto.h
; \
2014 $(MAKE
) utils
/net_proto.h
; \
2015 $(MAKE
) utils
/passwd_proto.h
;
2019 .PHONY
: headers proto
2022 etags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2025 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2027 realclean: clean delheaders
2028 -rm -f config.log bin
/.dummy script
/findsmb script
/gen-8bit-gap.sh
2029 -rm -f script
/installbin.sh script
/uninstallbin.sh
2031 distclean: realclean
2033 -rm -f
include/config.h Makefile
2034 -rm -f config.status config.cache so_locations
2037 realdistclean
: distclean
2038 -rm -f
include/config.h.in
2039 -rm -f
include/version.h
2042 # this target is really just for my use. It only works on a limited
2043 # range of machines and is used to produce a list of potentially
2044 # dead (ie. unused) functions in the code. (tridge)
2046 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
2047 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
2048 comm
-13 nmused.txt nmfns.txt
2051 # when configure.in is updated, reconfigure
2052 $(srcdir)/configure
: $(srcdir)/configure.in
2053 @echo
"WARNING: you need to rerun ./autogen.sh"
2055 config.status
: $(srcdir)/configure
2056 @echo
"WARNING: you need to run ./configure"
2058 Makefile
: $(srcdir)/Makefile.in config.status
2059 @echo
"WARNING: you need to run ./config.status"
2061 ######################################################################
2062 # Samba Testing Framework
2064 # Check for NSS module problems.
2065 test_nss_modules
: nss_modules
2066 @echo
"Testing $(NSS_MODULES) "
2067 @for module in
$(NSS_MODULES
); do \
2068 .
/script
/tests
/dlopen.sh
$${module} \
2072 # Check for PAM module problems. Specifically, check that every module we
2073 # built can actually be loaded by a minimal PAM-aware application.
2074 test_pam_modules
: pam_modules
2075 @echo
"Testing $(PAM_MODULES) "
2076 @for module in
$(PAM_MODULES
); do \
2077 .
/script
/tests
/dlopen.sh
-lpam
-ldl bin
/$${module}.@SHLIBEXT@ \
2082 ## Targets for 'make test'
2084 test: all torture timelimit
2085 @echo Running Test suite
2086 @sh
$(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"
2088 valgrindtest
: all torture timelimit
2089 @echo Running Test suite with valgrind
2090 @NMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2091 SMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2092 VALGRIND
="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/st/valgrind.log" \
2093 $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"