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 ###########################################################################
13 exec_prefix=@
exec_prefix@
14 sysconfdir
=@sysconfdir@
15 localstatedir
=@localstatedir@
16 datarootdir
=@datarootdir@
18 selftest_prefix
=@selftest_prefix@
19 smbtorture4_path
=@smbtorture4_path@
25 ## Dynamic shared libraries build settings
26 DSO_EXPORTS_CMD
=-Wl
,--version-script
,$(srcdir)/exports
/`basename $@ | sed 's/@SHLIBEXT@$$/syms/'`
27 DSO_EXPORTS
=@DSO_EXPORTS@
28 SONAME_VER
=`grep \^$@ $(builddir)/library-versions | cut -d: -f2`
29 SHLD_DSO
= $(SHLD
) $(LDSHFLAGS
) $(DSO_EXPORTS
) -o
$@
31 # The MODULE_EXPORTS variable contains the platform-specific linker flags
32 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
33 MODULE_EXPORTS
=@MODULE_EXPORTS@
35 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
36 # (GCC) warnings. This is done automtically for --enable-developer
37 # and --enable-krb5developer.
38 DEVELOPER_CFLAGS
=@DEVELOPER_CFLAGS@
40 CPPFLAGS
=-DHAVE_CONFIG_H @CPPFLAGS@
44 LDSHFLAGS
=@LDSHFLAGS@ @LDFLAGS@
45 LDFLAGS
=@PIE_LDFLAGS@ @LDFLAGS@
47 WINBIND_NSS_LDSHFLAGS
=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
55 TERMLDFLAGS
=@TERMLDFLAGS@
57 PRINT_LIBS
=@PRINT_LIBS@
60 PASSDB_LIBS
=@PASSDB_LIBS@
61 IDMAP_LIBS
=@IDMAP_LIBS@
66 WINBIND_LIBS
=@WINBIND_LIBS@
67 DNSSD_LIBS
=@DNSSD_LIBS@
70 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
71 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
72 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
73 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
77 builddir
=@abs_builddir@
81 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
82 # will search for a POSIX-compliant shell, and that might not be
83 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
85 # See the autoconf manual "Installation Directory Variables" for a
86 # discussion of the subtle use of these variables.
90 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
92 ROOTSBINDIR
= @rootsbindir@
94 INCLUDEDIR
=@
includedir@
95 PAMMODULESDIR
= @pammodulesdir@
96 VFSLIBDIR
= $(LIBDIR
)/vfs
97 PDBLIBDIR
= $(LIBDIR
)/pdb
98 RPCLIBDIR
= $(LIBDIR
)/rpc
99 IDMAPLIBDIR
= $(LIBDIR
)/idmap
100 NSSINFOLIBDIR
= $(LIBDIR
)/nss_info
101 CHARSETLIBDIR
= $(LIBDIR
)/charset
102 AUTHLIBDIR
= $(LIBDIR
)/auth
103 CONFIGLIBDIR
= $(LIBDIR
)/config
104 CONFIGDIR
= @configdir@
105 VARDIR
= @localstatedir@
109 # The permissions to give the executables and other data
110 INSTALLPERMS_BIN
= 0755
111 INSTALLPERMS_DATA
= 0644
113 # set these to where to find various files
114 # These can be overridden by command line switches (see smbd(8))
115 # or in smb.conf (see smb.conf(5))
116 LOGFILEBASE
= @logfilebase@
117 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
118 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
121 # This is where smbpasswd et al go
122 PRIVATEDIR
= @privatedir@
124 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
125 PRIVATE_DIR
= $(PRIVATEDIR
)
127 # This is where SWAT images and help files go
130 # the directory where lock files go
133 # FHS directories; equal to LOCKDIR if not using --with-fhs
134 CACHEDIR
= @cachedir@
135 STATEDIR
= @
statedir@
137 # Where to look for (and install) codepage databases.
138 CODEPAGEDIR
= @codepagedir@
140 # the directory where pid files go
143 LIBSMBCLIENT
=bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
144 LIBSMBSHAREMODES
=bin
/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
145 LIBADDNS
=bin
/libaddns.a @LIBADDNS_SHARED@
146 LIBWBCLIENT
=@LIBWBCLIENT_SHARED@
147 LIBNETAPI
=bin
/libnetapi.a @LIBNETAPI_SHARED@
149 FLAGS1
= $(CFLAGS
) @FLAGS1@ @SAMBA_CPPFLAGS@
$(CPPFLAGS
)
152 FLAGS4
= -I
$(CTDBDIR
)/include
153 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
154 FLAGS
= $(ISA
) $(FLAGS5
) -I
$(srcdir)/lib
-D_SAMBA_BUILD_
=3
156 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
157 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
158 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
159 -DSBINDIR
=\"$(SBINDIR
)\" \
160 -DBINDIR
=\"$(BINDIR
)\" \
161 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
162 -DSWATDIR
=\"$(SWATDIR
)\" \
163 -DLOCKDIR
=\"$(LOCKDIR
)\" \
164 -DPIDDIR
=\"$(PIDDIR
)\" \
165 -DLIBDIR
=\"$(LIBDIR
)\" \
166 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
167 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
168 -DCTDBDIR
=\"$(CTDBDIR
)\" \
169 -DCONFIGDIR
=\"$(CONFIGDIR
)\" \
170 -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\" \
171 -DCACHEDIR
=\"$(CACHEDIR
)\" \
172 -DSTATEDIR
=\"$(STATEDIR
)\"
174 # Note that all executable programs now provide for an optional executable suffix.
176 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
178 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@ @CIFSSPNEGO_PROGS@
180 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
181 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
182 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
183 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
185 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
186 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ \
187 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
188 BIN_PROGS4
= bin
/ldbedit@EXEEXT@ bin
/ldbsearch@EXEEXT@ bin
/ldbadd@EXEEXT@ \
189 bin
/ldbdel@EXEEXT@ bin
/ldbmodify@EXEEXT@
191 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
192 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
193 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
194 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
195 bin
/tdbtorture@EXEEXT@
197 BIN_PROGS
= @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@ \
198 $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) $(BIN_PROGS4
)
200 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
201 bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
202 bin
/log2pcap@EXEEXT@ bin
/sharesec@EXEEXT@ bin
/ndrdump@EXEEXT@ \
205 SHLIBS
= @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBADDNS@ @LIBNETAPI@ @LIBWBCLIENT@
207 PAM_MODULES
= @PAM_MODULES@
209 NSS_MODULES
= @NSS_MODULES@
211 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
213 VFS_MODULES
= @VFS_MODULES@
214 PDB_MODULES
= @PDB_MODULES@
215 RPC_MODULES
= @RPC_MODULES@
216 IDMAP_MODULES
= @IDMAP_MODULES@
217 CHARSET_MODULES
= @CHARSET_MODULES@
218 AUTH_MODULES
= @AUTH_MODULES@
219 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
220 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
221 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
)
223 ######################################################################
225 ######################################################################
227 TDBBASE_OBJ
= lib
/tdb
/common
/tdb.o lib
/tdb
/common
/dump.o lib
/tdb
/common
/error.o \
228 lib
/tdb
/common
/freelist.o lib
/tdb
/common
/freelistcheck.o \
229 lib
/tdb
/common
/io.o lib
/tdb
/common
/lock.o \
230 lib
/tdb
/common
/open.o lib
/tdb
/common
/transaction.o \
231 lib
/tdb
/common
/traverse.o
233 TDB_OBJ
= $(TDBBASE_OBJ
) lib
/util_tdb.o \
234 lib
/dbwrap.o lib
/dbwrap_tdb.o lib
/dbwrap_ctdb.o lib
/dbwrap_rbt.o
236 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
238 VERSION_OBJ
= lib
/version.o
240 DOSERR_OBJ
= libsmb
/doserr.o
242 WBCOMMON_OBJ
= nsswitch
/wb_common.o
246 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
248 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
250 ERRORMAP_OBJ
= libsmb
/errormap.o
252 PASSCHANGE_OBJ
= libsmb
/passchange.o
255 LIBNDR_OBJ
= librpc
/ndr
/ndr_basic.o librpc
/ndr
/ndr.o librpc
/ndr
/ndr_misc.o \
256 librpc
/ndr
/ndr_sec_helper.o librpc
/ndr
/ndr_string.o librpc
/ndr
/sid.o \
259 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
261 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_wkssvc.o \
262 librpc
/gen_ndr
/ndr_lsa.o \
263 librpc
/gen_ndr
/ndr_dfs.o \
264 librpc
/gen_ndr
/ndr_echo.o \
265 librpc
/gen_ndr
/ndr_winreg.o \
266 librpc
/gen_ndr
/ndr_initshutdown.o \
267 librpc
/gen_ndr
/ndr_srvsvc.o \
268 librpc
/gen_ndr
/ndr_svcctl.o \
269 librpc
/gen_ndr
/ndr_eventlog.o \
270 librpc
/gen_ndr
/ndr_notify.o
272 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
274 # this includes only the low level parse code, not stuff
275 # that requires knowledge of security contexts
276 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
) rpc_parse
/parse_sec.o
278 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o rpc_parse
/parse_net.o rpc_parse
/parse_srv.o
280 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
282 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
283 NSS_WRAPPER_OBJ
= @NSS_WRAPPER_OBJS@
285 TALLOC_OBJ
= lib
/talloc
/talloc.o
287 LIBSAMBAUTIL_OBJ
= $(TALLOC_OBJ
) $(LIBREPLACE_OBJ
)
289 LIB_WITHOUT_PROTO_OBJ
= $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) $(NSS_WRAPPER_OBJ
) $(TALLOC_OBJ
) \
290 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
291 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o lib
/talloc_stack.o \
292 lib
/interfaces.o lib
/rbtree.o lib
/memcache.o
294 LIB_WITH_PROTO_OBJ
= $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
295 lib
/interface.o lib
/md4.o \
297 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/recvfile.o lib
/time.o \
298 lib
/ufc.o lib
/genrand.o lib
/username.o \
299 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
300 lib
/bitmap.o lib
/crc32.o lib
/dprintf.o \
301 lib
/xfile.o lib
/wins_srv.o
$(UTIL_REG_OBJ
) \
302 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
303 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
304 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
305 lib
/substitute.o lib
/fsusage.o \
306 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
307 lib
/tallocmsg.o lib
/dmallocmsg.o libsmb
/smb_signing.o \
308 lib
/md5.o lib
/hmacmd5.o lib
/arc4.o lib
/iconv.o \
310 lib
/pam_errors.o intl
/lang_tdb.o lib
/conn_tdb.o \
311 lib
/adt_tree.o lib
/gencache.o
$(TDB_OBJ
) \
312 lib
/module.o lib
/events.o lib
/ldap_escape.o @CHARSET_STATIC@ \
313 lib
/secdesc.o lib
/util_seaccess.o lib
/secace.o lib
/secacl.o \
314 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
317 LIB_OBJ
= $(LIB_WITHOUT_PROTO_OBJ
) $(LIB_WITH_PROTO_OBJ
)
319 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
320 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
322 READLINE_OBJ
= lib
/readline.o
324 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
325 # Be sure to include them into your application
326 POPT_LIB_OBJ
= lib
/popt_common.o
328 PARAM_WITHOUT_REG_OBJ
= dynconfig.o param
/loadparm.o param
/params.o param
/util.o lib
/sharesec.o
329 PARAM_REG_ADD_OBJ
= $(UTIL_REG_API_OBJ
)
330 PARAM_OBJ
= $(PARAM_WITHOUT_REG_OBJ
) $(PARAM_REG_ADD_OBJ
)
332 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
334 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
335 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
336 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(TALLOC_OBJ
)
338 LIBWBCLIENT_OBJ
= nsswitch
/wb_common.o lib
/talloc
/talloc.o \
339 nsswitch
/libwbclient
/wbclient.o \
340 nsswitch
/libwbclient
/wbc_util.o \
341 nsswitch
/libwbclient
/wbc_pwd.o \
342 nsswitch
/libwbclient
/wbc_idmap.o \
343 nsswitch
/libwbclient
/wbc_sid.o \
344 nsswitch
/libwbclient
/wbc_pam.o
347 LIBGPO_OBJ0
= libgpo
/gpo_ldap.o libgpo
/gpo_ini.o libgpo
/gpo_util.o \
348 libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o libgpo
/gpo_sec.o
349 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
351 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o \
352 libads
/sasl.o libads
/sasl_wrapping.o \
353 libads
/krb5_setpw.o libads
/ldap_user.o \
354 libads
/ads_struct.o libads
/kerberos_keytab.o \
355 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
356 libads
/cldap.o libads
/ldap_schema.o libads
/util.o
358 LIBADS_SERVER_OBJ
= libads
/kerberos_verify.o libads
/authdata.o
360 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
362 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
363 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
365 LIBSAMBA_OBJ
= libsmb
/nterr.o libsmb
/dcerpc_err.o libsmb
/smbdes.o \
366 libsmb
/smbencrypt.o libsmb
/ntlm_check.o \
367 libsmb
/ntlmssp.o libsmb
/ntlmssp_parse.o libsmb
/ntlmssp_sign.o
369 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
370 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
371 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
372 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
373 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
374 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
375 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
376 libsmb
/clioplock.o
$(ERRORMAP_OBJ
) libsmb
/clirap2.o \
377 libsmb
/smb_seal.o
$(DOSERR_OBJ
) \
378 $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(LIBNMB_OBJ
)
380 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o rpc_client
/cli_srvsvc.o
382 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
383 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
384 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
385 rpc_client
/cli_ds.o rpc_client
/cli_svcctl.o
387 LIBMSRPC_GEN_OBJ
= librpc
/gen_ndr
/cli_lsa.o \
388 librpc
/gen_ndr
/cli_dfs.o \
389 librpc
/gen_ndr
/cli_echo.o \
390 librpc
/gen_ndr
/cli_srvsvc.o \
391 librpc
/gen_ndr
/cli_svcctl.o \
392 librpc
/gen_ndr
/cli_winreg.o \
393 librpc
/gen_ndr
/cli_initshutdown.o \
394 librpc
/gen_ndr
/cli_eventlog.o \
395 librpc
/gen_ndr
/cli_wkssvc.o \
399 REGOBJS_OBJ
= registry
/reg_objects.o
401 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
402 registry
/reg_db.o registry
/reg_eventlog.o registry
/reg_shares.o \
403 registry
/reg_util.o registry
/reg_dynamic.o registry
/reg_perfcount.o \
404 registry
/reg_smbconf.o registry
/reg_api.o \
405 registry
/reg_frontend_hilvl.o \
406 $(UTIL_REG_API_OBJ
) $(UTIL_REG_SMBCONF_OBJ
)
408 RPC_LSA_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o librpc
/gen_ndr
/srv_lsa.o
410 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o
412 RPC_SAMR_OBJ
= rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o \
413 rpc_server
/srv_samr_util.o
415 REGFIO_OBJ
= registry
/regfio.o
417 RPC_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
419 RPC_REG_OBJ
= rpc_server
/srv_winreg_nt.o \
420 librpc
/gen_ndr
/srv_winreg.o \
423 RPC_LSA_DS_OBJ
= rpc_server
/srv_lsa_ds.o rpc_server
/srv_lsa_ds_nt.o
425 RPC_SVC_OBJ
= rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o \
426 librpc
/gen_ndr
/srv_srvsvc.o
428 RPC_WKS_OBJ
= librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
430 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl.o rpc_server
/srv_svcctl_nt.o \
431 librpc
/gen_ndr
/srv_svcctl.o \
432 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
433 services
/svc_netlogon.o services
/svc_winreg.o \
436 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs.o rpc_server
/srv_ntsvcs_nt.o
438 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
440 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
442 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog.o rpc_server
/srv_eventlog_nt.o \
443 rpc_server
/srv_eventlog_lib.o librpc
/gen_ndr
/srv_eventlog.o
445 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
446 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
448 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o librpc
/gen_ndr
/srv_echo.o
450 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
452 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o
$(RPC_PARSE_OBJ2
) \
453 rpc_parse
/parse_samr.o \
454 rpc_parse
/parse_ds.o rpc_parse
/parse_spoolss.o \
455 rpc_parse
/parse_eventlog.o rpc_parse
/parse_buffer.o \
456 rpc_parse
/parse_ntsvcs.o rpc_parse
/parse_svcctl.o
$(REGOBJS_OBJ
)
458 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
460 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
462 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
464 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
465 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
466 passdb
/util_unixsids.o passdb
/lookup_sid.o \
467 passdb
/login_cache.o @PDB_STATIC@ \
468 lib
/account_pol.o lib
/privileges.o lib
/privileges_basic.o \
469 lib
/util_nscd.o lib
/winbind_util.o
471 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
472 CP850_OBJ
= modules
/CP850.o
473 CP437_OBJ
= modules
/CP437.o
474 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
476 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o groupdb
/mapping_ldb.o
478 PROFILE_OBJ
= profile
/profile.o
479 PROFILES_OBJ
= utils
/profiles.o \
480 $(REGFIO_OBJ
) $(REGOBJS_OBJ
) $(ERRORMAP_OBJ
) \
481 $(RPC_PARSE_OBJ1
) $(PARAM_OBJ
) $(LIBSAMBA_OBJ
) \
482 $(DOSERR_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
483 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
485 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
487 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
489 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
490 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
491 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
492 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
493 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
494 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
495 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
496 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
497 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
498 VFS_CAP_OBJ
= modules
/vfs_cap.o
499 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
500 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
501 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
502 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
503 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
504 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
505 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
506 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
507 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
508 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
509 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
510 VFS_CATIA_OBJ
= modules
/vfs_catia.o
511 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
512 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
513 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
514 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
515 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
516 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
517 VFS_FILEID_OBJ
= modules
/vfs_fileid.o
518 VFS_SYNCOPS_OBJ
= modules
/vfs_syncops.o
520 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
522 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
524 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o libsmb
/dsgetdcname.o
526 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
527 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
528 AUTH_SAM_OBJ
= auth
/auth_sam.o
529 AUTH_SERVER_OBJ
= auth
/auth_server.o
530 AUTH_UNIX_OBJ
= auth
/auth_unix.o
531 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
532 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
534 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
536 auth
/auth_compat.o auth
/auth_ntlmssp.o \
537 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
539 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_hash2.o
541 SMBD_OBJ_MAIN
= smbd
/server.o
543 BUILDOPT_OBJ
= smbd
/build_options.o
545 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
546 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
547 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
548 smbd
/share_access.o smbd
/fileio.o \
549 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
550 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
551 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
552 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
553 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
554 smbd
/vfs.o smbd
/statcache.o smbd
/seal.o \
555 smbd
/posix_acls.o lib
/sysacls.o
$(SERVER_MUTEX_OBJ
) \
556 smbd
/process.o smbd
/service.o smbd
/error.o \
557 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
558 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
559 smbd
/change_trust_pw.o smbd
/fake_file.o \
560 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
561 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
565 $(MANGLE_OBJ
) @VFS_STATIC@
567 SMBD_OBJ_BASE
= $(PARAM_WITHOUT_REG_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
568 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
569 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
570 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
571 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
572 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
573 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
574 $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
575 $(BUILDOPT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(LIBNET_OBJ
)
577 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
578 printing
/print_cups.o printing
/print_generic.o \
579 printing
/lpq_parse.o printing
/load.o \
580 printing
/print_iprint.o
582 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
583 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
585 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
587 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
588 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
589 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
590 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
591 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
592 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
593 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
594 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
595 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
596 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
597 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
598 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
600 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
601 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
603 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
604 web
/swat.o web
/neg_lang.o
606 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) \
607 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) \
608 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
609 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
610 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
612 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
613 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
614 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
615 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) \
618 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
619 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
620 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
621 $(PRINTBASE_OBJ
) $(ERRORMAP_OBJ
)
623 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
624 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
625 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
626 rpc_client
/cli_pipe.o
$(RPC_PARSE_OBJ2
) \
628 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
631 TESTPARM_OBJ
= utils
/testparm.o \
632 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
633 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
635 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
637 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
638 $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
639 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
640 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) \
641 $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
643 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) \
644 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
645 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) libsmb
/asn1.o \
646 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) $(ERRORMAP_OBJ
)
648 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ
)
650 DISPLAY_SEC_OBJ
= lib
/display_sec.o
651 DISPLAY_DSDCINFO_OBJ
= lib
/display_dsdcinfo.o
653 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
654 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
655 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
656 rpcclient
/cmd_dfs.o \
657 rpcclient
/cmd_ds.o rpcclient
/cmd_echo.o \
658 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
659 rpcclient
/cmd_wkssvc.o \
660 $(DISPLAY_SEC_OBJ
) $(DISPLAY_DSDCINFO_OBJ
)
662 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
663 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
664 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
665 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
666 $(LIBADS_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
667 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
669 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
670 $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @BUILD_INIPARSER@
672 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
673 libsmb
/libsmb_cache.o \
674 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
675 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
676 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
677 $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
679 LIBSMBSHAREMODES_OBJ
= libsmb
/smb_share_modes.o
$(TDBBASE_OBJ
)
681 # This shared library is intended for linking with unit test programs
682 # to test Samba internals. It's called libbigballofmud.so to
683 # discourage casual usage.
685 LIBBIGBALLOFMUD_MAJOR
= 0
687 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) \
688 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
689 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
691 CLIENT_OBJ1
= client
/client.o client
/clitar.o rpc_client
/cli_pipe.o \
696 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
697 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
698 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
699 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
702 UTIL_REG_OBJ
= lib
/util_reg.o
703 UTIL_REG_API_OBJ
= lib
/util_reg_api.o
704 UTIL_REG_SMBCONF_OBJ
= lib
/util_reg_smbconf.o
706 # objects to be used when not all of the registry code should be
707 # loaded but only the portion needed by reg_api, typically for
708 # using smbconf (registry) - full access
709 REG_API_OBJ
= registry
/reg_api.o \
710 registry
/reg_frontend_hilvl.o \
711 registry
/reg_smbconf.o \
713 registry
/reg_util.o \
715 registry
/reg_cachehook.o \
716 registry
/reg_eventlog.o \
717 registry
/reg_perfcount.o \
718 registry
/reg_dynamic.o \
721 $(UTIL_REG_API_OBJ
) \
722 $(UTIL_REG_SMBCONF_OBJ
)
725 LIBNETAPI_OBJ1
= lib
/netapi
/netapi.o \
726 lib
/netapi
/joindomain.o \
727 lib
/netapi
/serverinfo.o \
730 LIBNETAPI_OBJ
= $(LIBNETAPI_OBJ1
) $(LIBNET_OBJ
) \
732 $(PARAM_WITHOUT_REG_OBJ
) $(LIB_NONSMBD_OBJ
) \
733 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
734 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
735 $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
736 $(DCUTIL_OBJ
) $(LIBADS_OBJ
)
738 LIBNET_OBJ
= libnet
/libnet_conf.o libnet
/libnet_join.o
740 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_domain.o utils
/net_help.o \
741 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
742 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
743 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
744 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
745 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
746 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
747 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
748 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
749 utils
/net_conf.o auth
/token_util.o utils
/net_dom.o nsswitch
/wb_client.o
751 NET_OBJ
= $(NET_OBJ1
) $(PARAM_WITHOUT_REG_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
752 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
753 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
754 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
755 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
756 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
757 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
758 $(LDB_OBJ
) $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) \
759 $(REG_API_OBJ
) $(DISPLAY_DSDCINFO_OBJ
) $(LIBNETAPI_OBJ1
) $(LIBNET_OBJ
)
761 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
762 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
764 MOUNT_OBJ
= client
/smbmount.o \
765 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
767 MNT_OBJ
= client
/smbmnt.o
$(VERSION_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
769 UMOUNT_OBJ
= client
/smbumount.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
770 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
772 CIFS_MOUNT_OBJ
= client
/mount.cifs.o
774 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o
776 CIFS_SPNEGO_OBJ
= client
/cifs.spnego.o
778 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
779 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
781 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
782 torture
/denytest.o torture
/mangle_test.o
784 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
785 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
787 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
788 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
790 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
791 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
793 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
794 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
796 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
797 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
799 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
800 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
801 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
)
804 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
806 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
808 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
810 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
811 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
813 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
814 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
815 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
817 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
819 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
821 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
822 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
823 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
825 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
827 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
828 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
830 registry
/reg_eventlog.o rpc_server
/srv_eventlog_lib.o registry
/reg_util.o \
833 SHARESEC_OBJ0
= utils
/sharesec.o
834 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
835 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
836 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
838 TALLOCTORT_OBJ
= lib
/talloc
/testsuite.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
839 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LIBSAMBA_OBJ
) $(SECRETS_OBJ
)
841 REPLACETORT_OBJ
= lib
/replace
/test/testsuite.o \
842 lib
/replace
/test/os2_delete.o \
843 lib
/replace
/test/strptime.o \
846 NDRDUMP_OBJ
= librpc
/tools
/ndrdump.o \
847 $(PARAM_OBJ
) $(LIBNDR_GEN_OBJ
) \
848 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
849 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(SECRETS_OBJ
)
851 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
853 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(SECRETS_OBJ
) \
854 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
)
856 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) $(LIBNDR_OBJ
) $(LIBNDR_GEN_OBJ
) \
857 $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(LIBSMB_OBJ
) \
858 $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
860 $(LIB_WITH_PROTO_OBJ
) \
861 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) $(KRBCLIENT_OBJ
) \
862 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
863 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
864 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
865 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
866 $(AUTH_SAM_OBJ
) $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
867 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) $(RPC_LSA_DS_OBJ
) \
868 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
) \
869 $(RPC_ECHO_OBJ
) $(RPC_SVCCTL_OBJ
) $(RPC_EVENTLOG_OBJ
) $(SMBLDAP_OBJ
) \
870 $(IDMAP_OBJ
) libsmb
/spnego.o
$(PASSCHANGE_OBJ
) $(RPC_UNIXINFO_OBJ
) \
871 $(RPC_NTSVCS_OBJ
) $(RPC_INITSHUTDOWN_OBJ
) \
872 utils
/passwd_util.o
$(LIBGPO_OBJ
) $(NSS_INFO_OBJ
) \
873 $(RPCCLIENT_NDR_OBJ
) $(DISPLAY_DSDCINFO_OBJ
)
875 WINBIND_WINS_NSS_OBJ
= nsswitch
/wins.o
$(PARAM_OBJ
) \
876 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
878 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
879 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o
880 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
881 $(SECRETS_OBJ
) $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
882 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) $(ERRORMAP_OBJ
)
884 IDMAP_OBJ
= winbindd
/idmap.o winbindd
/idmap_cache.o winbindd
/idmap_util.o @IDMAP_STATIC@
886 NSS_INFO_OBJ
= winbindd
/nss_info.o @NSS_INFO_STATIC@
889 winbindd
/winbindd.o \
890 winbindd
/winbindd_user.o \
891 winbindd
/winbindd_group.o \
892 winbindd
/winbindd_util.o \
893 winbindd
/winbindd_cache.o \
894 winbindd
/winbindd_pam.o \
895 winbindd
/winbindd_sid.o \
896 winbindd
/winbindd_misc.o \
897 winbindd
/winbindd_cm.o \
898 winbindd
/winbindd_wins.o \
899 winbindd
/winbindd_rpc.o \
900 winbindd
/winbindd_reconnect.o \
901 winbindd
/winbindd_ads.o \
902 winbindd
/winbindd_passdb.o \
903 winbindd
/winbindd_dual.o \
904 winbindd
/winbindd_async.o \
905 winbindd
/winbindd_creds.o \
906 winbindd
/winbindd_cred_cache.o \
907 winbindd
/winbindd_ccache_access.o \
908 winbindd
/winbindd_domain.o \
909 winbindd
/winbindd_idmap.o \
910 winbindd
/winbindd_locator.o \
914 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
915 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
916 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
917 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
918 $(SECRETS_OBJ
) $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
919 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
920 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) \
921 $(LIBADS_SERVER_OBJ
) $(SERVER_MUTEX_OBJ
) $(LDB_OBJ
)
923 WBINFO_OBJ
= nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
924 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) $(RPC_PARSE_OBJ1
) \
925 $(DOSERR_OBJ
) lib
/winbind_util.o
927 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
929 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
930 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
931 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
932 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
933 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
935 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
936 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
937 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
939 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
940 lib
/ldb
/modules
/objectclass.o \
941 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
943 # enabled in configure.in
944 LDB_LDAP_OBJ
=@LDBLDAP@
946 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
948 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
949 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
950 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
951 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
952 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
953 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
954 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
955 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
958 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
959 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
960 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
961 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
962 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
964 WINBIND_KRB5_LOCATOR_OBJ1
= nsswitch
/winbind_krb5_locator.o
965 WINBIND_KRB5_LOCATOR_OBJ
= $(WINBIND_KRB5_LOCATOR_OBJ1
) $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
967 POPT_OBJ
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
968 popt
/popthelp.o popt
/poptparse.o
970 INIPARSER_OBJ
= iniparser_build
/iniparser.o iniparser_build
/dictionary.o \
971 iniparser_build
/strlib.o
973 TDBBACKUP_OBJ
= lib
/tdb
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
974 $(TDBBASE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
976 TDBTOOL_OBJ
= lib
/tdb
/tools
/tdbtool.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
977 $(SOCKET_WRAPPER_OBJ
)
979 TDBDUMP_OBJ
= lib
/tdb
/tools
/tdbdump.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
980 $(SOCKET_WRAPPER_OBJ
)
982 TDBTORTURE_OBJ
= lib
/tdb
/tools
/tdbtorture.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
983 $(SOCKET_WRAPPER_OBJ
)
986 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
988 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
989 libsmb
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
990 libads
/kerberos_verify.o
$(SECRETS_OBJ
) $(SERVER_MUTEX_OBJ
) \
991 libads
/authdata.o
$(RPC_PARSE_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
992 $(SMBLDAP_OBJ
) $(DOSERR_OBJ
) rpc_parse
/parse_net.o
$(LIBNMB_OBJ
) \
993 $(LDB_OBJ
) $(ERRORMAP_OBJ
)
995 VLP_OBJ1
= ..
/testsuite
/printing
/vlp.o
$(RPC_CLIENT_OBJ1
) $(RPC_PARSE_OBJ2
) $(RPC_CLIENT_OBJ
)
997 VLP_OBJ
= $(VLP_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
998 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
999 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
1000 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
1003 ######################################################################
1005 ######################################################################
1006 all : SHOWFLAGS
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1007 $(SHLIBS
) $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @EXTRA_ALL_TARGETS@
1009 nss_modules
: $(NSS_MODULES
)
1011 pam_modules
: $(PAM_MODULES
)
1013 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
1015 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
1017 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
1019 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
1021 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
1023 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
1025 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
1027 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
1029 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
1031 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
1033 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
1035 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
1037 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
1039 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
1041 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
1043 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
1045 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
1047 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1048 @WINBIND_WINS_NSS@ bin
/pam_winbind.@SHLIBEXT@ bin
/smbcontrol@EXEEXT@ \
1049 @WINBIND_KRB5_LOCATOR@
1051 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
1053 modules
: SHOWFLAGS
$(MODULES
)
1055 #####################################################################
1056 ## Perl IDL Compiler
1057 IDL_FILES
= unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1058 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1059 epmapper.idl messaging.idl
1062 @IDL_FILES
="$(IDL_FILES)" CPP
="$(CPP)" PERL
="$(PERL)" \
1063 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(PIDL_ARGS
)
1066 #####################################################################
1069 everything
: all libsmbclient libnetapi debug2html smbfilter talloctort replacetort modules torture \
1073 .SUFFIXES
: .c .o .lo
1076 @echo
"Using FLAGS = $(FLAGS)"
1077 @echo
" PICFLAG = $(PICFLAG)"
1078 @echo
" LIBS = $(LIBS)"
1079 @echo
" LDFLAGS = $(LDFLAGS)"
1080 @echo
" DYNEXP = $(DYNEXP)"
1081 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1082 @echo
" SHLIBEXT = @SHLIBEXT@"
1083 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1085 MAKEDIR
= || exec false
; \
1086 if
test -d
"$$dir"; then
:; else \
1087 echo mkdir
"$$dir"; \
1088 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1089 test -d
"$$dir" || \
1091 exec false
; fi || exec false
1093 # Run a static checker.
1094 CHECK_CC
= $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1095 # Compile a source file.
1096 COMPILE_CC
= $(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1097 # Compile a source file with the installation paths defined.
1098 COMPILE_CC_PATH
= $(CC
) -I.
-I
$(srcdir) $(PATH_FLAGS
) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1100 COMPILE
= $(COMPILE_CC
)
1103 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1104 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1105 @if
test -n
"$(CC_CHECKER)"; then \
1106 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1109 @echo Compiling
$*.c
1110 @
$(COMPILE
) && exit
0;\
1111 echo
"The following command failed:" 1>&2;\
1112 echo
"$(COMPILE_CC)" 1>&2;\
1113 $(COMPILE_CC
) >/dev
/null
2>&1
1114 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
1116 PRECOMPILED_HEADER
= $(builddir
)/include/includes.h.gch
1118 # this adds support for precompiled headers. To use it, install a snapshot
1119 # of gcc-3.4 and run 'make pch' before you do the main build.
1121 rm -f
$(PRECOMPILED_HEADER
)
1122 $(MAKE
) $(PRECOMPILED_HEADER
)
1124 $(PRECOMPILED_HEADER
): $(srcdir)/include/includes.h
1127 BINARY_PREREQS
= proto_exists bin
/.dummy
1129 # These dependencies are only approximately correct: we want to make
1130 # sure Samba's paths are updated if ./configure is re-run. Really it
1131 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1132 # but since we also require "make install prefix=/opt/samba" *not* to
1133 # rebuild it's a bit hard.
1135 dynconfig.o
: dynconfig.c Makefile
1136 @echo Compiling
$*.c
1137 @
$(COMPILE_CC_PATH
) && exit
0;\
1138 echo
"The following command failed:" 1>&2;\
1139 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1140 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1142 lib
/pidfile.o
: lib
/pidfile.c
1143 @echo Compiling
$*.c
1144 @
$(COMPILE_CC_PATH
) && exit
0;\
1145 echo
"The following command failed:" 1>&2;\
1146 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1147 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1149 lib
/version.o
: lib
/version.c
include/version.h
1150 @echo Compiling
$*.c
1151 @
$(COMPILE_CC_PATH
) && exit
0;\
1152 echo
"The following command failed:" 1>&2;\
1153 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1154 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1156 smbd
/build_options.o
: smbd
/build_options.c Makefile
include/config.h
include/build_env.h
include/proto.h
1157 @echo Compiling
$*.c
1158 @
$(COMPILE_CC_PATH
) && exit
0;\
1159 echo
"The following command failed:" 1>&2;\
1160 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1161 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1163 smbd
/build_options.c
: include/config.h.in script
/mkbuildoptions.awk
1165 @
dir=smbd
$(MAKEDIR
) && $(AWK
) -f
$(srcdir)/script
/mkbuildoptions.awk
> $(builddir
)/smbd
/build_options.c
< $(srcdir)/include/config.h.in
1168 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
1169 dir=bin
$(MAKEDIR
); fi
1170 @
: >> $@ ||
: > $@
# what a fancy emoticon!
1172 bin
/smbd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBD_OBJ
) @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1174 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LDAP_LIBS
) \
1175 $(KRB5LIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
1176 $(ACL_LIBS
) $(PASSDB_LIBS
) $(LIBS
) $(DNSSD_LIBS
) \
1177 @POPTLIBS@ @SMBD_LIBS@ @WINBIND_LIBS@
1179 bin
/nmbd@EXEEXT@
: $(BINARY_PREREQS
) $(NMBD_OBJ
) @BUILD_POPT@
1181 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1182 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1184 bin
/swat@EXEEXT@
: $(BINARY_PREREQS
) $(SWAT_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1186 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINT_LIBS
) \
1187 $(AUTH_LIBS
) $(LIBS
) $(PASSDB_LIBS
) @POPTLIBS@
$(KRB5LIBS
) \
1188 $(LDAP_LIBS
) @WINBIND_LIBS@
1190 bin
/rpcclient@EXEEXT@
: $(BINARY_PREREQS
) $(RPCCLIENT_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1192 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(PASSDB_LIBS
) $(RPCCLIENT_OBJ
) \
1193 $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@ \
1194 $(KRB5LIBS
) $(LDAP_LIBS
) @WINBIND_LIBS@
1196 bin
/smbclient@EXEEXT@
: $(BINARY_PREREQS
) $(CLIENT_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1198 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1199 $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@ \
1200 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) $(DNSSD_LIBS
) @WINBIND_LIBS@
1202 bin
/net@EXEEXT@
: $(BINARY_PREREQS
) $(NET_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1204 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1205 @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) \
1206 $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @INIPARSERLIBS@ @WINBIND_LIBS@
1208 bin
/profiles@EXEEXT@
: $(BINARY_PREREQS
) $(PROFILES_OBJ
) @BUILD_POPT@
1210 @
$(CC
) $(FLAGS
) -o
$@
$(PROFILES_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1212 bin
/smbspool@EXEEXT@
: $(BINARY_PREREQS
) $(CUPS_OBJ
) @BUILD_POPT@
1214 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1216 bin
/smbmount@EXEEXT@
: $(BINARY_PREREQS
) $(MOUNT_OBJ
) @BUILD_POPT@
1218 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1220 bin
/smbmnt@EXEEXT@
: $(BINARY_PREREQS
) $(MNT_OBJ
) @BUILD_POPT@
1222 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) @POPTLIBS@
1224 bin
/smbumount@EXEEXT@
: $(BINARY_PREREQS
) $(UMOUNT_OBJ
) @BUILD_POPT@
1226 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1228 bin
/mount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_MOUNT_OBJ
) @BUILD_POPT@
1230 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) @POPTLIBS@
1232 bin
/umount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_UMOUNT_OBJ
) @BUILD_POPT@
1234 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) @POPTLIBS@
1236 bin
/cifs.spnego@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_SPNEGO_OBJ
) $(LIBSMBCLIENT_OBJ
) @BUILD_POPT@
1238 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_SPNEGO_OBJ
) $(DYNEXP
) $(LDFLAGS
) -lkeyutils
$(LIBS
) \
1239 $(LIBSMBCLIENT_OBJ
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@ @LIBWBCLIENT_SHARED@
1241 bin
/testparm@EXEEXT@
: $(BINARY_PREREQS
) $(TESTPARM_OBJ
) @BUILD_POPT@
1243 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1245 bin
/smbstatus@EXEEXT@
: $(BINARY_PREREQS
) $(STATUS_OBJ
) @BUILD_POPT@
1247 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) \
1250 bin
/smbcontrol@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCONTROL_OBJ
) @BUILD_POPT@
1252 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) -o
$@ \
1253 $(SMBCONTROL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1254 $(LIBS
) $(LDAP_LIBS
) @LIBUNWIND_PTRACE@ @POPTLIBS@
1256 bin
/smbtree@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTREE_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1258 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(DYNEXP
) \
1259 $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1261 bin
/smbpasswd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBPASSWD_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1263 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(PASSDB_LIBS
) \
1264 $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) @WINBIND_LIBS@
1266 bin
/pdbedit@EXEEXT@
: $(BINARY_PREREQS
) $(PDBEDIT_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1268 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1269 @POPTLIBS@
$(PASSDB_LIBS
) $(LDAP_LIBS
) @WINBIND_LIBS@
1271 bin
/smbget@EXEEXT@
: $(BINARY_PREREQS
) $(SMBGET_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1273 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGET_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1274 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1276 bin
/samtest@EXEEXT@
: $(SAMTEST_OBJ
) @BUILD_POPT@
1278 @
$(CC
) $(FLAGS
) -o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1280 bin
/nmblookup@EXEEXT@
: $(BINARY_PREREQS
) $(NMBLOOKUP_OBJ
) @BUILD_POPT@
1282 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(LDAP_LIBS
)
1284 bin
/smbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTORTURE_OBJ
) @BUILD_POPT@
1286 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1288 bin
/talloctort@EXEEXT@
: $(BINARY_PREREQS
) $(TALLOCTORT_OBJ
) @BUILD_POPT@
1290 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) \
1291 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1293 bin
/replacetort@EXEEXT@
: $(REPLACETORT_OBJ
) @BUILD_POPT@
1295 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(REPLACETORT_OBJ
) $(LDFLAGS
) \
1296 $(DYNEXP
) $(LIBS
) @POPTLIBS@
1298 bin
/masktest@EXEEXT@
: $(BINARY_PREREQS
) $(MASKTEST_OBJ
) @BUILD_POPT@
1300 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1302 bin
/msgtest@EXEEXT@
: $(BINARY_PREREQS
) $(MSGTEST_OBJ
) @BUILD_POPT@
1304 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1306 bin
/smbcacls@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCACLS_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1308 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1309 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1311 bin
/smbcquotas@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCQUOTAS_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1313 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCQUOTAS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1314 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1316 bin
/eventlogadm@EXEEXT@
: $(BINARY_PREREQS
) $(EVTLOGADM_OBJ
) @BUILD_POPT@
1318 @
$(CC
) $(FLAGS
) -o
$@
$(EVTLOGADM_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1320 bin
/sharesec@EXEEXT@
: $(BINARY_PREREQS
) $(SHARESEC_OBJ
) @BUILD_POPT@
1322 @
$(CC
) $(FLAGS
) -o
$@
$(SHARESEC_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1324 bin
/locktest@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST_OBJ
) @BUILD_POPT@
1326 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1328 bin
/nsstest@EXEEXT@
: $(BINARY_PREREQS
) $(NSSTEST_OBJ
) @BUILD_POPT@
1330 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1332 bin
/pdbtest@EXEEXT@
: $(BINARY_PREREQS
) $(PDBTEST_OBJ
) @BUILD_POPT@
1334 @
$(CC
) $(FLAGS
) -o
$@
$(PDBTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@ @LIBWBCLIENT_SHARED@
1336 bin
/vfstest@EXEEXT@
: $(BINARY_PREREQS
) $(VFSTEST_OBJ
) @BUILD_POPT@
1338 @
$(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@
1340 bin
/smbiconv@EXEEXT@
: $(BINARY_PREREQS
) $(SMBICONV_OBJ
) @BUILD_POPT@
1342 @
$(CC
) $(FLAGS
) -o
$@
$(SMBICONV_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
1344 bin
/log2pcap@EXEEXT@
: $(BINARY_PREREQS
) $(LOG2PCAP_OBJ
) @BUILD_POPT@
1346 @
$(CC
) $(FLAGS
) -o
$@
$(LOG2PCAP_OBJ
) $(LDFLAGS
) $(DYNEXP
) @POPTLIBS@
$(LIBS
)
1348 bin
/locktest2@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST2_OBJ
) @BUILD_POPT@
1350 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1352 bin
/ndrdump@EXEEXT@
: $(BINARY_PREREQS
) $(NDRDUMP_OBJ
) @BUILD_POPT@
1354 @
$(CC
) $(FLAGS
) -o
$@
$(NDRDUMP_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1355 @POPTLIBS@ @LDAP_LIBS@
1357 bin
/debug2html@EXEEXT@
: $(BINARY_PREREQS
) $(DEBUG2HTML_OBJ
) @BUILD_POPT@
1359 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
1361 bin
/smbfilter@EXEEXT@
: $(BINARY_PREREQS
) $(SMBFILTER_OBJ
) @BUILD_POPT@
1363 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1365 bin
/ldbedit
: $(BINARY_PREREQS
) $(LDBEDIT_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1367 @
$(CC
) $(FLAGS
) -o
$@
$(LDBEDIT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1368 @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) \
1369 $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1371 bin
/ldbsearch
: $(BINARY_PREREQS
) $(LDBSEARCH_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1373 @
$(CC
) $(FLAGS
) -o
$@
$(LDBSEARCH_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1374 @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) \
1375 $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1377 bin
/ldbadd
: $(BINARY_PREREQS
) $(LDBADD_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1379 @
$(CC
) $(FLAGS
) -o
$@
$(LDBADD_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1380 @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) \
1381 $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1383 bin
/ldbmodify
: $(BINARY_PREREQS
) $(LDBMODIFY_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1385 @
$(CC
) $(FLAGS
) -o
$@
$(LDBMODIFY_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1386 @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) \
1387 $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1389 bin
/ldbdel
: $(BINARY_PREREQS
) $(LDBDEL_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1391 @
$(CC
) $(FLAGS
) -o
$@
$(LDBDEL_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1392 @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) \
1393 $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1395 bin
/libwbclient.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBWBCLIENT_OBJ
)
1396 @echo Linking shared library
$@
1397 @
$(SHLD_DSO
) $(LIBWBCLIENT_OBJ
) \
1398 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1399 @ln
-s
-f
`basename $@` $@.
$(SONAME_VER
)
1401 bin
/libwbclient.a
: $(BINARY_PREREQS
) $(LIBWBCLIENT_OBJ
)
1402 @echo Linking non-shared library
$@
1403 @
-$(AR
) -rc
$@
$(LIBWBCLIENT_OBJ
)
1405 bin
/libaddns.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBADDNS_OBJ
)
1406 @echo Linking shared library
$@
1407 @
$(SHLD_DSO
) $(LIBADDNS_OBJ
) $(LIBS
) \
1408 $(KRB5LIBS
) $(UUID_LIBS
)\
1409 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1411 bin
/libaddns.a
: $(BINARY_PREREQS
) $(LIBADDNS_OBJ
)
1412 @echo Linking non-shared library
$@
1413 @
-$(AR
) -rc
$@
$(LIBADDNS_OBJ
)
1415 bin
/libnetapi.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBNETAPI_OBJ
)
1416 @echo Linking shared library
$@
1417 @
$(SHLD_DSO
) $(LIBNETAPI_OBJ
) @LIBWBCLIENT_SHARED@
$(LIBS
) \
1418 $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
) \
1419 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1421 bin
/libnetapi.a
: $(BINARY_PREREQS
) $(LIBNETAPI_OBJ
)
1422 @echo Linking non-shared library
$@
1423 @
-$(AR
) -rc
$@
$(LIBNETAPI_OBJ
)
1425 bin
/libsmbclient.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
)
1426 @echo Linking shared library
$@
1427 @
$(SHLD_DSO
) $(LIBSMBCLIENT_OBJ
) @LIBWBCLIENT_SHARED@
$(LIBS
) \
1428 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1429 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1431 bin
/libsmbclient.a
: $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
)
1432 @echo Linking non-shared library
$@
1433 @
-$(AR
) -rc
$@
$(LIBSMBCLIENT_OBJ
)
1435 bin
/libsmbsharemodes.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
)
1436 @echo Linking shared library
$@
1437 @
$(SHLD_DSO
) $(LIBSMBSHAREMODES_OBJ
) $(LIBS
) \
1438 $(KRB5LIBS
) $(LDAP_LIBS
) \
1439 @SONAMEFLAG@
`basename $@`.
$(SONAME_VER
)
1441 bin
/libsmbsharemodes.a
: $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
)
1442 @echo Linking non-shared library
$@
1443 @
-$(AR
) -rc
$@
$(LIBSMBSHAREMODES_OBJ
)
1445 # This is probably wrong for anything other than the GNU linker.
1446 bin
/libbigballofmud.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBBIGBALLOFMUD_OBJ
)
1447 @echo Linking shared library
$@
1448 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_OBJ
) $(LIBS
) \
1449 $(PASSDB_LIBS
) $(IDMAP_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1450 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
1451 ln
-snf libbigballofmud.so bin
/libbigballofmud.so
.0
1453 # It would be nice to build a static bigballofmud too, but when I try
1454 # I get linker errors about dl_open and similar things. I'm not sure if
1455 # it can be fixed or if they just can't be called from a static
1458 libsmbclient
: $(LIBSMBCLIENT
)
1459 libsmbsharemodes
: $(LIBSMBSHAREMODES
)
1460 libaddns
: $(LIBADDNS
)
1461 libwbclient
: $(LIBWBCLIENT
)
1462 libnetapi
: $(LIBNETAPI
)
1464 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1465 SHLD_MODULE
= $(SHLD
) $(LDSHFLAGS
) $(MODULE_EXPORTS
) \
1466 -o
$@ @SONAMEFLAG@
`basename $@`
1468 bin
/librpc_lsarpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_OBJ
)
1470 @
$(SHLD_MODULE
) $(RPC_LSA_OBJ
)
1472 bin
/librpc_samr.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SAMR_OBJ
)
1474 @
$(SHLD_MODULE
) $(RPC_SAMR_OBJ
)
1476 bin
/librpc_unixinfo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_UNIXINFO_OBJ
)
1478 @
$(SHLD_MODULE
) $(RPC_UNIXINFO_OBJ
)
1480 bin
/librpc_srvsvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVC_OBJ
)
1482 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1484 bin
/librpc_svcctl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVCCTL_OBJ
)
1486 @
$(SHLD_MODULE
) $(RPC_SVCCTL_OBJ
)
1488 bin
/librpc_ntsvcs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NTSVCS_OBJ
)
1490 @
$(SHLD_MODULE
) $(RPC_NTSVCS_OBJ
)
1492 bin
/librpc_wkssvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_WKS_OBJ
)
1494 @
$(SHLD_MODULE
) $(RPC_WKS_OBJ
)
1496 bin
/librpc_NETLOGON.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NETLOG_OBJ
)
1498 @
$(SHLD_MODULE
) $(RPC_NETLOG_OBJ
)
1500 bin
/librpc_winreg.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_REG_OBJ
)
1502 @
$(SHLD_MODULE
) $(RPC_REG_OBJ
)
1504 bin
/librpc_initshutdown.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_INITSHUTDOWN_OBJ
)
1506 @
$(SHLD_MODULE
) $(RPC_INITSHUTDOWN_OBJ
)
1508 bin
/librpc_lsa_ds.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_DS_OBJ
)
1510 @
$(SHLD_MODULE
) $(RPC_LSA_DS_OBJ
)
1512 bin
/librpc_spoolss.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SPOOLSS_OBJ
)
1514 @
$(SHLD_MODULE
) $(RPC_SPOOLSS_OBJ
)
1516 bin
/librpc_eventlog.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EVENTLOG_OBJ
)
1518 @
$(SHLD_MODULE
) $(RPC_EVENTLOG_OBJ
)
1520 bin
/librpc_netdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_DFS_OBJ
)
1522 @
$(SHLD_MODULE
) $(RPC_DFS_OBJ
)
1524 bin
/librpc_echo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_ECHO_OBJ
)
1526 @
$(SHLD_MODULE
) $(RPC_ECHO_OBJ
)
1528 bin
/winbindd@EXEEXT@
: $(BINARY_PREREQS
) $(WINBINDD_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1530 @
$(CC
) $(FLAGS
) -o
$@
$(WINBINDD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1531 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) \
1534 bin
/vlp@EXEEXT@
: $(BINARY_PREREQS
) $(VLP_OBJ
) @LIBWBCLIENT_SHARED@
1536 @
$(CC
) $(FLAGS
) -o
$@
$(VLP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@ \
1537 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) @LIBWBCLIENT_SHARED@
1539 @WINBIND_NSS@
: $(BINARY_PREREQS
) $(WINBIND_NSS_OBJ
)
1541 @
$(SHLD
) $(WINBIND_NSS_LDSHFLAGS
) -o
$@
$(WINBIND_NSS_OBJ
) \
1542 @WINBIND_NSS_EXTRA_LIBS@ @WINBIND_NSS_PTHREAD@ @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1544 @WINBIND_WINS_NSS@
: $(BINARY_PREREQS
) $(WINBIND_WINS_NSS_OBJ
)
1546 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_WINS_NSS_OBJ
) \
1547 $(LDAP_LIBS
) $(KRB5LIBS
) $(LIBS
) \
1548 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1550 bin
/winbind_krb5_locator.@SHLIBEXT@
: $(BINARY_PREREQS
) $(WINBIND_KRB5_LOCATOR_OBJ
)
1552 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_KRB5_LOCATOR_OBJ
) \
1553 @SONAMEFLAG@
`basename $@`
1555 bin
/pam_winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_WINBIND_OBJ
)
1556 @echo
"Linking shared library $@"
1557 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) -lpam @INIPARSERLIBS@ \
1558 @SONAMEFLAG@
`basename $@`
1560 bin
/builtin.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_BUILTIN_OBJ
)
1561 @echo
"Building plugin $@"
1562 @
$(SHLD_MODULE
) $(AUTH_BUILTIN_OBJ
)
1564 bin
/domain.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_DOMAIN_OBJ
)
1565 @echo
"Building plugin $@"
1566 @
$(SHLD_MODULE
) $(AUTH_DOMAIN_OBJ
)
1568 bin
/script.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SCRIPT_OBJ
)
1569 @echo
"Building plugin $@"
1570 @
$(SHLD_MODULE
) $(AUTH_SCRIPT_OBJ
)
1572 bin
/smbserver.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SERVER_OBJ
)
1573 @echo
"Building plugin $@"
1574 @
$(SHLD_MODULE
) $(AUTH_SERVER_OBJ
)
1576 bin
/winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_WINBIND_OBJ
)
1577 @echo
"Building plugin $@"
1578 @
$(SHLD_MODULE
) $(AUTH_WINBIND_OBJ
)
1580 bin
/unix.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_UNIX_OBJ
)
1581 @echo
"Building plugin $@"
1582 @
$(SHLD_MODULE
) $(AUTH_UNIX_OBJ
)
1584 bin
/sam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SAM_OBJ
)
1585 @echo
"Building plugin $@"
1586 @
$(SHLD_MODULE
) $(AUTH_SAM_OBJ
)
1588 bin
/ldapsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
1589 @echo
"Building plugin $@"
1590 @
$(SHLD_MODULE
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
$(LDAP_LIBS
)
1592 bin
/tdbsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_tdb.o
1593 @echo
"Building plugin $@"
1594 @
$(SHLD_MODULE
) passdb
/pdb_tdb.o
1596 bin
/smbpasswd.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_smbpasswd.o
1597 @echo
"Building plugin $@"
1598 @
$(SHLD_MODULE
) passdb
/pdb_smbpasswd.o
1600 bin
/rid.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_rid.o
1601 @echo
"Building plugin $@"
1602 @
$(SHLD_MODULE
) winbindd
/idmap_rid.o
1604 bin
/ad.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_ad.o
1605 @echo
"Building plugin $@"
1606 @
$(SHLD_MODULE
) winbindd
/idmap_ad.o
1608 bin
/ldap.@SHLIBEXT@
: $(BINARY_PREREQS
) winbindd
/idmap_ldap.o
1609 @echo
"Building plugin $@"
1610 @
$(SHLD_MODULE
) winbindd
/idmap_ldap.o
1612 bin
/weird.@SHLIBEXT@
: $(BINARY_PREREQS
) $(DEVEL_HELP_WEIRD_OBJ
)
1613 @echo
"Building plugin $@"
1614 @
$(SHLD_MODULE
) $(DEVEL_HELP_WEIRD_OBJ
)
1616 bin
/CP850.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP850_OBJ
)
1617 @echo
"Building plugin $@"
1618 @
$(SHLD_MODULE
) $(CP850_OBJ
)
1620 bin
/CP437.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP437_OBJ
)
1621 @echo
"Building plugin $@"
1622 @
$(SHLD_MODULE
) $(CP437_OBJ
)
1624 bin
/macosxfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CHARSET_MACOSXFS_OBJ
)
1625 @echo
"Building plugin $@"
1626 @
$(SHLD_MODULE
) $(CHARSET_MACOSXFS_OBJ
) -framework CoreFoundation
1628 # NOTE, there is no build rule for a dynamic default VFS module because
1629 # this one MUST MUST MUST be built statically.
1631 bin
/audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AUDIT_OBJ
)
1632 @echo
"Building plugin $@"
1633 @
$(SHLD_MODULE
) $(VFS_AUDIT_OBJ
)
1635 bin
/extd_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXTD_AUDIT_OBJ
)
1636 @echo
"Building plugin $@"
1637 @
$(SHLD_MODULE
) $(VFS_EXTD_AUDIT_OBJ
)
1639 bin
/full_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FULL_AUDIT_OBJ
)
1640 @echo
"Building plugin $@"
1641 @
$(SHLD_MODULE
) $(VFS_FULL_AUDIT_OBJ
)
1643 bin
/recycle.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_RECYCLE_OBJ
)
1644 @echo
"Building plugin $@"
1645 @
$(SHLD_MODULE
) $(VFS_RECYCLE_OBJ
)
1647 bin
/netatalk.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NETATALK_OBJ
)
1648 @echo
"Building plugin $@"
1649 @
$(SHLD_MODULE
) $(VFS_NETATALK_OBJ
)
1651 bin
/fake_perms.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FAKE_PERMS_OBJ
)
1652 @echo
"Building plugin $@"
1653 @
$(SHLD_MODULE
) $(VFS_FAKE_PERMS_OBJ
)
1655 bin
/default_quota.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_DEFAULT_QUOTA_OBJ
)
1656 @echo
"Building plugin $@"
1657 @
$(SHLD_MODULE
) $(VFS_DEFAULT_QUOTA_OBJ
)
1659 bin
/readonly.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READONLY_OBJ
)
1660 @echo
"Building plugin $@"
1661 @
$(SHLD_MODULE
) $(VFS_READONLY_OBJ
)
1663 bin
/shadow_copy.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SHADOW_COPY_OBJ
)
1664 @echo
"Building plugin $@"
1665 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY_OBJ
)
1667 bin
/syncops.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SYNCOPS_OBJ
)
1668 @echo
"Building plugin $@"
1669 @
$(SHLD_MODULE
) $(VFS_SYNCOPS_OBJ
)
1671 bin
/cap.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CAP_OBJ
)
1672 @echo
"Building plugin $@"
1673 @
$(SHLD_MODULE
) $(VFS_CAP_OBJ
)
1675 bin
/expand_msdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXPAND_MSDFS_OBJ
)
1676 @echo
"Building plugin $@"
1677 @
$(SHLD_MODULE
) $(VFS_EXPAND_MSDFS_OBJ
)
1679 bin
/afsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AFSACL_OBJ
)
1680 @echo
"Building plugin $@"
1681 @
$(SHLD_MODULE
) $(VFS_AFSACL_OBJ
)
1683 bin
/posixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_POSIXACL_OBJ
)
1684 @echo
"Building plugin $@"
1685 @
$(SHLD_MODULE
) $(VFS_POSIXACL_OBJ
)
1687 bin
/aixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL_OBJ
)
1688 @echo
"Building plugin $@"
1689 @
$(SHLD_MODULE
) $(VFS_AIXACL_OBJ
)
1691 bin
/aixacl2.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL2_OBJ
)
1692 @echo
"Building plugin $@"
1693 @
$(SHLD_MODULE
) $(VFS_AIXACL2_OBJ
)
1695 bin
/solarisacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SOLARISACL_OBJ
)
1696 @echo
"Building plugin $@"
1697 @
$(SHLD_MODULE
) $(VFS_SOLARISACL_OBJ
)
1699 bin
/zfsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_ZFSACL_OBJ
)
1700 @echo
"Building plugin $@"
1701 @
$(SHLD_MODULE
) $(VFS_ZFSACL_OBJ
)
1703 bin
/irixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_IRIXACL_OBJ
)
1704 @echo
"Building plugin $@"
1705 @
$(SHLD_MODULE
) $(VFS_IRIXACL_OBJ
)
1707 bin
/hpuxacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_HPUXACL_OBJ
)
1708 @echo
"Building plugin $@"
1709 @
$(SHLD_MODULE
) $(VFS_HPUXACL_OBJ
)
1711 bin
/tru64acl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_TRU64ACL_OBJ
)
1712 @echo
"Building plugin $@"
1713 @
$(SHLD_MODULE
) $(VFS_TRU64ACL_OBJ
)
1715 bin
/catia.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CATIA_OBJ
)
1716 @echo
"Building plugin $@"
1717 @
$(SHLD_MODULE
) $(VFS_CATIA_OBJ
)
1719 bin
/cacheprime.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CACHEPRIME_OBJ
)
1720 @echo
"Building plugin $@"
1721 @
$(SHLD_MODULE
) $(VFS_CACHEPRIME_OBJ
)
1723 bin
/prealloc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_PREALLOC_OBJ
)
1724 @echo
"Building plugin $@"
1725 @
$(SHLD_MODULE
) $(VFS_PREALLOC_OBJ
)
1727 bin
/commit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_COMMIT_OBJ
)
1728 @echo
"Building plugin $@"
1729 @
$(SHLD_MODULE
) $(VFS_COMMIT_OBJ
)
1731 bin
/gpfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_GPFS_OBJ
)
1732 @echo
"Building plugin $@"
1733 @
$(SHLD_MODULE
) $(VFS_GPFS_OBJ
)
1735 bin
/notify_fam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NOTIFY_FAM_OBJ
)
1736 @echo
"Building plugin $@"
1737 @
$(SHLD_MODULE
) $(VFS_NOTIFY_FAM_OBJ
) @SMB_FAM_LIBS@
1739 bin
/readahead.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READAHEAD_OBJ
)
1740 @echo
"Building plugin $@"
1741 @
$(SHLD_MODULE
) $(VFS_READAHEAD_OBJ
)
1743 bin
/fileid.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FILEID_OBJ
)
1744 @echo
"Building plugin $@"
1745 @
$(SHLD_MODULE
) $(VFS_FILEID_OBJ
)
1747 #########################################################
1748 ## IdMap NSS plugins
1750 ## None here right now
1751 #########################################################
1753 bin
/wbinfo@EXEEXT@
: $(BINARY_PREREQS
) $(WBINFO_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1755 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(WBINFO_OBJ
) $(DYNEXP
) $(LIBS
) \
1756 $(LDAP_LIBS
) @POPTLIBS@ @WINBIND_LIBS@
1758 bin
/ntlm_auth@EXEEXT@
: $(BINARY_PREREQS
) $(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) \
1759 $(LIB_NONSMBD_OBJ
) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
1761 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(NTLM_AUTH_OBJ
) \
1762 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBS
) \
1763 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) @WINBIND_LIBS@
1765 bin
/pam_smbpass.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_SMBPASS_OBJ
)
1766 @echo
"Linking shared library $@"
1767 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_OBJ
) -lpam
$(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
)
1769 bin
/tdbbackup@EXEEXT@
: $(BINARY_PREREQS
) $(TDBBACKUP_OBJ
)
1771 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBBACKUP_OBJ
)
1773 bin
/tdbtool@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTOOL_OBJ
)
1775 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTOOL_OBJ
)
1777 bin
/tdbdump@EXEEXT@
: $(BINARY_PREREQS
) $(TDBDUMP_OBJ
)
1779 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBDUMP_OBJ
)
1781 bin
/tdbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTORTURE_OBJ
)
1783 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTORTURE_OBJ
)
1785 bin
/t_strcmp@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strcmp.o
1786 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strcmp.o
-L .
/bin
-lbigballofmud
1788 bin
/t_strstr@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strstr.o
1789 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strstr.o
-L .
/bin
-lbigballofmud
1791 bin
/t_strappend@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strappend.o
1792 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strappend.o
-L .
/bin
-lbigballofmud
1794 bin
/t_stringoverflow@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_stringoverflow.o
1795 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) torture
/t_stringoverflow.o
-L.
/bin
-lbigballofmud
1797 bin
/timelimit@EXEEXT@
: script
/tests
/timelimit.o
1799 @
$(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) script
/tests
/timelimit.o
1801 install: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSSPNEGO@ installman \
1802 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
1803 @INSTALL_LIBSMBCLIENT@ @INSTALL_PAM_MODULES@ \
1804 @INSTALL_LIBSMBSHAREMODES@ @INSTALL_LIBWBCLIENT@ @INSTALL_LIBNETAPI@
1806 install-everything
: install installmodules
1808 # DESTDIR is used here to prevent packagers wasting their time
1809 # duplicating the Makefile. Remove it and you will have the privelege
1810 # of package each samba release for muliple versions of multiple
1811 # distributions and operating systems, or at least supplying patches
1812 # to all the packaging files required for this, prior to committing
1813 # the removal of DESTDIR. Do not remove it even though you think it
1817 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
) $(PIDDIR
) $(LOCKDIR
) $(MANDIR
)
1819 installservers
: all installdirs
1820 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1822 installbin
: all installdirs
1823 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1825 installcifsmount
: @CIFSMOUNT_PROGS@
1826 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(ROOTSBINDIR
)
1827 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1829 installcifsspnego
: @CIFSSPNEGO_PROGS@
1830 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(ROOTSBINDIR
)
1831 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSSPNEGO_PROGS@
1833 # Some symlinks are required for the 'probing' of modules.
1834 # This mechanism should go at some point..
1835 installmodules
: modules
installdirs
1836 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1837 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1838 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1839 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1840 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(NSSINFOLIBDIR
) $(NSS_INFO_MODULES
)
1841 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1842 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1843 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
1844 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
1845 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1846 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1847 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1848 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1849 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1850 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(NSSINFOLIBDIR
) ..
/idmap
/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
1852 installscripts
: installdirs
1853 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1855 installdat
: installdirs
1856 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
) $(CODEPAGEDIR
) $(srcdir)
1858 installmsg
: installdirs
1859 @
$(SHELL
) $(srcdir)/script
/installmsg.sh
$(DESTDIR
) $(CODEPAGEDIR
) $(srcdir)
1861 installswat
: installdirs installmsg
1862 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1864 installclientlib
: installdirs libsmbclient
1865 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1866 -$(INSTALLLIBCMD_SH
) bin
/libsmbclient.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1867 -$(INSTALLLIBCMD_A
) bin
/libsmbclient.a
$(DESTDIR
)$(LIBDIR
)
1868 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1869 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/libsmbclient.h
$(DESTDIR
)${prefix}/include
1871 installlibsmbsharemodes
: installdirs libsmbsharemodes
1872 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1873 -$(INSTALLLIBCMD_SH
) bin
/libsmbsharemodes.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1874 -$(INSTALLLIBCMD_A
) bin
/libsmbsharemodes.a
$(DESTDIR
)$(LIBDIR
)
1875 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/smb_share_modes.h
$(DESTDIR
)${prefix}/include
1877 installlibaddns
: installdirs libaddns
1878 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1879 -$(INSTALLLIBCMD_SH
) bin
/libaddns.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1880 -$(INSTALLLIBCMD_A
) bin
/libaddns.a
$(DESTDIR
)$(LIBDIR
)
1882 installlibwbclient
: installdirs libwbclient
1883 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
) $(INCLUDEDIR
)/samba
1884 -$(INSTALLLIBCMD_SH
) bin
/libwbclient.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1885 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/nsswitch
/libwbclient
/wbclient.h
$(DESTDIR
)${prefix}/include/samba
1887 installlibnetapi
: installdirs libnetapi
1888 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1889 -$(INSTALLLIBCMD_SH
) bin
/libnetapi.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1890 -$(INSTALLLIBCMD_A
) bin
/libnetapi.a
$(DESTDIR
)$(LIBDIR
)
1891 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/lib
/netapi
/netapi.h
$(DESTDIR
)${prefix}/include
1893 installpammodules
: $(PAM_MODULES
)
1894 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(PAMMODULESDIR
)
1895 @for module in
$(PAM_MODULES
); do \
1896 echo
"Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1897 $(INSTALLCMD
) -m
$(INSTALLPERMS_BIN
) bin
/$${module}.@SHLIBEXT@ \
1898 "$(DESTDIR)/$(PAMMODULESDIR)"; \
1901 # revert to the previously installed version
1903 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
1904 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
1906 installman
: installdirs
1907 @SMBMOUNT_PROGS
="@SMBMOUNT_PROGS@" $(SHELL
) \
1908 $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
"@ROFF@"
1913 @echo
"Samba will be installed into:"
1914 @echo
" prefix: $(prefix)"
1915 @echo
" bindir: $(BINDIR)"
1916 @echo
" sbindir: $(SBINDIR)"
1917 @echo
" libdir: $(LIBDIR)"
1918 @echo
" vardir: $(VARDIR)"
1919 @echo
" mandir: $(MANDIR)"
1920 @echo
" privatedir: $(PRIVATE_DIR)"
1921 @echo
" configdir: $(CONFIGDIR)"
1922 @echo
" lockdir: $(LOCKDIR)"
1923 @echo
" piddir: $(PIDDIR)"
1924 @echo
" swatdir: $(SWATDIR)"
1927 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSSPNEGO@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@ @UNINSTALL_LIBNETAPI@
1930 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
1933 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1936 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1939 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1941 uninstallcifsspnego
:
1942 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSSPNEGO_PROGS@
1945 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1946 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1947 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1948 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1949 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1950 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1953 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1956 @
$(SHELL
) $(srcdir)/script
/uninstalldat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1959 @
$(SHELL
) $(srcdir)/script
/uninstallmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1961 uninstallswat
: uninstallmsg
1962 @
$(SHELL
) $(srcdir)/script
/uninstallswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1965 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.@SHLIBEXT@
1966 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.a
1967 -rm -f
$(DESTDIR
)${prefix}/include/libsmbclient.h
1969 uninstalllibsmbsharemodes
:
1970 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.@SHLIBEXT@
1971 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.a
1974 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libaddns.@SHLIBEXT@
1975 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libaddns.a
1978 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libnetapi.@SHLIBEXT@
1979 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libnetapi.a
1980 -rm -f
$(DESTDIR
)${prefix}/include/netapi.h
1982 uninstallpammodules
:
1983 @for module in
$(PAM_MODULES
); do \
1984 echo
"Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1985 rm -f
"$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
1988 # Toplevel clean files
1989 TOPFILES
=dynconfig.o
1992 -rm -f
$(PRECOMPILED_HEADER
)
1993 -rm -f core
*/*~
*~ \
1994 */*.o
*/*/*.o
*/*/*/*.o \
1995 ..
/testsuite
/*/*.o \
1996 */*.@SHLIBEXT@
*/*/*.@SHLIBEXT@
*/*/*/*.@SHLIBEXT@ \
1997 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1998 $(MODULES
) $(TORTURE_PROGS
) $(LIBSMBCLIENT
) $(LIBADDNS
) \
1999 $(LIBSMBSHAREMODES
) $(EVERYTHING_PROGS
) $(LIBNETAPI
) \
2000 bin
/libwbclient.so
.0 bin
/timelimit \
2001 .headers.stamp
*/src
/*.o proto_exists
2004 # Making this target will just make sure that the prototype files
2005 # exist, not necessarily that they are up to date. Since they're
2006 # removed by "make clean" this will always be run when you do anything
2008 proto_exists
: include/proto.h
include/build_env.h \
2009 winbindd
/winbindd_proto.h web
/swat_proto.h \
2010 libnet
/libnet_proto.h \
2011 client
/client_proto.h utils
/net_proto.h utils
/ntlm_auth_proto.h smbd
/build_options.c
2015 @echo Removing prototype headers
2016 @
rm -f
include/proto.h
include/build_env.h \
2017 winbindd
/winbindd_proto.h web
/swat_proto.h \
2018 client
/client_proto.h utils
/net_proto.h \
2019 smbd
/build_options.c utils
/ntlm_auth_proto.h \
2020 utils
/passwd_proto.h libnet
/libnet_proto.h
2022 MKPROTO_SH
= $(srcdir)/script
/mkproto.sh
2024 include/proto.h
: smbd
/build_options.c
2025 @echo Building
include/proto.h
2026 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2027 -h _PROTO_H_
$(builddir
)/include/proto.h \
2030 include/build_env.h
: script
/build_env.sh
2031 @echo Building
include/build_env.h
2032 @
$(SHELL
) $(srcdir)/script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) \
2033 > $(builddir
)/include/build_env.h
2035 winbindd
/winbindd_proto.h
:
2036 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2037 -h _WINBINDD_PROTO_H_
$(builddir
)/winbindd
/winbindd_proto.h \
2041 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2042 -h _SWAT_PROTO_H_
$(builddir
)/web
/swat_proto.h \
2045 client
/client_proto.h
:
2046 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2047 -h _CLIENT_PROTO_H_
$(builddir
)/client
/client_proto.h \
2051 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2052 -h _NET_PROTO_H_
$(builddir
)/utils
/net_proto.h \
2055 utils
/passwd_proto.h
:
2056 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2057 -h _PASSWD_PROTO_H_
$(builddir
)/utils
/passwd_proto.h \
2060 utils
/ntlm_auth_proto.h
:
2061 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2062 -h _NTLM_AUTH_PROTO_H_
$(builddir
)/utils
/ntlm_auth_proto.h \
2065 libnet
/libnet_proto.h
:
2066 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2067 -h _LIBNET_PROTO_H_
$(builddir
)/libnet
/libnet_proto.h \
2070 # "make headers" or "make proto" calls a subshell because we need to
2071 # make sure these commands are executed in sequence even for a
2074 $(MAKE
) delheaders
; \
2075 $(MAKE
) smbd
/build_options.c
; \
2076 $(MAKE
) include/proto.h
; \
2077 $(MAKE
) include/build_env.h
; \
2078 $(MAKE
) winbindd
/winbindd_proto.h
; \
2079 $(MAKE
) web
/swat_proto.h
; \
2080 $(MAKE
) client
/client_proto.h
; \
2081 $(MAKE
) utils
/ntlm_auth_proto.h
; \
2082 $(MAKE
) utils
/net_proto.h
; \
2083 $(MAKE
) utils
/passwd_proto.h
; \
2084 $(MAKE
) libnet
/libnet_proto.h
;
2088 .PHONY
: headers proto
2091 etags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2094 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2096 realclean: clean delheaders
2097 -rm -f config.log bin
/.dummy script
/findsmb script
/gen-8bit-gap.sh
2098 -rm -f script
/installbin.sh script
/uninstallbin.sh
2100 distclean: realclean
2102 -rm -f
include/config.h Makefile
2103 -rm -f config.status config.cache so_locations
2106 realdistclean
: distclean
2107 -rm -f
include/config.h.in
2108 -rm -f
include/version.h
2111 # this target is really just for my use. It only works on a limited
2112 # range of machines and is used to produce a list of potentially
2113 # dead (ie. unused) functions in the code. (tridge)
2115 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
2116 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
2117 comm
-13 nmused.txt nmfns.txt
2120 # when configure.in is updated, reconfigure
2121 $(srcdir)/configure
: $(srcdir)/configure.in
2122 @echo
"WARNING: you need to rerun ./autogen.sh"
2124 config.status
: $(srcdir)/configure
2125 @echo
"WARNING: you need to run ./configure"
2127 Makefile
: $(srcdir)/Makefile.in config.status
2128 @echo
"WARNING: you need to run ./config.status"
2130 ######################################################################
2131 # Samba Testing Framework
2133 # Check shared libs for unresolved symbols
2134 test_shlibs
: $(SHLIBS
)
2135 @echo
"Testing $(SHLIBS) "
2136 @for module in
$(SHLIBS
); do \
2137 .
/script
/tests
/dlopen.sh bin
/$${module}.@SHLIBEXT@ \
2141 # Check for NSS module problems.
2142 test_nss_modules
: nss_modules
2143 @echo
"Testing $(NSS_MODULES) "
2144 @for module in
$(NSS_MODULES
); do \
2145 .
/script
/tests
/dlopen.sh
$${module} \
2149 # Check for PAM module problems. Specifically, check that every module we
2150 # built can actually be loaded by a minimal PAM-aware application.
2151 test_pam_modules
: pam_modules
2152 @echo
"Testing $(PAM_MODULES) "
2153 @for module in
$(PAM_MODULES
); do \
2154 .
/script
/tests
/dlopen.sh
-lpam
-ldl bin
/$${module}.@SHLIBEXT@ \
2159 ## Targets for 'make test'
2161 test: all torture timelimit
2162 @echo Running Test suite
2163 @PERL
="$(PERL)" $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"
2165 valgrindtest
: all torture timelimit
2166 @echo Running Test suite with valgrind
2167 @NMBD_VALGRIND
="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2168 WINBINDD_VALGRIND
="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2169 SMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2170 VALGRIND
="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/st/valgrind.log" \
2171 PERL
="$(PERL)" $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"