Rework of VFS is_offline() function to only return boolean offline/online result...
[Samba.git] / source3 / Makefile.in
blob265d14547cb904d77d0bf691d815d1949f72e071
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 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 ###########################################################################
12 prefix=@prefix@
13 exec_prefix=@exec_prefix@
14 sysconfdir=@sysconfdir@
15 localstatedir=@localstatedir@
16 datarootdir=@datarootdir@
18 selftest_prefix=@selftest_prefix@
19 smbtorture4_path=@smbtorture4_path@
21 LIBS=@LIBS@
22 CC=@CC@
23 SHLD=@SHLD@
24 LIB_PATH_VAR=@LIB_PATH_VAR@
26 ## Dynamic shared libraries build settings
27 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@$$/syms/'`
28 DSO_EXPORTS=@DSO_EXPORTS@
29 SONAME_VER=`grep \^$@ $(builddir)/library-versions | cut -d: -f2`
30 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
32 # The MODULE_EXPORTS variable contains the platform-specific linker flags
33 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
34 MODULE_EXPORTS=@MODULE_EXPORTS@
36 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
37 # (GCC) warnings. This is done automtically for --enable-developer
38 # and --enable-krb5developer.
39 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
40 CFLAGS=@CFLAGS@
41 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
43 EXEEXT=@EXEEXT@
44 AR=@AR@
45 LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@
46 LDFLAGS=@PIE_LDFLAGS@ @LDFLAGS@
48 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
49 AWK=@AWK@
50 PICFLAG=@PICFLAG@
51 DYNEXP=@DYNEXP@
52 PERL=@PERL@
54 PIDL_ARGS=@PIDL_ARGS@
56 TERMLDFLAGS=@TERMLDFLAGS@
57 TERMLIBS=@TERMLIBS@
58 PRINT_LIBS=@PRINT_LIBS@
59 AUTH_LIBS=@AUTH_LIBS@
60 ACL_LIBS=@ACL_LIBS@
61 PASSDB_LIBS=@PASSDB_LIBS@
62 IDMAP_LIBS=@IDMAP_LIBS@
63 KRB5LIBS=@KRB5_LIBS@
64 LDAP_LIBS=@LDAP_LIBS@
65 NSCD_LIBS=@NSCD_LIBS@
66 UUID_LIBS=@UUID_LIBS@
67 WINBIND_LIBS=@WINBIND_LIBS@
68 DNSSD_LIBS=@DNSSD_LIBS@
70 INSTALLCMD=@INSTALL@
71 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
72 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
73 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
74 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
76 VPATH=@srcdir@
77 srcdir=@abs_srcdir@
78 builddir=@abs_builddir@
79 SHELL=/bin/sh
80 DESTDIR=/
82 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
83 # will search for a POSIX-compliant shell, and that might not be
84 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
86 # See the autoconf manual "Installation Directory Variables" for a
87 # discussion of the subtle use of these variables.
89 BASEDIR= @prefix@
90 BINDIR = @bindir@
91 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
92 SBINDIR = @sbindir@
93 ROOTSBINDIR = @rootsbindir@
94 LIBDIR = @libdir@
95 INCLUDEDIR=@includedir@
96 PAMMODULESDIR = @pammodulesdir@
97 VFSLIBDIR = $(LIBDIR)/vfs
98 PDBLIBDIR = $(LIBDIR)/pdb
99 RPCLIBDIR = $(LIBDIR)/rpc
100 IDMAPLIBDIR = $(LIBDIR)/idmap
101 NSSINFOLIBDIR = $(LIBDIR)/nss_info
102 CHARSETLIBDIR = $(LIBDIR)/charset
103 AUTHLIBDIR = $(LIBDIR)/auth
104 CONFIGLIBDIR = $(LIBDIR)/config
105 CONFIGDIR = @configdir@
106 VARDIR = @localstatedir@
107 MANDIR = @mandir@
108 DATADIR = @datadir@
110 # The permissions to give the executables and other data
111 INSTALLPERMS_BIN = 0755
112 INSTALLPERMS_DATA = 0644
114 # set these to where to find various files
115 # These can be overridden by command line switches (see smbd(8))
116 # or in smb.conf (see smb.conf(5))
117 LOGFILEBASE = @logfilebase@
118 CONFIGFILE = $(CONFIGDIR)/smb.conf
119 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
120 CTDBDIR = @ctdbdir@
122 # This is where smbpasswd et al go
123 PRIVATEDIR = @privatedir@
125 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
126 PRIVATE_DIR = $(PRIVATEDIR)
128 # This is where SWAT images and help files go
129 SWATDIR = @swatdir@
131 # the directory where lock files go
132 LOCKDIR = @lockdir@
134 # FHS directories; equal to LOCKDIR if not using --with-fhs
135 CACHEDIR = @cachedir@
136 STATEDIR = @statedir@
138 # Where to look for (and install) codepage databases.
139 CODEPAGEDIR = @codepagedir@
141 # the directory where pid files go
142 PIDDIR = @piddir@
144 LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
145 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
146 LIBADDNS=bin/libaddns.a @LIBADDNS_SHARED@
147 LIBWBCLIENT=@LIBWBCLIENT_SHARED@
148 LIBNETAPI=bin/libnetapi.a @LIBNETAPI_SHARED@
150 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
151 FLAGS2 =
152 FLAGS3 =
153 FLAGS4 = -I$(CTDBDIR)/include
154 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
155 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
157 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
158 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
159 -DCONFIGFILE=\"$(CONFIGFILE)\" \
160 -DSBINDIR=\"$(SBINDIR)\" \
161 -DBINDIR=\"$(BINDIR)\" \
162 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
163 -DSWATDIR=\"$(SWATDIR)\" \
164 -DLOCKDIR=\"$(LOCKDIR)\" \
165 -DPIDDIR=\"$(PIDDIR)\" \
166 -DLIBDIR=\"$(LIBDIR)\" \
167 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
168 -DSHLIBEXT=\"@SHLIBEXT@\" \
169 -DCTDBDIR=\"$(CTDBDIR)\" \
170 -DCONFIGDIR=\"$(CONFIGDIR)\" \
171 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
172 -DCACHEDIR=\"$(CACHEDIR)\" \
173 -DSTATEDIR=\"$(STATEDIR)\"
175 # Note that all executable programs now provide for an optional executable suffix.
177 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
179 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@ @CIFSSPNEGO_PROGS@
181 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
182 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
183 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
184 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
185 bin/tdbtool@EXEEXT@
186 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
187 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
188 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
189 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
190 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
192 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
193 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
194 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
195 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
196 bin/tdbtorture@EXEEXT@
198 BIN_PROGS = @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@ \
199 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
201 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
202 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
203 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
204 bin/vlp@EXEEXT@
206 SHLIBS = @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBADDNS@ @LIBNETAPI@ @LIBWBCLIENT@
208 PAM_MODULES = @PAM_MODULES@
210 NSS_MODULES = @NSS_MODULES@
212 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
214 VFS_MODULES = @VFS_MODULES@
215 PDB_MODULES = @PDB_MODULES@
216 RPC_MODULES = @RPC_MODULES@
217 IDMAP_MODULES = @IDMAP_MODULES@
218 CHARSET_MODULES = @CHARSET_MODULES@
219 AUTH_MODULES = @AUTH_MODULES@
220 NSS_INFO_MODULES = @NSS_INFO_MODULES@
221 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
222 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES)
224 ######################################################################
225 # object file lists
226 ######################################################################
228 TDBBASE_OBJ = lib/tdb/common/tdb.o lib/tdb/common/dump.o lib/tdb/common/error.o \
229 lib/tdb/common/freelist.o lib/tdb/common/freelistcheck.o \
230 lib/tdb/common/io.o lib/tdb/common/lock.o \
231 lib/tdb/common/open.o lib/tdb/common/transaction.o \
232 lib/tdb/common/traverse.o
234 TDB_OBJ = $(TDBBASE_OBJ) lib/util_tdb.o \
235 lib/dbwrap.o lib/dbwrap_tdb.o lib/dbwrap_ctdb.o lib/dbwrap_rbt.o
237 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
239 VERSION_OBJ = lib/version.o
241 DOSERR_OBJ = libsmb/doserr.o
243 WBCOMMON_OBJ = nsswitch/wb_common.o
245 AFS_OBJ = lib/afs.o
247 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
249 SERVER_MUTEX_OBJ = lib/server_mutex.o
251 ERRORMAP_OBJ = libsmb/errormap.o
253 PASSCHANGE_OBJ = libsmb/passchange.o
256 LIBNDR_OBJ = librpc/ndr/ndr_basic.o librpc/ndr/ndr.o librpc/ndr/ndr_misc.o \
257 librpc/ndr/ndr_sec_helper.o librpc/ndr/ndr_string.o librpc/ndr/sid.o \
258 librpc/ndr/uuid.o
260 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
262 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
263 librpc/gen_ndr/ndr_lsa.o \
264 librpc/gen_ndr/ndr_dfs.o \
265 librpc/gen_ndr/ndr_echo.o \
266 librpc/gen_ndr/ndr_winreg.o \
267 librpc/gen_ndr/ndr_initshutdown.o \
268 librpc/gen_ndr/ndr_srvsvc.o \
269 librpc/gen_ndr/ndr_svcctl.o \
270 librpc/gen_ndr/ndr_eventlog.o \
271 librpc/gen_ndr/ndr_notify.o \
272 librpc/gen_ndr/ndr_libnet_join.o
274 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
276 # this includes only the low level parse code, not stuff
277 # that requires knowledge of security contexts
278 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
280 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o rpc_parse/parse_net.o rpc_parse/parse_srv.o
282 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
284 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
285 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
287 TALLOC_OBJ = lib/talloc/talloc.o
289 LIBSAMBAUTIL_OBJ = $(TALLOC_OBJ) \
290 $(LIBREPLACE_OBJ) \
291 $(SOCKET_WRAPPER_OBJ) \
292 $(NSS_WRAPPER_OBJ)
294 LIB_WITHOUT_PROTO_OBJ = $(LIBSAMBAUTIL_OBJ) \
295 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
296 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
297 lib/interfaces.o lib/rbtree.o lib/memcache.o \
298 lib/util_transfer_file.o
300 LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
301 lib/interface.o lib/md4.o \
302 lib/pidfile.o \
303 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
304 lib/ufc.o lib/genrand.o lib/username.o \
305 lib/util_pw.o lib/access.o lib/smbrun.o \
306 lib/bitmap.o lib/crc32.o lib/dprintf.o \
307 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
308 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
309 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
310 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
311 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
312 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
313 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
314 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
315 $(WBCOMMON_OBJ) \
316 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
317 lib/adt_tree.o lib/gencache.o $(TDB_OBJ) \
318 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
319 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
320 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
321 lib/file_id.o
323 LIB_OBJ = $(LIB_WITHOUT_PROTO_OBJ) $(LIB_WITH_PROTO_OBJ)
325 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
326 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
328 READLINE_OBJ = lib/readline.o
330 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
331 # Be sure to include them into your application
332 POPT_LIB_OBJ = lib/popt_common.o
334 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o
335 PARAM_REG_ADD_OBJ = $(UTIL_REG_API_OBJ)
336 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
338 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
340 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
341 libaddns/dnsgss.o libaddns/dnsmarshall.o
342 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(TALLOC_OBJ)
344 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
345 nsswitch/libwbclient/wbc_util.o \
346 nsswitch/libwbclient/wbc_pwd.o \
347 nsswitch/libwbclient/wbc_idmap.o \
348 nsswitch/libwbclient/wbc_sid.o \
349 nsswitch/libwbclient/wbc_pam.o
350 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ) $(TALLOC_OBJ) $(LIBREPLACE_OBJ)
352 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
353 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o
354 LIBGPO_OBJ = $(LIBGPO_OBJ0)
356 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
357 libads/sasl.o libads/sasl_wrapping.o \
358 libads/krb5_setpw.o libads/ldap_user.o \
359 libads/ads_struct.o libads/kerberos_keytab.o \
360 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
361 libads/cldap.o libads/ldap_schema.o libads/util.o
363 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o
365 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
367 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
368 libsmb/namequery.o libsmb/conncache.o libads/dns.o
370 LIBSAMBA_OBJ = libsmb/nterr.o libsmb/dcerpc_err.o libsmb/smbdes.o \
371 libsmb/smbencrypt.o libsmb/ntlm_check.o \
372 libsmb/ntlmssp.o libsmb/ntlmssp_parse.o libsmb/ntlmssp_sign.o
374 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
375 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
376 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
377 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
378 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
379 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
380 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
381 libsmb/clioplock.o $(ERRORMAP_OBJ) libsmb/clirap2.o \
382 libsmb/smb_seal.o $(DOSERR_OBJ) \
383 $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(LIBNMB_OBJ)
385 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o rpc_client/cli_srvsvc.o
387 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
388 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
389 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
390 rpc_client/cli_ds.o rpc_client/cli_svcctl.o
392 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
393 librpc/gen_ndr/cli_dfs.o \
394 librpc/gen_ndr/cli_echo.o \
395 librpc/gen_ndr/cli_srvsvc.o \
396 librpc/gen_ndr/cli_svcctl.o \
397 librpc/gen_ndr/cli_winreg.o \
398 librpc/gen_ndr/cli_initshutdown.o \
399 librpc/gen_ndr/cli_eventlog.o \
400 librpc/gen_ndr/cli_wkssvc.o \
401 $(LIBNDR_GEN_OBJ) \
402 $(RPCCLIENT_NDR_OBJ)
404 REGOBJS_OBJ = registry/reg_objects.o
406 REGISTRY_OBJ = registry/reg_frontend.o registry/reg_cachehook.o registry/reg_printing.o \
407 registry/reg_db.o registry/reg_eventlog.o registry/reg_shares.o \
408 registry/reg_util.o registry/reg_dynamic.o registry/reg_perfcount.o \
409 registry/reg_smbconf.o registry/reg_api.o \
410 registry/reg_frontend_hilvl.o \
411 $(UTIL_REG_API_OBJ) $(UTIL_REG_SMBCONF_OBJ)
413 RPC_LSA_OBJ = rpc_server/srv_lsa.o rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
415 RPC_NETLOG_OBJ = rpc_server/srv_netlog.o rpc_server/srv_netlog_nt.o
417 RPC_SAMR_OBJ = rpc_server/srv_samr.o rpc_server/srv_samr_nt.o \
418 rpc_server/srv_samr_util.o
420 REGFIO_OBJ = registry/regfio.o
422 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
424 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
425 librpc/gen_ndr/srv_winreg.o \
426 $(REGFIO_OBJ)
428 RPC_LSA_DS_OBJ = rpc_server/srv_lsa_ds.o rpc_server/srv_lsa_ds_nt.o
430 RPC_SVC_OBJ = rpc_server/srv_srvsvc.o rpc_server/srv_srvsvc_nt.o \
431 librpc/gen_ndr/srv_srvsvc.o
433 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
435 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
436 librpc/gen_ndr/srv_svcctl.o \
437 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
438 services/svc_netlogon.o services/svc_winreg.o \
439 services/svc_wins.o
441 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o
443 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
445 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
447 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
448 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
450 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
451 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
453 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
455 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
457 RPC_PARSE_OBJ = rpc_parse/parse_lsa.o $(RPC_PARSE_OBJ2) \
458 rpc_parse/parse_samr.o \
459 rpc_parse/parse_ds.o rpc_parse/parse_spoolss.o \
460 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
461 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o $(REGOBJS_OBJ)
463 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
465 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
467 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
469 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
470 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
471 passdb/util_unixsids.o passdb/lookup_sid.o \
472 passdb/login_cache.o @PDB_STATIC@ \
473 lib/account_pol.o lib/privileges.o lib/privileges_basic.o \
474 lib/util_nscd.o lib/winbind_util.o
476 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
477 CP850_OBJ = modules/CP850.o
478 CP437_OBJ = modules/CP437.o
479 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
481 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
483 PROFILE_OBJ = profile/profile.o
484 PROFILES_OBJ = utils/profiles.o \
485 $(REGFIO_OBJ) $(REGOBJS_OBJ) $(ERRORMAP_OBJ) \
486 $(RPC_PARSE_OBJ1) $(PARAM_OBJ) $(LIBSAMBA_OBJ) \
487 $(DOSERR_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
488 $(POPT_LIB_OBJ) $(SECRETS_OBJ)
490 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
492 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
494 VFS_DEFAULT_OBJ = modules/vfs_default.o
495 VFS_AUDIT_OBJ = modules/vfs_audit.o
496 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
497 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
498 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
499 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
500 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
501 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
502 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
503 VFS_CAP_OBJ = modules/vfs_cap.o
504 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
505 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
506 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
507 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
508 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o librpc/gen_ndr/ndr_xattr.o
509 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
510 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
511 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
512 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
513 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
514 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
515 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
516 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
517 VFS_CATIA_OBJ = modules/vfs_catia.o
518 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
519 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
520 VFS_COMMIT_OBJ = modules/vfs_commit.o
521 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
522 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
523 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
524 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
525 VFS_FILEID_OBJ = modules/vfs_fileid.o
526 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
528 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
530 SLCACHE_OBJ = libsmb/samlogon_cache.o
532 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
534 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
535 AUTH_DOMAIN_OBJ = auth/auth_domain.o
536 AUTH_SAM_OBJ = auth/auth_sam.o
537 AUTH_SERVER_OBJ = auth/auth_server.o
538 AUTH_UNIX_OBJ = auth/auth_unix.o
539 AUTH_WINBIND_OBJ = auth/auth_winbind.o
540 AUTH_SCRIPT_OBJ = auth/auth_script.o
542 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
543 lib/util_nttoken.o \
544 auth/auth_compat.o auth/auth_ntlmssp.o \
545 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
547 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
549 SMBD_OBJ_MAIN = smbd/server.o
551 BUILDOPT_OBJ = smbd/build_options.o
553 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
554 smbd/utmp.o smbd/session.o smbd/map_username.o \
555 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
556 smbd/share_access.o smbd/fileio.o \
557 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
558 smbd/message.o smbd/nttrans.o smbd/pipes.o \
559 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
560 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
561 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
562 smbd/vfs.o smbd/statcache.o smbd/seal.o \
563 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
564 smbd/process.o smbd/service.o smbd/error.o \
565 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
566 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
567 smbd/change_trust_pw.o smbd/fake_file.o \
568 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
569 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
570 smbd/dmapi.o \
571 smbd/file_access.o \
572 smbd/dnsregister.o \
573 $(MANGLE_OBJ) @VFS_STATIC@
575 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
576 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) $(SECRETS_OBJ) \
577 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
578 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
579 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
580 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
581 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
582 $(REGISTRY_OBJ) $(POPT_LIB_OBJ) @LIBWBCLIENT_STATIC@ \
583 $(BUILDOPT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ)
585 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
586 printing/print_cups.o printing/print_generic.o \
587 printing/lpq_parse.o printing/load.o \
588 printing/print_iprint.o
590 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
591 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
593 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
595 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
596 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
597 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
598 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
599 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
600 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
601 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
602 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
603 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
604 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
605 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
606 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
608 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
609 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
611 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
612 web/swat.o web/neg_lang.o
614 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
615 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SECRETS_OBJ) $(KRBCLIENT_OBJ) \
616 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
617 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
618 $(PASSCHANGE_OBJ) $(LDB_OBJ)
620 STATUS_OBJ = utils/status.o utils/status_profile.o \
621 $(LOCKING_OBJ) $(PARAM_OBJ) \
622 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
623 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) \
624 $(DOSERR_OBJ)
626 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
627 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
628 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
629 $(PRINTBASE_OBJ) $(ERRORMAP_OBJ)
631 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
632 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
633 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
634 rpc_client/cli_pipe.o $(RPC_PARSE_OBJ2) \
635 $(RPC_CLIENT_OBJ1) \
636 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
637 $(LIBMSRPC_GEN_OBJ)
639 TESTPARM_OBJ = utils/testparm.o \
640 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
641 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
643 PASSWD_UTIL_OBJ = utils/passwd_util.o
645 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
646 $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
647 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
648 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
649 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
651 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
652 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
653 $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
654 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) $(ERRORMAP_OBJ)
656 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ)
658 DISPLAY_SEC_OBJ= lib/display_sec.o
659 DISPLAY_DSDCINFO_OBJ= lib/display_dsdcinfo.o
661 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
662 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
663 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
664 rpcclient/cmd_dfs.o \
665 rpcclient/cmd_ds.o rpcclient/cmd_echo.o \
666 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
667 rpcclient/cmd_wkssvc.o \
668 $(DISPLAY_SEC_OBJ) $(DISPLAY_DSDCINFO_OBJ)
670 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
671 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
672 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
673 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
674 $(LIBADS_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
675 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
677 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
678 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
680 LIBSMBCLIENT_OBJ = libsmb/libsmbclient.o libsmb/libsmb_compat.o \
681 libsmb/libsmb_cache.o \
682 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
683 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
684 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
685 $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
687 LIBSMBSHAREMODES_OBJ = libsmb/smb_share_modes.o $(TDBBASE_OBJ)
689 # This shared library is intended for linking with unit test programs
690 # to test Samba internals. It's called libbigballofmud.so to
691 # discourage casual usage.
693 LIBBIGBALLOFMUD_MAJOR = 0
695 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) \
696 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
697 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
699 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
700 client/dnsbrowse.o \
701 $(RPC_CLIENT_OBJ1) \
702 $(RPC_PARSE_OBJ2)
704 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
705 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
706 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
707 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
708 $(DISPLAY_SEC_OBJ)
710 UTIL_REG_OBJ = lib/util_reg.o
711 UTIL_REG_API_OBJ = lib/util_reg_api.o
712 UTIL_REG_SMBCONF_OBJ = lib/util_reg_smbconf.o
714 # objects to be used when not all of the registry code should be
715 # loaded but only the portion needed by reg_api, typically for
716 # using smbconf (registry) - full access
717 REG_API_OBJ = registry/reg_api.o \
718 registry/reg_frontend_hilvl.o \
719 registry/reg_smbconf.o \
720 registry/reg_db.o \
721 registry/reg_util.o \
723 registry/reg_cachehook.o \
724 registry/reg_eventlog.o \
725 registry/reg_perfcount.o \
726 registry/reg_dynamic.o \
728 lib/util_nttoken.o \
729 $(UTIL_REG_API_OBJ) \
730 $(UTIL_REG_SMBCONF_OBJ)
733 LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
734 lib/netapi/joindomain.o \
735 lib/netapi/serverinfo.o \
736 lib/netapi/getdc.o
738 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
739 $(REG_API_OBJ) \
740 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
741 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
742 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
743 $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
744 $(DCUTIL_OBJ) $(LIBADS_OBJ)
746 LIBNET_OBJ = libnet/libnet_conf.o libnet/libnet_join.o
748 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_domain.o utils/net_help.o \
749 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
750 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
751 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
752 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
753 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
754 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
755 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
756 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
757 utils/net_conf.o auth/token_util.o utils/net_dom.o nsswitch/wb_client.o
759 NET_OBJ = $(NET_OBJ1) $(PARAM_WITHOUT_REG_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
760 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
761 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
762 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
763 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
764 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
765 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(REGFIO_OBJ) $(READLINE_OBJ) \
766 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
767 $(REG_API_OBJ) $(DISPLAY_DSDCINFO_OBJ) $(LIBNETAPI_OBJ1) $(LIBNET_OBJ)
769 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
770 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
772 MOUNT_OBJ = client/smbmount.o \
773 $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
775 MNT_OBJ = client/smbmnt.o $(VERSION_OBJ) $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
777 UMOUNT_OBJ = client/smbumount.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
778 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
780 CIFS_MOUNT_OBJ = client/mount.cifs.o
782 CIFS_UMOUNT_OBJ = client/umount.cifs.o
784 CIFS_SPNEGO_OBJ = client/cifs.spnego.o
786 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
787 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
789 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
790 torture/denytest.o torture/mangle_test.o
792 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
793 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
795 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
796 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
798 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
799 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
801 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
802 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
804 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
805 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
807 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
808 $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
809 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ)
812 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
814 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
816 LOG2PCAP_OBJ = utils/log2pcaphex.o
818 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
819 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
821 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
822 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
823 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
824 $(SECRETS_OBJ) \
825 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
827 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
828 $(PARAM_OBJ) \
829 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
830 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
831 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
833 EVTLOGADM_OBJ0 = utils/eventlogadm.o
835 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(REGOBJS_OBJ) \
836 $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
837 $(SECRETS_OBJ) \
838 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o registry/reg_util.o \
839 registry/reg_db.o
841 SHARESEC_OBJ0 = utils/sharesec.o
842 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(REGOBJS_OBJ) \
843 $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
844 $(POPT_LIB_OBJ) $(SECRETS_OBJ)
846 TALLOCTORT_OBJ = lib/talloc/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
847 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LIBSAMBA_OBJ) $(SECRETS_OBJ)
849 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
850 lib/replace/test/os2_delete.o \
851 lib/replace/test/strptime.o \
852 $(LIBREPLACE_OBJ)
854 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
855 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
856 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
857 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(SECRETS_OBJ)
859 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
861 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(SECRETS_OBJ) \
862 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ)
864 PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
865 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(LIBSMB_OBJ) \
866 $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
867 $(LIBMSRPC_OBJ) \
868 $(LIB_WITH_PROTO_OBJ) \
869 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
870 $(AUTH_OBJ) $(PARAM_OBJ) $(LOCKING_OBJ) $(SECRETS_OBJ) \
871 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
872 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
873 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
874 $(AUTH_SAM_OBJ) $(REGISTRY_OBJ) $(POPT_LIB_OBJ) \
875 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_LSA_DS_OBJ) \
876 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
877 $(RPC_ECHO_OBJ) $(RPC_SVCCTL_OBJ) $(RPC_EVENTLOG_OBJ) $(SMBLDAP_OBJ) \
878 $(IDMAP_OBJ) libsmb/spnego.o $(PASSCHANGE_OBJ) $(RPC_UNIXINFO_OBJ) \
879 $(RPC_NTSVCS_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
880 utils/passwd_util.o $(LIBGPO_OBJ) $(NSS_INFO_OBJ) \
881 $(RPCCLIENT_NDR_OBJ) $(DISPLAY_DSDCINFO_OBJ)
883 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
884 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ)
886 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
887 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
888 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
889 $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
890 $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) $(ERRORMAP_OBJ)
892 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
894 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
896 WINBINDD_OBJ1 = \
897 winbindd/winbindd.o \
898 winbindd/winbindd_user.o \
899 winbindd/winbindd_group.o \
900 winbindd/winbindd_util.o \
901 winbindd/winbindd_cache.o \
902 winbindd/winbindd_pam.o \
903 winbindd/winbindd_sid.o \
904 winbindd/winbindd_misc.o \
905 winbindd/winbindd_cm.o \
906 winbindd/winbindd_wins.o \
907 winbindd/winbindd_rpc.o \
908 winbindd/winbindd_reconnect.o \
909 winbindd/winbindd_ads.o \
910 winbindd/winbindd_passdb.o \
911 winbindd/winbindd_dual.o \
912 winbindd/winbindd_async.o \
913 winbindd/winbindd_creds.o \
914 winbindd/winbindd_cred_cache.o \
915 winbindd/winbindd_ccache_access.o \
916 winbindd/winbindd_domain.o \
917 winbindd/winbindd_idmap.o \
918 winbindd/winbindd_locator.o \
919 auth/token_util.o
921 WINBINDD_OBJ = \
922 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
923 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
924 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
925 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
926 $(SECRETS_OBJ) $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
927 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
928 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
929 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
931 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
932 $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) $(RPC_PARSE_OBJ1) \
933 $(DOSERR_OBJ) lib/winbind_util.o @LIBWBCLIENT_STATIC@
935 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
937 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
938 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
939 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
940 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
941 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
943 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
944 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
945 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
947 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
948 lib/ldb/modules/objectclass.o \
949 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
951 # enabled in configure.in
952 LDB_LDAP_OBJ=@LDBLDAP@
954 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
956 LDB_CMDLINE_OBJ = $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
957 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
958 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
959 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
960 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
961 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
962 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(REGFIO_OBJ) $(READLINE_OBJ) \
963 $(LDB_OBJ) lib/ldb/tools/cmdline.o
966 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
967 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
968 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
969 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
970 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
972 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
973 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
975 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
976 popt/popthelp.o popt/poptparse.o
978 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
979 iniparser_build/strlib.o
981 TDBBACKUP_OBJ = lib/tdb/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
982 $(TDBBASE_OBJ) $(SOCKET_WRAPPER_OBJ)
984 TDBTOOL_OBJ = lib/tdb/tools/tdbtool.o $(TDBBASE_OBJ) $(LIBREPLACE_OBJ) \
985 $(SOCKET_WRAPPER_OBJ)
987 TDBDUMP_OBJ = lib/tdb/tools/tdbdump.o $(TDBBASE_OBJ) $(LIBREPLACE_OBJ) \
988 $(SOCKET_WRAPPER_OBJ)
990 TDBTORTURE_OBJ = lib/tdb/tools/tdbtorture.o $(TDBBASE_OBJ) $(LIBREPLACE_OBJ) \
991 $(SOCKET_WRAPPER_OBJ)
994 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
996 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
997 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
998 libads/kerberos_verify.o $(SECRETS_OBJ) $(SERVER_MUTEX_OBJ) \
999 libads/authdata.o $(RPC_PARSE_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1000 $(SMBLDAP_OBJ) $(DOSERR_OBJ) rpc_parse/parse_net.o $(LIBNMB_OBJ) \
1001 $(LDB_OBJ) $(ERRORMAP_OBJ)
1003 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ)
1005 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1006 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1007 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
1008 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1009 $(DISPLAY_SEC_OBJ)
1011 ######################################################################
1012 # now the rules...
1013 ######################################################################
1014 all : SHOWFLAGS $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1015 $(SHLIBS) $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1017 nss_modules : $(NSS_MODULES)
1019 pam_modules : $(PAM_MODULES)
1021 pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1023 pam_winbind : SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1025 torture : SHOWFLAGS $(TORTURE_PROGS)
1027 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1029 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1031 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1033 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1035 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1037 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1039 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1041 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1043 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1045 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1047 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1049 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1051 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1053 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1055 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1056 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1057 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1059 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1061 modules: SHOWFLAGS $(MODULES)
1063 #####################################################################
1064 ## Perl IDL Compiler
1065 IDL_FILES = unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1066 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1067 epmapper.idl messaging.idl xattr.idl
1069 idl:
1070 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1071 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1074 #####################################################################
1077 everything: all libsmbclient libnetapi debug2html smbfilter talloctort replacetort modules torture \
1078 $(EVERYTHING_PROGS)
1080 .SUFFIXES:
1081 .SUFFIXES: .c .o .lo
1083 SHOWFLAGS:
1084 @echo "Using FLAGS = $(FLAGS)"
1085 @echo " PICFLAG = $(PICFLAG)"
1086 @echo " LIBS = $(LIBS)"
1087 @echo " LDFLAGS = $(LDFLAGS)"
1088 @echo " DYNEXP = $(DYNEXP)"
1089 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1090 @echo " SHLIBEXT = @SHLIBEXT@"
1091 @echo " SONAMEFLAG = @SONAMEFLAG@"
1093 MAKEDIR = || exec false; \
1094 if test -d "$$dir"; then :; else \
1095 echo mkdir "$$dir"; \
1096 mkdir -p "$$dir" >/dev/null 2>&1 || \
1097 test -d "$$dir" || \
1098 mkdir "$$dir" || \
1099 exec false; fi || exec false
1101 # Run a static checker.
1102 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1103 # Compile a source file.
1104 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1105 # Compile a source file with the installation paths defined.
1106 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1108 COMPILE = $(COMPILE_CC)
1110 .c.o:
1111 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1112 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1113 @if test -n "$(CC_CHECKER)"; then \
1114 echo "Checking $*.c with '$(CC_CHECKER)'";\
1115 $(CHECK_CC); \
1117 @echo Compiling $*.c
1118 @$(COMPILE) && exit 0;\
1119 echo "The following command failed:" 1>&2;\
1120 echo "$(COMPILE_CC)" 1>&2;\
1121 $(COMPILE_CC) >/dev/null 2>&1
1122 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1124 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1126 # this adds support for precompiled headers. To use it, install a snapshot
1127 # of gcc-3.4 and run 'make pch' before you do the main build.
1128 pch: proto_exists
1129 rm -f $(PRECOMPILED_HEADER)
1130 $(MAKE) $(PRECOMPILED_HEADER)
1132 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1133 $(COMPILE)
1135 BINARY_PREREQS = proto_exists bin/.dummy
1137 # These dependencies are only approximately correct: we want to make
1138 # sure Samba's paths are updated if ./configure is re-run. Really it
1139 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1140 # but since we also require "make install prefix=/opt/samba" *not* to
1141 # rebuild it's a bit hard.
1143 dynconfig.o: dynconfig.c Makefile
1144 @echo Compiling $*.c
1145 @$(COMPILE_CC_PATH) && exit 0;\
1146 echo "The following command failed:" 1>&2;\
1147 echo "$(COMPILE_CC_PATH)" 1>&2;\
1148 $(COMPILE_CC_PATH) >/dev/null 2>&1
1150 lib/pidfile.o: lib/pidfile.c
1151 @echo Compiling $*.c
1152 @$(COMPILE_CC_PATH) && exit 0;\
1153 echo "The following command failed:" 1>&2;\
1154 echo "$(COMPILE_CC_PATH)" 1>&2;\
1155 $(COMPILE_CC_PATH) >/dev/null 2>&1
1157 lib/version.o: lib/version.c include/version.h
1158 @echo Compiling $*.c
1159 @$(COMPILE_CC_PATH) && exit 0;\
1160 echo "The following command failed:" 1>&2;\
1161 echo "$(COMPILE_CC_PATH)" 1>&2;\
1162 $(COMPILE_CC_PATH) >/dev/null 2>&1
1164 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1165 @echo Compiling $*.c
1166 @$(COMPILE_CC_PATH) && exit 0;\
1167 echo "The following command failed:" 1>&2;\
1168 echo "$(COMPILE_CC_PATH)" 1>&2;\
1169 $(COMPILE_CC_PATH) >/dev/null 2>&1
1171 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1172 @echo Generating $@
1173 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1175 bin/.dummy:
1176 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1177 dir=bin $(MAKEDIR); fi
1178 @: >> $@ || : > $@ # what a fancy emoticon!
1180 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1181 @echo Linking $@
1182 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1183 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1184 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1185 @POPTLIBS@ @SMBD_LIBS@ @WINBIND_LIBS@
1187 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@
1188 @echo Linking $@
1189 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1190 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
1192 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1193 @echo Linking $@
1194 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1195 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) @POPTLIBS@ $(KRB5LIBS) \
1196 $(LDAP_LIBS) @WINBIND_LIBS@
1198 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1199 @echo Linking $@
1200 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1201 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1202 $(KRB5LIBS) $(LDAP_LIBS) @WINBIND_LIBS@
1204 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1205 @echo Linking $@
1206 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1207 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1208 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) @WINBIND_LIBS@
1210 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1211 @echo Linking $@
1212 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1213 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1214 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @INIPARSERLIBS@ @WINBIND_LIBS@
1216 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@
1217 @echo Linking $@
1218 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1220 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@
1221 @echo Linking $@
1222 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1224 bin/smbmount@EXEEXT@: $(BINARY_PREREQS) $(MOUNT_OBJ) @BUILD_POPT@
1225 @echo Linking $@
1226 @$(CC) $(FLAGS) -o $@ $(MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1228 bin/smbmnt@EXEEXT@: $(BINARY_PREREQS) $(MNT_OBJ) @BUILD_POPT@
1229 @echo Linking $@
1230 @$(CC) $(FLAGS) -o $@ $(MNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1232 bin/smbumount@EXEEXT@: $(BINARY_PREREQS) $(UMOUNT_OBJ) @BUILD_POPT@
1233 @echo Linking $@
1234 @$(CC) $(FLAGS) -o $@ $(UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1236 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1237 @echo Linking $@
1238 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1240 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1241 @echo Linking $@
1242 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) @POPTLIBS@
1244 bin/cifs.spnego@EXEEXT@: $(BINARY_PREREQS) $(CIFS_SPNEGO_OBJ) $(LIBSMBCLIENT_OBJ) @BUILD_POPT@
1245 @echo Linking $@
1246 @$(CC) $(FLAGS) -o $@ $(CIFS_SPNEGO_OBJ) $(DYNEXP) $(LDFLAGS) -lkeyutils $(LIBS) \
1247 $(LIBSMBCLIENT_OBJ) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@ @LIBWBCLIENT_SHARED@
1249 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@
1250 @echo Linking $@
1251 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1253 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@
1254 @echo Linking $@
1255 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) \
1256 @POPTLIBS@
1258 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@
1259 @echo Linking $@
1260 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1261 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1262 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ @POPTLIBS@
1264 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1265 @echo Linking $@
1266 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1267 $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1269 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1270 @echo Linking $@
1271 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1272 $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) @WINBIND_LIBS@
1274 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1275 @echo Linking $@
1276 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1277 @POPTLIBS@ $(PASSDB_LIBS) $(LDAP_LIBS) @WINBIND_LIBS@
1279 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1280 @echo Linking $@
1281 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1282 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1284 bin/samtest@EXEEXT@: $(SAMTEST_OBJ) @BUILD_POPT@
1285 @echo Linking $@
1286 @$(CC) $(FLAGS) -o $@ $(SAMTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(PASSDB_LIBS) $(KRB5LIBS) $(LDAP_LIBS)
1288 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@
1289 @echo Linking $@
1290 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(LDAP_LIBS)
1292 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@
1293 @echo Linking $@
1294 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1296 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@
1297 @echo Linking $@
1298 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1299 $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1301 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@
1302 @echo Linking $@
1303 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1304 $(DYNEXP) $(LIBS) @POPTLIBS@
1306 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@
1307 @echo Linking $@
1308 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1310 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@
1311 @echo Linking $@
1312 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1314 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1315 @echo Linking $@
1316 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \
1317 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1319 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1320 @echo Linking $@
1321 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \
1322 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1324 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@
1325 @echo Linking $@
1326 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1328 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@
1329 @echo Linking $@
1330 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
1332 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@
1333 @echo Linking $@
1334 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1336 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@
1337 @echo Linking $@
1338 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1340 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@
1341 @echo Linking $@
1342 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@ @LIBWBCLIENT_SHARED@
1344 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@
1345 @echo Linking $@
1346 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) @SMBD_LIBS@ $(NSCD_LIBS) @LIBWBCLIENT_SHARED@
1348 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@
1349 @echo Linking $@
1350 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) @POPTLIBS@
1352 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@
1353 @echo Linking $@
1354 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) @POPTLIBS@ $(LIBS)
1356 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@
1357 @echo Linking $@
1358 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1360 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@
1361 @echo Linking $@
1362 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1363 @POPTLIBS@ @LDAP_LIBS@
1365 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@
1366 @echo Linking $@
1367 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1369 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@
1370 @echo Linking $@
1371 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) @POPTLIBS@
1373 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1374 @echo Linking $@
1375 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1376 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1377 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1379 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1380 @echo Linking $@
1381 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1382 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1383 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1385 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1386 @echo Linking $@
1387 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1388 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1389 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1391 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1392 @echo Linking $@
1393 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1394 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1395 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1397 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1398 @echo Linking $@
1399 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1400 @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1401 $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1403 bin/libwbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ)
1404 @echo Linking shared library $@
1405 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) \
1406 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1407 @ln -s -f `basename $@` $@.$(SONAME_VER)
1409 bin/libwbclient.a: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0)
1410 @echo Linking non-shared library $@
1411 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0)
1413 bin/libaddns.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBADDNS_OBJ)
1414 @echo Linking shared library $@
1415 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1416 $(KRB5LIBS) $(UUID_LIBS)\
1417 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1419 bin/libaddns.a: $(BINARY_PREREQS) $(LIBADDNS_OBJ)
1420 @echo Linking non-shared library $@
1421 @-$(AR) -rc $@ $(LIBADDNS_OBJ)
1423 bin/libnetapi.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBNETAPI_OBJ)
1424 @echo Linking shared library $@
1425 @$(SHLD_DSO) $(LIBNETAPI_OBJ) @LIBWBCLIENT_SHARED@ $(LIBS) \
1426 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1427 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1429 bin/libnetapi.a: $(BINARY_PREREQS) $(LIBNETAPI_OBJ)
1430 @echo Linking non-shared library $@
1431 @-$(AR) -rc $@ $(LIBNETAPI_OBJ)
1433 bin/libsmbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ)
1434 @echo Linking shared library $@
1435 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) @LIBWBCLIENT_SHARED@ $(LIBS) \
1436 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1437 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1439 bin/libsmbclient.a: $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ)
1440 @echo Linking non-shared library $@
1441 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ)
1443 bin/libsmbsharemodes.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ)
1444 @echo Linking shared library $@
1445 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) $(LIBS) \
1446 $(KRB5LIBS) $(LDAP_LIBS) \
1447 @SONAMEFLAG@`basename $@`.$(SONAME_VER)
1449 bin/libsmbsharemodes.a: $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ)
1450 @echo Linking non-shared library $@
1451 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ)
1453 # This is probably wrong for anything other than the GNU linker.
1454 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ)
1455 @echo Linking shared library $@
1456 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) $(LIBS) \
1457 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1458 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
1459 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
1461 # It would be nice to build a static bigballofmud too, but when I try
1462 # I get linker errors about dl_open and similar things. I'm not sure if
1463 # it can be fixed or if they just can't be called from a static
1464 # library.
1466 libsmbclient: $(LIBSMBCLIENT)
1467 libsmbsharemodes: $(LIBSMBSHAREMODES)
1468 libaddns: $(LIBADDNS)
1469 libwbclient: $(LIBWBCLIENT)
1470 libnetapi: $(LIBNETAPI)
1472 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1473 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
1474 -o $@ @SONAMEFLAG@`basename $@`
1476 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
1477 @echo "Linking $@"
1478 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
1480 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
1481 @echo "Linking $@"
1482 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
1484 bin/librpc_unixinfo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_UNIXINFO_OBJ)
1485 @echo "Linking $@"
1486 @$(SHLD_MODULE) $(RPC_UNIXINFO_OBJ)
1488 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
1489 @echo "Linking $@"
1490 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
1492 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
1493 @echo "Linking $@"
1494 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
1496 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
1497 @echo "Linking $@"
1498 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
1500 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
1501 @echo "Linking $@"
1502 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
1504 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
1505 @echo "Linking $@"
1506 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
1508 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
1509 @echo "Linking $@"
1510 @$(SHLD_MODULE) $(RPC_REG_OBJ)
1512 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
1513 @echo "Linking $@"
1514 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
1516 bin/librpc_lsa_ds.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_DS_OBJ)
1517 @echo "Linking $@"
1518 @$(SHLD_MODULE) $(RPC_LSA_DS_OBJ)
1520 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
1521 @echo "Linking $@"
1522 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
1524 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
1525 @echo "Linking $@"
1526 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
1528 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
1529 @echo "Linking $@"
1530 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
1532 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
1533 @echo "Linking $@"
1534 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
1536 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1537 @echo "Linking $@"
1538 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1539 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) \
1540 $(PASSDB_LIBS) @WINBIND_LIBS@
1542 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBWBCLIENT_SHARED@
1543 @echo "Linking $@"
1544 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
1545 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @LIBWBCLIENT_SHARED@
1547 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
1548 @echo "Linking $@"
1549 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
1550 @WINBIND_NSS_EXTRA_LIBS@ @WINBIND_NSS_PTHREAD@ @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1552 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ)
1553 @echo "Linking $@"
1554 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
1555 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) \
1556 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1558 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
1559 @echo "Linking $@"
1560 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
1561 @SONAMEFLAG@`basename $@`
1563 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
1564 @echo "Linking shared library $@"
1565 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
1566 @SONAMEFLAG@`basename $@`
1568 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
1569 @echo "Building plugin $@"
1570 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
1572 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
1573 @echo "Building plugin $@"
1574 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
1576 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
1577 @echo "Building plugin $@"
1578 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
1580 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
1581 @echo "Building plugin $@"
1582 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
1584 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
1585 @echo "Building plugin $@"
1586 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
1588 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
1589 @echo "Building plugin $@"
1590 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
1592 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
1593 @echo "Building plugin $@"
1594 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
1596 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
1597 @echo "Building plugin $@"
1598 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
1600 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
1601 @echo "Building plugin $@"
1602 @$(SHLD_MODULE) passdb/pdb_tdb.o
1604 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
1605 @echo "Building plugin $@"
1606 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
1608 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
1609 @echo "Building plugin $@"
1610 @$(SHLD_MODULE) winbindd/idmap_rid.o
1612 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
1613 @echo "Building plugin $@"
1614 @$(SHLD_MODULE) winbindd/idmap_ad.o
1616 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
1617 @echo "Building plugin $@"
1618 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
1620 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
1621 @echo "Building plugin $@"
1622 @$(SHLD_MODULE) winbindd/idmap_ldap.o
1624 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
1625 @echo "Building plugin $@"
1626 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
1628 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
1629 @echo "Building plugin $@"
1630 @$(SHLD_MODULE) $(CP850_OBJ)
1632 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
1633 @echo "Building plugin $@"
1634 @$(SHLD_MODULE) $(CP437_OBJ)
1636 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
1637 @echo "Building plugin $@"
1638 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
1640 # NOTE, there is no build rule for a dynamic default VFS module because
1641 # this one MUST MUST MUST be built statically.
1643 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
1644 @echo "Building plugin $@"
1645 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
1647 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
1648 @echo "Building plugin $@"
1649 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
1651 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
1652 @echo "Building plugin $@"
1653 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
1655 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
1656 @echo "Building plugin $@"
1657 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
1659 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
1660 @echo "Building plugin $@"
1661 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
1663 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
1664 @echo "Building plugin $@"
1665 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
1667 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
1668 @echo "Building plugin $@"
1669 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
1671 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
1672 @echo "Building plugin $@"
1673 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
1675 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
1676 @echo "Building plugin $@"
1677 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
1679 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
1680 @echo "Building plugin $@"
1681 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
1683 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
1684 @echo "Building plugin $@"
1685 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
1687 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
1688 @echo "Building plugin $@"
1689 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
1691 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
1692 @echo "Building plugin $@"
1693 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
1695 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
1696 @echo "Building plugin $@"
1697 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
1699 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
1700 @echo "Building plugin $@"
1701 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
1703 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
1704 @echo "Building plugin $@"
1705 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
1707 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
1708 @echo "Building plugin $@"
1709 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
1711 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
1712 @echo "Building plugin $@"
1713 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
1715 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
1716 @echo "Building plugin $@"
1717 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
1719 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
1720 @echo "Building plugin $@"
1721 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
1723 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
1724 @echo "Building plugin $@"
1725 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
1727 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
1728 @echo "Building plugin $@"
1729 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
1731 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
1732 @echo "Building plugin $@"
1733 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
1735 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
1736 @echo "Building plugin $@"
1737 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
1739 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
1740 @echo "Building plugin $@"
1741 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
1743 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
1744 @echo "Building plugin $@"
1745 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
1747 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
1748 @echo "Building plugin $@"
1749 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
1751 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
1752 @echo "Building plugin $@"
1753 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
1755 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
1756 @echo "Building plugin $@"
1757 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
1759 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
1760 @echo "Building plugin $@"
1761 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
1763 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
1764 @echo "Building plugin $@"
1765 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
1767 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
1768 @echo "Building plugin $@"
1769 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
1771 #########################################################
1772 ## IdMap NSS plugins
1774 ## None here right now
1775 #########################################################
1777 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1778 @echo Linking $@
1779 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
1780 $(LDAP_LIBS) @POPTLIBS@ @WINBIND_LIBS@
1782 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
1783 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1784 @echo Linking $@
1785 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
1786 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
1787 @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) @WINBIND_LIBS@
1789 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ)
1790 @echo "Linking shared library $@"
1791 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
1793 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ)
1794 @echo Linking $@
1795 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBBACKUP_OBJ)
1797 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ)
1798 @echo Linking $@
1799 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBTOOL_OBJ)
1801 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ)
1802 @echo Linking $@
1803 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBDUMP_OBJ)
1805 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ)
1806 @echo Linking $@
1807 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBTORTURE_OBJ)
1809 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
1810 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strcmp.o -L ./bin -lbigballofmud
1812 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
1813 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strstr.o -L ./bin -lbigballofmud
1815 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
1816 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strappend.o -L ./bin -lbigballofmud
1818 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
1819 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o -L./bin -lbigballofmud
1821 bin/timelimit@EXEEXT@: script/tests/timelimit.o
1822 @echo Linking $@
1823 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
1825 install: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSSPNEGO@ installman \
1826 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
1827 @INSTALL_LIBSMBCLIENT@ @INSTALL_PAM_MODULES@ \
1828 @INSTALL_LIBSMBSHAREMODES@ @INSTALL_LIBWBCLIENT@ @INSTALL_LIBNETAPI@
1830 install-everything: install installmodules
1832 # DESTDIR is used here to prevent packagers wasting their time
1833 # duplicating the Makefile. Remove it and you will have the privelege
1834 # of package each samba release for muliple versions of multiple
1835 # distributions and operating systems, or at least supplying patches
1836 # to all the packaging files required for this, prior to committing
1837 # the removal of DESTDIR. Do not remove it even though you think it
1838 # is not used
1840 installdirs:
1841 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
1843 installservers: all installdirs
1844 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
1846 installbin: all installdirs
1847 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
1849 installcifsmount: @CIFSMOUNT_PROGS@
1850 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
1851 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
1853 installcifsspnego: @CIFSSPNEGO_PROGS@
1854 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
1855 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
1857 # Some symlinks are required for the 'probing' of modules.
1858 # This mechanism should go at some point..
1859 installmodules: modules installdirs
1860 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
1861 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
1862 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
1863 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
1864 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
1865 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
1866 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
1867 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
1868 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
1869 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1870 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1871 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1872 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1873 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1874 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
1876 installscripts: installdirs
1877 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
1879 installdat: installdirs
1880 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
1882 installmsg: installdirs
1883 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
1885 installswat: installdirs installmsg
1886 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
1888 installclientlib: installdirs libsmbclient
1889 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1890 -$(INSTALLLIBCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1891 -$(INSTALLLIBCMD_A) bin/libsmbclient.a $(DESTDIR)$(LIBDIR)
1892 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1893 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include
1895 installlibsmbsharemodes: installdirs libsmbsharemodes
1896 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1897 -$(INSTALLLIBCMD_SH) bin/libsmbsharemodes.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1898 -$(INSTALLLIBCMD_A) bin/libsmbsharemodes.a $(DESTDIR)$(LIBDIR)
1899 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/include/smb_share_modes.h $(DESTDIR)${prefix}/include
1901 installlibaddns: installdirs libaddns
1902 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1903 -$(INSTALLLIBCMD_SH) bin/libaddns.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1904 -$(INSTALLLIBCMD_A) bin/libaddns.a $(DESTDIR)$(LIBDIR)
1906 installlibwbclient: installdirs libwbclient
1907 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1908 -$(INSTALLLIBCMD_SH) bin/libwbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1909 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1910 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/nsswitch/libwbclient/wbclient.h $(DESTDIR)${prefix}/include
1912 installlibnetapi: installdirs libnetapi
1913 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1914 -$(INSTALLLIBCMD_SH) bin/libnetapi.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
1915 -$(INSTALLLIBCMD_A) bin/libnetapi.a $(DESTDIR)$(LIBDIR)
1916 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
1918 installpammodules: $(PAM_MODULES)
1919 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
1920 @for module in $(PAM_MODULES); do \
1921 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1922 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
1923 "$(DESTDIR)/$(PAMMODULESDIR)"; \
1924 done
1926 # revert to the previously installed version
1927 revert:
1928 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
1929 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
1931 installman: installdirs
1932 @SMBMOUNT_PROGS="@SMBMOUNT_PROGS@" $(SHELL) \
1933 $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
1935 .PHONY: showlayout
1937 showlayout:
1938 @echo "Samba will be installed into:"
1939 @echo " prefix: $(prefix)"
1940 @echo " bindir: $(BINDIR)"
1941 @echo " sbindir: $(SBINDIR)"
1942 @echo " libdir: $(LIBDIR)"
1943 @echo " vardir: $(VARDIR)"
1944 @echo " mandir: $(MANDIR)"
1945 @echo " privatedir: $(PRIVATE_DIR)"
1946 @echo " configdir: $(CONFIGDIR)"
1947 @echo " lockdir: $(LOCKDIR)"
1948 @echo " piddir: $(PIDDIR)"
1949 @echo " swatdir: $(SWATDIR)"
1952 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSSPNEGO@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@ @UNINSTALL_LIBNETAPI@
1954 uninstallman:
1955 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
1957 uninstallservers:
1958 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
1960 uninstallbin:
1961 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
1963 uninstallcifsmount:
1964 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
1966 uninstallcifsspnego:
1967 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSSPNEGO_PROGS@
1969 uninstallmodules:
1970 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
1971 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
1972 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
1973 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
1974 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
1975 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
1977 uninstallscripts:
1978 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
1980 uninstalldat:
1981 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
1983 uninstallmsg:
1984 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
1986 uninstallswat: uninstallmsg
1987 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
1989 uninstallclientlib:
1990 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbclient.@SHLIBEXT@
1991 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbclient.a
1992 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
1994 uninstalllibsmbsharemodes:
1995 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.@SHLIBEXT@
1996 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.a
1998 uninstalllibaddns:
1999 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libaddns.@SHLIBEXT@
2000 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libaddns.a
2002 uninstalllibnetapi:
2003 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libnetapi.@SHLIBEXT@
2004 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libnetapi.a
2005 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2007 uninstallpammodules:
2008 @for module in $(PAM_MODULES); do \
2009 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2010 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2011 done
2013 # Toplevel clean files
2014 TOPFILES=dynconfig.o
2016 clean: delheaders
2017 -rm -f $(PRECOMPILED_HEADER)
2018 -rm -f core */*~ *~ \
2019 */*.o */*/*.o */*/*/*.o \
2020 ../testsuite/*/*.o \
2021 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2022 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2023 $(MODULES) $(TORTURE_PROGS) $(LIBSMBCLIENT) $(LIBADDNS) \
2024 $(LIBSMBSHAREMODES) $(EVERYTHING_PROGS) $(LIBNETAPI) \
2025 bin/libwbclient.so.0 bin/timelimit \
2026 .headers.stamp */src/*.o proto_exists
2027 -rm -rf t_dir
2029 # Making this target will just make sure that the prototype files
2030 # exist, not necessarily that they are up to date. Since they're
2031 # removed by "make clean" this will always be run when you do anything
2032 # afterwards.
2033 proto_exists: include/proto.h include/build_env.h \
2034 winbindd/winbindd_proto.h web/swat_proto.h \
2035 libnet/libnet_proto.h \
2036 client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
2037 @touch proto_exists
2039 delheaders:
2040 @echo Removing prototype headers
2041 @rm -f include/proto.h include/build_env.h \
2042 winbindd/winbindd_proto.h web/swat_proto.h \
2043 client/client_proto.h utils/net_proto.h \
2044 smbd/build_options.c utils/ntlm_auth_proto.h \
2045 utils/passwd_proto.h libnet/libnet_proto.h
2047 MKPROTO_SH = $(srcdir)/script/mkproto.sh
2049 include/proto.h: smbd/build_options.c
2050 @echo Building include/proto.h
2051 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2052 -h _PROTO_H_ $(builddir)/include/proto.h \
2053 $(PROTO_OBJ)
2055 include/build_env.h: script/build_env.sh
2056 @echo Building include/build_env.h
2057 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2058 > $(builddir)/include/build_env.h
2060 winbindd/winbindd_proto.h:
2061 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2062 -h _WINBINDD_PROTO_H_ $(builddir)/winbindd/winbindd_proto.h \
2063 $(WINBINDD_OBJ1)
2065 web/swat_proto.h:
2066 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2067 -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
2068 $(SWAT_OBJ1)
2070 client/client_proto.h:
2071 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2072 -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
2073 $(CLIENT_OBJ1)
2075 utils/net_proto.h:
2076 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2077 -h _NET_PROTO_H_ $(builddir)/utils/net_proto.h \
2078 $(NET_OBJ1)
2080 utils/passwd_proto.h:
2081 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2082 -h _PASSWD_PROTO_H_ $(builddir)/utils/passwd_proto.h \
2083 $(PASSWD_UTIL_OBJ)
2085 utils/ntlm_auth_proto.h:
2086 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2087 -h _NTLM_AUTH_PROTO_H_ $(builddir)/utils/ntlm_auth_proto.h \
2088 $(NTLM_AUTH_OBJ1)
2090 libnet/libnet_proto.h:
2091 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
2092 -h _LIBNET_PROTO_H_ $(builddir)/libnet/libnet_proto.h \
2093 $(LIBNET_OBJ)
2095 # "make headers" or "make proto" calls a subshell because we need to
2096 # make sure these commands are executed in sequence even for a
2097 # parallel make.
2098 headers:
2099 $(MAKE) delheaders; \
2100 $(MAKE) smbd/build_options.c; \
2101 $(MAKE) include/proto.h; \
2102 $(MAKE) include/build_env.h; \
2103 $(MAKE) winbindd/winbindd_proto.h; \
2104 $(MAKE) web/swat_proto.h; \
2105 $(MAKE) client/client_proto.h; \
2106 $(MAKE) utils/ntlm_auth_proto.h; \
2107 $(MAKE) utils/net_proto.h; \
2108 $(MAKE) utils/passwd_proto.h; \
2109 $(MAKE) libnet/libnet_proto.h;
2111 proto: headers
2113 .PHONY: headers proto
2115 etags:
2116 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2118 ctags:
2119 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2121 realclean: clean delheaders
2122 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2123 -rm -f script/installbin.sh script/uninstallbin.sh
2125 distclean: realclean
2126 -rm -f smbadduser
2127 -rm -f include/config.h Makefile
2128 -rm -f config.status config.cache so_locations
2129 -rm -rf .deps TAGS
2131 realdistclean: distclean
2132 -rm -f include/config.h.in
2133 -rm -f include/version.h
2134 -rm -f configure
2136 # this target is really just for my use. It only works on a limited
2137 # range of machines and is used to produce a list of potentially
2138 # dead (ie. unused) functions in the code. (tridge)
2139 finddead:
2140 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2141 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2142 comm -13 nmused.txt nmfns.txt
2145 # when configure.in is updated, reconfigure
2146 $(srcdir)/configure: $(srcdir)/configure.in
2147 @echo "WARNING: you need to rerun ./autogen.sh"
2149 config.status: $(srcdir)/configure
2150 @echo "WARNING: you need to run ./configure"
2152 Makefile: $(srcdir)/Makefile.in config.status
2153 @echo "WARNING: you need to run ./config.status"
2155 ######################################################################
2156 # Samba Testing Framework
2158 # Check shared libs for unresolved symbols
2159 test_shlibs: $(SHLIBS)
2160 @echo "Testing $(SHLIBS) "
2161 @for module in $(SHLIBS); do \
2162 ./script/tests/dlopen.sh bin/$${module}.@SHLIBEXT@ \
2163 || exit 1; \
2164 done
2166 # Check for NSS module problems.
2167 test_nss_modules: nss_modules
2168 @echo "Testing $(NSS_MODULES) "
2169 @for module in $(NSS_MODULES); do \
2170 ./script/tests/dlopen.sh $${module} \
2171 || exit 1; \
2172 done
2174 # Check for PAM module problems. Specifically, check that every module we
2175 # built can actually be loaded by a minimal PAM-aware application.
2176 test_pam_modules: pam_modules
2177 @echo "Testing $(PAM_MODULES) "
2178 @for module in $(PAM_MODULES); do \
2179 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2180 || exit 1; \
2181 done
2185 ## Targets for 'make test'
2187 test: all torture timelimit
2188 @echo Running Test suite
2189 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix}/st all "${smbtorture4_path}"
2191 valgrindtest: all torture timelimit
2192 @echo Running Test suite with valgrind
2193 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2194 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2195 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2196 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2197 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/st/valgrind.log" \
2198 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix}/st all "${smbtorture4_path}"