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
97 # set these to where to find various files
98 # These can be overridden by command line switches (see smbd(8))
99 # or in smb.conf (see smb.conf(5))
100 LOGFILEBASE
= @logfilebase@
101 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
102 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
104 # This is where smbpasswd et al go
105 PRIVATEDIR
= @privatedir@
107 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
108 PRIVATE_DIR
= $(PRIVATEDIR
)
110 # This is where SWAT images and help files go
113 # the directory where lock files go
116 # the directory where pid files go
119 LIBSMBCLIENT
=bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
123 LIBMSRPC
=bin
/libmsrpc.a @LIBMSRPC_SHARED@
127 LIBSMBSHAREMODES
=bin
/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
128 LIBSMBSHAREMODES_MAJOR
=0
129 LIBSMBSHAREMODES_MINOR
=2
131 LIBADDNS
=bin
/libaddns.a @LIBADDNS_SHARED@
135 FLAGS1
= $(CFLAGS
) @FLAGS1@ @SAMBA_CPPFLAGS@
$(CPPFLAGS
)
139 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
140 FLAGS
= $(ISA
) $(FLAGS5
) -I
$(srcdir)/lib
-D_SAMBA_BUILD_
=3
142 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
143 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
144 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
145 -DSBINDIR
=\"$(SBINDIR
)\" \
146 -DBINDIR
=\"$(BINDIR
)\" \
147 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
148 -DSWATDIR
=\"$(SWATDIR
)\" \
149 -DLOCKDIR
=\"$(LOCKDIR
)\" \
150 -DPIDDIR
=\"$(PIDDIR
)\" \
151 -DLIBDIR
=\"$(LIBDIR
)\" \
152 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
153 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
154 -DCONFIGDIR
=\"$(CONFIGDIR
)\"
156 # Note that all executable programs now provide for an optional executable suffix.
158 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ bin
/swat@EXEEXT@ @EXTRA_SBIN_PROGS@
160 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@
162 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
163 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
164 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
165 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
167 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
168 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ \
169 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
170 BIN_PROGS4
= bin
/ldbedit@EXEEXT@ bin
/ldbsearch@EXEEXT@ bin
/ldbadd@EXEEXT@ \
171 bin
/ldbdel@EXEEXT@ bin
/ldbmodify@EXEEXT@
173 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
174 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
175 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
176 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
177 bin
/tdbtorture@EXEEXT@
179 BIN_PROGS
= $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) $(BIN_PROGS4
) @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@
181 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
182 bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
183 bin
/log2pcap@EXEEXT@ bin
/sharesec@EXEEXT@ bin
/ndrdump@EXEEXT@
185 SHLIBS
= @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@ @LIBADDNS@
187 PAM_MODULES
= @PAM_MODULES@
189 NSS_MODULES
= @NSS_MODULES@
191 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
193 VFS_MODULES
= @VFS_MODULES@
194 PDB_MODULES
= @PDB_MODULES@
195 RPC_MODULES
= @RPC_MODULES@
196 IDMAP_MODULES
= @IDMAP_MODULES@
197 CHARSET_MODULES
= @CHARSET_MODULES@
198 AUTH_MODULES
= @AUTH_MODULES@
199 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
200 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
201 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
)
203 ######################################################################
205 ######################################################################
207 TDBBASE_OBJ
= lib
/tdb
/common
/tdb.o lib
/tdb
/common
/dump.o lib
/tdb
/common
/error.o \
208 lib
/tdb
/common
/freelist.o lib
/tdb
/common
/freelistcheck.o \
209 lib
/tdb
/common
/io.o lib
/tdb
/common
/lock.o \
210 lib
/tdb
/common
/open.o lib
/tdb
/common
/transaction.o \
211 lib
/tdb
/common
/traverse.o
213 TDB_OBJ
= $(TDBBASE_OBJ
) lib
/util_tdb.o\
214 lib
/dbwrap.o lib
/dbwrap_tdb.o
216 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
218 VERSION_OBJ
= lib
/version.o
220 DOSERR_OBJ
= libsmb
/doserr.o
222 WBCOMMON_OBJ
= nsswitch
/wb_common.o
226 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
228 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
230 ERRORMAP_OBJ
= libsmb
/errormap.o
232 PASSCHANGE_OBJ
= libsmb
/passchange.o
235 LIBNDR_OBJ
= librpc
/ndr
/ndr_basic.o librpc
/ndr
/ndr.o librpc
/ndr
/ndr_misc.o \
236 librpc
/ndr
/ndr_sec_helper.o librpc
/ndr
/ndr_string.o librpc
/ndr
/sid.o
238 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
240 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_unixinfo.o librpc
/gen_ndr
/ndr_lsa.o \
241 librpc
/gen_ndr
/ndr_dfs.o librpc
/gen_ndr
/ndr_echo.o \
242 librpc
/gen_ndr
/ndr_winreg.o librpc
/gen_ndr
/ndr_initshutdown.o \
243 librpc
/gen_ndr
/ndr_srvsvc.o librpc
/gen_ndr
/ndr_svcctl.o \
244 librpc
/gen_ndr
/ndr_eventlog.o librpc
/gen_ndr
/ndr_wkssvc.o \
245 librpc
/gen_ndr
/ndr_notify.o \
246 librpc
/gen_ndr
/ndr_epmapper.o
248 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
250 # this includes only the low level parse code, not stuff
251 # that requires knowledge of security contexts
252 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
) rpc_parse
/parse_sec.o
254 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o rpc_parse
/parse_net.o
256 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
258 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
260 TALLOC_OBJ
= lib
/talloc
/talloc.o
262 LIB_WITHOUT_PROTO_OBJ
= $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) $(TALLOC_OBJ
)
264 LIB_WITH_PROTO_OBJ
= $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
265 lib
/interface.o lib
/md4.o \
266 lib
/interfaces.o lib
/pidfile.o \
267 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/time.o \
268 lib
/ufc.o lib
/genrand.o lib
/username.o \
269 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
270 lib
/bitmap.o lib
/crc32.o lib
/dprintf.o \
271 lib
/xfile.o lib
/wins_srv.o lib
/util_reg.o \
272 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
273 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
274 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
275 lib
/substitute.o lib
/fsusage.o \
276 lib
/ms_fnmatch.o lib
/select.o lib
/messages.o \
277 lib
/tallocmsg.o lib
/dmallocmsg.o libsmb
/smb_signing.o \
278 lib
/md5.o lib
/hmacmd5.o lib
/arc4.o lib
/iconv.o \
279 nsswitch
/wb_client.o
$(WBCOMMON_OBJ
) \
280 lib
/pam_errors.o intl
/lang_tdb.o lib
/conn_tdb.o \
281 lib
/adt_tree.o lib
/gencache.o
$(TDB_OBJ
) \
282 lib
/module.o lib
/events.o lib
/ldap_escape.o @CHARSET_STATIC@ \
283 lib
/secdesc.o lib
/util_seaccess.o lib
/secace.o lib
/secacl.o \
284 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
286 LIB_OBJ
= $(LIB_WITHOUT_PROTO_OBJ
) $(LIB_WITH_PROTO_OBJ
)
288 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
289 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
291 READLINE_OBJ
= lib
/readline.o
293 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
294 # Be sure to include them into your application
295 POPT_LIB_OBJ
= lib
/popt_common.o
297 PARAM_OBJ
= dynconfig.o param
/loadparm.o param
/params.o lib
/sharesec.o
299 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
301 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
302 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
303 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(TALLOC_OBJ
)
305 LIBGPO_OBJ0
= libgpo
/gpo_ldap.o libgpo
/gpo_parse.o libgpo
/gpo_util.o \
306 libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o libgpo
/gpo_sec.o
307 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
309 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
310 libads
/krb5_setpw.o libads
/ldap_user.o \
311 libads
/ads_struct.o libads
/kerberos_keytab.o \
312 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
313 libads
/authdata.o libads
/cldap.o
315 LIBADS_SERVER_OBJ
= libads
/util.o libads
/kerberos_verify.o \
318 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
320 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
321 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
323 LIBSAMBA_OBJ
= libsmb
/nterr.o libsmb
/dcerpc_err.o libsmb
/smbdes.o \
324 libsmb
/smbencrypt.o libsmb
/ntlm_check.o \
325 libsmb
/ntlmssp.o libsmb
/ntlmssp_parse.o libsmb
/ntlmssp_sign.o
327 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
328 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
329 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
330 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
331 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
332 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
333 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
334 libsmb
/clioplock.o
$(ERRORMAP_OBJ
) libsmb
/clirap2.o \
335 libsmb
/smb_seal.o
$(DOSERR_OBJ
) \
336 $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(LIBNMB_OBJ
)
338 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o
340 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
341 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
342 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
343 rpc_client
/cli_ds.o rpc_client
/cli_svcctl.o
345 LIBMSRPC_GEN_OBJ
= librpc
/gen_ndr
/cli_unixinfo.o librpc
/gen_ndr
/cli_lsa.o \
346 librpc
/gen_ndr
/cli_dfs.o librpc
/gen_ndr
/cli_echo.o \
347 librpc
/gen_ndr
/cli_srvsvc.o \
348 librpc
/gen_ndr
/cli_winreg.o librpc
/gen_ndr
/cli_initshutdown.o \
349 librpc
/gen_ndr
/cli_eventlog.o librpc
/gen_ndr
/cli_epmapper.o \
350 $(LIBNDR_GEN_OBJ
) $(LIBNDR_OBJ
) $(RPCCLIENT_NDR_OBJ
)
352 REGOBJS_OBJ
= registry
/reg_objects.o
354 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
355 registry
/reg_db.o registry
/reg_eventlog.o registry
/reg_shares.o \
356 registry
/reg_util.o registry
/reg_dynamic.o registry
/reg_perfcount.o \
357 registry
/reg_smbconf.o registry
/reg_api.o \
358 registry
/reg_frontend_hilvl.o
360 RPC_LSA_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o librpc
/gen_ndr
/srv_lsa.o
362 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o
364 RPC_SAMR_OBJ
= rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o \
365 rpc_server
/srv_samr_util.o
367 RPC_UNIXINFO_OBJ
= librpc
/gen_ndr
/srv_unixinfo.o rpc_server
/srv_unixinfo_nt.o
368 REGFIO_OBJ
= registry
/regfio.o
370 RPC_EPMAPPER_OBJ
= librpc
/gen_ndr
/srv_epmapper.o rpc_server
/srv_epmapper_nt.o
372 RPC_REG_OBJ
= librpc
/gen_ndr
/srv_winreg.o rpc_server
/srv_winreg_nt.o
$(REGFIO_OBJ
)
373 RPC_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
375 RPC_LSA_DS_OBJ
= rpc_server
/srv_lsa_ds.o rpc_server
/srv_lsa_ds_nt.o
377 RPC_SVC_OBJ
= librpc
/gen_ndr
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o
379 RPC_WKS_OBJ
= librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
381 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl.o rpc_server
/srv_svcctl_nt.o \
382 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
383 services
/svc_netlogon.o services
/svc_winreg.o \
386 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs.o rpc_server
/srv_ntsvcs_nt.o
388 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
390 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
392 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog.o rpc_server
/srv_eventlog_nt.o rpc_server
/srv_eventlog_lib.o
394 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
395 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
397 RPC_ECHO_OBJ
= librpc
/gen_ndr
/srv_echo.o rpc_server
/srv_echo_nt.o
399 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
401 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o
$(RPC_PARSE_OBJ2
) \
402 rpc_parse
/parse_samr.o \
403 rpc_parse
/parse_ds.o rpc_parse
/parse_spoolss.o \
404 rpc_parse
/parse_eventlog.o rpc_parse
/parse_buffer.o \
405 rpc_parse
/parse_ntsvcs.o rpc_parse
/parse_svcctl.o
$(REGOBJS_OBJ
)
407 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
409 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
411 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
413 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
414 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
415 passdb
/util_unixsids.o passdb
/lookup_sid.o \
416 passdb
/login_cache.o @PDB_STATIC@ \
417 lib
/account_pol.o lib
/privileges.o lib
/util_nscd.o
419 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
420 CP850_OBJ
= modules
/CP850.o
421 CP437_OBJ
= modules
/CP437.o
422 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
424 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o
426 PROFILE_OBJ
= profile
/profile.o
427 PROFILES_OBJ
= utils
/profiles.o \
428 $(REGFIO_OBJ
) $(REGOBJS_OBJ
) $(ERRORMAP_OBJ
) \
429 $(RPC_PARSE_OBJ1
) $(PARAM_OBJ
) $(LIBSAMBA_OBJ
) \
430 $(DOSERR_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
431 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
433 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
435 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
437 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
438 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
439 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
440 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
441 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
442 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
443 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
444 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
445 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
446 VFS_CAP_OBJ
= modules
/vfs_cap.o
447 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
448 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
449 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
450 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
451 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
452 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
453 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
454 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
455 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
456 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
457 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
458 VFS_CATIA_OBJ
= modules
/vfs_catia.o
459 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
460 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
461 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
462 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
463 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
464 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
466 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
468 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
470 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o
472 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
473 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
474 AUTH_SAM_OBJ
= auth
/auth_sam.o
475 AUTH_SERVER_OBJ
= auth
/auth_server.o
476 AUTH_UNIX_OBJ
= auth
/auth_unix.o
477 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
478 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
480 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
481 auth
/auth_compat.o auth
/auth_ntlmssp.o \
482 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
484 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_map.o smbd
/mangle_hash2.o
486 SMBD_OBJ_MAIN
= smbd
/server.o
488 BUILDOPT_OBJ
= smbd
/build_options.o
490 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
491 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
492 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
493 smbd
/share_access.o smbd
/fileio.o \
494 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
495 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
496 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
497 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
498 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
499 smbd
/vfs.o smbd
/statcache.o smbd
/seal.o \
500 smbd
/posix_acls.o lib
/sysacls.o
$(SERVER_MUTEX_OBJ
) \
501 smbd
/process.o smbd
/service.o smbd
/error.o \
502 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
503 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
504 smbd
/change_trust_pw.o smbd
/fake_file.o \
505 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
506 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
507 smbd
/dmapi.o lib
/launchd.o smbd
/sockinit.o \
508 $(MANGLE_OBJ
) @VFS_STATIC@
510 SMBD_OBJ_BASE
= $(PARAM_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
511 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
512 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
513 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
514 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
515 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
516 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
517 $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
518 $(BUILDOPT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
520 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
521 printing
/print_cups.o printing
/print_generic.o \
522 printing
/lpq_parse.o printing
/load.o \
523 printing
/print_iprint.o printing
/print_test.o
525 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
526 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
528 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
529 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
530 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
531 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
532 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
533 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
534 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
535 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
536 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
537 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
538 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
539 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
540 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
542 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
543 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
545 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
546 web
/swat.o web
/neg_lang.o
548 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) \
549 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) \
550 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
551 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
552 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
554 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
555 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
556 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
557 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) \
560 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
561 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
562 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
563 $(PRINTBASE_OBJ
) $(ERRORMAP_OBJ
)
565 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
566 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
567 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
568 rpc_client
/cli_pipe.o
$(RPC_PARSE_OBJ2
) \
570 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
573 TESTPARM_OBJ
= utils
/testparm.o \
574 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
575 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
577 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
579 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
580 $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
581 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
582 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
584 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) \
585 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
586 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) libsmb
/asn1.o \
587 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) libsmb
/errormap.o
589 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ
)
591 DISPLAY_SEC_OBJ
= lib
/display_sec.o
593 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
594 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
595 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
596 rpcclient
/cmd_dfs.o \
597 rpcclient
/cmd_ds.o rpcclient
/cmd_echo.o \
598 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
599 rpcclient
/cmd_unixinfo.o
$(DISPLAY_SEC_OBJ
)
601 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
602 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
603 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
604 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
605 $(LIBADS_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
606 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
608 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
609 $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @BUILD_INIPARSER@
611 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
612 libsmb
/libsmb_cache.o \
613 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
614 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
615 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
616 $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
618 CAC_OBJ
= $(LIBSMBCLIENT_OBJ
) \
619 libmsrpc
/libmsrpc.o libmsrpc
/libmsrpc_internal.o \
620 libmsrpc
/cac_lsarpc.o libmsrpc
/cac_winreg.o libmsrpc
/cac_samr.o \
621 libmsrpc
/cac_svcctl.o
623 LIBSMBSHAREMODES_OBJ
= libsmb
/smb_share_modes.o
$(TDB_BASE_OBJ
)
625 # This shared library is intended for linking with unit test programs
626 # to test Samba internals. It's called libbigballofmud.so to
627 # discourage casual usage.
629 LIBBIGBALLOFMUD_MAJOR
= 0
631 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) \
632 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
633 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
635 CLIENT_OBJ1
= client
/client.o client
/clitar.o rpc_client
/cli_pipe.o \
639 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
640 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
641 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
642 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
645 TOOL_OBJ
= client
/smbctool.o client
/clitar.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
646 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
647 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
650 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_domain.o utils
/net_help.o \
651 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
652 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
653 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
654 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
655 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
656 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
657 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
658 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
661 NET_REG_OBJ
= registry
/reg_api.o \
662 registry
/reg_frontend_hilvl.o \
663 registry
/reg_smbconf.o \
665 registry
/reg_util.o \
667 registry
/reg_cachehook.o \
668 registry
/reg_eventlog.o \
669 registry
/reg_perfcount.o \
670 registry
/reg_dynamic.o \
674 NET_OBJ
= $(NET_OBJ1
) $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
675 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
676 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
677 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
678 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
679 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
680 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
681 $(LDB_OBJ
) $(LIBGPO_OBJ
) $(INIPARSER_OBJ
) $(DISPLAY_SEC_OBJ
) \
684 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
685 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
687 MOUNT_OBJ
= client
/smbmount.o \
688 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
690 MNT_OBJ
= client
/smbmnt.o
$(VERSION_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
692 UMOUNT_OBJ
= client
/smbumount.o
$(SOCKET_WRAPPER_OBJ
)
694 CIFS_MOUNT_OBJ
= client
/mount.cifs.o
696 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o
698 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
699 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
701 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
702 torture
/denytest.o torture
/mangle_test.o
704 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
705 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
707 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
708 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
710 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
711 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
713 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
714 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
716 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
717 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
719 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
720 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
721 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
)
724 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
726 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
728 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
730 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
731 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
733 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
734 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
735 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) \
736 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
738 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
740 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
741 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
742 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
744 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
746 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
747 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
749 registry
/reg_eventlog.o rpc_server
/srv_eventlog_lib.o registry
/reg_util.o \
752 SHARESEC_OBJ0
= utils
/sharesec.o
753 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
754 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
755 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
757 TALLOCTORT_OBJ
= lib
/talloc
/testsuite.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
758 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LIBSAMBA_OBJ
) $(SECRETS_OBJ
)
760 REPLACETORT_OBJ
= lib
/replace
/test/testsuite.o \
761 lib
/replace
/test/os2_delete.o \
762 lib
/replace
/test/strptime.o \
765 NDRDUMP_OBJ
= librpc
/tools
/ndrdump.o \
766 $(PARAM_OBJ
) $(LIBNDR_OBJ
) $(LIBNDR_GEN_OBJ
) \
767 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
768 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(SECRETS_OBJ
)
770 RPCTORTURE_OBJ
= torture
/rpctorture.o \
771 rpcclient
/display.o \
772 rpcclient
/cmd_lsarpc.o \
773 rpcclient
/cmd_wkssvc.o \
774 rpcclient
/cmd_samr.o \
775 rpcclient
/cmd_srvsvc.o \
776 rpcclient
/cmd_netlogon.o \
777 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
778 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) $(SECRETS_OBJ
)
780 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
782 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(SECRETS_OBJ
) \
783 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
)
785 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) $(LIBNDR_OBJ
) $(RPCCLIENT_NDR_OBJ
) \
786 $(LIBNDR_GEN_OBJ
) $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(LIBSMB_OBJ
) \
787 $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
789 $(LIB_WITH_PROTO_OBJ
) \
790 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) $(KRBCLIENT_OBJ
) \
791 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
792 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
793 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
794 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
795 $(AUTH_SAM_OBJ
) $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
796 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) $(RPC_LSA_DS_OBJ
) \
797 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
) \
798 $(RPC_ECHO_OBJ
) $(RPC_SVCCTL_OBJ
) $(RPC_EVENTLOG_OBJ
) $(SMBLDAP_OBJ
) \
799 $(IDMAP_OBJ
) libsmb
/spnego.o
$(PASSCHANGE_OBJ
) $(RPC_UNIXINFO_OBJ
) \
800 $(RPC_EPMAPPER_OBJ
) $(RPC_NTSVCS_OBJ
) $(RPC_INITSHUTDOWN_OBJ
) \
801 utils
/passwd_util.o
$(LIBGPO_OBJ
) $(NSS_INFO_OBJ
)
803 WINBIND_WINS_NSS_OBJ
= nsswitch
/wins.o
$(PARAM_OBJ
) \
804 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
806 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
807 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o \
808 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
809 $(SECRETS_OBJ
) $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
810 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
)
812 IDMAP_OBJ
= nsswitch
/idmap.o nsswitch
/idmap_cache.o nsswitch
/idmap_util.o @IDMAP_STATIC@
814 NSS_INFO_OBJ
= nsswitch
/nss_info.o @NSS_INFO_STATIC@
816 IDMAP_NSS_OBJ
= sam
/idmap_nss.o @IDMAP_NSS_STATIC@
819 nsswitch
/winbindd.o \
820 nsswitch
/winbindd_sockinit.o \
821 nsswitch
/winbindd_user.o \
822 nsswitch
/winbindd_group.o \
823 nsswitch
/winbindd_util.o \
824 nsswitch
/winbindd_cache.o \
825 nsswitch
/winbindd_pam.o \
826 nsswitch
/winbindd_sid.o \
827 nsswitch
/winbindd_misc.o \
828 nsswitch
/winbindd_cm.o \
829 nsswitch
/winbindd_wins.o \
830 nsswitch
/winbindd_rpc.o \
831 nsswitch
/winbindd_reconnect.o \
832 nsswitch
/winbindd_ads.o \
833 nsswitch
/winbindd_passdb.o \
834 nsswitch
/winbindd_dual.o \
835 nsswitch
/winbindd_async.o \
836 nsswitch
/winbindd_creds.o \
837 nsswitch
/winbindd_cred_cache.o \
838 nsswitch
/winbindd_ccache_access.o \
842 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
843 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
844 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
845 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
846 $(SECRETS_OBJ
) $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
847 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
848 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) lib
/launchd.o \
849 $(LIBADS_SERVER_OBJ
) $(SERVER_MUTEX_OBJ
) $(LDB_OBJ
)
851 WBINFO_OBJ
= nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
852 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
854 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
856 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
857 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
858 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
859 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
860 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
862 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
863 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
864 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
866 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
867 lib
/ldb
/modules
/objectclass.o \
868 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
870 # enabled in configure.in
871 LDB_LDAP_OBJ
=@LDBLDAP@
873 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
875 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
876 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
877 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
878 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
879 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
880 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
881 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
882 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
885 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
886 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
887 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
888 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
889 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
891 SMB_KRB5_LOCATOR_OBJ1
= libads
/smb_krb5_locator.o
892 SMB_KRB5_LOCATOR_OBJ
= $(SMB_KRB5_LOCATOR_OBJ1
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
893 $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
)
895 POPT_OBJ
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
896 popt
/popthelp.o popt
/poptparse.o
898 INIPARSER_OBJ
= iniparser
/src
/iniparser.o iniparser
/src
/dictionary.o \
899 iniparser
/src
/strlib.o
901 TDBBACKUP_OBJ
= lib
/tdb
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
902 $(TDBBASE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
904 TDBTOOL_OBJ
= lib
/tdb
/tools
/tdbtool.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
905 $(SOCKET_WRAPPER_OBJ
)
907 TDBDUMP_OBJ
= lib
/tdb
/tools
/tdbdump.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
908 $(SOCKET_WRAPPER_OBJ
)
910 TDBTORTURE_OBJ
= lib
/tdb
/tools
/tdbtorture.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
911 $(SOCKET_WRAPPER_OBJ
)
914 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
916 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
917 libsmb
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
918 libads
/kerberos_verify.o
$(SECRETS_OBJ
) $(SERVER_MUTEX_OBJ
) \
919 libads
/authdata.o
$(RPC_PARSE_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
920 $(SMBLDAP_OBJ
) $(DOSERR_OBJ
) rpc_parse
/parse_net.o
$(LIBNMB_OBJ
) \
921 $(LDB_OBJ
) libsmb
/errormap.o
923 ######################################################################
925 ######################################################################
926 all : SHOWFLAGS
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
927 $(SHLIBS
) $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @EXTRA_ALL_TARGETS@
929 nss_modules
: $(NSS_MODULES
)
931 pam_modules
: $(PAM_MODULES
)
933 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
935 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
937 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
939 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
941 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
943 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
945 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
947 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
949 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
951 smbctool
: SHOWFLAGS bin
/smbctool@EXEEXT@
953 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
955 rpctorture
: SHOWFLAGS bin
/rpctorture@EXEEXT@
957 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
959 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
961 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
963 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
965 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
967 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
969 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
971 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
972 @WINBIND_WINS_NSS@ bin
/pam_winbind.@SHLIBEXT@
974 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
976 modules
: SHOWFLAGS
$(MODULES
)
978 cac
: SHOWFLAGS
$(LIBMSRPC
)
981 #####################################################################
983 IDL_FILES
= unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
984 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
988 @IDL_FILES
="$(IDL_FILES)" CPP
="$(CPP)" PERL
="$(PERL)" \
989 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(PIDL_ARGS
)
992 #####################################################################
995 everything
: all libsmbclient debug2html smbfilter talloctort replacetort modules torture \
1002 @echo
"Using FLAGS = $(FLAGS)"
1003 @echo
" PICFLAG = $(PICFLAG)"
1004 @echo
" LIBS = $(LIBS)"
1005 @echo
" LDFLAGS = $(LDFLAGS)"
1006 @echo
" DYNEXP = $(DYNEXP)"
1007 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1008 @echo
" SHLIBEXT = @SHLIBEXT@"
1009 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1011 MAKEDIR
= || exec false
; \
1012 if
test -d
"$$dir"; then
:; else \
1013 echo mkdir
"$$dir"; \
1014 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1015 test -d
"$$dir" || \
1017 exec false
; fi || exec false
1019 # Run a static checker.
1020 CHECK_CC
= $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1021 # Compile a source file.
1022 COMPILE_CC
= $(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1023 # Compile a source file with the installation paths defined.
1024 COMPILE_CC_PATH
= $(CC
) -I.
-I
$(srcdir) $(PATH_FLAGS
) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1026 COMPILE
= $(COMPILE_CC
)
1028 # BEGIN GNU make specific
1029 # Rewrite the COMPILE rule to generate dependencies as a side-effect.
1030 # This is is actually toolchain-independent, but making use of the dependency
1031 # files requires GNU make, so it's pointless to have them otherwise.
1033 @ifGNUmake@COMPILE_DEPENDS
= source
=$< object
=$@ libtool
=no \
1034 @ifGNUmake@ tmpdepfile
=$(DEPDIR
)/$*.TPo depfile
=$(DEPDIR
)/$*.d \
1035 @ifGNUmake@ DEPDIR
=$(DEPDIR
) @CCDEPMODE@ \
1036 @ifGNUmake@
$(srcdir)/depcomp
$(COMPILE_CC
)
1037 @ifGNUmake@COMPILE
= $(COMPILE_DEPENDS
)
1038 # END GNU make specific
1041 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1042 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1043 @if
test -n
"$(CC_CHECKER)"; then \
1044 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1047 @echo Compiling
$*.c
1048 @
$(COMPILE
) && exit
0;\
1049 echo
"The following command failed:" 1>&2;\
1050 echo
"$(COMPILE_CC)" 1>&2;\
1051 $(COMPILE_CC
) >/dev
/null
2>&1
1052 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
1054 # BEGIN GNU make specific
1055 # Include all the generated dependency files. The sort is done to
1056 # remove duplicates.
1057 @ifGNUmake@DEPENDS_OBJ
= $(SMBD_SRV_OBJ
) $(NET_OBJ
) $(WINBINDD_OBJ
)
1058 @ifGNUmake@
-include $(patsubst %.o
, %.d
, $(sort $(DEPENDS_OBJ
)))
1059 # END GNU make specific
1061 PRECOMPILED_HEADER
= $(builddir
)/include/includes.h.gch
1063 # this adds support for precompiled headers. To use it, install a snapshot
1064 # of gcc-3.4 and run 'make pch' before you do the main build.
1066 rm -f
$(PRECOMPILED_HEADER
)
1067 $(MAKE
) $(PRECOMPILED_HEADER
)
1069 $(PRECOMPILED_HEADER
): $(srcdir)/include/includes.h
1072 # These dependencies are only approximately correct: we want to make
1073 # sure Samba's paths are updated if ./configure is re-run. Really it
1074 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1075 # but since we also require "make install prefix=/opt/samba" *not* to
1076 # rebuild it's a bit hard.
1078 dynconfig.o
: dynconfig.c Makefile
1079 @echo Compiling
$*.c
1080 @
$(COMPILE_CC_PATH
) && exit
0;\
1081 echo
"The following command failed:" 1>&2;\
1082 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1083 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1085 lib
/pidfile.o
: lib
/pidfile.c
1086 @echo Compiling
$*.c
1087 @
$(COMPILE_CC_PATH
) && exit
0;\
1088 echo
"The following command failed:" 1>&2;\
1089 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1090 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1092 lib
/version.o
: lib
/version.c
include/version.h
1093 @echo Compiling
$*.c
1094 @
$(COMPILE_CC_PATH
) && exit
0;\
1095 echo
"The following command failed:" 1>&2;\
1096 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1097 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1099 smbd
/build_options.o
: smbd
/build_options.c Makefile
include/config.h
include/build_env.h
include/proto.h
1100 @echo Compiling
$*.c
1101 @
$(COMPILE_CC_PATH
) && exit
0;\
1102 echo
"The following command failed:" 1>&2;\
1103 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1104 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1106 smbd
/build_options.c
: include/config.h.in script
/mkbuildoptions.awk
1108 @
dir=smbd
$(MAKEDIR
) && $(AWK
) -f
$(srcdir)/script
/mkbuildoptions.awk
> $(builddir
)/smbd
/build_options.c
< $(srcdir)/include/config.h.in
1111 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
1112 dir=bin
$(MAKEDIR
); fi
1113 @
: >> $@ ||
: > $@
# what a fancy emoticon!
1115 bin
/smbd@EXEEXT@
: proto_exists
$(SMBD_OBJ
) @BUILD_POPT@ bin
/.dummy
1117 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LDAP_LIBS
) \
1118 $(KRB5LIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
1119 $(ACL_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@ @SMBD_LIBS@
1121 bin
/nmbd@EXEEXT@
: proto_exists
$(NMBD_OBJ
) @BUILD_POPT@ bin
/.dummy
1123 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1125 bin
/swat@EXEEXT@
: proto_exists
$(SWAT_OBJ
) @BUILD_POPT@ bin
/.dummy
1127 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINT_LIBS
) \
1128 $(AUTH_LIBS
) $(LIBS
) $(PASSDB_LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1130 bin
/rpcclient@EXEEXT@
: proto_exists
$(RPCCLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
1132 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(PASSDB_LIBS
) $(RPCCLIENT_OBJ
) \
1133 $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@ \
1134 $(KRB5LIBS
) $(LDAP_LIBS
)
1136 bin
/smbclient@EXEEXT@
: proto_exists
$(CLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
1138 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1140 bin
/smbctool@EXEEXT@
: proto_exists
$(TOOL_OBJ
) @BUILD_POPT@ bin
/.dummy
1142 @
$(CC
) $(FLAGS
) -o
$@
$(TOOL_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) -Lbin
-lsmbclient
1144 bin
/net@EXEEXT@
: proto_exists
$(NET_OBJ
) @BUILD_POPT@ @BUILD_INIPARSER@ bin
/.dummy
1146 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @INIPARSERLIBS@
1148 bin
/profiles@EXEEXT@
: proto_exists
$(PROFILES_OBJ
) @BUILD_POPT@ bin
/.dummy
1150 @
$(CC
) $(FLAGS
) -o
$@
$(PROFILES_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1152 bin
/smbspool@EXEEXT@
: proto_exists
$(CUPS_OBJ
) bin
/.dummy
1154 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1156 bin
/smbmount@EXEEXT@
: proto_exists
$(MOUNT_OBJ
) bin
/.dummy
1158 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1160 bin
/smbmnt@EXEEXT@
: proto_exists
$(MNT_OBJ
) bin
/.dummy
1162 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1164 bin
/smbumount@EXEEXT@
: proto_exists
$(UMOUNT_OBJ
) bin
/.dummy
1166 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1168 bin
/mount.cifs@EXEEXT@
: $(CIFS_MOUNT_OBJ
) bin
/.dummy
1170 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1172 bin
/umount.cifs@EXEEXT@
: $(CIFS_UMOUNT_OBJ
) bin
/.dummy
1174 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1176 bin
/testparm@EXEEXT@
: proto_exists
$(TESTPARM_OBJ
) @BUILD_POPT@ bin
/.dummy
1178 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1180 bin
/smbstatus@EXEEXT@
: proto_exists
$(STATUS_OBJ
) @BUILD_POPT@ bin
/.dummy
1182 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) \
1185 bin
/smbcontrol@EXEEXT@
: proto_exists
$(SMBCONTROL_OBJ
) @BUILD_POPT@ bin
/.dummy
1187 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) -o
$@ \
1188 $(SMBCONTROL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1189 $(LIBS
) $(LDAP_LIBS
) @LIBUNWIND_PTRACE@ @POPTLIBS@
1191 bin
/smbtree@EXEEXT@
: proto_exists
$(SMBTREE_OBJ
) @BUILD_POPT@ bin
/.dummy
1193 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1195 bin
/smbpasswd@EXEEXT@
: proto_exists
$(SMBPASSWD_OBJ
) @BUILD_POPT@ bin
/.dummy
1197 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(PASSDB_LIBS
) \
1198 $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1200 bin
/pdbedit@EXEEXT@
: proto_exists
$(PDBEDIT_OBJ
) @BUILD_POPT@ bin
/.dummy
1202 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(LDAP_LIBS
)
1204 bin
/smbget@EXEEXT@
: proto_exists
$(SMBGET_OBJ
) @BUILD_POPT@ bin
/.dummy
1206 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGET_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1208 bin
/samtest@EXEEXT@
: $(SAMTEST_OBJ
) @BUILD_POPT@ bin
/.dummy
1210 @
$(CC
) $(FLAGS
) -o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1212 bin
/nmblookup@EXEEXT@
: proto_exists
$(NMBLOOKUP_OBJ
) @BUILD_POPT@ bin
/.dummy
1214 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(LDAP_LIBS
)
1216 bin
/smbtorture@EXEEXT@
: proto_exists
$(SMBTORTURE_OBJ
) bin
/.dummy
1218 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1220 bin
/talloctort@EXEEXT@
: proto_exists
$(TALLOCTORT_OBJ
) bin
/.dummy
1222 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) \
1223 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
)
1225 bin
/replacetort@EXEEXT@
: $(REPLACETORT_OBJ
) bin
/.dummy
1227 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(REPLACETORT_OBJ
) $(LDFLAGS
) \
1230 bin
/masktest@EXEEXT@
: proto_exists
$(MASKTEST_OBJ
) bin
/.dummy
1232 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1234 bin
/msgtest@EXEEXT@
: proto_exists
$(MSGTEST_OBJ
) bin
/.dummy
1236 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1238 bin
/smbcacls@EXEEXT@
: proto_exists
$(SMBCACLS_OBJ
) @BUILD_POPT@ bin
/.dummy
1240 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1241 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1243 bin
/smbcquotas@EXEEXT@
: proto_exists
$(SMBCQUOTAS_OBJ
) @BUILD_POPT@ bin
/.dummy
1245 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCQUOTAS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1246 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1248 bin
/eventlogadm@EXEEXT@
: proto_exists
$(EVTLOGADM_OBJ
) @BUILD_POPT@ bin
/.dummy
1250 @
$(CC
) $(FLAGS
) -o
$@
$(EVTLOGADM_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1252 bin
/sharesec@EXEEXT@
: proto_exists
$(SHARESEC_OBJ
) @BUILD_POPT@ bin
/.dummy
1254 @
$(CC
) $(FLAGS
) -o
$@
$(SHARESEC_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1256 bin
/locktest@EXEEXT@
: proto_exists
$(LOCKTEST_OBJ
) bin
/.dummy
1258 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1260 bin
/nsstest@EXEEXT@
: proto_exists
$(NSSTEST_OBJ
) bin
/.dummy
1262 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1264 bin
/pdbtest@EXEEXT@
: proto_exists
$(PDBTEST_OBJ
) bin
/.dummy
1266 @
$(CC
) $(FLAGS
) -o
$@
$(PDBTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@
1268 bin
/vfstest@EXEEXT@
: proto_exists
$(VFSTEST_OBJ
) @BUILD_POPT@ bin
/.dummy
1270 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) $(ACL_LIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) @SMBD_LIBS@
$(NSCD_LIBS
)
1272 bin
/smbiconv@EXEEXT@
: $(SMBICONV_OBJ
) @BUILD_POPT@ bin
/.dummy
1274 @
$(CC
) $(FLAGS
) -o
$@
$(SMBICONV_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
1276 bin
/log2pcap@EXEEXT@
: proto_exists
$(LOG2PCAP_OBJ
) @BUILD_POPT@ bin
/.dummy
1278 @
$(CC
) $(FLAGS
) -o
$@
$(LOG2PCAP_OBJ
) $(LDFLAGS
) $(DYNEXP
) @POPTLIBS@
$(LIBS
)
1280 bin
/locktest2@EXEEXT@
: proto_exists
$(LOCKTEST2_OBJ
) bin
/.dummy
1282 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1284 bin
/rpctorture@EXEEXT@
: $(RPCTORTURE_OBJ
) bin
/.dummy
1286 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1288 bin
/ndrdump@EXEEXT@
: $(NDRDUMP_OBJ
) bin
/.dummy
1290 @
$(CC
) $(FLAGS
) -o
$@
$(NDRDUMP_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1291 @POPTLIBS@ @LDAP_LIBS@
1293 bin
/debug2html@EXEEXT@
: proto_exists
$(DEBUG2HTML_OBJ
) bin
/.dummy
1295 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
1297 bin
/smbfilter@EXEEXT@
: proto_exists
$(SMBFILTER_OBJ
) bin
/.dummy
1299 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1302 bin
/ldbedit
: proto_exists
$(LDBEDIT_OBJ
) @BUILD_POPT@ bin
/.dummy
1304 @
$(CC
) $(FLAGS
) -o
$@
$(LDBEDIT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1306 bin
/ldbsearch
: proto_exists
$(LDBSEARCH_OBJ
) @BUILD_POPT@ bin
/.dummy
1308 @
$(CC
) $(FLAGS
) -o
$@
$(LDBSEARCH_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1310 bin
/ldbadd
: proto_exists
$(LDBADD_OBJ
) @BUILD_POPT@ bin
/.dummy
1312 @
$(CC
) $(FLAGS
) -o
$@
$(LDBADD_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1314 bin
/ldbmodify
: proto_exists
$(LDBMODIFY_OBJ
) @BUILD_POPT@ bin
/.dummy
1316 @
$(CC
) $(FLAGS
) -o
$@
$(LDBMODIFY_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1318 bin
/ldbdel
: proto_exists
$(LDBDEL_OBJ
) @BUILD_POPT@ bin
/.dummy
1320 @
$(CC
) $(FLAGS
) -o
$@
$(LDBDEL_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1322 bin
/libaddns.@SHLIBEXT@
: proto_exists
$(LIBADDNS_OBJ
)
1323 @echo Linking libaddns shared library
$@
1324 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBADDNS_OBJ
) $(LDFLAGS
) $(LIBS
) \
1325 $(KRB5LIBS
) $(UUID_LIBS
)\
1326 @SONAMEFLAG@
`basename $@`.
$(LIBADDNS_MAJOR
)
1328 bin
/libaddns.a
: proto_exists
$(LIBADDNS_OBJ
)
1329 @echo Linking libaddns non-shared library
$@
1330 @
-$(AR
) -rc
$@
$(LIBADDNS_OBJ
)
1332 bin
/libsmbclient.@SHLIBEXT@
: proto_exists
$(LIBSMBCLIENT_OBJ
)
1333 @echo Linking libsmbclient shared library
$@
1334 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_OBJ
) $(LDFLAGS
) $(LIBS
) \
1335 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1336 @SONAMEFLAG@
`basename $@`.
$(LIBSMBCLIENT_MAJOR
)
1338 bin
/libsmbclient.a
: proto_exists
$(LIBSMBCLIENT_OBJ
)
1339 @echo Linking libsmbclient non-shared library
$@
1340 @
-$(AR
) -rc
$@
$(LIBSMBCLIENT_OBJ
)
1342 bin
/libsmbsharemodes.@SHLIBEXT@
: proto_exists
$(LIBSMBSHAREMODES_OBJ
)
1343 @echo Linking libsmbsharemodes shared library
$@
1344 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBSHAREMODES_OBJ
) $(LDFLAGS
) $(LIBS
) \
1345 $(KRB5LIBS
) $(LDAP_LIBS
) \
1346 @SONAMEFLAG@
`basename $@`.
$(LIBSMBSHAREMODES_MAJOR
)
1348 bin
/libsmbsharemodes.a
: proto_exists
$(LIBSMBSHAREMODES_OBJ
)
1349 @echo Linking libsmbsharemodes non-shared library
$@
1350 @
-$(AR
) -rc
$@
$(LIBSMBSHAREMODES_OBJ
)
1352 bin
/libmsrpc.@SHLIBEXT@
: proto_exists
$(CAC_OBJ
)
1353 @echo Linking libmsrpc shared library
$@
1354 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(CAC_OBJ
) $(LDFLAGS
) $(LIBS
) \
1355 @SONAMEFLAG@
`basename $@`.
$(LIBMSRPC_MAJOR
)
1357 bin
/libmsrpc.a
: proto_exists
$(CAC_OBJ
)
1358 @echo Linking libmsrpc non-shared library
$@
1359 @
-$(AR
) -rc
$@
$(CAC_OBJ
)
1361 # This is probably wrong for anything other than the GNU linker.
1362 bin
/libbigballofmud.@SHLIBEXT@
: proto_exists
$(LIBBIGBALLOFMUD_OBJ
)
1363 @echo Linking bigballofmud shared library
$@
1364 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_OBJ
) $(LIBS
) \
1365 $(PASSDB_LIBS
) $(IDMAP_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1366 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
1367 ln
-snf libbigballofmud.so bin
/libbigballofmud.so
.0
1369 # It would be nice to build a static bigballofmud too, but when I try
1370 # I get linker errors about dl_open and similar things. I'm not sure if
1371 # it can be fixed or if they just can't be called from a static
1374 libsmbclient
: $(LIBSMBCLIENT
)
1375 libsmbsharemodes
: $(LIBSMBSHAREMODES
)
1376 libmsrpc
: $(LIBMSRPC
)
1377 libaddns
: $(LIBADDNS
)
1379 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1380 SHLD_MODULE
= $(SHLD
) $(LDSHFLAGS
) $(MODULE_EXPORTS
) \
1381 -o
$@ @SONAMEFLAG@
`basename $@`
1383 bin
/librpc_lsarpc.@SHLIBEXT@
: proto_exists
$(RPC_LSA_OBJ
)
1385 @
$(SHLD_MODULE
) $(RPC_LSA_OBJ
)
1386 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_LSA_OBJ
) -lc \
1387 @SONAMEFLAG@
`basename $@`
1389 bin
/librpc_samr.@SHLIBEXT@
: proto_exists
$(RPC_SAMR_OBJ
)
1391 @
$(SHLD_MODULE
) $(RPC_SAMR_OBJ
)
1393 bin
/librpc_unixinfo.@SHLIBEXT@
: proto_exists
$(RPC_UNIXINFO_OBJ
)
1395 @
$(SHLD_MODULE
) $(RPC_UNIXINFO_OBJ
)
1397 bin
/librpc_epmapper.@SHLIBEXT@
: proto_exists
$(RPC_EPMAPPER_OBJ
)
1399 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1401 bin
/librpc_srvsvc.@SHLIBEXT@
: proto_exists
$(RPC_SVC_OBJ
)
1403 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1405 bin
/librpc_svcctl.@SHLIBEXT@
: proto_exists
$(RPC_SVCCTL_OBJ
)
1407 @
$(SHLD_MODULE
) $(RPC_SVCCTL_OBJ
)
1409 bin
/librpc_ntsvcs.@SHLIBEXT@
: proto_exists
$(RPC_NTSVCS_OBJ
)
1411 @
$(SHLD_MODULE
) $(RPC_NTSVCS_OBJ
)
1413 bin
/librpc_wkssvc.@SHLIBEXT@
: proto_exists
$(RPC_WKS_OBJ
)
1415 @
$(SHLD_MODULE
) $(RPC_WKS_OBJ
)
1417 bin
/librpc_NETLOGON.@SHLIBEXT@
: proto_exists
$(RPC_NETLOG_OBJ
)
1419 @
$(SHLD_MODULE
) $(RPC_NETLOG_OBJ
)
1421 bin
/librpc_winreg.@SHLIBEXT@
: proto_exists
$(RPC_REG_OBJ
)
1423 @
$(SHLD_MODULE
) $(RPC_REG_OBJ
)
1425 bin
/librpc_initshutdown.@SHLIBEXT@
: proto_exists
$(RPC_INITSHUTDOWN_OBJ
)
1427 @
$(SHLD_MODULE
) $(RPC_INITSHUTDOWN_OBJ
)
1429 bin
/librpc_lsa_ds.@SHLIBEXT@
: proto_exists
$(RPC_LSA_DS_OBJ
)
1431 @
$(SHLD_MODULE
) $(RPC_LSA_DS_OBJ
)
1433 bin
/librpc_spoolss.@SHLIBEXT@
: proto_exists
$(RPC_SPOOLSS_OBJ
)
1435 @
$(SHLD_MODULE
) $(RPC_SPOOLSS_OBJ
)
1437 bin
/librpc_eventlog.@SHLIBEXT@
: proto_exists
$(RPC_EVENTLOG_OBJ
)
1439 @
$(SHLD_MODULE
) $(RPC_EVENTLOG_OBJ
)
1441 bin
/librpc_netdfs.@SHLIBEXT@
: proto_exists
$(RPC_DFS_OBJ
)
1443 @
$(SHLD_MODULE
) $(RPC_DFS_OBJ
)
1445 bin
/librpc_echo.@SHLIBEXT@
: proto_exists
$(RPC_ECHO_OBJ
)
1447 @
$(SHLD_MODULE
) $(RPC_ECHO_OBJ
)
1449 bin
/winbindd@EXEEXT@
: proto_exists
$(WINBINDD_OBJ
) @BUILD_POPT@ bin
/.dummy
1451 @
$(CC
) $(FLAGS
) -o
$@
$(WINBINDD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1452 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
)
1454 @WINBIND_NSS@
: $(WINBIND_NSS_OBJ
)
1456 @
$(SHLD
) $(WINBIND_NSS_LDSHFLAGS
) -o
$@
$(WINBIND_NSS_OBJ
) \
1457 @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1459 @WINBIND_WINS_NSS@
: proto_exists
$(WINBIND_WINS_NSS_OBJ
)
1461 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_WINS_NSS_OBJ
) \
1462 $(LDAP_LIBS
) $(KRB5LIBS
) $(LIBS
) \
1463 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1465 @SMB_KRB5_LOCATOR@
: proto_exists
$(SMB_KRB5_LOCATOR_OBJ
)
1467 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(SMB_KRB5_LOCATOR_OBJ
) \
1468 $(LDAP_LIBS
) $(LIBS
) -lcom_err \
1469 @SONAMEFLAG@
`basename $@`
1471 bin
/pam_winbind.@SHLIBEXT@
: $(PAM_WINBIND_OBJ
) bin
/.dummy
1472 @echo
"Linking shared library $@"
1473 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) -lpam @INIPARSERLIBS@
$(GPLIBS
) \
1474 @SONAMEFLAG@
`basename $@`
1476 bin
/builtin.@SHLIBEXT@
: proto_exists
$(AUTH_BUILTIN_OBJ
)
1477 @echo
"Building plugin $@"
1478 @
$(SHLD_MODULE
) $(AUTH_BUILTIN_OBJ
)
1480 bin
/domain.@SHLIBEXT@
: proto_exists
$(AUTH_DOMAIN_OBJ
)
1481 @echo
"Building plugin $@"
1482 @
$(SHLD_MODULE
) $(AUTH_DOMAIN_OBJ
)
1484 bin
/script.@SHLIBEXT@
: proto_exists
$(AUTH_SCRIPT_OBJ
)
1485 @echo
"Building plugin $@"
1486 @
$(SHLD_MODULE
) $(AUTH_SCRIPT_OBJ
)
1488 bin
/smbserver.@SHLIBEXT@
: proto_exists
$(AUTH_SERVER_OBJ
)
1489 @echo
"Building plugin $@"
1490 @
$(SHLD_MODULE
) $(AUTH_SERVER_OBJ
)
1492 bin
/winbind.@SHLIBEXT@
: proto_exists
$(AUTH_WINBIND_OBJ
)
1493 @echo
"Building plugin $@"
1494 @
$(SHLD_MODULE
) $(AUTH_WINBIND_OBJ
)
1496 bin
/unix.@SHLIBEXT@
: proto_exists
$(AUTH_UNIX_OBJ
)
1497 @echo
"Building plugin $@"
1498 @
$(SHLD_MODULE
) $(AUTH_UNIX_OBJ
)
1500 bin
/sam.@SHLIBEXT@
: proto_exists
$(AUTH_SAM_OBJ
)
1501 @echo
"Building plugin $@"
1502 @
$(SHLD_MODULE
) $(AUTH_SAM_OBJ
)
1504 bin
/ldapsam.@SHLIBEXT@
: passdb
/pdb_ldap.o passdb
/pdb_nds.o
1505 @echo
"Building plugin $@"
1506 @
$(SHLD_MODULE
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
$(LDAP_LIBS
)
1508 bin
/tdbsam.@SHLIBEXT@
: proto_exists passdb
/pdb_tdb.o
1509 @echo
"Building plugin $@"
1510 @
$(SHLD_MODULE
) passdb
/pdb_tdb.o
1512 bin
/smbpasswd.@SHLIBEXT@
: proto_exists passdb
/pdb_smbpasswd.o
1513 @echo
"Building plugin $@"
1514 @
$(SHLD_MODULE
) passdb
/pdb_smbpasswd.o
1516 bin
/rid.@SHLIBEXT@
: proto_exists nsswitch
/idmap_rid.o
1517 @echo
"Building plugin $@"
1518 @
$(SHLD_MODULE
) nsswitch
/idmap_rid.o
1520 bin
/ad.@SHLIBEXT@
: proto_exists nsswitch
/idmap_ad.o
1521 @echo
"Building plugin $@"
1522 @
$(SHLD_MODULE
) nsswitch
/idmap_ad.o
1524 bin
/ldap.@SHLIBEXT@
: proto_exists nsswitch
/idmap_ldap.o
1525 @echo
"Building plugin $@"
1526 @
$(SHLD_MODULE
) nsswitch
/idmap_ldap.o
1528 bin
/weird.@SHLIBEXT@
: proto_exists
$(DEVEL_HELP_WEIRD_OBJ
)
1529 @echo
"Building plugin $@"
1530 @
$(SHLD_MODULE
) $(DEVEL_HELP_WEIRD_OBJ
)
1532 bin
/CP850.@SHLIBEXT@
: proto_exists
$(CP850_OBJ
)
1533 @echo
"Building plugin $@"
1534 @
$(SHLD_MODULE
) $(CP850_OBJ
)
1536 bin
/CP437.@SHLIBEXT@
: proto_exists
$(CP437_OBJ
)
1537 @echo
"Building plugin $@"
1538 @
$(SHLD_MODULE
) $(CP437_OBJ
)
1540 bin
/macosxfs.@SHLIBEXT@
: $(CHARSET_MACOSXFS_OBJ
)
1541 @echo
"Building plugin $@"
1542 @
$(SHLD_MODULE
) $(CHARSET_MACOSXFS_OBJ
) -framework CoreFoundation
1544 # NOTE, there is no build rule for a dynamic default VFS module because
1545 # this one MUST MUST MUST be built statically.
1547 bin
/audit.@SHLIBEXT@
: proto_exists
$(VFS_AUDIT_OBJ
)
1548 @echo
"Building plugin $@"
1549 @
$(SHLD_MODULE
) $(VFS_AUDIT_OBJ
)
1551 bin
/extd_audit.@SHLIBEXT@
: proto_exists
$(VFS_EXTD_AUDIT_OBJ
)
1552 @echo
"Building plugin $@"
1553 @
$(SHLD_MODULE
) $(VFS_EXTD_AUDIT_OBJ
)
1555 bin
/full_audit.@SHLIBEXT@
: proto_exists
$(VFS_FULL_AUDIT_OBJ
)
1556 @echo
"Building plugin $@"
1557 @
$(SHLD_MODULE
) $(VFS_FULL_AUDIT_OBJ
)
1559 bin
/recycle.@SHLIBEXT@
: proto_exists
$(VFS_RECYCLE_OBJ
)
1560 @echo
"Building plugin $@"
1561 @
$(SHLD_MODULE
) $(VFS_RECYCLE_OBJ
)
1563 bin
/netatalk.@SHLIBEXT@
: proto_exists
$(VFS_NETATALK_OBJ
)
1564 @echo
"Building plugin $@"
1565 @
$(SHLD_MODULE
) $(VFS_NETATALK_OBJ
)
1567 bin
/fake_perms.@SHLIBEXT@
: proto_exists
$(VFS_FAKE_PERMS_OBJ
)
1568 @echo
"Building plugin $@"
1569 @
$(SHLD_MODULE
) $(VFS_FAKE_PERMS_OBJ
)
1571 bin
/default_quota.@SHLIBEXT@
: proto_exists
$(VFS_DEFAULT_QUOTA_OBJ
)
1572 @echo
"Building plugin $@"
1573 @
$(SHLD_MODULE
) $(VFS_DEFAULT_QUOTA_OBJ
)
1575 bin
/readonly.@SHLIBEXT@
: proto_exists
$(VFS_READONLY_OBJ
)
1576 @echo
"Building plugin $@"
1577 @
$(SHLD_MODULE
) $(VFS_READONLY_OBJ
)
1579 bin
/shadow_copy.@SHLIBEXT@
: proto_exists
$(VFS_SHADOW_COPY_OBJ
)
1580 @echo
"Building plugin $@"
1581 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY_OBJ
)
1583 bin
/cap.@SHLIBEXT@
: proto_exists
$(VFS_CAP_OBJ
)
1584 @echo
"Building plugin $@"
1585 @
$(SHLD_MODULE
) $(VFS_CAP_OBJ
)
1587 bin
/expand_msdfs.@SHLIBEXT@
: proto_exists
$(VFS_EXPAND_MSDFS_OBJ
)
1588 @echo
"Building plugin $@"
1589 @
$(SHLD_MODULE
) $(VFS_EXPAND_MSDFS_OBJ
)
1591 bin
/afsacl.@SHLIBEXT@
: $(VFS_AFSACL_OBJ
)
1592 @echo
"Building plugin $@"
1593 @
$(SHLD_MODULE
) $(VFS_AFSACL_OBJ
)
1595 bin
/posixacl.@SHLIBEXT@
: $(VFS_POSIXACL_OBJ
)
1596 @echo
"Building plugin $@"
1597 @
$(SHLD_MODULE
) $(VFS_POSIXACL_OBJ
)
1599 bin
/aixacl.@SHLIBEXT@
: $(VFS_AIXACL_OBJ
)
1600 @echo
"Building plugin $@"
1601 @
$(SHLD_MODULE
) $(VFS_AIXACL_OBJ
)
1603 bin
/aixacl2.@SHLIBEXT@
: $(VFS_AIXACL2_OBJ
)
1604 @echo
"Building plugin $@"
1605 @
$(SHLD_MODULE
) $(VFS_AIXACL2_OBJ
)
1607 bin
/solarisacl.@SHLIBEXT@
: $(VFS_SOLARISACL_OBJ
)
1608 @echo
"Building plugin $@"
1609 @
$(SHLD_MODULE
) $(VFS_SOLARISACL_OBJ
)
1611 bin
/zfsacl.@SHLIBEXT@
: $(VFS_ZFSACL_OBJ
)
1612 @echo
"Building plugin $@"
1613 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_ZFSACL_OBJ
) \
1614 @SONAMEFLAG@
`basename $@`
1616 bin
/irixacl.@SHLIBEXT@
: proto_exists
$(VFS_IRIXACL_OBJ
)
1617 @echo
"Building plugin $@"
1618 @
$(SHLD_MODULE
) $(VFS_IRIXACL_OBJ
)
1620 bin
/hpuxacl.@SHLIBEXT@
: proto_exists
$(VFS_HPUXACL_OBJ
)
1621 @echo
"Building plugin $@"
1622 @
$(SHLD_MODULE
) $(VFS_HPUXACL_OBJ
)
1624 bin
/tru64acl.@SHLIBEXT@
: $(VFS_TRU64ACL_OBJ
)
1625 @echo
"Building plugin $@"
1626 @
$(SHLD_MODULE
) $(VFS_TRU64ACL_OBJ
)
1628 bin
/catia.@SHLIBEXT@
: proto_exists
$(VFS_CATIA_OBJ
)
1629 @echo
"Building plugin $@"
1630 @
$(SHLD_MODULE
) $(VFS_CATIA_OBJ
)
1632 bin
/cacheprime.@SHLIBEXT@
: proto_exists
$(VFS_CACHEPRIME_OBJ
)
1633 @echo
"Building plugin $@"
1634 @
$(SHLD_MODULE
) $(VFS_CACHEPRIME_OBJ
)
1636 bin
/prealloc.@SHLIBEXT@
: proto_exists
$(VFS_PREALLOC_OBJ
)
1637 @echo
"Building plugin $@"
1638 @
$(SHLD_MODULE
) $(VFS_PREALLOC_OBJ
)
1640 bin
/commit.@SHLIBEXT@
: proto_exists
$(VFS_COMMIT_OBJ
)
1641 @echo
"Building plugin $@"
1642 @
$(SHLD_MODULE
) $(VFS_COMMIT_OBJ
)
1644 bin
/gpfs.@SHLIBEXT@
: $(VFS_GPFS_OBJ
)
1645 @echo
"Building plugin $@"
1646 @
$(SHLD_MODULE
) $(VFS_GPFS_OBJ
)
1648 bin
/notify_fam.@SHLIBEXT@
: $(VFS_NOTIFY_FAM_OBJ
)
1649 @echo
"Building plugin $@"
1650 @
$(SHLD_MODULE
) $(VFS_NOTIFY_FAM_OBJ
) @SMB_FAM_LIBS@
1652 bin
/readahead.@SHLIBEXT@
: $(VFS_READAHEAD_OBJ
)
1653 @echo
"Building plugin $@"
1654 @
$(SHLD_MODULE
) $(VFS_READAHEAD_OBJ
)
1656 #########################################################
1657 ## IdMap NSS plugins
1659 ## None here right now
1660 #########################################################
1662 bin
/wbinfo@EXEEXT@
: proto_exists
$(WBINFO_OBJ
) @BUILD_POPT@ bin
/.dummy
1664 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(WBINFO_OBJ
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1666 bin
/ntlm_auth@EXEEXT@
: proto_exists
$(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1667 @BUILD_POPT@ bin
/.dummy
1669 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(NTLM_AUTH_OBJ
) \
1670 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBS
) \
1671 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1673 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_OBJ
)
1674 @echo
"Linking shared library $@"
1675 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_OBJ
) -lpam
$(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
)
1677 bin
/tdbbackup@EXEEXT@
: proto_exists
$(TDBBACKUP_OBJ
) bin
/.dummy
1679 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBBACKUP_OBJ
)
1681 bin
/tdbtool@EXEEXT@
: $(TDBTOOL_OBJ
) bin
/.dummy
1683 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTOOL_OBJ
)
1685 bin
/tdbdump@EXEEXT@
: $(TDBDUMP_OBJ
) bin
/.dummy
1687 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBDUMP_OBJ
)
1689 bin
/tdbtorture@EXEEXT@
: $(TDBTORTURE_OBJ
) bin
/.dummy
1691 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTORTURE_OBJ
)
1693 bin
/t_strcmp@EXEEXT@
: proto_exists bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strcmp.o
1694 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strcmp.o
-L .
/bin
-lbigballofmud
1696 bin
/t_strstr@EXEEXT@
: proto_exists bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strstr.o
1697 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strstr.o
-L .
/bin
-lbigballofmud
1699 bin
/t_strappend@EXEEXT@
: proto_exists bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strappend.o
1700 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strappend.o
-L .
/bin
-lbigballofmud
1702 bin
/t_stringoverflow@EXEEXT@
: bin
/libbigballofmud.@SHLIBEXT@ torture
/t_stringoverflow.o
1703 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) torture
/t_stringoverflow.o
-L.
/bin
-lbigballofmud
1705 bin
/t_doschar@EXEEXT@
: proto_exists bin
/libbigballofmud.@SHLIBEXT@ torture
/t_doschar.o
1706 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_doschar.o
-L .
/bin
-lbigballofmud
1707 bin
/t_push_ucs2@EXEEXT@
: proto_exists bin
/libbigballofmud.@SHLIBEXT@ torture
/t_push_ucs2.o
1708 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_push_ucs2.o
-L .
/bin
-lbigballofmud
1710 bin
/timelimit@EXEEXT@
: script
/tests
/timelimit.o
1712 @
$(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) script
/tests
/timelimit.o
1714 install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installswat installmodules @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@
1717 install-everything
: install installmodules
1719 # DESTDIR is used here to prevent packagers wasting their time
1720 # duplicating the Makefile. Remove it and you will have the privelege
1721 # of package each samba release for muliple versions of multiple
1722 # distributions and operating systems, or at least supplying patches
1723 # to all the packaging files required for this, prior to committing
1724 # the removal of DESTDIR. Do not remove it even though you think it
1728 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
) $(PIDDIR
) $(LOCKDIR
) $(MANDIR
)
1730 installservers
: all installdirs
1731 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1733 installbin
: all installdirs
1734 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1736 installcifsmount
: @CIFSMOUNT_PROGS@
1737 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(ROOTSBINDIR
)
1738 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1740 # Some symlinks are required for the 'probing' of modules.
1741 # This mechanism should go at some point..
1742 installmodules
: modules
installdirs
1743 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1744 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1745 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1746 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1747 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(NSSINFOLIBDIR
) $(NSS_INFO_MODULES
)
1748 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1749 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1750 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
1751 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
1752 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1753 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1754 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1755 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1756 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1757 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(NSSINFOLIBDIR
) ..
/idmap
/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@
1759 installscripts
: installdirs
1760 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1762 installdat
: installdirs
1763 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1765 installmsg
: installdirs
1766 @
$(SHELL
) $(srcdir)/script
/installmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1768 installswat
: installdirs installmsg
1769 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1771 installclientlib
: installdirs libsmbclient
1772 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(LIBDIR
)
1773 -$(INSTALLLIBCMD_SH
) bin
/libsmbclient.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1774 -$(INSTALLLIBCMD_A
) bin
/libsmbclient.a
$(DESTDIR
)$(LIBDIR
)
1775 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) ${prefix}/include
1776 -$(INSTALLCMD
) $(srcdir)/include/libsmbclient.h
$(DESTDIR
)${prefix}/include
1778 installlibmsrpc
: installdirs libmsrpc
1779 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(LIBDIR
)
1780 -$(INSTALLLIBCMD_SH
) bin
/libmsrpc.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1781 -$(INSTALLLIBCMD_A
) bin
/libmsrpc.a
$(DESTDIR
)$(LIBDIR
)
1782 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) ${prefix}/include
1783 -$(INSTALLCMD
) $(srcdir)/include/libmsrpc.h
$(DESTDIR
)${prefix}/include
1785 installlibsmbsharemodes
: installdirs libsmbsharemodes
1786 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(LIBDIR
)
1787 -$(INSTALLLIBCMD_SH
) bin
/libsmbsharemodes.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1788 -$(INSTALLLIBCMD_A
) bin
/libsmbsharemodes.a
$(DESTDIR
)$(LIBDIR
)
1790 installlibaddns
: installdirs libaddns
1791 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(LIBDIR
)
1792 -$(INSTALLLIBCMD_SH
) bin
/libaddns.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1793 -$(INSTALLLIBCMD_A
) bin
/libaddns.a
$(DESTDIR
)$(LIBDIR
)
1795 installpammodules
: $(PAM_MODULES
)
1796 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(PAMMODULESDIR
)
1797 @for module in
$(PAM_MODULES
); do \
1798 echo
"Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1799 $(INSTALLCMD
) -m
$(INSTALLPERMS
) bin
/$${module}.@SHLIBEXT@ \
1800 "$(DESTDIR)/$(PAMMODULESDIR)"; \
1805 PYTHON_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) $(RPC_PARSE_OBJ
) \
1806 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1807 $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
1809 python_ext
: $(PYTHON_OBJ
)
1810 @if
test -z
"$(PYTHON)"; then \
1811 echo Use the option
--with-python to configure python
; \
1814 PYTHON_OBJS
="$(PYTHON_OBJ)" \
1815 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
1816 LIBS
="$(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
1817 $(PYTHON
) python
/setup.py build
1819 python_install
: $(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)" \
1826 LIBS
="$(LDFLAGS) $(LIBS)" \
1827 $(PYTHON
) python
/setup.py
install --root
=$(DESTDIR
)
1830 @
-if
test -n
"$(PYTHON)"; then
$(PYTHON
) python
/setup.py
clean; fi
1833 # revert to the previously installed version
1835 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
1836 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
1838 installman
: installdirs
1839 @SMBMOUNT_PROGS
="@SMBMOUNT_PROGS@" $(SHELL
) \
1840 $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
"@ROFF@"
1845 @echo
"Samba will be installed into:"
1846 @echo
" prefix: $(prefix)"
1847 @echo
" bindir: $(BINDIR)"
1848 @echo
" sbindir: $(SBINDIR)"
1849 @echo
" libdir: $(LIBDIR)"
1850 @echo
" vardir: $(VARDIR)"
1851 @echo
" mandir: $(MANDIR)"
1852 @echo
" privatedir: $(PRIVATE_DIR)"
1853 @echo
" configdir: $(CONFIGDIR)"
1854 @echo
" lockdir: $(LOCKDIR)"
1855 @echo
" piddir: $(PIDDIR)"
1856 @echo
" swatdir: $(SWATDIR)"
1859 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_LIBMSRPC@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@
1862 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
1865 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1868 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1871 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1874 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1875 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1876 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1877 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1878 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1879 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1882 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1885 @
$(SHELL
) $(srcdir)/script
/uninstalldat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1888 @
$(SHELL
) $(srcdir)/script
/uninstallmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1890 uninstallswat
: uninstallmsg
1891 @
$(SHELL
) $(srcdir)/script
/uninstallswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1894 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.@SHLIBEXT@
1895 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.a
1896 -rm -f
$(DESTDIR
)${prefix}/include/libsmbclient.h
1899 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libmsrpc.@SHLIBEXT@
1900 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libmsrpc.a
1901 -rm -f
$(DESTDIR
)${prefix}/include/libmsrpc.h
1903 uninstalllibsmbsharemodes
:
1904 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.@SHLIBEXT@
1905 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.a
1908 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libaddns.@SHLIBEXT@
1909 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libaddns.a
1911 uninstallpammodules
:
1912 @for module in
$(PAM_MODULES
); do \
1913 echo
"Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1914 rm -f
"$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
1917 # Toplevel clean files
1918 TOPFILES
=dynconfig.o
1920 clean: delheaders python_clean
1921 -rm -f
$(PRECOMPILED_HEADER
)
1922 -rm -f core
*/*~
*~ \
1923 */*.o
*/*/*.o
*/*/*/*.o \
1924 */*.d
*/*/*.d
*/*/*/*.d \
1925 */*.@SHLIBEXT@
*/*/*.@SHLIBEXT@
*/*/*/*.@SHLIBEXT@ \
1926 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1927 $(MODULES
) $(TORTURE_PROGS
) $(LIBSMBCLIENT
) $(LIBADDNS
) \
1928 $(LIBSMBSHAREMODES
) $(EVERYTHING_PROGS
) $(LIBMSRPC
) \
1929 .headers.stamp
*/src
/*.o proto_exists
1932 # Making this target will just make sure that the prototype files
1933 # exist, not necessarily that they are up to date. Since they're
1934 # removed by "make clean" this will always be run when you do anything
1936 proto_exists
: include/proto.h
include/build_env.h \
1937 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1938 client
/client_proto.h utils
/net_proto.h utils
/ntlm_auth_proto.h smbd
/build_options.c
1942 @echo Removing prototype headers
1943 @
rm -f
include/proto.h
include/build_env.h \
1944 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1945 client
/client_proto.h utils
/net_proto.h \
1946 smbd
/build_options.c utils
/ntlm_auth_proto.h \
1947 utils
/passwd_proto.h
1949 MKPROTO_SH
= $(srcdir)/script
/mkproto.sh
1951 include/proto.h
: smbd
/build_options.c
1952 @echo Building
include/proto.h
1953 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1954 -h _PROTO_H_
$(builddir
)/include/proto.h \
1957 include/build_env.h
: script
/build_env.sh
1958 @echo Building
include/build_env.h
1959 @
$(SHELL
) $(srcdir)/script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) \
1960 > $(builddir
)/include/build_env.h
1962 nsswitch
/winbindd_proto.h
:
1963 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1964 -h _WINBINDD_PROTO_H_
$(builddir
)/nsswitch
/winbindd_proto.h \
1968 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1969 -h _SWAT_PROTO_H_
$(builddir
)/web
/swat_proto.h \
1972 client
/client_proto.h
:
1973 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1974 -h _CLIENT_PROTO_H_
$(builddir
)/client
/client_proto.h \
1978 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1979 -h _NET_PROTO_H_
$(builddir
)/utils
/net_proto.h \
1982 utils
/passwd_proto.h
:
1983 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1984 -h _PASSWD_PROTO_H_
$(builddir
)/utils
/passwd_proto.h \
1987 utils
/ntlm_auth_proto.h
:
1988 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1989 -h _NTLM_AUTH_PROTO_H_
$(builddir
)/utils
/ntlm_auth_proto.h \
1992 # "make headers" or "make proto" calls a subshell because we need to
1993 # make sure these commands are executed in sequence even for a
1996 $(MAKE
) delheaders
; \
1997 $(MAKE
) smbd
/build_options.c
; \
1998 $(MAKE
) include/proto.h
; \
1999 $(MAKE
) include/build_env.h
; \
2000 $(MAKE
) nsswitch
/winbindd_proto.h
; \
2001 $(MAKE
) web
/swat_proto.h
; \
2002 $(MAKE
) client
/client_proto.h
; \
2003 $(MAKE
) utils
/ntlm_auth_proto.h
; \
2004 $(MAKE
) utils
/net_proto.h
; \
2005 $(MAKE
) utils
/passwd_proto.h
;
2009 .PHONY
: headers proto
2012 etags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2015 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2017 realclean: clean delheaders
2018 -rm -f config.log bin
/.dummy script
/findsmb script
/gen-8bit-gap.sh
2019 -rm -f script
/installbin.sh script
/uninstallbin.sh
2021 distclean: realclean
2022 -rm -f
include/stamp-h
2024 -rm -f
include/config.h Makefile
2025 -rm -f config.status config.cache so_locations
2028 realdistclean
: distclean
2029 -rm -f
include/config.h.in
2030 -rm -f
include/version.h
2033 # this target is really just for my use. It only works on a limited
2034 # range of machines and is used to produce a list of potentially
2035 # dead (ie. unused) functions in the code. (tridge)
2037 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
2038 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
2039 comm
-13 nmused.txt nmfns.txt
2042 # when configure.in is updated, reconfigure
2043 $(srcdir)/configure
: $(srcdir)/configure.in
2044 @echo
"WARNING: you need to rerun ./autogen.sh"
2046 config.status
: $(srcdir)/configure
2047 @echo
"WARNING: you need to run ./configure"
2049 Makefile
: $(srcdir)/Makefile.in config.status
2050 @echo
"WARNING: you need to run ./config.status"
2052 ######################################################################
2053 # Samba Testing Framework
2055 # Check for NSS module problems.
2056 test_nss_modules
: nss_modules
2057 @echo
"Testing $(NSS_MODULES) "
2058 @for module in
$(NSS_MODULES
); do \
2059 .
/script
/tests
/dlopen.sh
$${module} \
2063 # Check for PAM module problems. Specifically, check that every module we
2064 # built can actually be loaded by a minimal PAM-aware application.
2065 test_pam_modules
: pam_modules
2066 @echo
"Testing $(PAM_MODULES) "
2067 @for module in
$(PAM_MODULES
); do \
2068 .
/script
/tests
/dlopen.sh
-lpam
-ldl bin
/$${module}.@SHLIBEXT@ \
2073 ## Targets for 'make test'
2075 test: all torture timelimit
2076 @echo Running Test suite
2077 @sh
$(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"
2079 valgrindtest
: all torture timelimit
2080 @echo Running Test suite with valgrind
2081 @NMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2082 SMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2083 VALGRIND
="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/st/valgrind.log" \
2084 $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"