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 datarootdir
=@datarootdir@
15 selftest_prefix
=@selftest_prefix@
16 smbtorture4_path
=@smbtorture4_path@
22 CPPFLAGS
=-DHAVE_CONFIG_H @CPPFLAGS@
26 LDSHFLAGS
=@LDSHFLAGS@ @LDFLAGS@
27 WINBIND_NSS_LDSHFLAGS
=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
33 TERMLDFLAGS
=@TERMLDFLAGS@
35 PRINT_LIBS
=@PRINT_LIBS@
38 PASSDB_LIBS
=@PASSDB_LIBS@
39 IDMAP_LIBS
=@IDMAP_LIBS@
46 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
47 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
48 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
49 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
53 builddir
=@abs_builddir@
57 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
58 # will search for a POSIX-compliant shell, and that might not be
59 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
61 # See the autoconf manual "Installation Directory Variables" for a
62 # discussion of the subtle use of these variables.
66 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
68 ROOTSBINDIR
= @rootsbindir@
70 PAMMODULESDIR
= @pammodulesdir@
71 VFSLIBDIR
= $(LIBDIR
)/vfs
72 PDBLIBDIR
= $(LIBDIR
)/pdb
73 RPCLIBDIR
= $(LIBDIR
)/rpc
74 IDMAPLIBDIR
= $(LIBDIR
)/idmap
75 CHARSETLIBDIR
= $(LIBDIR
)/charset
76 AUTHLIBDIR
= $(LIBDIR
)/auth
77 CONFIGLIBDIR
= $(LIBDIR
)/config
78 CONFIGDIR
= @configdir@
79 VARDIR
= @localstatedir@
83 # The permissions to give the executables
86 # set these to where to find various files
87 # These can be overridden by command line switches (see smbd(8))
88 # or in smb.conf (see smb.conf(5))
89 LOGFILEBASE
= @logfilebase@
90 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
91 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
93 # This is where smbpasswd et al go
94 PRIVATEDIR
= @privatedir@
96 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
97 PRIVATE_DIR
= $(PRIVATEDIR
)
99 # This is where SWAT images and help files go
102 # the directory where lock files go
105 # the directory where pid files go
108 LIBSMBCLIENT
=bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
112 LIBMSRPC
=bin
/libmsrpc.a @LIBMSRPC_SHARED@
116 LIBSMBSHAREMODES
=bin
/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
117 LIBSMBSHAREMODES_MAJOR
=0
118 LIBSMBSHAREMODES_MINOR
=2
120 LIBADDNS
=bin
/libaddns.a @LIBADDNS_SHARED@
124 FLAGS1
= $(CFLAGS
) @FLAGS1@
-Iinclude
-I
$(srcdir)/include -I
$(srcdir)/tdb
/include @SMBWRAP_INC@
-I.
$(CPPFLAGS
) -I
$(srcdir) -D_SAMBA_BUILD_
-I
$(srcdir)/libaddns
-I
$(srcdir)/librpc
128 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
129 FLAGS
= $(ISA
) $(FLAGS5
)
131 PASSWD_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\"
132 PATH_FLAGS1
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DSBINDIR
=\"$(SBINDIR
)\"
133 PATH_FLAGS2
= $(PATH_FLAGS1
) -DBINDIR
=\"$(BINDIR
)\" -DDRIVERFILE
=\"$(DRIVERFILE
)\"
134 PATH_FLAGS3
= $(PATH_FLAGS2
) -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
135 PATH_FLAGS4
= $(PATH_FLAGS3
) -DSWATDIR
=\"$(SWATDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\" -DPIDDIR
=\"$(PIDDIR
)\"
136 PATH_FLAGS5
= $(PATH_FLAGS4
) -DLIBDIR
=\"$(LIBDIR
)\" \
137 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" -DSHLIBEXT
=\"@SHLIBEXT@
\"
138 PATH_FLAGS6
= $(PATH_FLAGS5
) -DCONFIGDIR
=\"$(CONFIGDIR
)\"
139 PATH_FLAGS
= $(PATH_FLAGS6
) $(PASSWD_FLAGS
)
141 # Note that all executable programs now provide for an optional executable suffix.
143 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ bin
/swat@EXEEXT@ @EXTRA_SBIN_PROGS@
145 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@
147 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
148 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
149 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
150 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
152 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
153 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ \
154 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@ bin
/sharesec@EXEEXT@
156 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
157 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
158 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
159 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@
161 BIN_PROGS
= $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) @EXTRA_BIN_PROGS@
163 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ bin
/talloctort@EXEEXT@ \
166 SHLIBS
= @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@ @LIBADDNS@
168 PAM_MODULES
= @PAM_MODULES@
170 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
172 VFS_MODULES
= @VFS_MODULES@
173 PDB_MODULES
= @PDB_MODULES@
174 RPC_MODULES
= @RPC_MODULES@
175 IDMAP_MODULES
= @IDMAP_MODULES@
176 CHARSET_MODULES
= @CHARSET_MODULES@
177 AUTH_MODULES
= @AUTH_MODULES@
178 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) $(CHARSET_MODULES
) $(AUTH_MODULES
)
180 ######################################################################
182 ######################################################################
184 TDBBASE_OBJ
= tdb
/common
/tdb.o tdb
/common
/dump.o tdb
/common
/error.o \
185 tdb
/common
/freelist.o tdb
/common
/io.o tdb
/common
/lock.o \
186 tdb
/common
/open.o tdb
/common
/transaction.o tdb
/common
/traverse.o
188 TDB_OBJ
= $(TDBBASE_OBJ
) tdb
/common
/tdbutil.o tdb
/common
/tdbback.o
190 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
192 VERSION_OBJ
= lib
/version.o
194 DOSERR_OBJ
= libsmb
/doserr.o
196 SNPRINTF_OBJ
= lib
/snprintf.o
198 WBCOMMON_OBJ
= nsswitch
/wb_common.o
202 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
204 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
206 ERRORMAP_OBJ
= libsmb
/errormap.o
208 PASSCHANGE_OBJ
= libsmb
/passchange.o
210 SOCKET_WRAPPER_OBJ
= lib
/socket_wrapper.o
212 LIBNDR_OBJ
= librpc
/ndr
/ndr_basic.o librpc
/ndr
/ndr.o librpc
/ndr
/ndr_misc.o \
213 librpc
/ndr
/ndr_sec_helper.o librpc
/ndr
/ndr_string.o librpc
/ndr
/sid.o
215 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_unixinfo.o librpc
/gen_ndr
/ndr_lsa.o \
216 librpc
/gen_ndr
/ndr_dfs.o
218 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
220 TALLOC_OBJ
= lib
/talloc.o
222 LIB_OBJ
= $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
223 lib
/getsmbpass.o lib
/interface.o lib
/md4.o \
224 lib
/interfaces.o lib
/pidfile.o lib
/replace.o lib
/replace1.o lib
/repdir.o lib
/timegm.o \
225 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/time.o \
226 lib
/ufc.o lib
/genrand.o lib
/username.o \
227 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
228 lib
/bitmap.o lib
/crc32.o
$(SNPRINTF_OBJ
) lib
/dprintf.o \
229 lib
/xfile.o lib
/wins_srv.o lib
/util_reg.o \
230 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
231 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
232 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
233 lib
/substitute.o lib
/fsusage.o \
234 lib
/ms_fnmatch.o lib
/select.o lib
/messages.o \
235 lib
/tallocmsg.o lib
/dmallocmsg.o libsmb
/smb_signing.o \
236 lib
/md5.o lib
/hmacmd5.o lib
/arc4.o lib
/iconv.o \
237 nsswitch
/wb_client.o
$(WBCOMMON_OBJ
) \
238 lib
/pam_errors.o intl
/lang_tdb.o \
239 lib
/adt_tree.o lib
/gencache.o
$(TDB_OBJ
) \
240 lib
/module.o lib
/events.o lib
/ldap_escape.o @CHARSET_STATIC@ \
241 lib
/secdesc.o lib
/util_seaccess.o lib
/secace.o lib
/secacl.o @SOCKWRAP@ \
242 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(TALLOC_OBJ
)
244 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
245 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
247 READLINE_OBJ
= lib
/readline.o
249 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
250 # Be sure to include them into your application
251 POPT_LIB_OBJ
= lib
/popt_common.o
253 PARAM_OBJ
= dynconfig.o param
/loadparm.o param
/params.o lib
/sharesec.o
255 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
257 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsrequest.o libaddns
/dnsresponse.o \
258 libaddns
/dnsutils.o libaddns
/dnssock.o libaddns
/dnsuprequest.o \
259 libaddns
/dnsupresp.o libaddns
/dnsupdate.o libaddns
/dnsgss.o
260 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(TALLOC_OBJ
)
262 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
263 libads
/krb5_setpw.o libads
/ldap_user.o \
264 libads
/ads_struct.o libads
/kerberos_keytab.o \
265 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
266 libads
/authdata.o libads
/cldap.o
268 LIBADS_SERVER_OBJ
= libads
/util.o libads
/kerberos_verify.o \
269 libads
/ldap_schema.o sam
/nss_info.o
271 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
273 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
274 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
276 LIBSAMBA_OBJ
= libsmb
/nterr.o libsmb
/dcerpc_err.o libsmb
/smbdes.o \
277 libsmb
/smbencrypt.o libsmb
/ntlm_check.o \
278 libsmb
/ntlmssp.o libsmb
/ntlmssp_parse.o libsmb
/ntlmssp_sign.o
280 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
281 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
282 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
283 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
284 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
285 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
286 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
287 libsmb
/clioplock.o
$(ERRORMAP_OBJ
) libsmb
/clirap2.o \
289 $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(LIBNMB_OBJ
)
291 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
292 rpc_client
/cli_netlogon.o rpc_client
/cli_srvsvc.o \
293 rpc_client
/cli_wkssvc.o \
294 rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
295 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
296 rpc_client
/cli_ds.o rpc_client
/cli_echo.o \
297 rpc_client
/cli_shutdown.o rpc_client
/cli_svcctl.o \
300 LIBMSRPC_GEN_OBJ
= librpc
/gen_ndr
/cli_unixinfo.o librpc
/gen_ndr
/cli_lsa.o \
301 librpc
/gen_ndr
/cli_dfs.o \
302 $(LIBMSRPC_GEN_OBJ1
) $(LIBNDR_GEN_OBJ
) $(LIBNDR_OBJ
)
304 REGOBJS_OBJ
= registry
/reg_objects.o
306 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
307 registry
/reg_db.o registry
/reg_eventlog.o registry
/reg_shares.o \
308 registry
/reg_util.o registry
/reg_dynamic.o registry
/reg_perfcount.o
310 RPC_LSA_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o
312 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o
314 RPC_SAMR_OBJ
= rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o \
315 rpc_server
/srv_samr_util.o
317 RPC_UNIXINFO_OBJ
= librpc
/gen_ndr
/srv_unixinfo.o rpc_server
/srv_unixinfo_nt.o
318 REGFIO_OBJ
= registry
/regfio.o
320 RPC_REG_OBJ
= rpc_server
/srv_reg.o rpc_server
/srv_reg_nt.o
$(REGFIO_OBJ
)
322 RPC_LSA_DS_OBJ
= rpc_server
/srv_lsa_ds.o rpc_server
/srv_lsa_ds_nt.o
324 RPC_SVC_OBJ
= rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o
326 RPC_WKS_OBJ
= rpc_server
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
328 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl.o rpc_server
/srv_svcctl_nt.o \
329 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
330 services
/svc_netlogon.o services
/svc_winreg.o \
333 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs.o rpc_server
/srv_ntsvcs_nt.o
335 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
337 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
339 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog.o rpc_server
/srv_eventlog_nt.o rpc_server
/srv_eventlog_lib.o
341 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
342 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
344 RPC_ECHO_OBJ
= rpc_server
/srv_echo.o rpc_server
/srv_echo_nt.o
346 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
348 # this includes only the low level parse code, not stuff
349 # that requires knowledge of security contexts
350 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
) rpc_parse
/parse_sec.o
352 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_net.o \
353 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
354 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
355 rpc_parse
/parse_wks.o rpc_parse
/parse_ds.o \
356 rpc_parse
/parse_spoolss.o \
357 rpc_parse
/parse_echo.o rpc_parse
/parse_shutdown.o \
358 rpc_parse
/parse_svcctl.o \
359 rpc_parse
/parse_eventlog.o rpc_parse
/parse_buffer.o \
360 rpc_parse
/parse_ntsvcs.o
$(REGOBJS_OBJ
)
362 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
364 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
366 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
368 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
369 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
370 passdb
/util_unixsids.o passdb
/lookup_sid.o \
371 passdb
/login_cache.o @PDB_STATIC@ \
372 lib
/account_pol.o lib
/privileges.o
374 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
375 CP850_OBJ
= modules
/CP850.o
376 CP437_OBJ
= modules
/CP437.o
377 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
379 GROUPDB_OBJ
= groupdb
/mapping.o
381 PROFILE_OBJ
= profile
/profile.o
382 PROFILES_OBJ
= utils
/profiles.o \
383 $(REGFIO_OBJ
) $(REGOBJS_OBJ
) $(ERRORMAP_OBJ
) \
384 $(RPC_PARSE_OBJ1
) $(PARAM_OBJ
) $(LIBSAMBA_OBJ
) \
385 $(DOSERR_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
386 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
388 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
390 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o smbd
/notify_fam.o
392 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
393 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
394 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
395 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
396 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
397 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
398 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
399 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
400 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
401 VFS_CAP_OBJ
= modules
/vfs_cap.o
402 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
403 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
404 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
405 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
406 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
407 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
408 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
409 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
410 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
411 VFS_CATIA_OBJ
= modules
/vfs_catia.o
412 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
413 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
414 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
416 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
418 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
420 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o
422 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
423 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
424 AUTH_SAM_OBJ
= auth
/auth_sam.o
425 AUTH_SERVER_OBJ
= auth
/auth_server.o
426 AUTH_UNIX_OBJ
= auth
/auth_unix.o
427 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
428 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
430 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/auth_compat.o \
431 auth
/auth_ntlmssp.o \
432 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
434 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_map.o smbd
/mangle_hash2.o
436 SMBD_OBJ_MAIN
= smbd
/server.o
438 BUILDOPT_OBJ
= smbd
/build_options.o
440 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
441 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
442 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
443 smbd
/share_access.o smbd
/fileio.o \
444 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
445 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
446 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
447 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
448 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
449 smbd
/vfs.o smbd
/statcache.o \
450 smbd
/posix_acls.o lib
/sysacls.o
$(SERVER_MUTEX_OBJ
) \
451 smbd
/process.o smbd
/service.o smbd
/error.o \
452 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
453 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
454 smbd
/change_trust_pw.o smbd
/fake_file.o \
455 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
456 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
457 smbd
/dmapi.o
$(MANGLE_OBJ
) @VFS_STATIC@
459 SMBD_OBJ_BASE
= $(PARAM_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
460 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
461 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
462 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
463 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
464 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
465 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
466 $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
467 $(BUILDOPT_OBJ
) $(SMBLDAP_OBJ
)
469 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
470 printing
/print_cups.o printing
/print_generic.o \
471 printing
/lpq_parse.o printing
/load.o \
472 printing
/print_iprint.o printing
/print_test.o
474 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
475 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
477 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
478 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
479 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
480 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
481 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
482 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
483 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
484 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
485 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
486 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
487 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
488 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
489 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
491 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
492 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
494 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
495 web
/swat.o web
/neg_lang.o
497 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) \
498 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) \
499 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
500 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
503 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
504 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
505 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
506 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) \
510 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
511 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
512 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
513 $(PRINTBASE_OBJ
) $(ERRORMAP_OBJ
)
515 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
516 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
517 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
518 rpc_client
/cli_srvsvc.o rpc_parse
/parse_srv.o \
519 rpc_client
/cli_pipe.o rpc_parse
/parse_rpc.o \
520 rpc_client
/cli_netlogon.o rpc_parse
/parse_net.o
522 TESTPARM_OBJ
= utils
/testparm.o \
523 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
524 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
526 SMBPASSWD_OBJ
= utils
/smbpasswd.o utils
/passwd_util.o
$(PASSCHANGE_OBJ
) \
527 $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
528 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
529 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
)
531 PDBEDIT_OBJ
= utils
/pdbedit.o utils
/passwd_util.o
$(PARAM_OBJ
) $(PASSDB_OBJ
) \
532 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
533 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) libsmb
/asn1.o \
534 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) libsmb
/errormap.o
536 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ
)
538 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
539 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
540 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
541 rpcclient
/cmd_dfs.o rpcclient
/cmd_reg.o \
542 rpcclient
/cmd_ds.o rpcclient
/cmd_echo.o \
543 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
544 rpcclient
/cmd_unixinfo.o lib
/display_sec.o
546 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
547 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
548 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
549 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
550 $(LIBADS_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
551 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
)
553 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
554 lib
/replace1.o
$(SNPRINTF_OBJ
) @BUILD_INIPARSER@
556 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
557 libsmb
/libsmb_cache.o \
558 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
559 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
560 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
561 $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
)
563 CAC_OBJ
= $(LIBSMBCLIENT_OBJ
) \
564 libmsrpc
/libmsrpc.o libmsrpc
/libmsrpc_internal.o \
565 libmsrpc
/cac_lsarpc.o libmsrpc
/cac_winreg.o libmsrpc
/cac_samr.o \
566 libmsrpc
/cac_svcctl.o
568 LIBSMBSHAREMODES_OBJ
= libsmb
/smb_share_modes.o
$(TDB_BASE_OBJ
)
570 # This shared library is intended for linking with unit test programs
571 # to test Samba internals. It's called libbigballofmud.so to
572 # discourage casual usage.
574 LIBBIGBALLOFMUD_MAJOR
= 0
576 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) \
577 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
578 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
)
580 LIBBIGBALLOFMUD_PICOBJS
= $(LIBBIGBALLOFMUD_OBJ
:.o
=.@PICSUFFIX@
)
582 CLIENT_OBJ1
= client
/client.o client
/clitar.o rpc_client
/cli_srvsvc.o \
583 rpc_parse
/parse_srv.o rpc_client
/cli_pipe.o rpc_parse
/parse_rpc.o \
584 rpc_client
/cli_netlogon.o rpc_parse
/parse_net.o
586 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
587 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
588 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
590 TOOL_OBJ
= client
/smbctool.o client
/clitar.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
591 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
592 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
594 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_domain.o utils
/net_help.o \
595 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
596 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
597 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
598 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
599 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
600 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
601 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
602 utils
/passwd_util.o utils
/net_dns.o
604 NET_OBJ
= $(NET_OBJ1
) $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
605 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
606 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
607 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(IDMAP_OBJ
) \
608 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
609 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
610 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
613 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
614 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
616 MOUNT_OBJ
= client
/smbmount.o \
617 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
619 MNT_OBJ
= client
/smbmnt.o lib
/replace.o lib
/timegm.o
$(VERSION_OBJ
) $(SNPRINTF_OBJ
) @SOCKWRAP@
621 UMOUNT_OBJ
= client
/smbumount.o @SOCKWRAP@
623 CIFS_MOUNT_OBJ
= client
/mount.cifs.o
625 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o
627 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
628 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
630 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
631 torture
/denytest.o torture
/mangle_test.o
633 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
634 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
636 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
637 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
639 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
640 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
642 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
643 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
645 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
646 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
648 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
649 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
650 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
)
653 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
655 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
657 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
659 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
660 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
662 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
663 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
664 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) \
665 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
)
667 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
669 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
670 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
671 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
)
673 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
675 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
676 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
678 registry
/reg_eventlog.o rpc_server
/srv_eventlog_lib.o registry
/reg_util.o \
681 SHARESEC_OBJ0
= utils
/sharesec.o
682 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
683 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
684 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
686 TALLOCTORT_OBJ
= lib
/talloctort.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
687 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LIBSAMBA_OBJ
) $(SECRETS_OBJ
)
689 RPCTORTURE_OBJ
= torture
/rpctorture.o \
690 rpcclient
/display.o \
691 rpcclient
/cmd_lsarpc.o \
692 rpcclient
/cmd_wkssvc.o \
693 rpcclient
/cmd_samr.o \
694 rpcclient
/cmd_srvsvc.o \
695 rpcclient
/cmd_netlogon.o \
696 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
697 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) $(SECRETS_OBJ
)
699 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
701 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(SECRETS_OBJ
) \
702 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
)
704 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) $(LIBNDR_OBJ
) $(LIBNDR_GEN_OBJ
) \
705 $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(SWAT_OBJ1
) $(LIB_OBJ
) $(LIBSMB_OBJ
) \
706 $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
707 $(LIBMSRPC_OBJ
) @SMBWRAP_OBJS@ \
708 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) $(KRBCLIENT_OBJ
) \
709 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
710 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
711 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
712 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
713 $(AUTH_SAM_OBJ
) $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
714 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) $(RPC_LSA_DS_OBJ
) \
715 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
) \
716 $(RPC_ECHO_OBJ
) $(RPC_SVCCTL_OBJ
) $(RPC_EVENTLOG_OBJ
) $(SMBLDAP_OBJ
) \
717 $(IDMAP_OBJ
) libsmb
/spnego.o
$(PASSCHANGE_OBJ
) $(RPC_UNIXINFO_OBJ
) \
718 $(RPC_NTSVCS_OBJ
) utils
/passwd_util.o
720 WINBIND_WINS_NSS_OBJ
= nsswitch
/wins.o
$(PARAM_OBJ
) \
721 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
723 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
724 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o \
725 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
726 $(SECRETS_OBJ
) $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
727 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
729 PAM_SMBPASS_PICOOBJ
= $(PAM_SMBPASS_OBJ_0
:.o
=.@PICSUFFIX@
)
731 IDMAP_OBJ
= sam
/idmap.o sam
/idmap_util.o @IDMAP_STATIC@
734 nsswitch
/winbindd.o \
735 nsswitch
/winbindd_user.o \
736 nsswitch
/winbindd_group.o \
737 nsswitch
/winbindd_util.o \
738 nsswitch
/winbindd_cache.o \
739 nsswitch
/winbindd_pam.o \
740 nsswitch
/winbindd_sid.o \
741 nsswitch
/winbindd_misc.o \
742 nsswitch
/winbindd_cm.o \
743 nsswitch
/winbindd_wins.o \
744 nsswitch
/winbindd_rpc.o \
745 nsswitch
/winbindd_reconnect.o \
746 nsswitch
/winbindd_ads.o \
747 nsswitch
/winbindd_passdb.o \
748 nsswitch
/winbindd_dual.o \
749 nsswitch
/winbindd_async.o \
750 nsswitch
/winbindd_creds.o \
751 nsswitch
/winbindd_cred_cache.o \
752 nsswitch
/winbindd_ccache_access.o
755 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
756 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
757 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
758 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
759 $(SECRETS_OBJ
) $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
760 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) \
761 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) \
762 $(LIBADS_SERVER_OBJ
) $(SERVER_MUTEX_OBJ
)
764 WBINFO_OBJ
= nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
765 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
767 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) lib
/replace1.o lib
/snprintf.o @WINBIND_NSS_EXTRA_OBJS@
769 POPT_OBJS
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
770 popt
/popthelp.o popt
/poptparse.o
772 INIPARSER_OBJ
= iniparser
/src
/iniparser.o iniparser
/src
/dictionary.o \
773 iniparser
/src
/strlib.o
775 TDBBACKUP_OBJ
= tdb
/tools
/tdbbackup.o tdb
/common
/tdbback.o
$(SNPRINTF_OBJ
) \
778 TDBTOOL_OBJ
= tdb
/tools
/tdbtool.o
$(TDBBASE_OBJ
) $(SNPRINTF_OBJ
)
780 TDBDUMP_OBJ
= tdb
/tools
/tdbdump.o
$(TDBBASE_OBJ
) $(SNPRINTF_OBJ
)
782 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
784 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
785 libsmb
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
786 libads
/kerberos_verify.o
$(SECRETS_OBJ
) $(SERVER_MUTEX_OBJ
) \
787 libads
/authdata.o
$(RPC_PARSE_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
788 $(SMBLDAP_OBJ
) $(DOSERR_OBJ
) rpc_parse
/parse_net.o
$(LIBNMB_OBJ
) \
791 ######################################################################
793 ######################################################################
794 all : SHOWFLAGS proto_exists
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
795 $(SHLIBS
) $(MODULES
) $(PAM_MODULES
) @EXTRA_ALL_TARGETS@
797 pam_modules
: $(PAM_MODULES
)
799 pam_smbpass
: SHOWFLAGS proto_exists bin
/pam_smbpass.@SHLIBEXT@
801 pam_winbind
: SHOWFLAGS proto_exists bin
/pam_winbind.@SHLIBEXT@
803 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
805 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
807 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
809 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
811 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
813 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
815 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
817 smbctool
: SHOWFLAGS bin
/smbctool@EXEEXT@
819 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
821 rpctorture
: SHOWFLAGS bin
/rpctorture@EXEEXT@
823 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
825 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
827 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
829 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
831 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
833 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
835 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
836 @WINBIND_WINS_NSS@ bin
/pam_winbind.@SHLIBEXT@
838 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
840 modules
: SHOWFLAGS proto_exists
$(MODULES
)
842 cac
: SHOWFLAGS
$(LIBMSRPC
)
845 #####################################################################
847 IDL_FILES
= unixinfo.idl lsa.idl dfs.idl
849 pidl
/Makefile
: pidl
/Makefile.PL
850 @echo Building Perl IDL Compiler....
851 @cd
$(srcdir)/pidl
&& $(PERL
) Makefile.PL
853 pidl
/lib
/Parse
/Pidl
/IDL.pm
: pidl
/Makefile
854 @cd
$(srcdir)/pidl
&& make
856 idl
: pidl
/lib
/Parse
/Pidl
/IDL.pm
857 @IDL_FILES
="$(IDL_FILES)" CPP
="$(CPP)" PERL
="$(PERL)" \
858 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(PIDL_ARGS
)
861 #####################################################################
864 everything
: all libsmbclient debug2html smbfilter talloctort modules torture \
868 .SUFFIXES
: .c .o .@PICSUFFIX@ .lo
871 @echo
"Using FLAGS = $(FLAGS)"
872 @echo
" LIBS = $(LIBS)"
873 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
874 @echo
" LDFLAGS = $(LDFLAGS)"
875 @echo
" PIE_CFLAGS = @PIE_CFLAGS@"
876 @echo
" PIE_LDFLAGS = @PIE_LDFLAGS@"
878 MAKEDIR
= || exec false
; \
879 if
test -d
"$$dir"; then
:; else \
880 echo mkdir
"$$dir"; \
881 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
884 exec false
; fi || exec false
887 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
888 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
889 @if
test -n
"$(CC_CHECKER)"; then \
890 echo
"Checking $*.c with '$(CC_CHECKER)'";\
891 $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) @PIE_CFLAGS@
-c
$< -o
$@
;\
894 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PIE_CFLAGS@
-c
$< -o
$@
895 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
897 # this adds support for precompiled headers. To use it, install a snapshot
898 # of gcc-3.4 and run 'make pch' before you do the main build.
900 rm -f
$(builddir
)/include/includes.h.gch
901 $(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PIE_CFLAGS@
-c
$(srcdir)/include/includes.h
-o
$(builddir
)/include/includes.h.gch
903 # These dependencies are only approximately correct: we want to make
904 # sure Samba's paths are updated if ./configure is re-run. Really it
905 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
906 # but since we also require "make install prefix=/opt/samba" *not* to
907 # rebuild it's a bit hard.
909 dynconfig.o
: dynconfig.c Makefile
911 @
$(CC
) $(FLAGS
) $(PATH_FLAGS
) @PIE_CFLAGS@
-c
$(srcdir)/dynconfig.c
-o
$@
913 dynconfig.@PICSUFFIX@
: dynconfig.c Makefile
914 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
915 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
916 @echo Compiling
$*.c with @PICFLAGS@
917 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PATH_FLAGS
) @PICFLAGS@
-c
$(srcdir)/dynconfig.c
-o
$@
918 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.@PICSUFFIX@$$%.o%'` $@
920 lib
/version.o
: lib
/version.c
include/version.h
922 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PATH_FLAGS
) @PIE_CFLAGS@
-c
$(srcdir)/lib
/version.c
-o
$@
924 lib
/version.@PICSUFFIX@
: lib
/version.c
include/version.h
925 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
926 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
927 @echo Compiling
$*.c with @PICFLAGS@
928 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PATH_FLAGS
) @PICFLAGS@
-c
$(srcdir)/lib
/version.c
-o
$@
929 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.@PICSUFFIX@$$%.o%'` $@
931 smbd
/build_options.o
: smbd
/build_options.c Makefile
include/config.h
include/build_env.h
include/proto.h
933 @
$(CC
) $(FLAGS
) $(PATH_FLAGS
) @PIE_CFLAGS@
-c smbd
/build_options.c
-o
$@
935 smbd
/build_options.c
: include/config.h.in script
/mkbuildoptions.awk
937 @
dir=smbd
$(MAKEDIR
) && $(AWK
) -f
$(srcdir)/script
/mkbuildoptions.awk
> $(builddir
)/smbd
/build_options.c
< $(srcdir)/include/config.h.in
940 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
941 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
942 @if
test -n
"$(CC_CHECKER)"; then \
943 echo
"Checking $*.c with '$(CC_CHECKER)' and @PICFLAGS@";\
944 $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAGS@
-c
$< -o
$*.@PICSUFFIX@
;\
946 @echo Compiling
$*.c with @PICFLAGS@
947 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAGS@
-c
$< -o
$*.@PICSUFFIX@
948 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.@PICSUFFIX@$$%.o%'` $@
951 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
952 dir=bin
$(MAKEDIR
); fi
953 @
: >> $@ ||
: > $@
# what a fancy emoticon!
955 bin
/smbd@EXEEXT@
: $(SMBD_OBJ
) @BUILD_POPT@ bin
/.dummy
957 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LDAP_LIBS
) \
958 $(KRB5LIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
959 $(ACL_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@ @SMBD_LIBS@
961 bin
/nmbd@EXEEXT@
: $(NMBD_OBJ
) @BUILD_POPT@ bin
/.dummy
963 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
965 bin
/swat@EXEEXT@
: $(SWAT_OBJ
) @BUILD_POPT@ bin
/.dummy
967 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINT_LIBS
) \
968 $(AUTH_LIBS
) $(LIBS
) $(PASSDB_LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
970 bin
/rpcclient@EXEEXT@
: $(RPCCLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
972 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LDFLAGS
) $(PASSDB_LIBS
) $(RPCCLIENT_OBJ
) \
973 $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@ \
974 $(KRB5LIBS
) $(LDAP_LIBS
)
976 bin
/smbclient@EXEEXT@
: $(CLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
978 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
980 bin
/smbctool@EXEEXT@
: $(TOOL_OBJ
) @BUILD_POPT@ bin
/.dummy
982 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(TOOL_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) -Lbin
-lsmbclient
984 bin
/net@EXEEXT@
: $(NET_OBJ
) @BUILD_POPT@ bin
/.dummy
986 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
)
988 bin
/profiles@EXEEXT@
: $(PROFILES_OBJ
) @BUILD_POPT@ bin
/.dummy
990 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(PROFILES_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
992 bin
/smbspool@EXEEXT@
: $(CUPS_OBJ
) bin
/.dummy
994 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(CUPS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
996 bin
/smbmount@EXEEXT@
: $(MOUNT_OBJ
) bin
/.dummy
998 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1000 bin
/smbmnt@EXEEXT@
: $(MNT_OBJ
) bin
/.dummy
1002 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(MNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1004 bin
/smbumount@EXEEXT@
: $(UMOUNT_OBJ
) bin
/.dummy
1006 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1008 bin
/mount.cifs@EXEEXT@
: $(CIFS_MOUNT_OBJ
) bin
/.dummy
1010 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(CIFS_MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1012 bin
/umount.cifs@EXEEXT@
: $(CIFS_UMOUNT_OBJ
) bin
/.dummy
1014 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(CIFS_UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1016 bin
/testparm@EXEEXT@
: $(TESTPARM_OBJ
) @BUILD_POPT@ bin
/.dummy
1018 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1020 bin
/smbstatus@EXEEXT@
: $(STATUS_OBJ
) @BUILD_POPT@ bin
/.dummy
1022 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) \
1025 bin
/smbcontrol@EXEEXT@
: $(SMBCONTROL_OBJ
) @BUILD_POPT@ bin
/.dummy
1027 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) @PIE_LDFLAGS@
-o
$@ \
1028 $(SMBCONTROL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1029 $(LIBS
) $(LDAP_LIBS
) @LIBUNWIND_PTRACE@ @POPTLIBS@
1031 bin
/smbtree@EXEEXT@
: $(SMBTREE_OBJ
) @BUILD_POPT@ bin
/.dummy
1033 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1035 bin
/smbpasswd@EXEEXT@
: $(SMBPASSWD_OBJ
) @BUILD_POPT@ bin
/.dummy
1037 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(PASSDB_LIBS
) \
1038 $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1040 bin
/pdbedit@EXEEXT@
: $(PDBEDIT_OBJ
) @BUILD_POPT@ bin
/.dummy
1042 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(LDAP_LIBS
)
1044 bin
/smbget@EXEEXT@
: $(SMBGET_OBJ
) @BUILD_POPT@ bin
/.dummy
1046 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBGET_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1048 bin
/samtest@EXEEXT@
: $(SAMTEST_OBJ
) @BUILD_POPT@ bin
/.dummy
1050 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1052 bin
/nmblookup@EXEEXT@
: $(NMBLOOKUP_OBJ
) @BUILD_POPT@ bin
/.dummy
1054 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(LDAP_LIBS
)
1056 bin
/smbtorture@EXEEXT@
: $(SMBTORTURE_OBJ
) bin
/.dummy
1058 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1060 bin
/talloctort@EXEEXT@
: $(TALLOCTORT_OBJ
) bin
/.dummy
1062 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) \
1063 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
)
1065 bin
/masktest@EXEEXT@
: $(MASKTEST_OBJ
) bin
/.dummy
1067 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1069 bin
/msgtest@EXEEXT@
: $(MSGTEST_OBJ
) bin
/.dummy
1071 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1073 bin
/smbcacls@EXEEXT@
: $(SMBCACLS_OBJ
) @BUILD_POPT@ bin
/.dummy
1075 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1077 bin
/smbcquotas@EXEEXT@
: $(SMBCQUOTAS_OBJ
) @BUILD_POPT@ bin
/.dummy
1079 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBCQUOTAS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1081 bin
/eventlogadm@EXEEXT@
: $(EVTLOGADM_OBJ
) @BUILD_POPT@ bin
/.dummy
1083 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(EVTLOGADM_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1085 bin
/sharesec@EXEEXT@
: $(SHARESEC_OBJ
) @BUILD_POPT@ bin
/.dummy
1087 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SHARESEC_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1089 bin
/locktest@EXEEXT@
: $(LOCKTEST_OBJ
) bin
/.dummy
1091 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1093 bin
/nsstest@EXEEXT@
: $(NSSTEST_OBJ
) bin
/.dummy
1095 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1097 bin
/pdbtest@EXEEXT@
: $(PDBTEST_OBJ
) bin
/.dummy
1099 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(PDBTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@
1101 bin
/vfstest@EXEEXT@
: $(VFSTEST_OBJ
) @BUILD_POPT@ bin
/.dummy
1103 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) $(ACL_LIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) @SMBD_LIBS@
1105 bin
/smbiconv@EXEEXT@
: $(SMBICONV_OBJ
) @BUILD_POPT@ bin
/.dummy
1107 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBICONV_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
1109 bin
/log2pcap@EXEEXT@
: $(LOG2PCAP_OBJ
) @BUILD_POPT@ bin
/.dummy
1111 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LOG2PCAP_OBJ
) $(LDFLAGS
) $(DYNEXP
) @POPTLIBS@
$(LIBS
)
1113 bin
/locktest2@EXEEXT@
: $(LOCKTEST2_OBJ
) bin
/.dummy
1115 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1117 bin
/rpctorture@EXEEXT@
: $(RPCTORTURE_OBJ
) bin
/.dummy
1119 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1121 bin
/debug2html@EXEEXT@
: $(DEBUG2HTML_OBJ
) bin
/.dummy
1123 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
1125 bin
/smbfilter@EXEEXT@
: $(SMBFILTER_OBJ
) bin
/.dummy
1127 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1130 bin
/libaddns.@SHLIBEXT@
: $(LIBADDNS_OBJ
:.o
=.@PICSUFFIX@
)
1131 @echo Linking libaddns shared library
$@
1132 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBADDNS_OBJ
:.o
=.@PICSUFFIX@
) $(LDFLAGS
) $(LIBS
) \
1133 $(KRB5LIBS
) $(UUID_LIBS
)\
1134 @SONAMEFLAG@
`basename $@`.
$(LIBADDNS_MAJOR
)
1136 bin
/libaddns.a
: $(LIBADDNS_OBJ
:.o
=.@PICSUFFIX@
)
1137 @echo Linking libaddns non-shared library
$@
1138 @
-$(AR
) -rc
$@
$(LIBADDNS_OBJ
:.o
=.@PICSUFFIX@
)
1140 bin
/libsmbclient.@SHLIBEXT@
: $(LIBSMBCLIENT_OBJ
:.o
=.@PICSUFFIX@
)
1141 @echo Linking libsmbclient shared library
$@
1142 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_OBJ
:.o
=.@PICSUFFIX@
) $(LDFLAGS
) $(LIBS
) \
1143 $(KRB5LIBS
) $(LDAP_LIBS
) \
1144 @SONAMEFLAG@
`basename $@`.
$(LIBSMBCLIENT_MAJOR
)
1146 bin
/libsmbclient.a
: $(LIBSMBCLIENT_OBJ
:.o
=.@PICSUFFIX@
)
1147 @echo Linking libsmbclient non-shared library
$@
1148 @
-$(AR
) -rc
$@
$(LIBSMBCLIENT_OBJ
:.o
=.@PICSUFFIX@
)
1150 bin
/libsmbsharemodes.@SHLIBEXT@
: $(LIBSMBSHAREMODES_OBJ
:.o
=.@PICSUFFIX@
)
1151 @echo Linking libsmbsharemodes shared library
$@
1152 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBSHAREMODES_OBJ
:.o
=.@PICSUFFIX@
) $(LDFLAGS
) $(LIBS
) \
1153 $(KRB5LIBS
) $(LDAP_LIBS
) \
1154 @SONAMEFLAG@
`basename $@`.
$(LIBSMBSHAREMODES_MAJOR
)
1156 bin
/libsmbsharemodes.a
: $(LIBSMBSHAREMODES_OBJ
:.o
=.@PICSUFFIX@
)
1157 @echo Linking libsmbsharemodes non-shared library
$@
1158 @
-$(AR
) -rc
$@
$(LIBSMBSHAREMODES_OBJ
:.o
=.@PICSUFFIX@
)
1160 bin
/libmsrpc.@SHLIBEXT@
: $(CAC_OBJ
:.o
=.@PICSUFFIX@
)
1161 @echo Linking libmsrpc shared library
$@
1162 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(CAC_OBJ
:.o
=.@PICSUFFIX@
) $(LDFLAGS
) $(LIBS
) \
1163 @SONAMEFLAG@
`basename $@`.
$(LIBMSRPC_MAJOR
)
1165 bin
/libmsrpc.a
: $(CAC_OBJ
:.o
=.@PICSUFFIX@
)
1166 @echo Linking libmsrpc non-shared library
$@
1167 @
-$(AR
) -rc
$@
$(CAC_OBJ
:.o
=.@PICSUFFIX@
)
1169 # This is probably wrong for anything other than the GNU linker.
1170 bin
/libbigballofmud.@SHLIBEXT@
: $(LIBBIGBALLOFMUD_PICOBJS
)
1171 @echo Linking bigballofmud shared library
$@
1172 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_PICOBJS
) $(LIBS
) \
1173 $(PASSDB_LIBS
) $(IDMAP_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1174 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
1175 ln
-snf libbigballofmud.so bin
/libbigballofmud.so
.0
1177 # It would be nice to build a static bigballofmud too, but when I try
1178 # I get linker errors about dl_open and similar things. I'm not sure if
1179 # it can be fixed or if they just can't be called from a static
1182 libsmbclient
: $(LIBSMBCLIENT
)
1183 libsmbsharemodes
: $(LIBSMBSHAREMODES
)
1184 libmsrpc
: $(LIBMSRPC
)
1185 libaddns
: $(LIBADDNS
)
1187 bin
/librpc_lsarpc.@SHLIBEXT@
: $(RPC_LSA_OBJ
)
1189 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_LSA_OBJ
) -lc \
1190 @SONAMEFLAG@
`basename $@`
1192 bin
/librpc_samr.@SHLIBEXT@
: $(RPC_SAMR_OBJ
)
1194 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_SAMR_OBJ
) -lc \
1195 @SONAMEFLAG@
`basename $@`
1197 bin
/librpc_unixinfo.@SHLIBEXT@
: $(RPC_UNIXINFO_OBJ
)
1199 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_UNIXINFO_OBJ
) -lc \
1200 @SONAMEFLAG@
`basename $@`
1202 bin
/librpc_srvsvc.@SHLIBEXT@
: $(RPC_SVC_OBJ
)
1204 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_SVC_OBJ
) -lc \
1205 @SONAMEFLAG@
`basename $@`
1207 bin
/librpc_svcctl.@SHLIBEXT@
: $(RPC_SVCCTL_OBJ
)
1209 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_SVCCTL_OBJ
) -lc \
1210 @SONAMEFLAG@
`basename $@`
1212 bin
/librpc_ntsvcs.@SHLIBEXT@
: $(RPC_NTSVCS_OBJ
)
1214 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_NTSVCS_OBJ
) -lc \
1215 @SONAMEFLAG@
`basename $@`
1217 bin
/librpc_wkssvc.@SHLIBEXT@
: $(RPC_WKS_OBJ
)
1219 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_WKS_OBJ
) -lc \
1220 @SONAMEFLAG@
`basename $@`
1222 bin
/librpc_NETLOGON.@SHLIBEXT@
: $(RPC_NETLOG_OBJ
)
1224 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_NETLOG_OBJ
) -lc \
1225 @SONAMEFLAG@
`basename $@`
1227 bin
/librpc_winreg.@SHLIBEXT@
: $(RPC_REG_OBJ
)
1229 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_REG_OBJ
) -lc \
1230 @SONAMEFLAG@
`basename $@`
1232 bin
/librpc_lsa_ds.@SHLIBEXT@
: $(RPC_LSA_DS_OBJ
)
1234 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_LSA_DS_OBJ
) -lc \
1235 @SONAMEFLAG@
`basename $@`
1237 bin
/librpc_spoolss.@SHLIBEXT@
: $(RPC_SPOOLSS_OBJ
)
1239 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_SPOOLSS_OBJ
) -lc \
1240 @SONAMEFLAG@
`basename $@`
1242 bin
/librpc_eventlog.@SHLIBEXT@
: $(RPC_EVENTLOG_OBJ
)
1244 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_EVENTLOG_OBJ
) -lc \
1245 @SONAMEFLAG@
`basename $@`
1247 bin
/librpc_netdfs.@SHLIBEXT@
: $(RPC_DFS_OBJ
)
1249 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_DFS_OBJ
) -lc \
1250 @SONAMEFLAG@
`basename $@`
1252 bin
/librpc_echo.@SHLIBEXT@
: $(RPC_ECHO_OBJ
)
1254 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_ECHO_OBJ
) -lc \
1255 @SONAMEFLAG@
`basename $@`
1257 bin
/winbindd@EXEEXT@
: $(WINBINDD_OBJ
) @BUILD_POPT@ bin
/.dummy
1259 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(WINBINDD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1260 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(NSCD_LIBS
)
1262 # Please don't add .o files to libnss_winbind, libnss_wins, or the pam_winbind
1263 # libraries. Add to the appropriate PICOBJ variable instead.
1265 @WINBIND_NSS@
: $(WINBIND_NSS_OBJ
:.o
=.@PICSUFFIX@
)
1267 @
$(SHLD
) $(WINBIND_NSS_LDSHFLAGS
) -o
$@
$(WINBIND_NSS_OBJ
:.o
=.@PICSUFFIX@
) \
1268 @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1270 @WINBIND_WINS_NSS@
: $(WINBIND_WINS_NSS_OBJ
:.o
=.@PICSUFFIX@
)
1272 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_WINS_NSS_OBJ
:.o
=.@PICSUFFIX@
) \
1273 $(LDAP_LIBS
) $(KRB5LIBS
) $(LIBS
) \
1274 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1276 bin
/pam_winbind.@SHLIBEXT@
: $(PAM_WINBIND_OBJ
:.o
=.@PICSUFFIX@
) bin
/.dummy
1277 @echo
"Linking shared library $@"
1278 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
:.o
=.@PICSUFFIX@
) \
1279 @SONAMEFLAG@
`basename $@` -lpam @INIPARSERLIBS@
1281 bin
/builtin.@SHLIBEXT@
: $(AUTH_BUILTIN_OBJ
:.o
=.@PICSUFFIX@
)
1282 @echo
"Building plugin $@"
1283 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(AUTH_BUILTIN_OBJ
:.o
=.@PICSUFFIX@
) @SONAMEFLAG@
`basename $@`
1285 bin
/domain.@SHLIBEXT@
: $(AUTH_DOMAIN_OBJ
:.o
=.@PICSUFFIX@
)
1286 @echo
"Building plugin $@"
1287 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(AUTH_DOMAIN_OBJ
:.o
=.@PICSUFFIX@
) @SONAMEFLAG@
`basename $@`
1289 bin
/script.@SHLIBEXT@
: $(AUTH_SCRIPT_OBJ
:.o
=.@PICSUFFIX@
)
1290 @echo
"Building plugin $@"
1291 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(AUTH_SCRIPT_OBJ
:.o
=.@PICSUFFIX@
) @SONAMEFLAG@
`basename $@`
1293 bin
/smbserver.@SHLIBEXT@
: $(AUTH_SERVER_OBJ
:.o
=.@PICSUFFIX@
)
1294 @echo
"Building plugin $@"
1295 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(AUTH_SERVER_OBJ
:.o
=.@PICSUFFIX@
) @SONAMEFLAG@
`basename $@`
1297 bin
/winbind.@SHLIBEXT@
: $(AUTH_WINBIND_OBJ
:.o
=.@PICSUFFIX@
)
1298 @echo
"Building plugin $@"
1299 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(AUTH_WINBIND_OBJ
:.o
=.@PICSUFFIX@
) @SONAMEFLAG@
`basename $@`
1301 bin
/unix.@SHLIBEXT@
: $(AUTH_UNIX_OBJ
:.o
=.@PICSUFFIX@
)
1302 @echo
"Building plugin $@"
1303 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(AUTH_UNIX_OBJ
:.o
=.@PICSUFFIX@
) @SONAMEFLAG@
`basename $@`
1305 bin
/sam.@SHLIBEXT@
: $(AUTH_SAM_OBJ
:.o
=.@PICSUFFIX@
)
1306 @echo
"Building plugin $@"
1307 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(AUTH_SAM_OBJ
:.o
=.@PICSUFFIX@
) @SONAMEFLAG@
`basename $@`
1309 bin
/ldapsam.@SHLIBEXT@
: passdb
/pdb_ldap.@PICSUFFIX@
1310 @echo
"Building plugin $@"
1311 @
$(SHLD
) $(LDSHFLAGS
) $(LDAP_LIBS
) -o
$@ passdb
/pdb_ldap.@PICSUFFIX@ \
1312 @SONAMEFLAG@
`basename $@`
1314 bin
/tdbsam.@SHLIBEXT@
: passdb
/pdb_tdb.@PICSUFFIX@
1315 @echo
"Building plugin $@"
1316 @
$(SHLD
) $(LDSHFLAGS
) -o
$@ passdb
/pdb_tdb.@PICSUFFIX@ \
1317 @SONAMEFLAG@
`basename $@`
1319 bin
/smbpasswd.@SHLIBEXT@
: passdb
/pdb_smbpasswd.@PICSUFFIX@
1320 @echo
"Building plugin $@"
1321 @
$(SHLD
) $(LDSHFLAGS
) -o
$@ passdb
/pdb_smbpasswd.@PICSUFFIX@ \
1322 @SONAMEFLAG@
`basename $@`
1324 bin
/rid.@SHLIBEXT@
: sam
/idmap_rid.@PICSUFFIX@
1325 @echo
"Building plugin $@"
1326 @
$(SHLD
) $(LDSHFLAGS
) -o
$@ sam
/idmap_rid.@PICSUFFIX@ \
1327 @SONAMEFLAG@
`basename $@`
1329 bin
/ad.@SHLIBEXT@
: sam
/idmap_ad.@PICSUFFIX@
1330 @echo
"Building plugin $@"
1331 @
$(SHLD
) $(LDSHFLAGS
) -o
$@ sam
/idmap_ad.@PICSUFFIX@ \
1332 @SONAMEFLAG@
`basename $@`
1334 bin
/weird.@SHLIBEXT@
: $(DEVEL_HELP_WEIRD_OBJ
:.o
=.@PICSUFFIX@
)
1335 @echo
"Building plugin $@"
1336 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(DEVEL_HELP_WEIRD_OBJ
:.o
=.@PICSUFFIX@
) \
1337 @SONAMEFLAG@
`basename $@`
1339 bin
/CP850.@SHLIBEXT@
: $(CP850_OBJ
:.o
=.@PICSUFFIX@
)
1340 @echo
"Building plugin $@"
1341 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(CP850_OBJ
:.o
=.@PICSUFFIX@
) \
1342 @SONAMEFLAG@
`basename $@`
1344 bin
/CP437.@SHLIBEXT@
: $(CP437_OBJ
:.o
=.@PICSUFFIX@
)
1345 @echo
"Building plugin $@"
1346 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(CP437_OBJ
:.o
=.@PICSUFFIX@
) \
1347 @SONAMEFLAG@
`basename $@`
1349 bin
/macosxfs.@SHLIBEXT@
: $(CHARSET_MACOSXFS_OBJ
:.o
=.@PICSUFFIX@
)
1350 @echo
"Building plugin $@"
1351 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(CHARSET_MACOSXFS_OBJ
:.o
=.@PICSUFFIX@
) \
1352 -framework CoreFoundation @SONAMEFLAG@
`basename $@`
1354 # NOTE, there is no build rule for a dynamic default VFS module because
1355 # this one MUST MUST MUST be built statically.
1357 bin
/audit.@SHLIBEXT@
: $(VFS_AUDIT_OBJ
:.o
=.@PICSUFFIX@
)
1358 @echo
"Building plugin $@"
1359 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_AUDIT_OBJ
:.o
=.@PICSUFFIX@
) \
1360 @SONAMEFLAG@
`basename $@`
1362 bin
/extd_audit.@SHLIBEXT@
: $(VFS_EXTD_AUDIT_OBJ
:.o
=.@PICSUFFIX@
)
1363 @echo
"Building plugin $@"
1364 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_EXTD_AUDIT_OBJ
:.o
=.@PICSUFFIX@
) \
1365 @SONAMEFLAG@
`basename $@`
1367 bin
/full_audit.@SHLIBEXT@
: $(VFS_FULL_AUDIT_OBJ
:.o
=.@PICSUFFIX@
)
1368 @echo
"Building plugin $@"
1369 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_FULL_AUDIT_OBJ
:.o
=.@PICSUFFIX@
) \
1370 @SONAMEFLAG@
`basename $@`
1372 bin
/recycle.@SHLIBEXT@
: $(VFS_RECYCLE_OBJ
:.o
=.@PICSUFFIX@
)
1373 @echo
"Building plugin $@"
1374 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_RECYCLE_OBJ
:.o
=.@PICSUFFIX@
) \
1375 @SONAMEFLAG@
`basename $@`
1377 bin
/netatalk.@SHLIBEXT@
: $(VFS_NETATALK_OBJ
:.o
=.@PICSUFFIX@
)
1378 @echo
"Building plugin $@"
1379 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_NETATALK_OBJ
:.o
=.@PICSUFFIX@
) \
1380 @SONAMEFLAG@
`basename $@`
1382 bin
/fake_perms.@SHLIBEXT@
: $(VFS_FAKE_PERMS_OBJ
:.o
=.@PICSUFFIX@
)
1383 @echo
"Building plugin $@"
1384 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_FAKE_PERMS_OBJ
:.o
=.@PICSUFFIX@
) \
1385 @SONAMEFLAG@
`basename $@`
1387 bin
/default_quota.@SHLIBEXT@
: $(VFS_DEFAULT_QUOTA_OBJ
:.o
=.@PICSUFFIX@
)
1388 @echo
"Building plugin $@"
1389 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_DEFAULT_QUOTA_OBJ
:.o
=.@PICSUFFIX@
) \
1390 @SONAMEFLAG@
`basename $@`
1392 bin
/readonly.@SHLIBEXT@
: $(VFS_READONLY_OBJ
:.o
=.@PICSUFFIX@
)
1393 @echo
"Building plugin $@"
1394 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_READONLY_OBJ
:.o
=.@PICSUFFIX@
) \
1395 @SONAMEFLAG@
`basename $@`
1397 bin
/shadow_copy.@SHLIBEXT@
: $(VFS_SHADOW_COPY_OBJ
:.o
=.@PICSUFFIX@
)
1398 @echo
"Building plugin $@"
1399 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_SHADOW_COPY_OBJ
:.o
=.@PICSUFFIX@
) \
1400 @SONAMEFLAG@
`basename $@`
1402 bin
/cap.@SHLIBEXT@
: $(VFS_CAP_OBJ
:.o
=.@PICSUFFIX@
)
1403 @echo
"Building plugin $@"
1404 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_CAP_OBJ
:.o
=.@PICSUFFIX@
) \
1405 @SONAMEFLAG@
`basename $@`
1407 bin
/expand_msdfs.@SHLIBEXT@
: $(VFS_EXPAND_MSDFS_OBJ
:.o
=.@PICSUFFIX@
)
1408 @echo
"Building plugin $@"
1409 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_EXPAND_MSDFS_OBJ
:.o
=.@PICSUFFIX@
) \
1410 @SONAMEFLAG@
`basename $@`
1412 bin
/afsacl.@SHLIBEXT@
: $(VFS_AFSACL_OBJ
:.o
=.po
)
1413 @echo
"Building plugin $@"
1414 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_AFSACL_OBJ
:.o
=.po
) \
1415 @SONAMEFLAG@
`basename $@`
1417 bin
/posixacl.@SHLIBEXT@
: $(VFS_POSIXACL_OBJ
:.o
=.@PICSUFFIX@
)
1418 @echo
"Building plugin $@"
1419 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_POSIXACL_OBJ
:.o
=.@PICSUFFIX@
) \
1420 @SONAMEFLAG@
`basename $@`
1422 bin
/aixacl.@SHLIBEXT@
: $(VFS_AIXACL_OBJ
:.o
=.@PICSUFFIX@
)
1423 @echo
"Building plugin $@"
1424 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_AIXACL_OBJ
:.o
=.@PICSUFFIX@
) \
1425 @SONAMEFLAG@
`basename $@`
1427 bin
/solarisacl.@SHLIBEXT@
: $(VFS_SOLARISACL_OBJ
:.o
=.@PICSUFFIX@
)
1428 @echo
"Building plugin $@"
1429 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_SOLARISACL_OBJ
:.o
=.@PICSUFFIX@
) \
1430 @SONAMEFLAG@
`basename $@`
1432 bin
/irixacl.@SHLIBEXT@
: $(VFS_IRIXACL_OBJ
:.o
=.@PICSUFFIX@
)
1433 @echo
"Building plugin $@"
1434 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_IRIXACL_OBJ
:.o
=.@PICSUFFIX@
) \
1435 @SONAMEFLAG@
`basename $@`
1437 bin
/hpuxacl.@SHLIBEXT@
: $(VFS_HPUXACL_OBJ
:.o
=.@PICSUFFIX@
)
1438 @echo
"Building plugin $@"
1439 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_HPUXACL_OBJ
:.o
=.@PICSUFFIX@
) \
1440 @SONAMEFLAG@
`basename $@`
1442 bin
/tru64acl.@SHLIBEXT@
: $(VFS_TRU64ACL_OBJ
:.o
=.@PICSUFFIX@
)
1443 @echo
"Building plugin $@"
1444 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_TRU64ACL_OBJ
:.o
=.@PICSUFFIX@
) \
1445 @SONAMEFLAG@
`basename $@`
1447 bin
/catia.@SHLIBEXT@
: $(VFS_CATIA_OBJ
:.o
=.@PICSUFFIX@
)
1448 @echo
"Building plugin $@"
1449 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_CATIA_OBJ
:.o
=.@PICSUFFIX@
) \
1450 @SONAMEFLAG@
`basename $@`
1452 bin
/cacheprime.@SHLIBEXT@
: $(VFS_CACHEPRIME_OBJ
:.o
=.@PICSUFFIX@
)
1453 @echo
"Building plugin $@"
1454 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_CACHEPRIME_OBJ
:.o
=.@PICSUFFIX@
) \
1455 @SONAMEFLAG@
`basename $@`
1457 bin
/prealloc.@SHLIBEXT@
: $(VFS_PREALLOC_OBJ
:.o
=.@PICSUFFIX@
)
1458 @echo
"Building plugin $@"
1459 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_PREALLOC_OBJ
:.o
=.@PICSUFFIX@
) \
1460 @SONAMEFLAG@
`basename $@`
1462 bin
/commit.@SHLIBEXT@
: $(VFS_COMMIT_OBJ
:.o
=.@PICSUFFIX@
)
1463 @echo
"Building plugin $@"
1464 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_COMMIT_OBJ
:.o
=.@PICSUFFIX@
) \
1465 @SONAMEFLAG@
`basename $@`
1467 bin
/wbinfo@EXEEXT@
: $(WBINFO_OBJ
) @BUILD_POPT@ bin
/.dummy
1469 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LDFLAGS
) $(WBINFO_OBJ
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1471 bin
/ntlm_auth@EXEEXT@
: $(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1472 @BUILD_POPT@ bin
/.dummy
1474 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LDFLAGS
) $(DYNEXP
) $(NTLM_AUTH_OBJ
) \
1475 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBS
) \
1476 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1478 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_PICOOBJ
)
1479 @echo
"Linking shared library $@"
1480 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_PICOOBJ
) -lpam
$(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(KRB5LIBS
)
1482 bin
/tdbbackup@EXEEXT@
: $(TDBBACKUP_OBJ
) bin
/.dummy
1484 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBBACKUP_OBJ
) @SOCKWRAP@
1486 bin
/tdbtool@EXEEXT@
: $(TDBTOOL_OBJ
) bin
/.dummy
1488 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTOOL_OBJ
) @SOCKWRAP@
1490 bin
/tdbdump@EXEEXT@
: $(TDBDUMP_OBJ
) bin
/.dummy
1492 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBDUMP_OBJ
) @SOCKWRAP@
1494 bin
/t_strcmp@EXEEXT@
: bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strcmp.o
1495 $(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strcmp.o
-L .
/bin
-lbigballofmud
1497 bin
/t_strstr@EXEEXT@
: bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strstr.o
1498 $(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strstr.o
-L .
/bin
-lbigballofmud
1500 bin
/t_strappend@EXEEXT@
: bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strappend.o
1501 $(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strappend.o
-L .
/bin
-lbigballofmud
1503 bin
/t_stringoverflow@EXEEXT@
: bin
/libbigballofmud.@SHLIBEXT@ torture
/t_stringoverflow.o
1504 $(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DYNEXP
) torture
/t_stringoverflow.o
-L.
/bin
-lbigballofmud
1506 bin
/t_doschar@EXEEXT@
: bin
/libbigballofmud.@SHLIBEXT@ torture
/t_doschar.o
1507 $(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DYNEXP
) $(LIBS
) torture
/t_doschar.o
-L .
/bin
-lbigballofmud
1508 bin
/t_push_ucs2@EXEEXT@
: bin
/libbigballofmud.@SHLIBEXT@ torture
/t_push_ucs2.o
1509 $(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DYNEXP
) $(LIBS
) torture
/t_push_ucs2.o
-L .
/bin
-lbigballofmud
1511 bin
/t_snprintf@EXEEXT@
: lib
/snprintf.c
1512 $(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DYNEXP
) -DTEST_SNPRINTF lib
/snprintf.c
-lm
1514 bin
/timelimit@EXEEXT@
: script
/tests
/timelimit.o
1516 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(DYNEXP
) script
/tests
/timelimit.o
1518 install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installswat installmodules @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@
1521 install-everything
: install installmodules
1523 # DESTDIR is used here to prevent packagers wasting their time
1524 # duplicating the Makefile. Remove it and you will have the privelege
1525 # of package each samba release for muliple versions of multiple
1526 # distributions and operating systems, or at least supplying patches
1527 # to all the packaging files required for this, prior to committing
1528 # the removal of DESTDIR. Do not remove it even though you think it
1532 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
) $(PIDDIR
) $(LOCKDIR
) $(MANDIR
)
1534 installservers
: all installdirs
1535 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1537 installbin
: all installdirs
1538 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1540 installcifsmount
: @CIFSMOUNT_PROGS@
1541 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(ROOTSBINDIR
)
1542 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1544 # Some symlinks are required for the 'probing' of modules.
1545 # This mechanism should go at some point..
1546 installmodules
: modules
installdirs
1547 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1548 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1549 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1550 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1551 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1552 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1553 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1554 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1555 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1556 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1557 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1559 installscripts
: installdirs
1560 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1562 installdat
: installdirs
1563 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1565 installmsg
: installdirs
1566 @
$(SHELL
) $(srcdir)/script
/installmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1568 installswat
: installdirs installmsg
1569 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1571 installclientlib
: installdirs libsmbclient
1572 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(LIBDIR
)
1573 -$(INSTALLLIBCMD_SH
) bin
/libsmbclient.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1574 -$(INSTALLLIBCMD_A
) bin
/libsmbclient.a
$(DESTDIR
)$(LIBDIR
)
1575 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) ${prefix}/include
1576 -$(INSTALLCMD
) $(srcdir)/include/libsmbclient.h
$(DESTDIR
)${prefix}/include
1578 installlibmsrpc
: installdirs libmsrpc
1579 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(LIBDIR
)
1580 -$(INSTALLLIBCMD_SH
) bin
/libmsrpc.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1581 -$(INSTALLLIBCMD_A
) bin
/libmsrpc.a
$(DESTDIR
)$(LIBDIR
)
1582 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) ${prefix}/include
1583 -$(INSTALLCMD
) $(srcdir)/include/libmsrpc.h
$(DESTDIR
)${prefix}/include
1585 installlibsmbsharemodes
: installdirs libsmbsharemodes
1586 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(LIBDIR
)
1587 -$(INSTALLLIBCMD_SH
) bin
/libsmbsharemodes.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1588 -$(INSTALLLIBCMD_A
) bin
/libsmbsharemodes.a
$(DESTDIR
)$(LIBDIR
)
1590 installlibaddns
: installdirs libaddns
1591 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(LIBDIR
)
1592 -$(INSTALLLIBCMD_SH
) bin
/libaddns.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1593 -$(INSTALLLIBCMD_A
) bin
/libaddns.a
$(DESTDIR
)$(LIBDIR
)
1595 installpammodules
: $(PAM_MODULES
)
1596 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS
) $(DESTDIR
) $(PAMMODULESDIR
)
1597 @for module in
$(PAM_MODULES
); do \
1598 echo
"Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1599 $(INSTALLCMD
) -m
$(INSTALLPERMS
) bin
/$${module}.@SHLIBEXT@ \
1600 "$(DESTDIR)/$(PAMMODULESDIR)"; \
1605 PYTHON_OBJS
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) $(RPC_PARSE_OBJ
) \
1606 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1607 $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
)
1609 PYTHON_PICOBJS
= $(PYTHON_OBJS
:.o
=.@PICSUFFIX@
)
1611 python_ext
: $(PYTHON_PICOBJS
)
1612 @if
test -z
"$(PYTHON)"; then \
1613 echo Use the option
--with-python to configure python
; \
1616 PYTHON_OBJS
="$(PYTHON_PICOBJS)" \
1617 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
1618 LIBS
="$(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
1619 $(PYTHON
) python
/setup.py build
1621 python_install
: $(PYTHON_PICOBJS
)
1622 @if
test -z
"$(PYTHON)"; then \
1623 echo Use the option
--with-python to configure python
; \
1626 PYTHON_OBJS
="$(PYTHON_PICOBJS)" \
1627 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS)" \
1628 LIBS
="$(LDFLAGS) $(LIBS)" \
1629 $(PYTHON
) python
/setup.py
install --root
=$(DESTDIR
)
1632 @
-if
test -n
"$(PYTHON)"; then
$(PYTHON
) python
/setup.py
clean; fi
1634 # revert to the previously installed version
1636 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
1637 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
1639 installman
: installdirs
1640 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
"@ROFF@"
1645 @echo
"Samba will be installed into:"
1646 @echo
" prefix: $(prefix)"
1647 @echo
" bindir: $(BINDIR)"
1648 @echo
" sbindir: $(SBINDIR)"
1649 @echo
" libdir: $(LIBDIR)"
1650 @echo
" vardir: $(VARDIR)"
1651 @echo
" mandir: $(MANDIR)"
1652 @echo
" privatedir: $(PRIVATE_DIR)"
1653 @echo
" configdir: $(CONFIGDIR)"
1654 @echo
" lockdir: $(LOCKDIR)"
1655 @echo
" piddir: $(PIDDIR)"
1656 @echo
" swatdir: $(SWATDIR)"
1659 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_LIBMSRPC@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@
1662 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
1665 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1668 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1671 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1674 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1675 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1676 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1677 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1678 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1679 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1682 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1685 @
$(SHELL
) $(srcdir)/script
/uninstalldat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1688 @
$(SHELL
) $(srcdir)/script
/uninstallmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1690 uninstallswat
: uninstallmsg
1691 @
$(SHELL
) $(srcdir)/script
/uninstallswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1694 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.@SHLIBEXT@
1695 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.a
1696 -rm -f
$(DESTDIR
)${prefix}/include/libsmbclient.h
1699 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libmsrpc.@SHLIBEXT@
1700 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libmsrpc.a
1701 -rm -f
$(DESTDIR
)${prefix}/include/libmsrpc.h
1703 uninstalllibsmbsharemodes
:
1704 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.@SHLIBEXT@
1705 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.a
1708 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libaddns.@SHLIBEXT@
1709 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libaddns.a
1711 uninstallpammodules
:
1712 @for module in
$(PAM_MODULES
); do \
1713 echo
"Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1714 rm -f
"$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
1717 # Toplevel clean files
1718 TOPFILES
=dynconfig.o dynconfig.@PICSUFFIX@
1720 clean: delheaders python_clean
1721 -rm -f core
*/*~
*~
*/*.o
*/*/*.o
*/*.@PICSUFFIX@
*/*/*.@PICSUFFIX@ \
1722 */*.@SHLIBEXT@
*/*/*.@SHLIBEXT@ \
1723 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1724 $(MODULES
) $(TORTURE_PROGS
) $(LIBSMBCLIENT
) \
1725 $(LIBSMBSHAREMODES
) $(EVERYTHING_PROGS
) $(LIBMSRPC
) \
1726 .headers.stamp
*/src
/*.o
*/src
/*.@PICSUFFIX@
1729 # Making this target will just make sure that the prototype files
1730 # exist, not necessarily that they are up to date. Since they're
1731 # removed by "make clean" this will always be run when you do anything
1733 proto_exists
: include/proto.h
include/build_env.h \
1734 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1735 client
/client_proto.h utils
/net_proto.h utils
/ntlm_auth_proto.h smbd
/build_options.c
1738 @echo Removing prototype headers
1739 @
rm -f
include/proto.h
include/build_env.h \
1740 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1741 client
/client_proto.h utils
/net_proto.h \
1742 smbd
/build_options.c utils
/ntlm_auth_proto.h \
1743 utils
/passwd_proto.h
1745 MKPROTO_SH
= $(srcdir)/script
/mkproto.sh
1747 include/proto.h
: smbd
/build_options.c
1748 @echo Building
include/proto.h
1749 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1750 -h _PROTO_H_
$(builddir
)/include/proto.h \
1753 include/build_env.h
: script
/build_env.sh
1754 @echo Building
include/build_env.h
1755 @
$(SHELL
) $(srcdir)/script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) \
1756 > $(builddir
)/include/build_env.h
1758 nsswitch
/winbindd_proto.h
:
1759 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1760 -h _WINBINDD_PROTO_H_
$(builddir
)/nsswitch
/winbindd_proto.h \
1764 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1765 -h _SWAT_PROTO_H_
$(builddir
)/web
/swat_proto.h \
1768 client
/client_proto.h
:
1769 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1770 -h _CLIENT_PROTO_H_
$(builddir
)/client
/client_proto.h \
1774 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1775 -h _NET_PROTO_H_
$(builddir
)/utils
/net_proto.h \
1778 utils
/passwd_proto.h
:
1779 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1780 -h _PASSWD_PROTO_H_
$(builddir
)/utils
/passwd_proto.h \
1783 utils
/ntlm_auth_proto.h
:
1784 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1785 -h _NTLM_AUTH_PROTO_H_
$(builddir
)/utils
/ntlm_auth_proto.h \
1788 # "make headers" or "make proto" calls a subshell because we need to
1789 # make sure these commands are executed in sequence even for a
1792 $(MAKE
) delheaders
; \
1793 $(MAKE
) smbd
/build_options.c
; \
1794 $(MAKE
) include/proto.h
; \
1795 $(MAKE
) include/build_env.h
; \
1796 $(MAKE
) nsswitch
/winbindd_proto.h
; \
1797 $(MAKE
) web
/swat_proto.h
; \
1798 $(MAKE
) client
/client_proto.h
; \
1799 $(MAKE
) utils
/ntlm_auth_proto.h
; \
1800 $(MAKE
) utils
/net_proto.h
; \
1801 $(MAKE
) utils
/passwd_proto.h
;
1805 .PHONY
: headers proto
1808 etags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1811 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1813 realclean: clean delheaders
1814 -rm -f config.log bin
/.dummy script
/findsmb script
/gen-8bit-gap.sh
1815 -rm -f script
/installbin.sh script
/uninstallbin.sh
1817 distclean: realclean
1818 -rm -f
include/stamp-h
1819 -rm -f
include/config.h Makefile
1820 -rm -f config.status config.cache so_locations
1822 #-cd $(srcdir)/pidl && make distclean
1823 #-rm -rf $(srcdir)/librpc/gen_ndr
1825 realdistclean
: distclean
1826 -rm -f
include/config.h.in
1827 -rm -f
include/version.h
1830 # this target is really just for my use. It only works on a limited
1831 # range of machines and is used to produce a list of potentially
1832 # dead (ie. unused) functions in the code. (tridge)
1834 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
1835 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
1836 comm
-13 nmused.txt nmfns.txt
1839 # when configure.in is updated, reconfigure
1840 $(srcdir)/configure
: $(srcdir)/configure.in
1841 @echo
"WARNING: you need to rerun ./autogen.sh"
1843 config.status
: $(srcdir)/configure
1844 @echo
"WARNING: you need to run ./configure"
1846 Makefile
: $(srcdir)/Makefile.in config.status
1847 @echo
"WARNING: you need to run ./config.status"
1849 ######################################################################
1850 # Samba Testing Framework
1852 # Check for PAM module problems. Specifically, check that every module we
1853 # built can actually be loaded by a minimal PAM-aware application.
1854 test_pam_modules
: pam_modules
1855 @echo
"Testing $(PAM_MODULES) "
1856 @for module in
$(PAM_MODULES
); do \
1857 .
/script
/tests
/dlopen.sh
-lpam
-ldl bin
/$${module}.@SHLIBEXT@ \
1862 ## Targets for 'make test'
1864 test: all torture timelimit
1865 @echo Running Test suite
1866 @sh
$(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"
1868 valgrindtest
: all torture timelimit
1869 @echo Running Test suite with valgrind
1870 @NMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
1871 SMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
1872 VALGRIND
="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/st/valgrind.log" \
1873 $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"