r20663: Do not install smbmount man page if we didn't called configure
[Samba/gebeck_regimport.git] / source3 / Makefile.in
blob31e01b6fb6bbad4cbc1b16bed03383a1a778839c
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 ###########################################################################
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 datarootdir=@datarootdir@
15 selftest_prefix=@selftest_prefix@
16 smbtorture4_path=@smbtorture4_path@
18 LIBS=@LIBS@
19 CC=@CC@
20 SHLD=@SHLD@
21 CFLAGS=@CFLAGS@
22 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
23 EXEEXT=@EXEEXT@
24 LDFLAGS=@PIE_LDFLAGS@ @LDFLAGS@
25 AR=@AR@
26 LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@
27 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
28 AWK=@AWK@
29 PICFLAG=@PICFLAG@
30 DYNEXP=@DYNEXP@
31 PYTHON=@PYTHON@
32 PERL=@PERL@
34 PIDL_ARGS=@PIDL_ARGS@
36 TERMLDFLAGS=@TERMLDFLAGS@
37 TERMLIBS=@TERMLIBS@
38 PRINT_LIBS=@PRINT_LIBS@
39 AUTH_LIBS=@AUTH_LIBS@
40 ACL_LIBS=@ACL_LIBS@
41 PASSDB_LIBS=@PASSDB_LIBS@
42 IDMAP_LIBS=@IDMAP_LIBS@
43 KRB5LIBS=@KRB5_LIBS@
44 LDAP_LIBS=@LDAP_LIBS@
45 NSCD_LIBS=@NSCD_LIBS@
46 UUID_LIBS=@UUID_LIBS@
48 INSTALLCMD=@INSTALL@
49 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
50 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
51 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
52 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
54 VPATH=@srcdir@
55 srcdir=@abs_srcdir@
56 builddir=@abs_builddir@
57 SHELL=/bin/sh
58 DESTDIR=/
60 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
61 # will search for a POSIX-compliant shell, and that might not be
62 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
64 # See the autoconf manual "Installation Directory Variables" for a
65 # discussion of the subtle use of these variables.
67 BASEDIR= @prefix@
68 BINDIR = @bindir@
69 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
70 SBINDIR = @sbindir@
71 ROOTSBINDIR = @rootsbindir@
72 LIBDIR = @libdir@
73 PAMMODULESDIR = @pammodulesdir@
74 VFSLIBDIR = $(LIBDIR)/vfs
75 PDBLIBDIR = $(LIBDIR)/pdb
76 RPCLIBDIR = $(LIBDIR)/rpc
77 IDMAPLIBDIR = $(LIBDIR)/idmap
78 CHARSETLIBDIR = $(LIBDIR)/charset
79 AUTHLIBDIR = $(LIBDIR)/auth
80 CONFIGLIBDIR = $(LIBDIR)/config
81 CONFIGDIR = @configdir@
82 VARDIR = @localstatedir@
83 MANDIR = @mandir@
84 DATADIR = @datadir@
86 # The permissions to give the executables
87 INSTALLPERMS = 0755
89 # set these to where to find various files
90 # These can be overridden by command line switches (see smbd(8))
91 # or in smb.conf (see smb.conf(5))
92 LOGFILEBASE = @logfilebase@
93 CONFIGFILE = $(CONFIGDIR)/smb.conf
94 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
96 # This is where smbpasswd et al go
97 PRIVATEDIR = @privatedir@
99 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
100 PRIVATE_DIR = $(PRIVATEDIR)
102 # This is where SWAT images and help files go
103 SWATDIR = @swatdir@
105 # the directory where lock files go
106 LOCKDIR = @lockdir@
108 # the directory where pid files go
109 PIDDIR = @piddir@
111 LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
112 LIBSMBCLIENT_MAJOR=0
113 LIBSMBCLIENT_MINOR=1
115 LIBMSRPC=bin/libmsrpc.a @LIBMSRPC_SHARED@
116 LIBMSRPC_MAJOR=0
117 LIBMSRPC_MINOR=1
119 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
120 LIBSMBSHAREMODES_MAJOR=0
121 LIBSMBSHAREMODES_MINOR=2
123 LIBADDNS=bin/libaddns.a @LIBADDNS_SHARED@
124 LIBADDNS_MAJOR=0
125 LIBADDNS_MINOR=1
127 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ @SMBWRAP_INC@ $(CPPFLAGS)
128 FLAGS2 =
129 FLAGS3 =
130 FLAGS4 =
131 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
132 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
134 PASSWD_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" -DPRIVATE_DIR=\"$(PRIVATE_DIR)\"
135 PATH_FLAGS1 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DSBINDIR=\"$(SBINDIR)\"
136 PATH_FLAGS2 = $(PATH_FLAGS1) -DBINDIR=\"$(BINDIR)\"
137 PATH_FLAGS3 = $(PATH_FLAGS2) -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
138 PATH_FLAGS4 = $(PATH_FLAGS3) -DSWATDIR=\"$(SWATDIR)\" -DLOCKDIR=\"$(LOCKDIR)\" -DPIDDIR=\"$(PIDDIR)\"
139 PATH_FLAGS5 = $(PATH_FLAGS4) -DLIBDIR=\"$(LIBDIR)\" \
140 -DLOGFILEBASE=\"$(LOGFILEBASE)\" -DSHLIBEXT=\"@SHLIBEXT@\"
141 PATH_FLAGS6 = $(PATH_FLAGS5) -DCONFIGDIR=\"$(CONFIGDIR)\"
142 PATH_FLAGS = $(PATH_FLAGS6) $(PASSWD_FLAGS)
144 # Note that all executable programs now provide for an optional executable suffix.
146 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ bin/swat@EXEEXT@ @EXTRA_SBIN_PROGS@
148 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@
150 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
151 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
152 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
153 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
154 bin/tdbtool@EXEEXT@
155 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
156 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
157 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
158 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
159 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
161 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
162 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
163 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
164 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@
166 BIN_PROGS = $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4) @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@
168 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
169 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
170 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@
172 SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@ @LIBADDNS@
174 PAM_MODULES = @PAM_MODULES@
176 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
178 VFS_MODULES = @VFS_MODULES@
179 PDB_MODULES = @PDB_MODULES@
180 RPC_MODULES = @RPC_MODULES@
181 IDMAP_MODULES = @IDMAP_MODULES@
182 CHARSET_MODULES = @CHARSET_MODULES@
183 AUTH_MODULES = @AUTH_MODULES@
184 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) $(CHARSET_MODULES) $(AUTH_MODULES)
186 ######################################################################
187 # object file lists
188 ######################################################################
190 TDBBASE_OBJ = tdb/common/tdb.o tdb/common/dump.o tdb/common/error.o \
191 tdb/common/freelist.o tdb/common/freelistcheck.o tdb/common/io.o tdb/common/lock.o \
192 tdb/common/open.o tdb/common/transaction.o tdb/common/traverse.o
194 TDB_OBJ = $(TDBBASE_OBJ) lib/util_tdb.o tdb/common/tdbback.o
196 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
198 VERSION_OBJ = lib/version.o
200 DOSERR_OBJ = libsmb/doserr.o
202 WBCOMMON_OBJ = nsswitch/wb_common.o
204 AFS_OBJ = lib/afs.o
206 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
208 SERVER_MUTEX_OBJ = lib/server_mutex.o
210 ERRORMAP_OBJ = libsmb/errormap.o
212 PASSCHANGE_OBJ = libsmb/passchange.o
214 LIBNDR_OBJ = librpc/ndr/ndr_basic.o librpc/ndr/ndr.o librpc/ndr/ndr_misc.o \
215 librpc/ndr/ndr_sec_helper.o librpc/ndr/ndr_string.o librpc/ndr/sid.o \
216 rpc_client/ndr.o
218 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_unixinfo.o librpc/gen_ndr/ndr_lsa.o \
219 librpc/gen_ndr/ndr_dfs.o librpc/gen_ndr/ndr_echo.o \
220 librpc/gen_ndr/ndr_winreg.o librpc/gen_ndr/ndr_initshutdown.o \
221 librpc/gen_ndr/ndr_srvsvc.o librpc/gen_ndr/ndr_svcctl.o \
222 librpc/gen_ndr/ndr_eventlog.o librpc/gen_ndr/ndr_wkssvc.o
224 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
226 # this includes only the low level parse code, not stuff
227 # that requires knowledge of security contexts
228 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
230 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o rpc_parse/parse_net.o
232 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
234 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
236 TALLOC_OBJ = lib/talloc/talloc.o
238 LIB_WITHOUT_PROTO_OBJ = $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ) $(TALLOC_OBJ)
240 LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
241 lib/interface.o lib/md4.o \
242 lib/interfaces.o lib/pidfile.o \
243 lib/signal.o lib/system.o lib/sendfile.o lib/time.o \
244 lib/ufc.o lib/genrand.o lib/username.o \
245 lib/util_pw.o lib/access.o lib/smbrun.o \
246 lib/bitmap.o lib/crc32.o lib/dprintf.o \
247 lib/xfile.o lib/wins_srv.o lib/util_reg.o \
248 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
249 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
250 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
251 lib/substitute.o lib/fsusage.o \
252 lib/ms_fnmatch.o lib/select.o lib/messages.o \
253 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
254 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
255 nsswitch/wb_client.o $(WBCOMMON_OBJ) \
256 lib/pam_errors.o intl/lang_tdb.o \
257 lib/adt_tree.o lib/gencache.o $(TDB_OBJ) \
258 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
259 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
260 libads/krb5_errs.o lib/system_smbd.o lib/audit.o
262 LIB_OBJ = $(LIB_WITHOUT_PROTO_OBJ) $(LIB_WITH_PROTO_OBJ)
264 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
265 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
267 READLINE_OBJ = lib/readline.o
269 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
270 # Be sure to include them into your application
271 POPT_LIB_OBJ = lib/popt_common.o
273 PARAM_OBJ = dynconfig.o param/loadparm.o param/params.o lib/sharesec.o
275 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
277 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
278 libaddns/dnsgss.o libaddns/dnsmarshall.o
279 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(TALLOC_OBJ)
281 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_parse.o libgpo/gpo_util.o \
282 libgpo/gpo_fetch.o libgpo/gpo_filesync.o
283 LIBGPO_OBJ = $(LIBGPO_OBJ0)
285 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o libads/sasl.o \
286 libads/krb5_setpw.o libads/ldap_user.o \
287 libads/ads_struct.o libads/kerberos_keytab.o \
288 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
289 libads/authdata.o libads/cldap.o
291 LIBADS_SERVER_OBJ = libads/util.o libads/kerberos_verify.o \
292 libads/ldap_schema.o nsswitch/nss_info.o
294 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
296 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
297 libsmb/namequery.o libsmb/conncache.o libads/dns.o
299 LIBSAMBA_OBJ = libsmb/nterr.o libsmb/dcerpc_err.o libsmb/smbdes.o \
300 libsmb/smbencrypt.o libsmb/ntlm_check.o \
301 libsmb/ntlmssp.o libsmb/ntlmssp_parse.o libsmb/ntlmssp_sign.o
303 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
304 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
305 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
306 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
307 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
308 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
309 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
310 libsmb/clioplock.o $(ERRORMAP_OBJ) libsmb/clirap2.o \
311 $(DOSERR_OBJ) \
312 $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(LIBNMB_OBJ)
314 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
316 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
317 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
318 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
319 rpc_client/cli_ds.o rpc_client/cli_svcctl.o
321 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_unixinfo.o librpc/gen_ndr/cli_lsa.o \
322 librpc/gen_ndr/cli_dfs.o librpc/gen_ndr/cli_echo.o \
323 librpc/gen_ndr/cli_srvsvc.o \
324 librpc/gen_ndr/cli_winreg.o librpc/gen_ndr/cli_initshutdown.o \
325 librpc/gen_ndr/cli_eventlog.o \
326 $(LIBNDR_GEN_OBJ) $(LIBNDR_OBJ)
328 REGOBJS_OBJ = registry/reg_objects.o
330 REGISTRY_OBJ = registry/reg_frontend.o registry/reg_cachehook.o registry/reg_printing.o \
331 registry/reg_db.o registry/reg_eventlog.o registry/reg_shares.o \
332 registry/reg_util.o registry/reg_dynamic.o registry/reg_perfcount.o \
333 registry/reg_smbconf.o registry/reg_api.o
335 RPC_LSA_OBJ = rpc_server/srv_lsa.o rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
337 RPC_NETLOG_OBJ = rpc_server/srv_netlog.o rpc_server/srv_netlog_nt.o
339 RPC_SAMR_OBJ = rpc_server/srv_samr.o rpc_server/srv_samr_nt.o \
340 rpc_server/srv_samr_util.o
342 RPC_UNIXINFO_OBJ = librpc/gen_ndr/srv_unixinfo.o rpc_server/srv_unixinfo_nt.o
343 REGFIO_OBJ = registry/regfio.o
345 RPC_REG_OBJ = librpc/gen_ndr/srv_winreg.o rpc_server/srv_winreg_nt.o $(REGFIO_OBJ)
346 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
348 RPC_LSA_DS_OBJ = rpc_server/srv_lsa_ds.o rpc_server/srv_lsa_ds_nt.o
350 RPC_SVC_OBJ = librpc/gen_ndr/srv_srvsvc.o rpc_server/srv_srvsvc_nt.o
352 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
354 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
355 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
356 services/svc_netlogon.o services/svc_winreg.o \
357 services/svc_wins.o
359 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o
361 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
363 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
365 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o rpc_server/srv_eventlog_lib.o
367 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
368 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
370 RPC_ECHO_OBJ = librpc/gen_ndr/srv_echo.o rpc_server/srv_echo_nt.o
372 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
374 RPC_PARSE_OBJ = rpc_parse/parse_lsa.o $(RPC_PARSE_OBJ2) \
375 rpc_parse/parse_samr.o \
376 rpc_parse/parse_ds.o rpc_parse/parse_spoolss.o \
377 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
378 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o $(REGOBJS_OBJ)
380 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
382 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
384 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
386 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
387 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
388 passdb/util_unixsids.o passdb/lookup_sid.o \
389 passdb/login_cache.o @PDB_STATIC@ \
390 lib/account_pol.o lib/privileges.o lib/util_nscd.o
392 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
393 CP850_OBJ = modules/CP850.o
394 CP437_OBJ = modules/CP437.o
395 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
397 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_ldb.o
399 PROFILE_OBJ = profile/profile.o
400 PROFILES_OBJ = utils/profiles.o \
401 $(REGFIO_OBJ) $(REGOBJS_OBJ) $(ERRORMAP_OBJ) \
402 $(RPC_PARSE_OBJ1) $(PARAM_OBJ) $(LIBSAMBA_OBJ) \
403 $(DOSERR_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
404 $(POPT_LIB_OBJ) $(SECRETS_OBJ)
406 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
408 NOTIFY_OBJ = smbd/notify.o smbd/notify_hash.o smbd/notify_kernel.o smbd/notify_fam.o
410 VFS_DEFAULT_OBJ = modules/vfs_default.o
411 VFS_AUDIT_OBJ = modules/vfs_audit.o
412 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
413 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
414 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
415 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
416 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
417 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
418 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
419 VFS_CAP_OBJ = modules/vfs_cap.o
420 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
421 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
422 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
423 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
424 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
425 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
426 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
427 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
428 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
429 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
430 VFS_CATIA_OBJ = modules/vfs_catia.o
431 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
432 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
433 VFS_COMMIT_OBJ = modules/vfs_commit.o
434 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
436 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
438 SLCACHE_OBJ = libsmb/samlogon_cache.o
440 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o
442 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
443 AUTH_DOMAIN_OBJ = auth/auth_domain.o
444 AUTH_SAM_OBJ = auth/auth_sam.o
445 AUTH_SERVER_OBJ = auth/auth_server.o
446 AUTH_UNIX_OBJ = auth/auth_unix.o
447 AUTH_WINBIND_OBJ = auth/auth_winbind.o
448 AUTH_SCRIPT_OBJ = auth/auth_script.o
450 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/auth_compat.o \
451 auth/auth_ntlmssp.o \
452 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
454 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_map.o smbd/mangle_hash2.o
456 SMBD_OBJ_MAIN = smbd/server.o
458 BUILDOPT_OBJ = smbd/build_options.o
460 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
461 smbd/utmp.o smbd/session.o smbd/map_username.o \
462 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
463 smbd/share_access.o smbd/fileio.o \
464 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
465 smbd/message.o smbd/nttrans.o smbd/pipes.o \
466 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
467 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
468 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
469 smbd/vfs.o smbd/statcache.o \
470 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
471 smbd/process.o smbd/service.o smbd/error.o \
472 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
473 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
474 smbd/change_trust_pw.o smbd/fake_file.o \
475 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
476 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
477 smbd/dmapi.o $(MANGLE_OBJ) @VFS_STATIC@
479 SMBD_OBJ_BASE = $(PARAM_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
480 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) $(SECRETS_OBJ) \
481 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
482 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
483 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
484 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
485 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
486 $(REGISTRY_OBJ) $(POPT_LIB_OBJ) \
487 $(BUILDOPT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
489 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
490 printing/print_cups.o printing/print_generic.o \
491 printing/lpq_parse.o printing/load.o \
492 printing/print_iprint.o printing/print_test.o
494 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
495 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
497 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
498 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
499 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
500 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
501 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
502 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
503 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
504 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
505 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
506 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
507 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
508 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
509 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
511 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
512 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
514 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
515 web/swat.o web/neg_lang.o
517 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
518 $(LOCKING_OBJ) $(PASSDB_OBJ) $(SECRETS_OBJ) $(KRBCLIENT_OBJ) \
519 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
520 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
521 $(PASSCHANGE_OBJ) $(LDB_OBJ)
523 STATUS_OBJ = utils/status.o utils/status_profile.o \
524 $(LOCKING_OBJ) $(PARAM_OBJ) \
525 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
526 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) \
527 $(DOSERR_OBJ)
529 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
530 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
531 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
532 $(PRINTBASE_OBJ) $(ERRORMAP_OBJ)
534 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
535 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
536 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
537 rpc_client/cli_pipe.o $(RPC_PARSE_OBJ2) \
538 $(RPC_CLIENT_OBJ1) \
539 $(LIBMSRPC_GEN_OBJ)
541 TESTPARM_OBJ = utils/testparm.o \
542 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
543 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
545 PASSWD_UTIL_OBJ = utils/passwd_util.o
547 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
548 $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
549 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
550 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
552 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
553 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
554 $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
555 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) libsmb/errormap.o
557 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ)
559 DISPLAY_SEC_OBJ= lib/display_sec.o
561 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
562 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
563 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
564 rpcclient/cmd_dfs.o \
565 rpcclient/cmd_ds.o rpcclient/cmd_echo.o \
566 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
567 rpcclient/cmd_unixinfo.o $(DISPLAY_SEC_OBJ)
569 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
570 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
571 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
572 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
573 $(LIBADS_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
574 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
576 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
577 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ) @BUILD_INIPARSER@
579 LIBSMBCLIENT_OBJ = libsmb/libsmbclient.o libsmb/libsmb_compat.o \
580 libsmb/libsmb_cache.o \
581 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
582 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
583 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
584 $(SECRETS_OBJ) $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
586 CAC_OBJ = $(LIBSMBCLIENT_OBJ) \
587 libmsrpc/libmsrpc.o libmsrpc/libmsrpc_internal.o \
588 libmsrpc/cac_lsarpc.o libmsrpc/cac_winreg.o libmsrpc/cac_samr.o \
589 libmsrpc/cac_svcctl.o
591 LIBSMBSHAREMODES_OBJ = libsmb/smb_share_modes.o $(TDB_BASE_OBJ)
593 # This shared library is intended for linking with unit test programs
594 # to test Samba internals. It's called libbigballofmud.so to
595 # discourage casual usage.
597 LIBBIGBALLOFMUD_MAJOR = 0
599 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) \
600 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) \
601 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
603 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
604 $(RPC_CLIENT_OBJ1) \
605 $(RPC_PARSE_OBJ2)
607 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
608 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
609 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
610 $(DISPLAY_SEC_OBJ)
612 TOOL_OBJ = client/smbctool.o client/clitar.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
613 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
614 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
615 $(DISPLAY_SEC_OBJ)
617 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_domain.o utils/net_help.o \
618 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
619 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
620 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
621 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
622 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
623 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
624 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
625 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o
627 NET_OBJ = $(NET_OBJ1) $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
628 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
629 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
630 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
631 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
632 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
633 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(REGFIO_OBJ) $(READLINE_OBJ) \
634 $(LDB_OBJ) $(LIBGPO_OBJ) $(INIPARSER_OBJ) $(DISPLAY_SEC_OBJ)
636 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
637 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ)
639 MOUNT_OBJ = client/smbmount.o \
640 $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
642 MNT_OBJ = client/smbmnt.o $(VERSION_OBJ) $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
644 UMOUNT_OBJ = client/smbumount.o $(SOCKET_WRAPPER_OBJ)
646 CIFS_MOUNT_OBJ = client/mount.cifs.o
648 CIFS_UMOUNT_OBJ = client/umount.cifs.o
650 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
651 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
653 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
654 torture/denytest.o torture/mangle_test.o
656 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
657 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
659 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
660 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
662 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
663 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
665 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
666 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
668 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
669 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
671 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
672 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
673 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ)
676 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
678 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
680 LOG2PCAP_OBJ = utils/log2pcaphex.o
682 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
683 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
685 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
686 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
687 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(SECRETS_OBJ) \
688 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
690 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
691 $(PARAM_OBJ) \
692 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
693 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
694 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
696 EVTLOGADM_OBJ0 = utils/eventlogadm.o
698 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(REGOBJS_OBJ) \
699 $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
700 $(SECRETS_OBJ) \
701 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o registry/reg_util.o \
702 registry/reg_db.o
704 SHARESEC_OBJ0 = utils/sharesec.o
705 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(REGOBJS_OBJ) \
706 $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
707 $(POPT_LIB_OBJ) $(SECRETS_OBJ)
709 TALLOCTORT_OBJ = lib/talloc/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
710 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LIBSAMBA_OBJ) $(SECRETS_OBJ)
712 REPLACETORT_OBJ = lib/replace/test/testsuite.o lib/replace/test/os2_delete.o \
713 $(LIBREPLACE_OBJ)
715 RPCTORTURE_OBJ = torture/rpctorture.o \
716 rpcclient/display.o \
717 rpcclient/cmd_lsarpc.o \
718 rpcclient/cmd_wkssvc.o \
719 rpcclient/cmd_samr.o \
720 rpcclient/cmd_srvsvc.o \
721 rpcclient/cmd_netlogon.o \
722 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
723 $(RPC_CLIENT_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_GET_SET_OBJ) $(SECRETS_OBJ)
725 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
727 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(SECRETS_OBJ) \
728 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ)
730 PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
731 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(LIBSMB_OBJ) \
732 $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
733 $(LIBMSRPC_OBJ) @SMBWRAP_OBJS@ \
734 $(LIB_WITH_PROTO_OBJ) \
735 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
736 $(AUTH_OBJ) $(PARAM_OBJ) $(LOCKING_OBJ) $(SECRETS_OBJ) \
737 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
738 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
739 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
740 $(AUTH_SAM_OBJ) $(REGISTRY_OBJ) $(POPT_LIB_OBJ) \
741 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_LSA_DS_OBJ) \
742 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
743 $(RPC_ECHO_OBJ) $(RPC_SVCCTL_OBJ) $(RPC_EVENTLOG_OBJ) $(SMBLDAP_OBJ) \
744 $(IDMAP_OBJ) libsmb/spnego.o $(PASSCHANGE_OBJ) $(RPC_UNIXINFO_OBJ) \
745 $(RPC_NTSVCS_OBJ) $(RPC_INITSHUTDOWN_OBJ) $(PASSWD_UTIL_OBJ) $(LIBGPO_OBJ)
747 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
748 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ)
750 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
751 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
752 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
753 $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
754 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ)
756 IDMAP_OBJ = nsswitch/idmap.o nsswitch/idmap_cache.o nsswitch/idmap_util.o @IDMAP_STATIC@
758 WINBINDD_OBJ1 = \
759 nsswitch/winbindd.o \
760 nsswitch/winbindd_user.o \
761 nsswitch/winbindd_group.o \
762 nsswitch/winbindd_util.o \
763 nsswitch/winbindd_cache.o \
764 nsswitch/winbindd_pam.o \
765 nsswitch/winbindd_sid.o \
766 nsswitch/winbindd_misc.o \
767 nsswitch/winbindd_cm.o \
768 nsswitch/winbindd_wins.o \
769 nsswitch/winbindd_rpc.o \
770 nsswitch/winbindd_reconnect.o \
771 nsswitch/winbindd_ads.o \
772 nsswitch/winbindd_passdb.o \
773 nsswitch/winbindd_dual.o \
774 nsswitch/winbindd_async.o \
775 nsswitch/winbindd_creds.o \
776 nsswitch/winbindd_cred_cache.o \
777 nsswitch/winbindd_ccache_access.o
779 WINBINDD_OBJ = \
780 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
781 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
782 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
783 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
784 $(SECRETS_OBJ) $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
785 $(DCUTIL_OBJ) $(IDMAP_OBJ) \
786 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
787 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
789 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
790 $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
792 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ) @WINBIND_NSS_EXTRA_OBJS@
794 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
795 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
796 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
797 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
798 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
800 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
801 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
802 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
804 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
805 lib/ldb/modules/objectclass.o \
806 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
808 # enabled in configure.in
809 LDB_LDAP_OBJ=@LDBLDAP@
811 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
813 LDB_CMDLINE_OBJ = $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
814 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
815 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
816 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
817 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
818 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
819 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(REGFIO_OBJ) $(READLINE_OBJ) \
820 $(LDB_OBJ) lib/ldb/tools/cmdline.o
823 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
824 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
825 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
826 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
827 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
829 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
830 popt/popthelp.o popt/poptparse.o
832 INIPARSER_OBJ = iniparser/src/iniparser.o iniparser/src/dictionary.o \
833 iniparser/src/strlib.o
835 TDBBACKUP_OBJ = tdb/tools/tdbbackup.o tdb/common/tdbback.o $(LIBREPLACE_OBJ) \
836 $(TDBBASE_OBJ)
838 TDBTOOL_OBJ = tdb/tools/tdbtool.o $(TDBBASE_OBJ) $(LIBREPLACE_OBJ)
840 TDBDUMP_OBJ = tdb/tools/tdbdump.o $(TDBBASE_OBJ) $(LIBREPLACE_OBJ)
842 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
844 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
845 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
846 libads/kerberos_verify.o $(SECRETS_OBJ) $(SERVER_MUTEX_OBJ) \
847 libads/authdata.o $(RPC_PARSE_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
848 $(SMBLDAP_OBJ) $(DOSERR_OBJ) rpc_parse/parse_net.o $(LIBNMB_OBJ) \
849 $(LDB_OBJ) libsmb/errormap.o
851 ######################################################################
852 # now the rules...
853 ######################################################################
854 all : SHOWFLAGS proto_exists $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
855 $(SHLIBS) $(MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
857 pam_modules : $(PAM_MODULES)
859 pam_smbpass : SHOWFLAGS proto_exists bin/pam_smbpass.@SHLIBEXT@
861 pam_winbind : SHOWFLAGS proto_exists bin/pam_winbind.@SHLIBEXT@
863 torture : SHOWFLAGS $(TORTURE_PROGS)
865 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
867 masktest : SHOWFLAGS bin/masktest@EXEEXT@
869 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
871 locktest : SHOWFLAGS bin/locktest@EXEEXT@
873 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
875 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
877 smbctool: SHOWFLAGS bin/smbctool@EXEEXT@
879 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
881 rpctorture : SHOWFLAGS bin/rpctorture@EXEEXT@
883 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
885 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
887 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
889 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
891 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
893 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
895 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
897 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
898 @WINBIND_WINS_NSS@ bin/pam_winbind.@SHLIBEXT@
900 wins : SHOWFLAGS @WINBIND_WINS_NSS@
902 modules: SHOWFLAGS proto_exists $(MODULES)
904 cac: SHOWFLAGS $(LIBMSRPC)
907 #####################################################################
908 ## Perl IDL Compiler
909 IDL_FILES = unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
910 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl
912 idl:
913 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
914 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
917 #####################################################################
920 everything: all libsmbclient debug2html smbfilter talloctort replacetort modules torture \
921 $(EVERYTHING_PROGS)
923 .SUFFIXES:
924 .SUFFIXES: .c .o .lo
926 SHOWFLAGS:
927 @echo "Using FLAGS = $(FLAGS)"
928 @echo " PICFLAG = $(PICFLAG)"
929 @echo " LIBS = $(LIBS)"
930 @echo " LDFLAGS = $(LDFLAGS)"
931 @echo " DYNEXP = $(DYNEXP)"
932 @echo " LDSHFLAGS = $(LDSHFLAGS)"
933 @echo " SHLIBEXT = @SHLIBEXT@"
934 @echo " SONAMEFLAG = @SONAMEFLAG@"
936 MAKEDIR = || exec false; \
937 if test -d "$$dir"; then :; else \
938 echo mkdir "$$dir"; \
939 mkdir -p "$$dir" >/dev/null 2>&1 || \
940 test -d "$$dir" || \
941 mkdir "$$dir" || \
942 exec false; fi || exec false
944 .c.o:
945 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
946 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
947 @if test -n "$(CC_CHECKER)"; then \
948 echo "Checking $*.c with '$(CC_CHECKER)'";\
949 $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@;\
951 @echo Compiling $*.c
952 @$(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@ && exit 0;\
953 echo "The following command failed:" 1>&2;\
954 echo "$(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@" 1>&2;\
955 $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@ >/dev/null 2>&1
956 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
958 # this adds support for precompiled headers. To use it, install a snapshot
959 # of gcc-3.4 and run 'make pch' before you do the main build.
960 pch: proto_exists
961 rm -f $(builddir)/include/includes.h.gch
962 $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $(srcdir)/include/includes.h -o $(builddir)/include/includes.h.gch
964 # These dependencies are only approximately correct: we want to make
965 # sure Samba's paths are updated if ./configure is re-run. Really it
966 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
967 # but since we also require "make install prefix=/opt/samba" *not* to
968 # rebuild it's a bit hard.
970 dynconfig.o: dynconfig.c Makefile
971 @echo Compiling $*.c
972 @$(CC) $(FLAGS) $(PATH_FLAGS) $(PICFLAG) -c $(srcdir)/dynconfig.c -o $@ && exit 0;\
973 echo "The following command failed:" 1>&2;\
974 echo "$(CC) $(FLAGS) $(PATH_FLAGS) $(PICFLAG) -c $(srcdir)/dynconfig.c -o $@" 1>&2;\
975 $(CC) $(FLAGS) $(PATH_FLAGS) $(PICFLAG) -c $(srcdir)/dynconfig.c -o $@ >/dev/null 2>&1
977 lib/pidfile.o: lib/pidfile.c
978 @echo Compiling $*.c
979 @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) $(PICFLAG) -c $(srcdir)/lib/pidfile.c -o $@
981 lib/version.o: lib/version.c include/version.h
982 @echo Compiling $*.c
983 @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) $(PICFLAG) -c $(srcdir)/lib/version.c -o $@
985 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
986 @echo Compiling $*.c
987 @$(CC) $(FLAGS) $(PATH_FLAGS) $(PICFLAG) -c smbd/build_options.c -o $@
989 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
990 @echo Generating $@
991 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
993 bin/.dummy:
994 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
995 dir=bin $(MAKEDIR); fi
996 @: >> $@ || : > $@ # what a fancy emoticon!
998 bin/smbd@EXEEXT@: $(SMBD_OBJ) @BUILD_POPT@ bin/.dummy
999 @echo Linking $@
1000 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1001 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1002 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@ @SMBD_LIBS@
1004 bin/nmbd@EXEEXT@: $(NMBD_OBJ) @BUILD_POPT@ bin/.dummy
1005 @echo Linking $@
1006 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
1008 bin/swat@EXEEXT@: $(SWAT_OBJ) @BUILD_POPT@ bin/.dummy
1009 @echo Linking $@
1010 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1011 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
1013 bin/rpcclient@EXEEXT@: $(RPCCLIENT_OBJ) @BUILD_POPT@ bin/.dummy
1014 @echo Linking $@
1015 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1016 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1017 $(KRB5LIBS) $(LDAP_LIBS)
1019 bin/smbclient@EXEEXT@: $(CLIENT_OBJ) @BUILD_POPT@ bin/.dummy
1020 @echo Linking $@
1021 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
1023 bin/smbctool@EXEEXT@: $(TOOL_OBJ) @BUILD_POPT@ bin/.dummy
1024 @echo Linking $@
1025 @$(CC) $(FLAGS) -o $@ $(TOOL_OBJ) $(LDFLAGS) $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) -Lbin -lsmbclient
1027 bin/net@EXEEXT@: $(NET_OBJ) @BUILD_POPT@ @BUILD_INIPARSER@ bin/.dummy
1028 @echo Linking $@
1029 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @INIPARSERLIBS@
1031 bin/profiles@EXEEXT@: $(PROFILES_OBJ) @BUILD_POPT@ bin/.dummy
1032 @echo Linking $@
1033 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1035 bin/smbspool@EXEEXT@: $(CUPS_OBJ) bin/.dummy
1036 @echo Linking $@
1037 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1039 bin/smbmount@EXEEXT@: $(MOUNT_OBJ) bin/.dummy
1040 @echo Linking $@
1041 @$(CC) $(FLAGS) -o $@ $(MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1043 bin/smbmnt@EXEEXT@: $(MNT_OBJ) bin/.dummy
1044 @echo Linking $@
1045 @$(CC) $(FLAGS) -o $@ $(MNT_OBJ) $(DYNEXP) $(LDFLAGS)
1047 bin/smbumount@EXEEXT@: $(UMOUNT_OBJ) bin/.dummy
1048 @echo Linking $@
1049 @$(CC) $(FLAGS) -o $@ $(UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1051 bin/mount.cifs@EXEEXT@: $(CIFS_MOUNT_OBJ) bin/.dummy
1052 @echo Linking $@
1053 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1055 bin/umount.cifs@EXEEXT@: $(CIFS_UMOUNT_OBJ) bin/.dummy
1056 @echo Linking $@
1057 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1059 bin/testparm@EXEEXT@: $(TESTPARM_OBJ) @BUILD_POPT@ bin/.dummy
1060 @echo Linking $@
1061 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1063 bin/smbstatus@EXEEXT@: $(STATUS_OBJ) @BUILD_POPT@ bin/.dummy
1064 @echo Linking $@
1065 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) \
1066 @POPTLIBS@
1068 bin/smbcontrol@EXEEXT@: $(SMBCONTROL_OBJ) @BUILD_POPT@ bin/.dummy
1069 @echo Linking $@
1070 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1071 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1072 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ @POPTLIBS@
1074 bin/smbtree@EXEEXT@: $(SMBTREE_OBJ) @BUILD_POPT@ bin/.dummy
1075 @echo Linking $@
1076 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
1078 bin/smbpasswd@EXEEXT@: $(SMBPASSWD_OBJ) @BUILD_POPT@ bin/.dummy
1079 @echo Linking $@
1080 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1081 $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
1083 bin/pdbedit@EXEEXT@: $(PDBEDIT_OBJ) @BUILD_POPT@ bin/.dummy
1084 @echo Linking $@
1085 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(PASSDB_LIBS) $(LDAP_LIBS)
1087 bin/smbget@EXEEXT@: $(SMBGET_OBJ) @BUILD_POPT@ bin/.dummy
1088 @echo Linking $@
1089 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS)
1091 bin/samtest@EXEEXT@: $(SAMTEST_OBJ) @BUILD_POPT@ bin/.dummy
1092 @echo Linking $@
1093 @$(CC) $(FLAGS) -o $@ $(SAMTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(PASSDB_LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1095 bin/nmblookup@EXEEXT@: $(NMBLOOKUP_OBJ) @BUILD_POPT@ bin/.dummy
1096 @echo Linking $@
1097 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(LDAP_LIBS)
1099 bin/smbtorture@EXEEXT@: $(SMBTORTURE_OBJ) bin/.dummy
1100 @echo Linking $@
1101 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1103 bin/talloctort@EXEEXT@: $(TALLOCTORT_OBJ) bin/.dummy
1104 @echo Linking $@
1105 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1106 $(DYNEXP) $(LIBS) $(LDAP_LIBS)
1108 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) bin/.dummy
1109 @echo Linking $@
1110 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1111 $(DYNEXP) $(LIBS)
1113 bin/masktest@EXEEXT@: $(MASKTEST_OBJ) bin/.dummy
1114 @echo Linking $@
1115 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1117 bin/msgtest@EXEEXT@: $(MSGTEST_OBJ) bin/.dummy
1118 @echo Linking $@
1119 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1121 bin/smbcacls@EXEEXT@: $(SMBCACLS_OBJ) @BUILD_POPT@ bin/.dummy
1122 @echo Linking $@
1123 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \
1124 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS)
1126 bin/smbcquotas@EXEEXT@: $(SMBCQUOTAS_OBJ) @BUILD_POPT@ bin/.dummy
1127 @echo Linking $@
1128 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \
1129 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS)
1131 bin/eventlogadm@EXEEXT@: $(EVTLOGADM_OBJ) @BUILD_POPT@ bin/.dummy
1132 @echo Linking $@
1133 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1135 bin/sharesec@EXEEXT@: $(SHARESEC_OBJ) @BUILD_POPT@ bin/.dummy
1136 @echo Linking $@
1137 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1139 bin/locktest@EXEEXT@: $(LOCKTEST_OBJ) bin/.dummy
1140 @echo Linking $@
1141 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1143 bin/nsstest@EXEEXT@: $(NSSTEST_OBJ) bin/.dummy
1144 @echo Linking $@
1145 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1147 bin/pdbtest@EXEEXT@: $(PDBTEST_OBJ) bin/.dummy
1148 @echo Linking $@
1149 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@
1151 bin/vfstest@EXEEXT@: $(VFSTEST_OBJ) @BUILD_POPT@ bin/.dummy
1152 @echo Linking $@
1153 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) @SMBD_LIBS@ $(NSCD_LIBS)
1155 bin/smbiconv@EXEEXT@: $(SMBICONV_OBJ) @BUILD_POPT@ bin/.dummy
1156 @echo Linking $@
1157 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) @POPTLIBS@
1159 bin/log2pcap@EXEEXT@: $(LOG2PCAP_OBJ) @BUILD_POPT@ bin/.dummy
1160 @echo Linking $@
1161 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) @POPTLIBS@ $(LIBS)
1163 bin/locktest2@EXEEXT@: $(LOCKTEST2_OBJ) bin/.dummy
1164 @echo Linking $@
1165 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1167 bin/rpctorture@EXEEXT@: $(RPCTORTURE_OBJ) bin/.dummy
1168 @echo Linking $@
1169 @$(CC) $(FLAGS) -o $@ $(RPCTORTURE_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1171 bin/debug2html@EXEEXT@: $(DEBUG2HTML_OBJ) bin/.dummy
1172 @echo Linking $@
1173 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1175 bin/smbfilter@EXEEXT@: $(SMBFILTER_OBJ) bin/.dummy
1176 @echo Linking $@
1177 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1180 bin/ldbedit: $(LDBEDIT_OBJ) @BUILD_POPT@ bin/.dummy
1181 @echo Linking $@
1182 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS)
1184 bin/ldbsearch: $(LDBSEARCH_OBJ) @BUILD_POPT@ bin/.dummy
1185 @echo Linking $@
1186 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS)
1188 bin/ldbadd: $(LDBADD_OBJ) @BUILD_POPT@ bin/.dummy
1189 @echo Linking $@
1190 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS)
1192 bin/ldbmodify: $(LDBMODIFY_OBJ) @BUILD_POPT@ bin/.dummy
1193 @echo Linking $@
1194 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS)
1196 bin/ldbdel: $(LDBDEL_OBJ) @BUILD_POPT@ bin/.dummy
1197 @echo Linking $@
1198 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS)
1200 bin/libaddns.@SHLIBEXT@: $(LIBADDNS_OBJ)
1201 @echo Linking libaddns shared library $@
1202 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBADDNS_OBJ) $(LDFLAGS) $(LIBS) \
1203 $(KRB5LIBS) $(UUID_LIBS)\
1204 @SONAMEFLAG@`basename $@`.$(LIBADDNS_MAJOR)
1206 bin/libaddns.a: $(LIBADDNS_OBJ)
1207 @echo Linking libaddns non-shared library $@
1208 @-$(AR) -rc $@ $(LIBADDNS_OBJ)
1210 bin/libsmbclient.@SHLIBEXT@: $(LIBSMBCLIENT_OBJ)
1211 @echo Linking libsmbclient shared library $@
1212 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBCLIENT_OBJ) $(LDFLAGS) $(LIBS) \
1213 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1214 @SONAMEFLAG@`basename $@`.$(LIBSMBCLIENT_MAJOR)
1216 bin/libsmbclient.a: $(LIBSMBCLIENT_OBJ)
1217 @echo Linking libsmbclient non-shared library $@
1218 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ)
1220 bin/libsmbsharemodes.@SHLIBEXT@: $(LIBSMBSHAREMODES_OBJ)
1221 @echo Linking libsmbsharemodes shared library $@
1222 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBSHAREMODES_OBJ) $(LDFLAGS) $(LIBS) \
1223 $(KRB5LIBS) $(LDAP_LIBS) \
1224 @SONAMEFLAG@`basename $@`.$(LIBSMBSHAREMODES_MAJOR)
1226 bin/libsmbsharemodes.a: $(LIBSMBSHAREMODES_OBJ)
1227 @echo Linking libsmbsharemodes non-shared library $@
1228 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ)
1230 bin/libmsrpc.@SHLIBEXT@: $(CAC_OBJ)
1231 @echo Linking libmsrpc shared library $@
1232 @$(SHLD) $(LDSHFLAGS) -o $@ $(CAC_OBJ) $(LDFLAGS) $(LIBS) \
1233 @SONAMEFLAG@`basename $@`.$(LIBMSRPC_MAJOR)
1235 bin/libmsrpc.a: $(CAC_OBJ)
1236 @echo Linking libmsrpc non-shared library $@
1237 @-$(AR) -rc $@ $(CAC_OBJ)
1239 # This is probably wrong for anything other than the GNU linker.
1240 bin/libbigballofmud.@SHLIBEXT@: $(LIBBIGBALLOFMUD_OBJ)
1241 @echo Linking bigballofmud shared library $@
1242 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) $(LIBS) \
1243 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1244 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
1245 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
1247 # It would be nice to build a static bigballofmud too, but when I try
1248 # I get linker errors about dl_open and similar things. I'm not sure if
1249 # it can be fixed or if they just can't be called from a static
1250 # library.
1252 libsmbclient: $(LIBSMBCLIENT)
1253 libsmbsharemodes: $(LIBSMBSHAREMODES)
1254 libmsrpc: $(LIBMSRPC)
1255 libaddns: $(LIBADDNS)
1257 bin/librpc_lsarpc.@SHLIBEXT@: $(RPC_LSA_OBJ)
1258 @echo "Linking $@"
1259 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_LSA_OBJ) -lc \
1260 @SONAMEFLAG@`basename $@`
1262 bin/librpc_samr.@SHLIBEXT@: $(RPC_SAMR_OBJ)
1263 @echo "Linking $@"
1264 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SAMR_OBJ) -lc \
1265 @SONAMEFLAG@`basename $@`
1267 bin/librpc_unixinfo.@SHLIBEXT@: $(RPC_UNIXINFO_OBJ)
1268 @echo "Linking $@"
1269 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_UNIXINFO_OBJ) -lc \
1270 @SONAMEFLAG@`basename $@`
1272 bin/librpc_srvsvc.@SHLIBEXT@: $(RPC_SVC_OBJ)
1273 @echo "Linking $@"
1274 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SVC_OBJ) -lc \
1275 @SONAMEFLAG@`basename $@`
1277 bin/librpc_svcctl.@SHLIBEXT@: $(RPC_SVCCTL_OBJ)
1278 @echo "Linking $@"
1279 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SVCCTL_OBJ) -lc \
1280 @SONAMEFLAG@`basename $@`
1282 bin/librpc_ntsvcs.@SHLIBEXT@: $(RPC_NTSVCS_OBJ)
1283 @echo "Linking $@"
1284 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_NTSVCS_OBJ) -lc \
1285 @SONAMEFLAG@`basename $@`
1287 bin/librpc_wkssvc.@SHLIBEXT@: $(RPC_WKS_OBJ)
1288 @echo "Linking $@"
1289 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_WKS_OBJ) -lc \
1290 @SONAMEFLAG@`basename $@`
1292 bin/librpc_NETLOGON.@SHLIBEXT@: $(RPC_NETLOG_OBJ)
1293 @echo "Linking $@"
1294 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_NETLOG_OBJ) -lc \
1295 @SONAMEFLAG@`basename $@`
1297 bin/librpc_winreg.@SHLIBEXT@: $(RPC_REG_OBJ)
1298 @echo "Linking $@"
1299 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_REG_OBJ) -lc \
1300 @SONAMEFLAG@`basename $@`
1302 bin/librpc_initshutdown.@SHLIBEXT@: $(RPC_INITSHUTDOWN_OBJ)
1303 @echo "Linking $@"
1304 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_INITSHUTDOWN_OBJ) -lc \
1305 @SONAMEFLAG@`basename $@`
1307 bin/librpc_lsa_ds.@SHLIBEXT@: $(RPC_LSA_DS_OBJ)
1308 @echo "Linking $@"
1309 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_LSA_DS_OBJ) -lc \
1310 @SONAMEFLAG@`basename $@`
1312 bin/librpc_spoolss.@SHLIBEXT@: $(RPC_SPOOLSS_OBJ)
1313 @echo "Linking $@"
1314 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SPOOLSS_OBJ) -lc \
1315 @SONAMEFLAG@`basename $@`
1317 bin/librpc_eventlog.@SHLIBEXT@: $(RPC_EVENTLOG_OBJ)
1318 @echo "Linking $@"
1319 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_EVENTLOG_OBJ) -lc \
1320 @SONAMEFLAG@`basename $@`
1322 bin/librpc_netdfs.@SHLIBEXT@: $(RPC_DFS_OBJ)
1323 @echo "Linking $@"
1324 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_DFS_OBJ) -lc \
1325 @SONAMEFLAG@`basename $@`
1327 bin/librpc_echo.@SHLIBEXT@: $(RPC_ECHO_OBJ)
1328 @echo "Linking $@"
1329 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_ECHO_OBJ) -lc \
1330 @SONAMEFLAG@`basename $@`
1332 bin/winbindd@EXEEXT@: $(WINBINDD_OBJ) @BUILD_POPT@ bin/.dummy
1333 @echo "Linking $@"
1334 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1335 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS)
1337 @WINBIND_NSS@: $(WINBIND_NSS_OBJ)
1338 @echo "Linking $@"
1339 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
1340 @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1342 @WINBIND_WINS_NSS@: $(WINBIND_WINS_NSS_OBJ)
1343 @echo "Linking $@"
1344 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
1345 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) \
1346 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1348 bin/pam_winbind.@SHLIBEXT@: $(PAM_WINBIND_OBJ) bin/.dummy
1349 @echo "Linking shared library $@"
1350 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) \
1351 @SONAMEFLAG@`basename $@` -lpam @INIPARSERLIBS@
1353 bin/builtin.@SHLIBEXT@: $(AUTH_BUILTIN_OBJ)
1354 @echo "Building plugin $@"
1355 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_BUILTIN_OBJ) @SONAMEFLAG@`basename $@`
1357 bin/domain.@SHLIBEXT@: $(AUTH_DOMAIN_OBJ)
1358 @echo "Building plugin $@"
1359 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_DOMAIN_OBJ) @SONAMEFLAG@`basename $@`
1361 bin/script.@SHLIBEXT@: $(AUTH_SCRIPT_OBJ)
1362 @echo "Building plugin $@"
1363 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_SCRIPT_OBJ) @SONAMEFLAG@`basename $@`
1365 bin/smbserver.@SHLIBEXT@: $(AUTH_SERVER_OBJ)
1366 @echo "Building plugin $@"
1367 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_SERVER_OBJ) @SONAMEFLAG@`basename $@`
1369 bin/winbind.@SHLIBEXT@: $(AUTH_WINBIND_OBJ)
1370 @echo "Building plugin $@"
1371 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_WINBIND_OBJ) @SONAMEFLAG@`basename $@`
1373 bin/unix.@SHLIBEXT@: $(AUTH_UNIX_OBJ)
1374 @echo "Building plugin $@"
1375 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_UNIX_OBJ) @SONAMEFLAG@`basename $@`
1377 bin/sam.@SHLIBEXT@: $(AUTH_SAM_OBJ)
1378 @echo "Building plugin $@"
1379 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_SAM_OBJ) @SONAMEFLAG@`basename $@`
1381 bin/ldapsam.@SHLIBEXT@: passdb/pdb_ldap.o
1382 @echo "Building plugin $@"
1383 @$(SHLD) $(LDSHFLAGS) $(LDAP_LIBS) -o $@ passdb/pdb_ldap.o \
1384 @SONAMEFLAG@`basename $@`
1386 bin/tdbsam.@SHLIBEXT@: passdb/pdb_tdb.o
1387 @echo "Building plugin $@"
1388 @$(SHLD) $(LDSHFLAGS) -o $@ passdb/pdb_tdb.o \
1389 @SONAMEFLAG@`basename $@`
1391 bin/smbpasswd.@SHLIBEXT@: passdb/pdb_smbpasswd.o
1392 @echo "Building plugin $@"
1393 @$(SHLD) $(LDSHFLAGS) -o $@ passdb/pdb_smbpasswd.o \
1394 @SONAMEFLAG@`basename $@`
1396 bin/rid.@SHLIBEXT@: nsswitch/idmap_rid.o
1397 @echo "Building plugin $@"
1398 @$(SHLD) $(LDSHFLAGS) -o $@ nsswitch/idmap_rid.o \
1399 @SONAMEFLAG@`basename $@`
1401 bin/ad.@SHLIBEXT@: nsswitch/idmap_ad.o
1402 @echo "Building plugin $@"
1403 @$(SHLD) $(LDSHFLAGS) -o $@ nsswitch/idmap_ad.o \
1404 @SONAMEFLAG@`basename $@`
1406 bin/weird.@SHLIBEXT@: $(DEVEL_HELP_WEIRD_OBJ)
1407 @echo "Building plugin $@"
1408 @$(SHLD) $(LDSHFLAGS) -o $@ $(DEVEL_HELP_WEIRD_OBJ) \
1409 @SONAMEFLAG@`basename $@`
1411 bin/CP850.@SHLIBEXT@: $(CP850_OBJ)
1412 @echo "Building plugin $@"
1413 @$(SHLD) $(LDSHFLAGS) -o $@ $(CP850_OBJ) \
1414 @SONAMEFLAG@`basename $@`
1416 bin/CP437.@SHLIBEXT@: $(CP437_OBJ)
1417 @echo "Building plugin $@"
1418 @$(SHLD) $(LDSHFLAGS) -o $@ $(CP437_OBJ) \
1419 @SONAMEFLAG@`basename $@`
1421 bin/macosxfs.@SHLIBEXT@: $(CHARSET_MACOSXFS_OBJ)
1422 @echo "Building plugin $@"
1423 @$(SHLD) $(LDSHFLAGS) -o $@ $(CHARSET_MACOSXFS_OBJ) \
1424 -framework CoreFoundation @SONAMEFLAG@`basename $@`
1426 # NOTE, there is no build rule for a dynamic default VFS module because
1427 # this one MUST MUST MUST be built statically.
1429 bin/audit.@SHLIBEXT@: $(VFS_AUDIT_OBJ)
1430 @echo "Building plugin $@"
1431 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_AUDIT_OBJ) \
1432 @SONAMEFLAG@`basename $@`
1434 bin/extd_audit.@SHLIBEXT@: $(VFS_EXTD_AUDIT_OBJ)
1435 @echo "Building plugin $@"
1436 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_EXTD_AUDIT_OBJ) \
1437 @SONAMEFLAG@`basename $@`
1439 bin/full_audit.@SHLIBEXT@: $(VFS_FULL_AUDIT_OBJ)
1440 @echo "Building plugin $@"
1441 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_FULL_AUDIT_OBJ) \
1442 @SONAMEFLAG@`basename $@`
1444 bin/recycle.@SHLIBEXT@: $(VFS_RECYCLE_OBJ)
1445 @echo "Building plugin $@"
1446 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_RECYCLE_OBJ) \
1447 @SONAMEFLAG@`basename $@`
1449 bin/netatalk.@SHLIBEXT@: $(VFS_NETATALK_OBJ)
1450 @echo "Building plugin $@"
1451 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_NETATALK_OBJ) \
1452 @SONAMEFLAG@`basename $@`
1454 bin/fake_perms.@SHLIBEXT@: $(VFS_FAKE_PERMS_OBJ)
1455 @echo "Building plugin $@"
1456 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_FAKE_PERMS_OBJ) \
1457 @SONAMEFLAG@`basename $@`
1459 bin/default_quota.@SHLIBEXT@: $(VFS_DEFAULT_QUOTA_OBJ)
1460 @echo "Building plugin $@"
1461 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_DEFAULT_QUOTA_OBJ) \
1462 @SONAMEFLAG@`basename $@`
1464 bin/readonly.@SHLIBEXT@: $(VFS_READONLY_OBJ)
1465 @echo "Building plugin $@"
1466 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_READONLY_OBJ) \
1467 @SONAMEFLAG@`basename $@`
1469 bin/shadow_copy.@SHLIBEXT@: $(VFS_SHADOW_COPY_OBJ)
1470 @echo "Building plugin $@"
1471 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_SHADOW_COPY_OBJ) \
1472 @SONAMEFLAG@`basename $@`
1474 bin/cap.@SHLIBEXT@: $(VFS_CAP_OBJ)
1475 @echo "Building plugin $@"
1476 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_CAP_OBJ) \
1477 @SONAMEFLAG@`basename $@`
1479 bin/expand_msdfs.@SHLIBEXT@: $(VFS_EXPAND_MSDFS_OBJ)
1480 @echo "Building plugin $@"
1481 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_EXPAND_MSDFS_OBJ) \
1482 @SONAMEFLAG@`basename $@`
1484 bin/afsacl.@SHLIBEXT@: $(VFS_AFSACL_OBJ:.o=.po)
1485 @echo "Building plugin $@"
1486 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_AFSACL_OBJ:.o=.po) \
1487 @SONAMEFLAG@`basename $@`
1489 bin/posixacl.@SHLIBEXT@: $(VFS_POSIXACL_OBJ)
1490 @echo "Building plugin $@"
1491 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_POSIXACL_OBJ) \
1492 @SONAMEFLAG@`basename $@`
1494 bin/aixacl.@SHLIBEXT@: $(VFS_AIXACL_OBJ)
1495 @echo "Building plugin $@"
1496 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_AIXACL_OBJ) \
1497 @SONAMEFLAG@`basename $@`
1499 bin/aixacl2.@SHLIBEXT@: $(VFS_AIXACL2_OBJ)
1500 @echo "Building plugin $@"
1501 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_AIXACL2_OBJ) \
1502 @SONAMEFLAG@`basename $@`
1504 bin/solarisacl.@SHLIBEXT@: $(VFS_SOLARISACL_OBJ)
1505 @echo "Building plugin $@"
1506 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_SOLARISACL_OBJ) \
1507 @SONAMEFLAG@`basename $@`
1509 bin/irixacl.@SHLIBEXT@: $(VFS_IRIXACL_OBJ)
1510 @echo "Building plugin $@"
1511 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_IRIXACL_OBJ) \
1512 @SONAMEFLAG@`basename $@`
1514 bin/hpuxacl.@SHLIBEXT@: $(VFS_HPUXACL_OBJ)
1515 @echo "Building plugin $@"
1516 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_HPUXACL_OBJ) \
1517 @SONAMEFLAG@`basename $@`
1519 bin/tru64acl.@SHLIBEXT@: $(VFS_TRU64ACL_OBJ)
1520 @echo "Building plugin $@"
1521 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_TRU64ACL_OBJ) \
1522 @SONAMEFLAG@`basename $@`
1524 bin/catia.@SHLIBEXT@: $(VFS_CATIA_OBJ)
1525 @echo "Building plugin $@"
1526 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_CATIA_OBJ) \
1527 @SONAMEFLAG@`basename $@`
1529 bin/cacheprime.@SHLIBEXT@: $(VFS_CACHEPRIME_OBJ)
1530 @echo "Building plugin $@"
1531 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_CACHEPRIME_OBJ) \
1532 @SONAMEFLAG@`basename $@`
1534 bin/prealloc.@SHLIBEXT@: $(VFS_PREALLOC_OBJ)
1535 @echo "Building plugin $@"
1536 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_PREALLOC_OBJ) \
1537 @SONAMEFLAG@`basename $@`
1539 bin/commit.@SHLIBEXT@: $(VFS_COMMIT_OBJ)
1540 @echo "Building plugin $@"
1541 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_COMMIT_OBJ) \
1542 @SONAMEFLAG@`basename $@`
1544 bin/gpfs.@SHLIBEXT@: $(VFS_GPFS_OBJ)
1545 @echo "Building plugin $@"
1546 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_GPFS_OBJ) \
1547 @SONAMEFLAG@`basename $@`
1549 bin/wbinfo@EXEEXT@: $(WBINFO_OBJ) @BUILD_POPT@ bin/.dummy
1550 @echo Linking $@
1551 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1553 bin/ntlm_auth@EXEEXT@: $(NTLM_AUTH_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1554 @BUILD_POPT@ bin/.dummy
1555 @echo Linking $@
1556 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
1557 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
1558 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS)
1560 bin/pam_smbpass.@SHLIBEXT@: $(PAM_SMBPASS_OBJ)
1561 @echo "Linking shared library $@"
1562 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
1564 bin/tdbbackup@EXEEXT@: $(TDBBACKUP_OBJ) bin/.dummy
1565 @echo Linking $@
1566 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBBACKUP_OBJ) $(SOCKET_WRAPPER_OBJ)
1568 bin/tdbtool@EXEEXT@: $(TDBTOOL_OBJ) bin/.dummy
1569 @echo Linking $@
1570 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBTOOL_OBJ) $(SOCKET_WRAPPER_OBJ)
1572 bin/tdbdump@EXEEXT@: $(TDBDUMP_OBJ) bin/.dummy
1573 @echo Linking $@
1574 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBDUMP_OBJ) $(SOCKET_WRAPPER_OBJ)
1576 bin/t_strcmp@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
1577 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strcmp.o -L ./bin -lbigballofmud
1579 bin/t_strstr@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
1580 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strstr.o -L ./bin -lbigballofmud
1582 bin/t_strappend@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
1583 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strappend.o -L ./bin -lbigballofmud
1585 bin/t_stringoverflow@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
1586 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o -L./bin -lbigballofmud
1588 bin/t_doschar@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_doschar.o
1589 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_doschar.o -L ./bin -lbigballofmud
1590 bin/t_push_ucs2@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_push_ucs2.o
1591 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_push_ucs2.o -L ./bin -lbigballofmud
1593 bin/timelimit@EXEEXT@: script/tests/timelimit.o
1594 @echo Linking $@
1595 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
1597 install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installswat installmodules @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@
1600 install-everything: install installmodules
1602 # DESTDIR is used here to prevent packagers wasting their time
1603 # duplicating the Makefile. Remove it and you will have the privelege
1604 # of package each samba release for muliple versions of multiple
1605 # distributions and operating systems, or at least supplying patches
1606 # to all the packaging files required for this, prior to committing
1607 # the removal of DESTDIR. Do not remove it even though you think it
1608 # is not used
1610 installdirs:
1611 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
1613 installservers: all installdirs
1614 @$(SHELL) script/installbin.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
1616 installbin: all installdirs
1617 @$(SHELL) script/installbin.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
1619 installcifsmount: @CIFSMOUNT_PROGS@
1620 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) $(ROOTSBINDIR)
1621 @$(SHELL) script/installbin.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
1623 # Some symlinks are required for the 'probing' of modules.
1624 # This mechanism should go at some point..
1625 installmodules: modules installdirs
1626 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
1627 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
1628 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
1629 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
1630 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
1631 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
1632 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1633 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1634 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1635 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1636 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1638 installscripts: installdirs
1639 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS) $(DESTDIR)$(BINDIR) $(SCRIPTS)
1641 installdat: installdirs
1642 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
1644 installmsg: installdirs
1645 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
1647 installswat: installdirs installmsg
1648 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
1650 installclientlib: installdirs libsmbclient
1651 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) $(LIBDIR)
1652 -$(INSTALLLIBCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1653 -$(INSTALLLIBCMD_A) bin/libsmbclient.a $(DESTDIR)$(LIBDIR)
1654 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) ${prefix}/include
1655 -$(INSTALLCMD) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include
1657 installlibmsrpc: installdirs libmsrpc
1658 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) $(LIBDIR)
1659 -$(INSTALLLIBCMD_SH) bin/libmsrpc.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1660 -$(INSTALLLIBCMD_A) bin/libmsrpc.a $(DESTDIR)$(LIBDIR)
1661 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) ${prefix}/include
1662 -$(INSTALLCMD) $(srcdir)/include/libmsrpc.h $(DESTDIR)${prefix}/include
1664 installlibsmbsharemodes: installdirs libsmbsharemodes
1665 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) $(LIBDIR)
1666 -$(INSTALLLIBCMD_SH) bin/libsmbsharemodes.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1667 -$(INSTALLLIBCMD_A) bin/libsmbsharemodes.a $(DESTDIR)$(LIBDIR)
1669 installlibaddns: installdirs libaddns
1670 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) $(LIBDIR)
1671 -$(INSTALLLIBCMD_SH) bin/libaddns.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1672 -$(INSTALLLIBCMD_A) bin/libaddns.a $(DESTDIR)$(LIBDIR)
1674 installpammodules: $(PAM_MODULES)
1675 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS) $(DESTDIR) $(PAMMODULESDIR)
1676 @for module in $(PAM_MODULES); do \
1677 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1678 $(INSTALLCMD) -m $(INSTALLPERMS) bin/$${module}.@SHLIBEXT@ \
1679 "$(DESTDIR)/$(PAMMODULESDIR)"; \
1680 done
1682 # Python extensions
1684 PYTHON_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) $(RPC_PARSE_OBJ) \
1685 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1686 $(SECRETS_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
1688 python_ext: $(PYTHON_OBJ)
1689 @if test -z "$(PYTHON)"; then \
1690 echo Use the option --with-python to configure python; \
1691 exit 1; \
1693 PYTHON_OBJS="$(PYTHON_OBJ)" \
1694 PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
1695 LIBS="$(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
1696 $(PYTHON) python/setup.py build
1698 python_install: $(PYTHON_OBJ)
1699 @if test -z "$(PYTHON)"; then \
1700 echo Use the option --with-python to configure python; \
1701 exit 1; \
1703 PYTHON_OBJS="$(PYTHON_OBJ)" \
1704 PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
1705 LIBS="$(LDFLAGS) $(LIBS)" \
1706 $(PYTHON) python/setup.py install --root=$(DESTDIR)
1708 python_clean:
1709 @-if test -n "$(PYTHON)"; then $(PYTHON) python/setup.py clean; fi
1711 # revert to the previously installed version
1712 revert:
1713 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
1714 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
1716 installman: installdirs
1717 @$(SHELL) SMBMOUNT_PROGS="@SMBMOUNT_PROGS@" \
1718 $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
1720 .PHONY: showlayout
1722 showlayout:
1723 @echo "Samba will be installed into:"
1724 @echo " prefix: $(prefix)"
1725 @echo " bindir: $(BINDIR)"
1726 @echo " sbindir: $(SBINDIR)"
1727 @echo " libdir: $(LIBDIR)"
1728 @echo " vardir: $(VARDIR)"
1729 @echo " mandir: $(MANDIR)"
1730 @echo " privatedir: $(PRIVATE_DIR)"
1731 @echo " configdir: $(CONFIGDIR)"
1732 @echo " lockdir: $(LOCKDIR)"
1733 @echo " piddir: $(PIDDIR)"
1734 @echo " swatdir: $(SWATDIR)"
1737 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_LIBMSRPC@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@
1739 uninstallman:
1740 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
1742 uninstallservers:
1743 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
1745 uninstallbin:
1746 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
1748 uninstallcifsmount:
1749 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
1751 uninstallmodules:
1752 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
1753 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
1754 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
1755 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
1756 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
1757 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
1759 uninstallscripts:
1760 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS) $(DESTDIR)$(BINDIR) $(SCRIPTS)
1762 uninstalldat:
1763 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
1765 uninstallmsg:
1766 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
1768 uninstallswat: uninstallmsg
1769 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
1771 uninstallclientlib:
1772 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbclient.@SHLIBEXT@
1773 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbclient.a
1774 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
1776 uninstalllibmsrpc:
1777 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libmsrpc.@SHLIBEXT@
1778 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libmsrpc.a
1779 -rm -f $(DESTDIR)${prefix}/include/libmsrpc.h
1781 uninstalllibsmbsharemodes:
1782 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.@SHLIBEXT@
1783 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.a
1785 uninstalllibaddns:
1786 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libaddns.@SHLIBEXT@
1787 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libaddns.a
1789 uninstallpammodules:
1790 @for module in $(PAM_MODULES); do \
1791 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1792 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
1793 done
1795 # Toplevel clean files
1796 TOPFILES=dynconfig.o
1798 clean: delheaders python_clean
1799 -rm -f core */*~ *~ */*.o */*/*.o */*/*/*.o \
1800 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
1801 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
1802 $(MODULES) $(TORTURE_PROGS) $(LIBSMBCLIENT) $(LIBADDNS) \
1803 $(LIBSMBSHAREMODES) $(EVERYTHING_PROGS) $(LIBMSRPC) \
1804 .headers.stamp */src/*.o
1805 -rm -rf t_dir
1807 # Making this target will just make sure that the prototype files
1808 # exist, not necessarily that they are up to date. Since they're
1809 # removed by "make clean" this will always be run when you do anything
1810 # afterwards.
1811 proto_exists: include/proto.h include/build_env.h \
1812 nsswitch/winbindd_proto.h web/swat_proto.h \
1813 client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
1815 delheaders:
1816 @echo Removing prototype headers
1817 @rm -f include/proto.h include/build_env.h \
1818 nsswitch/winbindd_proto.h web/swat_proto.h \
1819 client/client_proto.h utils/net_proto.h \
1820 smbd/build_options.c utils/ntlm_auth_proto.h \
1821 utils/passwd_proto.h
1823 MKPROTO_SH = $(srcdir)/script/mkproto.sh
1825 include/proto.h: smbd/build_options.c
1826 @echo Building include/proto.h
1827 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1828 -h _PROTO_H_ $(builddir)/include/proto.h \
1829 $(PROTO_OBJ)
1831 include/build_env.h: script/build_env.sh
1832 @echo Building include/build_env.h
1833 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
1834 > $(builddir)/include/build_env.h
1836 nsswitch/winbindd_proto.h:
1837 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1838 -h _WINBINDD_PROTO_H_ $(builddir)/nsswitch/winbindd_proto.h \
1839 $(WINBINDD_OBJ1)
1841 web/swat_proto.h:
1842 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1843 -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
1844 $(SWAT_OBJ1)
1846 client/client_proto.h:
1847 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1848 -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
1849 $(CLIENT_OBJ1)
1851 utils/net_proto.h:
1852 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1853 -h _NET_PROTO_H_ $(builddir)/utils/net_proto.h \
1854 $(NET_OBJ1)
1856 utils/passwd_proto.h:
1857 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1858 -h _PASSWD_PROTO_H_ $(builddir)/utils/passwd_proto.h \
1859 $(PASSWD_UTIL_OBJ)
1861 utils/ntlm_auth_proto.h:
1862 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1863 -h _NTLM_AUTH_PROTO_H_ $(builddir)/utils/ntlm_auth_proto.h \
1864 $(NTLM_AUTH_OBJ1)
1866 # "make headers" or "make proto" calls a subshell because we need to
1867 # make sure these commands are executed in sequence even for a
1868 # parallel make.
1869 headers:
1870 $(MAKE) delheaders; \
1871 $(MAKE) smbd/build_options.c; \
1872 $(MAKE) include/proto.h; \
1873 $(MAKE) include/build_env.h; \
1874 $(MAKE) nsswitch/winbindd_proto.h; \
1875 $(MAKE) web/swat_proto.h; \
1876 $(MAKE) client/client_proto.h; \
1877 $(MAKE) utils/ntlm_auth_proto.h; \
1878 $(MAKE) utils/net_proto.h; \
1879 $(MAKE) utils/passwd_proto.h;
1881 proto: headers
1883 .PHONY: headers proto
1885 etags:
1886 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
1888 ctags:
1889 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
1891 realclean: clean delheaders
1892 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
1893 -rm -f script/installbin.sh script/uninstallbin.sh
1895 distclean: realclean
1896 -rm -f include/stamp-h
1897 -rm -f include/config.h Makefile
1898 -rm -f config.status config.cache so_locations
1899 -rm -rf .deps TAGS
1901 realdistclean: distclean
1902 -rm -f include/config.h.in
1903 -rm -f include/version.h
1904 -rm -f configure
1906 # this target is really just for my use. It only works on a limited
1907 # range of machines and is used to produce a list of potentially
1908 # dead (ie. unused) functions in the code. (tridge)
1909 finddead:
1910 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
1911 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
1912 comm -13 nmused.txt nmfns.txt
1915 # when configure.in is updated, reconfigure
1916 $(srcdir)/configure: $(srcdir)/configure.in
1917 @echo "WARNING: you need to rerun ./autogen.sh"
1919 config.status: $(srcdir)/configure
1920 @echo "WARNING: you need to run ./configure"
1922 Makefile: $(srcdir)/Makefile.in config.status
1923 @echo "WARNING: you need to run ./config.status"
1925 ######################################################################
1926 # Samba Testing Framework
1928 # Check for PAM module problems. Specifically, check that every module we
1929 # built can actually be loaded by a minimal PAM-aware application.
1930 test_pam_modules: pam_modules
1931 @echo "Testing $(PAM_MODULES) "
1932 @for module in $(PAM_MODULES); do \
1933 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
1934 || exit 1; \
1935 done
1938 ## Targets for 'make test'
1940 test: all torture timelimit
1941 @echo Running Test suite
1942 @sh $(srcdir)/script/tests/selftest.sh ${selftest_prefix}/st all "${smbtorture4_path}"
1944 valgrindtest: all torture timelimit
1945 @echo Running Test suite with valgrind
1946 @NMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
1947 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
1948 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/st/valgrind.log" \
1949 $(srcdir)/script/tests/selftest.sh ${selftest_prefix}/st all "${smbtorture4_path}"