1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 ###########################################################################
12 exec_prefix=@
exec_prefix@
13 sysconfdir
=@sysconfdir@
14 localstatedir
=@localstatedir@
15 datarootdir
=@datarootdir@
17 selftest_prefix
=@selftest_prefix@
18 smbtorture4_path
=@smbtorture4_path@
24 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
25 # (GCC) warnings. This is done automtically for --enable-developer
26 # and --enable-krb5developer.
27 DEVELOPER_CFLAGS
=@DEVELOPER_CFLAGS@
29 CPPFLAGS
=-DHAVE_CONFIG_H @CPPFLAGS@
32 LDFLAGS
=@PIE_LDFLAGS@ @LDFLAGS@
34 LDSHFLAGS
=@LDSHFLAGS@ @LDFLAGS@
36 # The MODULE_EXPORTS variable conatins the platform-specific linker flags
37 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
38 MODULE_EXPORTS
=@MODULE_EXPORTS@
40 WINBIND_NSS_LDSHFLAGS
=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
49 TERMLDFLAGS
=@TERMLDFLAGS@
51 PRINT_LIBS
=@PRINT_LIBS@
54 PASSDB_LIBS
=@PASSDB_LIBS@
55 IDMAP_LIBS
=@IDMAP_LIBS@
62 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
63 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
64 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
65 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
69 builddir
=@abs_builddir@
73 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
74 # will search for a POSIX-compliant shell, and that might not be
75 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
77 # See the autoconf manual "Installation Directory Variables" for a
78 # discussion of the subtle use of these variables.
82 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
84 ROOTSBINDIR
= @rootsbindir@
86 PAMMODULESDIR
= @pammodulesdir@
87 VFSLIBDIR
= $(LIBDIR
)/vfs
88 PDBLIBDIR
= $(LIBDIR
)/pdb
89 RPCLIBDIR
= $(LIBDIR
)/rpc
90 IDMAPLIBDIR
= $(LIBDIR
)/idmap
91 NSSINFOLIBDIR
= $(LIBDIR
)/nss_info
92 CHARSETLIBDIR
= $(LIBDIR
)/charset
93 AUTHLIBDIR
= $(LIBDIR
)/auth
94 CONFIGLIBDIR
= $(LIBDIR
)/config
95 CONFIGDIR
= @configdir@
96 VARDIR
= @localstatedir@
100 # The permissions to give the executables and other data
101 INSTALLPERMS_BIN
= 0755
102 INSTALLPERMS_DATA
= 0644
104 # set these to where to find various files
105 # These can be overridden by command line switches (see smbd(8))
106 # or in smb.conf (see smb.conf(5))
107 LOGFILEBASE
= @logfilebase@
108 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
109 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
112 # This is where smbpasswd et al go
113 PRIVATEDIR
= @privatedir@
115 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
116 PRIVATE_DIR
= $(PRIVATEDIR
)
118 # This is where SWAT images and help files go
121 # the directory where lock files go
124 # the directory where pid files go
127 LIBSMBCLIENT
=bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
131 LIBMSRPC
=bin
/libmsrpc.a @LIBMSRPC_SHARED@
135 LIBSMBSHAREMODES
=bin
/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
136 LIBSMBSHAREMODES_MAJOR
=0
137 LIBSMBSHAREMODES_MINOR
=2
139 LIBADDNS
=bin
/libaddns.a @LIBADDNS_SHARED@
143 FLAGS1
= $(CFLAGS
) @FLAGS1@ @SAMBA_CPPFLAGS@
$(CPPFLAGS
)
146 FLAGS4
= -I
$(CTDBDIR
)/include
147 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
148 FLAGS
= $(ISA
) $(FLAGS5
) -I
$(srcdir)/lib
-D_SAMBA_BUILD_
=3
150 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
151 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
152 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
153 -DSBINDIR
=\"$(SBINDIR
)\" \
154 -DBINDIR
=\"$(BINDIR
)\" \
155 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
156 -DSWATDIR
=\"$(SWATDIR
)\" \
157 -DLOCKDIR
=\"$(LOCKDIR
)\" \
158 -DPIDDIR
=\"$(PIDDIR
)\" \
159 -DLIBDIR
=\"$(LIBDIR
)\" \
160 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
161 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
162 -DCTDBDIR
=\"$(CTDBDIR
)\" \
163 -DCONFIGDIR
=\"$(CONFIGDIR
)\"
165 # Note that all executable programs now provide for an optional executable suffix.
167 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
169 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@
171 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
172 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
173 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
174 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
176 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
177 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ \
178 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
179 BIN_PROGS4
= bin
/ldbedit@EXEEXT@ bin
/ldbsearch@EXEEXT@ bin
/ldbadd@EXEEXT@ \
180 bin
/ldbdel@EXEEXT@ bin
/ldbmodify@EXEEXT@
182 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
183 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
184 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
185 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
186 bin
/tdbtorture@EXEEXT@
188 BIN_PROGS
= @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@ \
189 $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) $(BIN_PROGS4
)
191 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
192 bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
193 bin
/log2pcap@EXEEXT@ bin
/sharesec@EXEEXT@ bin
/ndrdump@EXEEXT@
195 SHLIBS
= @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@ @LIBADDNS@
197 PAM_MODULES
= @PAM_MODULES@
199 NSS_MODULES
= @NSS_MODULES@
201 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
203 VFS_MODULES
= @VFS_MODULES@
204 PDB_MODULES
= @PDB_MODULES@
205 RPC_MODULES
= @RPC_MODULES@
206 IDMAP_MODULES
= @IDMAP_MODULES@
207 CHARSET_MODULES
= @CHARSET_MODULES@
208 AUTH_MODULES
= @AUTH_MODULES@
209 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
210 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
211 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
)
213 ######################################################################
215 ######################################################################
217 TDBBASE_OBJ
= lib
/tdb
/common
/tdb.o lib
/tdb
/common
/dump.o lib
/tdb
/common
/error.o \
218 lib
/tdb
/common
/freelist.o lib
/tdb
/common
/freelistcheck.o \
219 lib
/tdb
/common
/io.o lib
/tdb
/common
/lock.o \
220 lib
/tdb
/common
/open.o lib
/tdb
/common
/transaction.o \
221 lib
/tdb
/common
/traverse.o
223 TDB_OBJ
= $(TDBBASE_OBJ
) lib
/util_tdb.o\
224 lib
/dbwrap.o lib
/dbwrap_tdb.o lib
/dbwrap_ctdb.o
226 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
228 VERSION_OBJ
= lib
/version.o
230 DOSERR_OBJ
= libsmb
/doserr.o
232 WBCOMMON_OBJ
= nsswitch
/wb_common.o
236 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
238 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
240 ERRORMAP_OBJ
= libsmb
/errormap.o
242 PASSCHANGE_OBJ
= libsmb
/passchange.o
245 LIBNDR_OBJ
= librpc
/ndr
/ndr_basic.o librpc
/ndr
/ndr.o librpc
/ndr
/ndr_misc.o \
246 librpc
/ndr
/ndr_sec_helper.o librpc
/ndr
/ndr_string.o librpc
/ndr
/sid.o
248 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
250 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_unixinfo.o librpc
/gen_ndr
/ndr_lsa.o \
251 librpc
/gen_ndr
/ndr_dfs.o librpc
/gen_ndr
/ndr_echo.o \
252 librpc
/gen_ndr
/ndr_winreg.o librpc
/gen_ndr
/ndr_initshutdown.o \
253 librpc
/gen_ndr
/ndr_srvsvc.o librpc
/gen_ndr
/ndr_svcctl.o \
254 librpc
/gen_ndr
/ndr_eventlog.o librpc
/gen_ndr
/ndr_wkssvc.o \
255 librpc
/gen_ndr
/ndr_notify.o \
256 librpc
/gen_ndr
/ndr_epmapper.o
258 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
260 # this includes only the low level parse code, not stuff
261 # that requires knowledge of security contexts
262 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
) rpc_parse
/parse_sec.o
264 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o rpc_parse
/parse_net.o
266 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
268 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
270 TALLOC_OBJ
= lib
/talloc
/talloc.o
273 LIB_WITHOUT_PROTO_OBJ
= $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) $(TALLOC_OBJ
) \
274 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
275 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o
277 LIB_WITH_PROTO_OBJ
= $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
278 lib
/interface.o lib
/md4.o \
279 lib
/interfaces.o lib
/pidfile.o \
280 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/time.o \
281 lib
/ufc.o lib
/genrand.o lib
/username.o \
282 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
283 lib
/bitmap.o lib
/crc32.o lib
/dprintf.o \
284 lib
/xfile.o lib
/wins_srv.o
$(UTIL_REG_OBJ
) \
285 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
286 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
287 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
288 lib
/substitute.o lib
/fsusage.o \
289 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
290 lib
/tallocmsg.o lib
/dmallocmsg.o libsmb
/smb_signing.o \
291 lib
/md5.o lib
/hmacmd5.o lib
/arc4.o lib
/iconv.o \
292 nsswitch
/wb_client.o
$(WBCOMMON_OBJ
) \
293 lib
/pam_errors.o intl
/lang_tdb.o lib
/conn_tdb.o \
294 lib
/adt_tree.o lib
/gencache.o
$(TDB_OBJ
) \
295 lib
/module.o lib
/events.o lib
/ldap_escape.o @CHARSET_STATIC@ \
296 lib
/secdesc.o lib
/util_seaccess.o lib
/secace.o lib
/secacl.o \
297 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
300 LIB_OBJ
= $(LIB_WITHOUT_PROTO_OBJ
) $(LIB_WITH_PROTO_OBJ
)
302 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
303 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
305 READLINE_OBJ
= lib
/readline.o
307 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
308 # Be sure to include them into your application
309 POPT_LIB_OBJ
= lib
/popt_common.o
311 PARAM_WITHOUT_REG_OBJ
= dynconfig.o param
/loadparm.o param
/params.o lib
/sharesec.o
312 PARAM_REG_ADD_OBJ
= $(UTIL_REG_API_OBJ
)
313 PARAM_OBJ
= $(PARAM_WITHOUT_REG_OBJ
) $(PARAM_REG_ADD_OBJ
)
315 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
317 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
318 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
319 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(TALLOC_OBJ
)
321 LIBGPO_OBJ0
= libgpo
/gpo_ldap.o libgpo
/gpo_parse.o libgpo
/gpo_util.o \
322 libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o libgpo
/gpo_sec.o
323 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
325 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
326 libads
/krb5_setpw.o libads
/ldap_user.o \
327 libads
/ads_struct.o libads
/kerberos_keytab.o \
328 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
329 libads
/authdata.o libads
/cldap.o
331 LIBADS_SERVER_OBJ
= libads
/util.o libads
/kerberos_verify.o \
334 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
336 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
337 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
339 LIBSAMBA_OBJ
= libsmb
/nterr.o libsmb
/dcerpc_err.o libsmb
/smbdes.o \
340 libsmb
/smbencrypt.o libsmb
/ntlm_check.o \
341 libsmb
/ntlmssp.o libsmb
/ntlmssp_parse.o libsmb
/ntlmssp_sign.o
343 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
344 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
345 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
346 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
347 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
348 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
349 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
350 libsmb
/clioplock.o
$(ERRORMAP_OBJ
) libsmb
/clirap2.o \
351 libsmb
/smb_seal.o
$(DOSERR_OBJ
) \
352 $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(LIBNMB_OBJ
)
354 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o
356 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
357 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
358 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
359 rpc_client
/cli_ds.o rpc_client
/cli_svcctl.o
361 LIBMSRPC_GEN_OBJ
= librpc
/gen_ndr
/cli_unixinfo.o librpc
/gen_ndr
/cli_lsa.o \
362 librpc
/gen_ndr
/cli_dfs.o librpc
/gen_ndr
/cli_echo.o \
363 librpc
/gen_ndr
/cli_srvsvc.o librpc
/gen_ndr
/cli_svcctl.o \
364 librpc
/gen_ndr
/cli_winreg.o librpc
/gen_ndr
/cli_initshutdown.o \
365 librpc
/gen_ndr
/cli_eventlog.o librpc
/gen_ndr
/cli_epmapper.o \
366 $(LIBNDR_GEN_OBJ
) $(RPCCLIENT_NDR_OBJ
)
368 REGOBJS_OBJ
= registry
/reg_objects.o
370 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
371 registry
/reg_db.o registry
/reg_eventlog.o registry
/reg_shares.o \
372 registry
/reg_util.o registry
/reg_dynamic.o registry
/reg_perfcount.o \
373 registry
/reg_smbconf.o registry
/reg_api.o \
374 registry
/reg_frontend_hilvl.o \
375 $(UTIL_REG_API_OBJ
) $(UTIL_REG_SMBCONF_OBJ
)
377 RPC_LSA_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o librpc
/gen_ndr
/srv_lsa.o
379 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o
381 RPC_SAMR_OBJ
= rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o \
382 rpc_server
/srv_samr_util.o
384 RPC_UNIXINFO_OBJ
= librpc
/gen_ndr
/srv_unixinfo.o rpc_server
/srv_unixinfo_nt.o
385 REGFIO_OBJ
= registry
/regfio.o
387 RPC_EPMAPPER_OBJ
= librpc
/gen_ndr
/srv_epmapper.o rpc_server
/srv_epmapper_nt.o
389 RPC_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
391 RPC_REG_OBJ
= rpc_server
/srv_winreg_nt.o \
392 librpc
/gen_ndr
/srv_winreg.o \
394 RPC_LSA_DS_OBJ
= rpc_server
/srv_lsa_ds.o rpc_server
/srv_lsa_ds_nt.o
396 RPC_SVC_OBJ
= librpc
/gen_ndr
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o
398 RPC_WKS_OBJ
= librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
400 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl.o rpc_server
/srv_svcctl_nt.o \
401 librpc
/gen_ndr
/srv_svcctl.o \
402 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
403 services
/svc_netlogon.o services
/svc_winreg.o \
406 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs.o rpc_server
/srv_ntsvcs_nt.o
408 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
410 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
412 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog.o rpc_server
/srv_eventlog_nt.o \
413 rpc_server
/srv_eventlog_lib.o librpc
/gen_ndr
/srv_eventlog.o
415 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
416 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
418 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o librpc
/gen_ndr
/srv_echo.o
420 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
422 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o
$(RPC_PARSE_OBJ2
) \
423 rpc_parse
/parse_samr.o \
424 rpc_parse
/parse_ds.o rpc_parse
/parse_spoolss.o \
425 rpc_parse
/parse_eventlog.o rpc_parse
/parse_buffer.o \
426 rpc_parse
/parse_ntsvcs.o rpc_parse
/parse_svcctl.o
$(REGOBJS_OBJ
)
428 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
430 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
432 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
434 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
435 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
436 passdb
/util_unixsids.o passdb
/lookup_sid.o \
437 passdb
/login_cache.o @PDB_STATIC@ \
438 lib
/account_pol.o lib
/privileges.o lib
/privileges_basic.o \
441 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
442 CP850_OBJ
= modules
/CP850.o
443 CP437_OBJ
= modules
/CP437.o
444 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
446 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o groupdb
/mapping_ldb.o
448 PROFILE_OBJ
= profile
/profile.o
449 PROFILES_OBJ
= utils
/profiles.o \
450 $(REGFIO_OBJ
) $(REGOBJS_OBJ
) $(ERRORMAP_OBJ
) \
451 $(RPC_PARSE_OBJ1
) $(PARAM_OBJ
) $(LIBSAMBA_OBJ
) \
452 $(DOSERR_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
453 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
455 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
457 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
459 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
460 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
461 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
462 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
463 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
464 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
465 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
466 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
467 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
468 VFS_CAP_OBJ
= modules
/vfs_cap.o
469 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
470 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
471 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
472 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
473 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
474 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
475 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
476 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
477 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
478 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
479 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
480 VFS_CATIA_OBJ
= modules
/vfs_catia.o
481 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
482 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
483 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
484 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
485 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
486 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
488 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
490 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
492 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o
494 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
495 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
496 AUTH_SAM_OBJ
= auth
/auth_sam.o
497 AUTH_SERVER_OBJ
= auth
/auth_server.o
498 AUTH_UNIX_OBJ
= auth
/auth_unix.o
499 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
500 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
502 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
504 auth
/auth_compat.o auth
/auth_ntlmssp.o \
505 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
507 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_map.o smbd
/mangle_hash2.o
509 SMBD_OBJ_MAIN
= smbd
/server.o
511 BUILDOPT_OBJ
= smbd
/build_options.o
513 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
514 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
515 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
516 smbd
/share_access.o smbd
/fileio.o \
517 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
518 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
519 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
520 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
521 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
522 smbd
/vfs.o smbd
/statcache.o smbd
/seal.o \
523 smbd
/posix_acls.o lib
/sysacls.o
$(SERVER_MUTEX_OBJ
) \
524 smbd
/process.o smbd
/service.o smbd
/error.o \
525 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
526 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
527 smbd
/change_trust_pw.o smbd
/fake_file.o \
528 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
529 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
530 smbd
/dmapi.o lib
/launchd.o smbd
/sockinit.o \
531 $(MANGLE_OBJ
) @VFS_STATIC@
533 SMBD_OBJ_BASE
= $(PARAM_WITHOUT_REG_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
534 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
535 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
536 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
537 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
538 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
539 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
540 $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
541 $(BUILDOPT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
543 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
544 printing
/print_cups.o printing
/print_generic.o \
545 printing
/lpq_parse.o printing
/load.o \
546 printing
/print_iprint.o printing
/print_test.o
548 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
549 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
551 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
552 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
553 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
554 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
555 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
556 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
557 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
558 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
559 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
560 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
561 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
562 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
563 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
565 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
566 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
568 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
569 web
/swat.o web
/neg_lang.o
571 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) \
572 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) \
573 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
574 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
575 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
577 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
578 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
579 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
580 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) \
583 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
584 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
585 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
586 $(PRINTBASE_OBJ
) $(ERRORMAP_OBJ
)
588 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
589 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
590 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
591 rpc_client
/cli_pipe.o
$(RPC_PARSE_OBJ2
) \
593 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
596 TESTPARM_OBJ
= utils
/testparm.o \
597 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
598 $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
600 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
602 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
603 $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
604 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
605 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
607 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) \
608 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
609 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) libsmb
/asn1.o \
610 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) $(ERRORMAP_OBJ
)
612 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ
)
614 DISPLAY_SEC_OBJ
= lib
/display_sec.o
616 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
617 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
618 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
619 rpcclient
/cmd_dfs.o \
620 rpcclient
/cmd_ds.o rpcclient
/cmd_echo.o \
621 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
622 rpcclient
/cmd_unixinfo.o \
625 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
626 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
627 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
628 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
629 $(LIBADS_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
630 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
632 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
633 $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @BUILD_INIPARSER@
635 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
636 libsmb
/libsmb_cache.o \
637 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
638 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
639 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
640 $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
642 CAC_OBJ
= $(LIBSMBCLIENT_OBJ
) \
643 libmsrpc
/libmsrpc.o libmsrpc
/libmsrpc_internal.o \
644 libmsrpc
/cac_lsarpc.o libmsrpc
/cac_winreg.o libmsrpc
/cac_samr.o \
645 libmsrpc
/cac_svcctl.o
647 LIBSMBSHAREMODES_OBJ
= libsmb
/smb_share_modes.o
$(TDB_BASE_OBJ
)
649 # This shared library is intended for linking with unit test programs
650 # to test Samba internals. It's called libbigballofmud.so to
651 # discourage casual usage.
653 LIBBIGBALLOFMUD_MAJOR
= 0
655 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) \
656 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
657 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
659 CLIENT_OBJ1
= client
/client.o client
/clitar.o rpc_client
/cli_pipe.o \
663 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
664 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
665 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
666 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
669 TOOL_OBJ
= client
/smbctool.o client
/clitar.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
670 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
671 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) \
674 UTIL_REG_OBJ
= lib
/util_reg.o
675 UTIL_REG_API_OBJ
= lib
/util_reg_api.o
676 UTIL_REG_SMBCONF_OBJ
= lib
/util_reg_smbconf.o
678 # objects to be used when not all of the registry code should be
679 # loaded but only the portion needed by reg_api, typically for
680 # using smbconf (registry) - full access
681 REG_API_OBJ
= registry
/reg_api.o \
682 registry
/reg_frontend_hilvl.o \
683 registry
/reg_smbconf.o \
685 registry
/reg_util.o \
687 registry
/reg_cachehook.o \
688 registry
/reg_eventlog.o \
689 registry
/reg_perfcount.o \
690 registry
/reg_dynamic.o \
693 $(UTIL_REG_API_OBJ
) \
694 $(UTIL_REG_SMBCONF_OBJ
)
696 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_domain.o utils
/net_help.o \
697 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
698 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
699 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
700 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
701 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
702 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
703 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
704 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
707 NET_OBJ
= $(NET_OBJ1
) $(PARAM_WITHOUT_REG_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
708 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
709 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
710 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
711 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
712 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
713 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
714 $(LDB_OBJ
) $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) \
717 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
718 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
720 MOUNT_OBJ
= client
/smbmount.o \
721 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
723 MNT_OBJ
= client
/smbmnt.o
$(VERSION_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
725 UMOUNT_OBJ
= client
/smbumount.o
$(SOCKET_WRAPPER_OBJ
)
727 CIFS_MOUNT_OBJ
= client
/mount.cifs.o
729 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o
731 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) \
732 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
734 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
735 torture
/denytest.o torture
/mangle_test.o
737 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
738 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
740 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
741 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
743 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
744 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
746 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
747 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
749 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
750 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
752 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
753 $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
754 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
)
757 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
759 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
)
761 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
763 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
764 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(SECRETS_OBJ
)
766 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
767 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
768 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) \
769 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
771 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
773 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
774 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) \
775 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
777 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
779 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
780 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
782 registry
/reg_eventlog.o rpc_server
/srv_eventlog_lib.o registry
/reg_util.o \
785 SHARESEC_OBJ0
= utils
/sharesec.o
786 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(REGOBJS_OBJ
) \
787 $(ERRORMAP_OBJ
) $(RPC_PARSE_OBJ1
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
) \
788 $(POPT_LIB_OBJ
) $(SECRETS_OBJ
)
790 TALLOCTORT_OBJ
= lib
/talloc
/testsuite.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
791 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LIBSAMBA_OBJ
) $(SECRETS_OBJ
)
793 REPLACETORT_OBJ
= lib
/replace
/test/testsuite.o \
794 lib
/replace
/test/os2_delete.o \
795 lib
/replace
/test/strptime.o \
798 NDRDUMP_OBJ
= librpc
/tools
/ndrdump.o \
799 $(PARAM_OBJ
) $(LIBNDR_GEN_OBJ
) \
800 $(LIBSAMBA_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
801 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(SECRETS_OBJ
)
803 RPCTORTURE_OBJ
= torture
/rpctorture.o \
804 rpcclient
/display.o \
805 rpcclient
/cmd_lsarpc.o \
806 rpcclient
/cmd_wkssvc.o \
807 rpcclient
/cmd_samr.o \
808 rpcclient
/cmd_srvsvc.o \
809 rpcclient
/cmd_netlogon.o \
810 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
811 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) $(SECRETS_OBJ
)
813 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
815 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(SECRETS_OBJ
) \
816 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
)
818 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) $(LIBNDR_OBJ
) $(LIBNDR_GEN_OBJ
) \
819 $(RPCCLIENT_NDR_OBJ
) \
820 $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(LIBSMB_OBJ
) \
821 $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
823 $(LIB_WITH_PROTO_OBJ
) \
824 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) $(KRBCLIENT_OBJ
) \
825 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
826 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
827 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
828 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
829 $(AUTH_SAM_OBJ
) $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
830 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) $(RPC_LSA_DS_OBJ
) \
831 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
) \
832 $(RPC_ECHO_OBJ
) $(RPC_SVCCTL_OBJ
) $(RPC_EVENTLOG_OBJ
) $(SMBLDAP_OBJ
) \
833 $(IDMAP_OBJ
) libsmb
/spnego.o
$(PASSCHANGE_OBJ
) $(RPC_UNIXINFO_OBJ
) \
834 $(RPC_NTSVCS_OBJ
) $(RPC_INITSHUTDOWN_OBJ
) \
835 utils
/passwd_util.o
$(LIBGPO_OBJ
) $(NSS_INFO_OBJ
) \
838 WINBIND_WINS_NSS_OBJ
= nsswitch
/wins.o
$(PARAM_OBJ
) \
839 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) $(SECRETS_OBJ
)
841 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
842 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o
843 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
844 $(SECRETS_OBJ
) $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
845 $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
) $(LDB_OBJ
) $(ERRORMAP_OBJ
)
847 IDMAP_OBJ
= nsswitch
/idmap.o nsswitch
/idmap_cache.o nsswitch
/idmap_util.o @IDMAP_STATIC@
849 NSS_INFO_OBJ
= nsswitch
/nss_info.o @NSS_INFO_STATIC@
851 IDMAP_NSS_OBJ
= sam
/idmap_nss.o @IDMAP_NSS_STATIC@
854 nsswitch
/winbindd.o \
855 nsswitch
/winbindd_sockinit.o \
856 nsswitch
/winbindd_user.o \
857 nsswitch
/winbindd_group.o \
858 nsswitch
/winbindd_util.o \
859 nsswitch
/winbindd_cache.o \
860 nsswitch
/winbindd_pam.o \
861 nsswitch
/winbindd_sid.o \
862 nsswitch
/winbindd_misc.o \
863 nsswitch
/winbindd_cm.o \
864 nsswitch
/winbindd_wins.o \
865 nsswitch
/winbindd_rpc.o \
866 nsswitch
/winbindd_reconnect.o \
867 nsswitch
/winbindd_ads.o \
868 nsswitch
/winbindd_passdb.o \
869 nsswitch
/winbindd_dual.o \
870 nsswitch
/winbindd_async.o \
871 nsswitch
/winbindd_creds.o \
872 nsswitch
/winbindd_cred_cache.o \
873 nsswitch
/winbindd_ccache_access.o \
877 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
878 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
879 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
880 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
881 $(SECRETS_OBJ
) $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
882 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
883 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) lib
/launchd.o \
884 $(LIBADS_SERVER_OBJ
) $(SERVER_MUTEX_OBJ
) $(LDB_OBJ
)
886 WBINFO_OBJ
= nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
887 $(SECRETS_OBJ
) $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) $(RPC_PARSE_OBJ1
) $(DOSERR_OBJ
)
889 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
891 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
892 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
893 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
894 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
895 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
897 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
898 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
899 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
901 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
902 lib
/ldb
/modules
/objectclass.o \
903 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
905 # enabled in configure.in
906 LDB_LDAP_OBJ
=@LDBLDAP@
908 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
910 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
911 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
912 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
913 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
914 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
915 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(SERVER_MUTEX_OBJ
) \
916 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(REGFIO_OBJ
) $(READLINE_OBJ
) \
917 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
920 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
921 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
922 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
923 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
924 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
926 SMB_KRB5_LOCATOR_OBJ1
= libads
/smb_krb5_locator.o
927 SMB_KRB5_LOCATOR_OBJ
= $(SMB_KRB5_LOCATOR_OBJ1
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
928 $(LIBNMB_OBJ
) $(RPC_PARSE_OBJ1
) $(SECRETS_OBJ
) $(LIBSAMBA_OBJ
) $(DOSERR_OBJ
)
930 POPT_OBJ
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
931 popt
/popthelp.o popt
/poptparse.o
933 INIPARSER_OBJ
= iniparser_build
/iniparser.o iniparser_build
/dictionary.o \
934 iniparser_build
/strlib.o
936 TDBBACKUP_OBJ
= lib
/tdb
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
937 $(TDBBASE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
939 TDBTOOL_OBJ
= lib
/tdb
/tools
/tdbtool.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
940 $(SOCKET_WRAPPER_OBJ
)
942 TDBDUMP_OBJ
= lib
/tdb
/tools
/tdbdump.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
943 $(SOCKET_WRAPPER_OBJ
)
945 TDBTORTURE_OBJ
= lib
/tdb
/tools
/tdbtorture.o
$(TDBBASE_OBJ
) $(LIBREPLACE_OBJ
) \
946 $(SOCKET_WRAPPER_OBJ
)
949 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
951 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
952 libsmb
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
953 libads
/kerberos_verify.o
$(SECRETS_OBJ
) $(SERVER_MUTEX_OBJ
) \
954 libads
/authdata.o
$(RPC_PARSE_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
955 $(SMBLDAP_OBJ
) $(DOSERR_OBJ
) rpc_parse
/parse_net.o
$(LIBNMB_OBJ
) \
956 $(LDB_OBJ
) $(ERRORMAP_OBJ
)
958 ######################################################################
960 ######################################################################
961 all : SHOWFLAGS
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
962 $(SHLIBS
) $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @EXTRA_ALL_TARGETS@
964 nss_modules
: $(NSS_MODULES
)
966 pam_modules
: $(PAM_MODULES
)
968 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
970 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
972 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
974 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
976 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
978 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
980 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
982 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
984 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
986 smbctool
: SHOWFLAGS bin
/smbctool@EXEEXT@
988 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
990 rpctorture
: SHOWFLAGS bin
/rpctorture@EXEEXT@
992 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
994 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
996 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
998 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
1000 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
1002 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
1004 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
1006 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1007 @WINBIND_WINS_NSS@ bin
/pam_winbind.@SHLIBEXT@
1009 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
1011 modules
: SHOWFLAGS
$(MODULES
)
1013 cac
: SHOWFLAGS
$(LIBMSRPC
)
1016 #####################################################################
1017 ## Perl IDL Compiler
1018 IDL_FILES
= unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1019 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1020 epmapper.idl messaging.idl
1023 @IDL_FILES
="$(IDL_FILES)" CPP
="$(CPP)" PERL
="$(PERL)" \
1024 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(PIDL_ARGS
)
1027 #####################################################################
1030 everything
: all libsmbclient debug2html smbfilter talloctort replacetort modules torture \
1034 .SUFFIXES
: .c .o .lo
1037 @echo
"Using FLAGS = $(FLAGS)"
1038 @echo
" PICFLAG = $(PICFLAG)"
1039 @echo
" LIBS = $(LIBS)"
1040 @echo
" LDFLAGS = $(LDFLAGS)"
1041 @echo
" DYNEXP = $(DYNEXP)"
1042 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1043 @echo
" SHLIBEXT = @SHLIBEXT@"
1044 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1046 MAKEDIR
= || exec false
; \
1047 if
test -d
"$$dir"; then
:; else \
1048 echo mkdir
"$$dir"; \
1049 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1050 test -d
"$$dir" || \
1052 exec false
; fi || exec false
1054 # Run a static checker.
1055 CHECK_CC
= $(CC_CHECKER
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1056 # Compile a source file.
1057 COMPILE_CC
= $(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1058 # Compile a source file with the installation paths defined.
1059 COMPILE_CC_PATH
= $(CC
) -I.
-I
$(srcdir) $(PATH_FLAGS
) $(FLAGS
) $(PICFLAG
) -c
$< -o
$@
1061 COMPILE
= $(COMPILE_CC
)
1063 # BEGIN GNU make specific
1064 # Rewrite the COMPILE rule to generate dependencies as a side-effect.
1065 # This is is actually toolchain-independent, but making use of the dependency
1066 # files requires GNU make, so it's pointless to have them otherwise.
1068 @ifGNUmake@COMPILE_DEPENDS
= source
=$< object
=$@ libtool
=no \
1069 @ifGNUmake@ tmpdepfile
=$(DEPDIR
)/$*.TPo depfile
=$(DEPDIR
)/$*.d \
1070 @ifGNUmake@ DEPDIR
=$(DEPDIR
) @CCDEPMODE@ \
1071 @ifGNUmake@
$(srcdir)/depcomp
$(COMPILE_CC
)
1072 @ifGNUmake@COMPILE
= $(COMPILE_DEPENDS
)
1073 # END GNU make specific
1076 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1077 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1078 @if
test -n
"$(CC_CHECKER)"; then \
1079 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1082 @echo Compiling
$*.c
1083 @
$(COMPILE
) && exit
0;\
1084 echo
"The following command failed:" 1>&2;\
1085 echo
"$(COMPILE_CC)" 1>&2;\
1086 $(COMPILE_CC
) >/dev
/null
2>&1
1087 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
1089 # BEGIN GNU make specific
1090 # Include all the generated dependency files. The sort is done to
1091 # remove duplicates.
1092 @ifGNUmake@DEPENDS_OBJ
= $(SMBD_SRV_OBJ
) $(NET_OBJ
) $(WINBINDD_OBJ
)
1093 @ifGNUmake@
-include $(patsubst %.o
, %.d
, $(sort $(DEPENDS_OBJ
)))
1094 # END GNU make specific
1096 PRECOMPILED_HEADER
= $(builddir
)/include/includes.h.gch
1098 # this adds support for precompiled headers. To use it, install a snapshot
1099 # of gcc-3.4 and run 'make pch' before you do the main build.
1101 rm -f
$(PRECOMPILED_HEADER
)
1102 $(MAKE
) $(PRECOMPILED_HEADER
)
1104 $(PRECOMPILED_HEADER
): $(srcdir)/include/includes.h
1107 BINARY_PREREQS
= proto_exists bin
/.dummy
1109 # These dependencies are only approximately correct: we want to make
1110 # sure Samba's paths are updated if ./configure is re-run. Really it
1111 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1112 # but since we also require "make install prefix=/opt/samba" *not* to
1113 # rebuild it's a bit hard.
1115 dynconfig.o
: dynconfig.c Makefile
1116 @echo Compiling
$*.c
1117 @
$(COMPILE_CC_PATH
) && exit
0;\
1118 echo
"The following command failed:" 1>&2;\
1119 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1120 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1122 lib
/pidfile.o
: lib
/pidfile.c
1123 @echo Compiling
$*.c
1124 @
$(COMPILE_CC_PATH
) && exit
0;\
1125 echo
"The following command failed:" 1>&2;\
1126 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1127 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1129 lib
/version.o
: lib
/version.c
include/version.h
1130 @echo Compiling
$*.c
1131 @
$(COMPILE_CC_PATH
) && exit
0;\
1132 echo
"The following command failed:" 1>&2;\
1133 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1134 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1136 smbd
/build_options.o
: smbd
/build_options.c Makefile
include/config.h
include/build_env.h
include/proto.h
1137 @echo Compiling
$*.c
1138 @
$(COMPILE_CC_PATH
) && exit
0;\
1139 echo
"The following command failed:" 1>&2;\
1140 echo
"$(COMPILE_CC_PATH)" 1>&2;\
1141 $(COMPILE_CC_PATH
) >/dev
/null
2>&1
1143 smbd
/build_options.c
: include/config.h.in script
/mkbuildoptions.awk
1145 @
dir=smbd
$(MAKEDIR
) && $(AWK
) -f
$(srcdir)/script
/mkbuildoptions.awk
> $(builddir
)/smbd
/build_options.c
< $(srcdir)/include/config.h.in
1148 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
1149 dir=bin
$(MAKEDIR
); fi
1150 @
: >> $@ ||
: > $@
# what a fancy emoticon!
1152 bin
/smbd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBD_OBJ
) @BUILD_POPT@
1154 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LDAP_LIBS
) \
1155 $(KRB5LIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) \
1156 $(ACL_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@ @SMBD_LIBS@
1158 bin
/nmbd@EXEEXT@
: $(BINARY_PREREQS
) $(NMBD_OBJ
) @BUILD_POPT@
1160 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1162 bin
/swat@EXEEXT@
: $(BINARY_PREREQS
) $(SWAT_OBJ
) @BUILD_POPT@
1164 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINT_LIBS
) \
1165 $(AUTH_LIBS
) $(LIBS
) $(PASSDB_LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1167 bin
/rpcclient@EXEEXT@
: $(BINARY_PREREQS
) $(RPCCLIENT_OBJ
) @BUILD_POPT@
1169 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(PASSDB_LIBS
) $(RPCCLIENT_OBJ
) \
1170 $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@ \
1171 $(KRB5LIBS
) $(LDAP_LIBS
)
1173 bin
/smbclient@EXEEXT@
: $(BINARY_PREREQS
) $(CLIENT_OBJ
) @BUILD_POPT@
1175 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1177 bin
/smbctool@EXEEXT@
: $(BINARY_PREREQS
) $(TOOL_OBJ
) @BUILD_POPT@
1179 @
$(CC
) $(FLAGS
) -o
$@
$(TOOL_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) -Lbin
-lsmbclient
1181 bin
/net@EXEEXT@
: $(BINARY_PREREQS
) $(NET_OBJ
) @BUILD_POPT@
1183 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
) @INIPARSERLIBS@
1185 bin
/profiles@EXEEXT@
: $(BINARY_PREREQS
) $(PROFILES_OBJ
) @BUILD_POPT@
1187 @
$(CC
) $(FLAGS
) -o
$@
$(PROFILES_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1189 bin
/smbspool@EXEEXT@
: $(BINARY_PREREQS
) $(CUPS_OBJ
)
1191 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1193 bin
/smbmount@EXEEXT@
: $(BINARY_PREREQS
) $(MOUNT_OBJ
)
1195 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1197 bin
/smbmnt@EXEEXT@
: $(BINARY_PREREQS
) $(MNT_OBJ
)
1199 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1201 bin
/smbumount@EXEEXT@
: $(BINARY_PREREQS
) $(UMOUNT_OBJ
)
1203 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1205 bin
/mount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_MOUNT_OBJ
)
1207 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_MOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1209 bin
/umount.cifs@EXEEXT@
: $(BINARY_PREREQS
) $(CIFS_UMOUNT_OBJ
)
1211 @
$(CC
) $(FLAGS
) -o
$@
$(CIFS_UMOUNT_OBJ
) $(DYNEXP
) $(LDFLAGS
)
1213 bin
/testparm@EXEEXT@
: $(BINARY_PREREQS
) $(TESTPARM_OBJ
) @BUILD_POPT@
1215 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1217 bin
/smbstatus@EXEEXT@
: $(BINARY_PREREQS
) $(STATUS_OBJ
) @BUILD_POPT@
1219 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) \
1222 bin
/smbcontrol@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCONTROL_OBJ
) @BUILD_POPT@
1224 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) -o
$@ \
1225 $(SMBCONTROL_OBJ
) $(DYNEXP
) $(LDFLAGS
) \
1226 $(LIBS
) $(LDAP_LIBS
) @LIBUNWIND_PTRACE@ @POPTLIBS@
1228 bin
/smbtree@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTREE_OBJ
) @BUILD_POPT@
1230 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1232 bin
/smbpasswd@EXEEXT@
: $(BINARY_PREREQS
) $(SMBPASSWD_OBJ
) @BUILD_POPT@
1234 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(PASSDB_LIBS
) \
1235 $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
)
1237 bin
/pdbedit@EXEEXT@
: $(BINARY_PREREQS
) $(PDBEDIT_OBJ
) @BUILD_POPT@
1239 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(LDAP_LIBS
)
1241 bin
/smbget@EXEEXT@
: $(BINARY_PREREQS
) $(SMBGET_OBJ
) @BUILD_POPT@
1243 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGET_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1245 bin
/samtest@EXEEXT@
: $(SAMTEST_OBJ
) @BUILD_POPT@
1247 @
$(CC
) $(FLAGS
) -o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(PASSDB_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1249 bin
/nmblookup@EXEEXT@
: $(BINARY_PREREQS
) $(NMBLOOKUP_OBJ
) @BUILD_POPT@
1251 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
$(LDAP_LIBS
)
1253 bin
/smbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(SMBTORTURE_OBJ
)
1255 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1257 bin
/talloctort@EXEEXT@
: $(BINARY_PREREQS
) $(TALLOCTORT_OBJ
)
1259 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) \
1260 $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
)
1262 bin
/replacetort@EXEEXT@
: $(REPLACETORT_OBJ
)
1264 @
$(CC
) $(FLAGS
) @PIE_LDFLAGS@
-o
$@
$(REPLACETORT_OBJ
) $(LDFLAGS
) \
1267 bin
/masktest@EXEEXT@
: $(BINARY_PREREQS
) $(MASKTEST_OBJ
)
1269 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1271 bin
/msgtest@EXEEXT@
: $(BINARY_PREREQS
) $(MSGTEST_OBJ
)
1273 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1275 bin
/smbcacls@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCACLS_OBJ
) @BUILD_POPT@
1277 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1278 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1280 bin
/smbcquotas@EXEEXT@
: $(BINARY_PREREQS
) $(SMBCQUOTAS_OBJ
) @BUILD_POPT@
1282 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCQUOTAS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@ \
1283 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1285 bin
/eventlogadm@EXEEXT@
: $(BINARY_PREREQS
) $(EVTLOGADM_OBJ
) @BUILD_POPT@
1287 @
$(CC
) $(FLAGS
) -o
$@
$(EVTLOGADM_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1289 bin
/sharesec@EXEEXT@
: $(BINARY_PREREQS
) $(SHARESEC_OBJ
) @BUILD_POPT@
1291 @
$(CC
) $(FLAGS
) -o
$@
$(SHARESEC_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1293 bin
/locktest@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST_OBJ
)
1295 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1297 bin
/nsstest@EXEEXT@
: $(BINARY_PREREQS
) $(NSSTEST_OBJ
)
1299 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1301 bin
/pdbtest@EXEEXT@
: $(BINARY_PREREQS
) $(PDBTEST_OBJ
)
1303 @
$(CC
) $(FLAGS
) -o
$@
$(PDBTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(LIBS
) @POPTLIBS@
1305 bin
/vfstest@EXEEXT@
: $(BINARY_PREREQS
) $(VFSTEST_OBJ
) @BUILD_POPT@
1307 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(PRINT_LIBS
) $(AUTH_LIBS
) $(ACL_LIBS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) @SMBD_LIBS@
$(NSCD_LIBS
)
1309 bin
/smbiconv@EXEEXT@
: $(BINARY_PREREQS
) $(SMBICONV_OBJ
) @BUILD_POPT@
1311 @
$(CC
) $(FLAGS
) -o
$@
$(SMBICONV_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @POPTLIBS@
1313 bin
/log2pcap@EXEEXT@
: $(BINARY_PREREQS
) $(LOG2PCAP_OBJ
) @BUILD_POPT@
1315 @
$(CC
) $(FLAGS
) -o
$@
$(LOG2PCAP_OBJ
) $(LDFLAGS
) $(DYNEXP
) @POPTLIBS@
$(LIBS
)
1317 bin
/locktest2@EXEEXT@
: $(BINARY_PREREQS
) $(LOCKTEST2_OBJ
)
1319 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1321 bin
/rpctorture@EXEEXT@
: $(BINARY_PREREQS
) $(RPCTORTURE_OBJ
)
1323 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1325 bin
/ndrdump@EXEEXT@
: $(BINARY_PREREQS
) $(NDRDUMP_OBJ
)
1327 @
$(CC
) $(FLAGS
) -o
$@
$(NDRDUMP_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) \
1328 @POPTLIBS@ @LDAP_LIBS@
1330 bin
/debug2html@EXEEXT@
: $(BINARY_PREREQS
) $(DEBUG2HTML_OBJ
)
1332 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
1334 bin
/smbfilter@EXEEXT@
: $(BINARY_PREREQS
) $(SMBFILTER_OBJ
)
1336 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
)
1338 bin
/ldbedit
: $(BINARY_PREREQS
) $(LDBEDIT_OBJ
) @BUILD_POPT@
1340 @
$(CC
) $(FLAGS
) -o
$@
$(LDBEDIT_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1342 bin
/ldbsearch
: $(BINARY_PREREQS
) $(LDBSEARCH_OBJ
) @BUILD_POPT@
1344 @
$(CC
) $(FLAGS
) -o
$@
$(LDBSEARCH_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1346 bin
/ldbadd
: $(BINARY_PREREQS
) $(LDBADD_OBJ
) @BUILD_POPT@
1348 @
$(CC
) $(FLAGS
) -o
$@
$(LDBADD_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1350 bin
/ldbmodify
: $(BINARY_PREREQS
) $(LDBMODIFY_OBJ
) @BUILD_POPT@
1352 @
$(CC
) $(FLAGS
) -o
$@
$(LDBMODIFY_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1354 bin
/ldbdel
: $(BINARY_PREREQS
) $(LDBDEL_OBJ
) @BUILD_POPT@
1356 @
$(CC
) $(FLAGS
) -o
$@
$(LDBDEL_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @POPTLIBS@
$(KRB5LIBS
) $(UUID_LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(NSCD_LIBS
)
1358 bin
/libaddns.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBADDNS_OBJ
)
1359 @echo Linking libaddns shared library
$@
1360 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBADDNS_OBJ
) $(LDFLAGS
) $(LIBS
) \
1361 $(KRB5LIBS
) $(UUID_LIBS
)\
1362 @SONAMEFLAG@
`basename $@`.
$(LIBADDNS_MAJOR
)
1364 bin
/libaddns.a
: $(BINARY_PREREQS
) $(LIBADDNS_OBJ
)
1365 @echo Linking libaddns non-shared library
$@
1366 @
-$(AR
) -rc
$@
$(LIBADDNS_OBJ
)
1368 bin
/libsmbclient.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
)
1369 @echo Linking libsmbclient shared library
$@
1370 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_OBJ
) $(LDFLAGS
) $(LIBS
) \
1371 $(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
) \
1372 @SONAMEFLAG@
`basename $@`.
$(LIBSMBCLIENT_MAJOR
)
1374 bin
/libsmbclient.a
: $(BINARY_PREREQS
) $(LIBSMBCLIENT_OBJ
)
1375 @echo Linking libsmbclient non-shared library
$@
1376 @
-$(AR
) -rc
$@
$(LIBSMBCLIENT_OBJ
)
1378 bin
/libsmbsharemodes.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
)
1379 @echo Linking libsmbsharemodes shared library
$@
1380 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBSHAREMODES_OBJ
) $(LDFLAGS
) $(LIBS
) \
1381 $(KRB5LIBS
) $(LDAP_LIBS
) \
1382 @SONAMEFLAG@
`basename $@`.
$(LIBSMBSHAREMODES_MAJOR
)
1384 bin
/libsmbsharemodes.a
: $(BINARY_PREREQS
) $(LIBSMBSHAREMODES_OBJ
)
1385 @echo Linking libsmbsharemodes non-shared library
$@
1386 @
-$(AR
) -rc
$@
$(LIBSMBSHAREMODES_OBJ
)
1388 bin
/libmsrpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CAC_OBJ
)
1389 @echo Linking libmsrpc shared library
$@
1390 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(CAC_OBJ
) $(LDFLAGS
) $(LIBS
) \
1391 @SONAMEFLAG@
`basename $@`.
$(LIBMSRPC_MAJOR
)
1393 bin
/libmsrpc.a
: $(BINARY_PREREQS
) $(CAC_OBJ
)
1394 @echo Linking libmsrpc non-shared library
$@
1395 @
-$(AR
) -rc
$@
$(CAC_OBJ
)
1397 # This is probably wrong for anything other than the GNU linker.
1398 bin
/libbigballofmud.@SHLIBEXT@
: $(BINARY_PREREQS
) $(LIBBIGBALLOFMUD_OBJ
)
1399 @echo Linking bigballofmud shared library
$@
1400 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_OBJ
) $(LIBS
) \
1401 $(PASSDB_LIBS
) $(IDMAP_LIBS
) $(KRB5LIBS
) $(LDAP_LIBS
) \
1402 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
1403 ln
-snf libbigballofmud.so bin
/libbigballofmud.so
.0
1405 # It would be nice to build a static bigballofmud too, but when I try
1406 # I get linker errors about dl_open and similar things. I'm not sure if
1407 # it can be fixed or if they just can't be called from a static
1410 libsmbclient
: $(LIBSMBCLIENT
)
1411 libsmbsharemodes
: $(LIBSMBSHAREMODES
)
1412 libmsrpc
: $(LIBMSRPC
)
1413 libaddns
: $(LIBADDNS
)
1415 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
1416 SHLD_MODULE
= $(SHLD
) $(LDSHFLAGS
) $(MODULE_EXPORTS
) \
1417 -o
$@ @SONAMEFLAG@
`basename $@`
1419 bin
/librpc_lsarpc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_OBJ
)
1421 @
$(SHLD_MODULE
) $(RPC_LSA_OBJ
)
1423 bin
/librpc_samr.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SAMR_OBJ
)
1425 @
$(SHLD_MODULE
) $(RPC_SAMR_OBJ
)
1427 bin
/librpc_unixinfo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_UNIXINFO_OBJ
)
1429 @
$(SHLD_MODULE
) $(RPC_UNIXINFO_OBJ
)
1431 bin
/librpc_epmapper.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EPMAPPER_OBJ
)
1433 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1435 bin
/librpc_srvsvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVC_OBJ
)
1437 @
$(SHLD_MODULE
) $(RPC_SVC_OBJ
)
1439 bin
/librpc_svcctl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SVCCTL_OBJ
)
1441 @
$(SHLD_MODULE
) $(RPC_SVCCTL_OBJ
)
1443 bin
/librpc_ntsvcs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NTSVCS_OBJ
)
1445 @
$(SHLD_MODULE
) $(RPC_NTSVCS_OBJ
)
1447 bin
/librpc_wkssvc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_WKS_OBJ
)
1449 @
$(SHLD_MODULE
) $(RPC_WKS_OBJ
)
1451 bin
/librpc_NETLOGON.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_NETLOG_OBJ
)
1453 @
$(SHLD_MODULE
) $(RPC_NETLOG_OBJ
)
1455 bin
/librpc_winreg.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_REG_OBJ
)
1457 @
$(SHLD_MODULE
) $(RPC_REG_OBJ
)
1459 bin
/librpc_initshutdown.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_INITSHUTDOWN_OBJ
)
1461 @
$(SHLD_MODULE
) $(RPC_INITSHUTDOWN_OBJ
)
1463 bin
/librpc_lsa_ds.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_LSA_DS_OBJ
)
1465 @
$(SHLD_MODULE
) $(RPC_LSA_DS_OBJ
)
1467 bin
/librpc_spoolss.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_SPOOLSS_OBJ
)
1469 @
$(SHLD_MODULE
) $(RPC_SPOOLSS_OBJ
)
1471 bin
/librpc_eventlog.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_EVENTLOG_OBJ
)
1473 @
$(SHLD_MODULE
) $(RPC_EVENTLOG_OBJ
)
1475 bin
/librpc_netdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_DFS_OBJ
)
1477 @
$(SHLD_MODULE
) $(RPC_DFS_OBJ
)
1479 bin
/librpc_echo.@SHLIBEXT@
: $(BINARY_PREREQS
) $(RPC_ECHO_OBJ
)
1481 @
$(SHLD_MODULE
) $(RPC_ECHO_OBJ
)
1483 bin
/winbindd@EXEEXT@
: $(BINARY_PREREQS
) $(WINBINDD_OBJ
) @BUILD_POPT@
1485 @
$(CC
) $(FLAGS
) -o
$@
$(WINBINDD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) \
1486 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(PASSDB_LIBS
)
1488 @WINBIND_NSS@
: $(BINARY_PREREQS
) $(WINBIND_NSS_OBJ
)
1490 @
$(SHLD
) $(WINBIND_NSS_LDSHFLAGS
) -o
$@
$(WINBIND_NSS_OBJ
) \
1491 @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1493 @WINBIND_WINS_NSS@
: $(BINARY_PREREQS
) $(WINBIND_WINS_NSS_OBJ
)
1495 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_WINS_NSS_OBJ
) \
1496 $(LDAP_LIBS
) $(KRB5LIBS
) $(LIBS
) \
1497 @SONAMEFLAG@
`basename $@`@NSSSONAMEVERSIONSUFFIX@
1499 @SMB_KRB5_LOCATOR@
: $(BINARY_PREREQS
) $(SMB_KRB5_LOCATOR_OBJ
)
1501 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(SMB_KRB5_LOCATOR_OBJ
) \
1502 $(LDAP_LIBS
) $(LIBS
) -lcom_err \
1503 @SONAMEFLAG@
`basename $@`
1505 bin
/pam_winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_WINBIND_OBJ
)
1506 @echo
"Linking shared library $@"
1507 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) -lpam @INIPARSERLIBS@ \
1508 @SONAMEFLAG@
`basename $@`
1510 bin
/builtin.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_BUILTIN_OBJ
)
1511 @echo
"Building plugin $@"
1512 @
$(SHLD_MODULE
) $(AUTH_BUILTIN_OBJ
)
1514 bin
/domain.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_DOMAIN_OBJ
)
1515 @echo
"Building plugin $@"
1516 @
$(SHLD_MODULE
) $(AUTH_DOMAIN_OBJ
)
1518 bin
/script.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SCRIPT_OBJ
)
1519 @echo
"Building plugin $@"
1520 @
$(SHLD_MODULE
) $(AUTH_SCRIPT_OBJ
)
1522 bin
/smbserver.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SERVER_OBJ
)
1523 @echo
"Building plugin $@"
1524 @
$(SHLD_MODULE
) $(AUTH_SERVER_OBJ
)
1526 bin
/winbind.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_WINBIND_OBJ
)
1527 @echo
"Building plugin $@"
1528 @
$(SHLD_MODULE
) $(AUTH_WINBIND_OBJ
)
1530 bin
/unix.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_UNIX_OBJ
)
1531 @echo
"Building plugin $@"
1532 @
$(SHLD_MODULE
) $(AUTH_UNIX_OBJ
)
1534 bin
/sam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(AUTH_SAM_OBJ
)
1535 @echo
"Building plugin $@"
1536 @
$(SHLD_MODULE
) $(AUTH_SAM_OBJ
)
1538 bin
/ldapsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
1539 @echo
"Building plugin $@"
1540 @
$(SHLD_MODULE
) passdb
/pdb_ldap.o passdb
/pdb_nds.o
$(LDAP_LIBS
)
1542 bin
/tdbsam.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_tdb.o
1543 @echo
"Building plugin $@"
1544 @
$(SHLD_MODULE
) passdb
/pdb_tdb.o
1546 bin
/smbpasswd.@SHLIBEXT@
: $(BINARY_PREREQS
) passdb
/pdb_smbpasswd.o
1547 @echo
"Building plugin $@"
1548 @
$(SHLD_MODULE
) passdb
/pdb_smbpasswd.o
1550 bin
/rid.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_rid.o
1551 @echo
"Building plugin $@"
1552 @
$(SHLD_MODULE
) nsswitch
/idmap_rid.o
1554 bin
/ad.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_ad.o
1555 @echo
"Building plugin $@"
1556 @
$(SHLD_MODULE
) nsswitch
/idmap_ad.o
1558 bin
/ldap.@SHLIBEXT@
: $(BINARY_PREREQS
) nsswitch
/idmap_ldap.o
1559 @echo
"Building plugin $@"
1560 @
$(SHLD_MODULE
) nsswitch
/idmap_ldap.o
1562 bin
/weird.@SHLIBEXT@
: $(BINARY_PREREQS
) $(DEVEL_HELP_WEIRD_OBJ
)
1563 @echo
"Building plugin $@"
1564 @
$(SHLD_MODULE
) $(DEVEL_HELP_WEIRD_OBJ
)
1566 bin
/CP850.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP850_OBJ
)
1567 @echo
"Building plugin $@"
1568 @
$(SHLD_MODULE
) $(CP850_OBJ
)
1570 bin
/CP437.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CP437_OBJ
)
1571 @echo
"Building plugin $@"
1572 @
$(SHLD_MODULE
) $(CP437_OBJ
)
1574 bin
/macosxfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(CHARSET_MACOSXFS_OBJ
)
1575 @echo
"Building plugin $@"
1576 @
$(SHLD_MODULE
) $(CHARSET_MACOSXFS_OBJ
) -framework CoreFoundation
1578 # NOTE, there is no build rule for a dynamic default VFS module because
1579 # this one MUST MUST MUST be built statically.
1581 bin
/audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AUDIT_OBJ
)
1582 @echo
"Building plugin $@"
1583 @
$(SHLD_MODULE
) $(VFS_AUDIT_OBJ
)
1585 bin
/extd_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXTD_AUDIT_OBJ
)
1586 @echo
"Building plugin $@"
1587 @
$(SHLD_MODULE
) $(VFS_EXTD_AUDIT_OBJ
)
1589 bin
/full_audit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FULL_AUDIT_OBJ
)
1590 @echo
"Building plugin $@"
1591 @
$(SHLD_MODULE
) $(VFS_FULL_AUDIT_OBJ
)
1593 bin
/recycle.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_RECYCLE_OBJ
)
1594 @echo
"Building plugin $@"
1595 @
$(SHLD_MODULE
) $(VFS_RECYCLE_OBJ
)
1597 bin
/netatalk.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NETATALK_OBJ
)
1598 @echo
"Building plugin $@"
1599 @
$(SHLD_MODULE
) $(VFS_NETATALK_OBJ
)
1601 bin
/fake_perms.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_FAKE_PERMS_OBJ
)
1602 @echo
"Building plugin $@"
1603 @
$(SHLD_MODULE
) $(VFS_FAKE_PERMS_OBJ
)
1605 bin
/default_quota.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_DEFAULT_QUOTA_OBJ
)
1606 @echo
"Building plugin $@"
1607 @
$(SHLD_MODULE
) $(VFS_DEFAULT_QUOTA_OBJ
)
1609 bin
/readonly.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READONLY_OBJ
)
1610 @echo
"Building plugin $@"
1611 @
$(SHLD_MODULE
) $(VFS_READONLY_OBJ
)
1613 bin
/shadow_copy.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SHADOW_COPY_OBJ
)
1614 @echo
"Building plugin $@"
1615 @
$(SHLD_MODULE
) $(VFS_SHADOW_COPY_OBJ
)
1617 bin
/cap.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CAP_OBJ
)
1618 @echo
"Building plugin $@"
1619 @
$(SHLD_MODULE
) $(VFS_CAP_OBJ
)
1621 bin
/expand_msdfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_EXPAND_MSDFS_OBJ
)
1622 @echo
"Building plugin $@"
1623 @
$(SHLD_MODULE
) $(VFS_EXPAND_MSDFS_OBJ
)
1625 bin
/afsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AFSACL_OBJ
)
1626 @echo
"Building plugin $@"
1627 @
$(SHLD_MODULE
) $(VFS_AFSACL_OBJ
)
1629 bin
/posixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_POSIXACL_OBJ
)
1630 @echo
"Building plugin $@"
1631 @
$(SHLD_MODULE
) $(VFS_POSIXACL_OBJ
)
1633 bin
/aixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL_OBJ
)
1634 @echo
"Building plugin $@"
1635 @
$(SHLD_MODULE
) $(VFS_AIXACL_OBJ
)
1637 bin
/aixacl2.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_AIXACL2_OBJ
)
1638 @echo
"Building plugin $@"
1639 @
$(SHLD_MODULE
) $(VFS_AIXACL2_OBJ
)
1641 bin
/solarisacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_SOLARISACL_OBJ
)
1642 @echo
"Building plugin $@"
1643 @
$(SHLD_MODULE
) $(VFS_SOLARISACL_OBJ
)
1645 bin
/zfsacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_ZFSACL_OBJ
)
1646 @echo
"Building plugin $@"
1647 @
$(SHLD_MODULE
) $(VFS_ZFSACL_OBJ
)
1649 bin
/irixacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_IRIXACL_OBJ
)
1650 @echo
"Building plugin $@"
1651 @
$(SHLD_MODULE
) $(VFS_IRIXACL_OBJ
)
1653 bin
/hpuxacl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_HPUXACL_OBJ
)
1654 @echo
"Building plugin $@"
1655 @
$(SHLD_MODULE
) $(VFS_HPUXACL_OBJ
)
1657 bin
/tru64acl.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_TRU64ACL_OBJ
)
1658 @echo
"Building plugin $@"
1659 @
$(SHLD_MODULE
) $(VFS_TRU64ACL_OBJ
)
1661 bin
/catia.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CATIA_OBJ
)
1662 @echo
"Building plugin $@"
1663 @
$(SHLD_MODULE
) $(VFS_CATIA_OBJ
)
1665 bin
/cacheprime.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_CACHEPRIME_OBJ
)
1666 @echo
"Building plugin $@"
1667 @
$(SHLD_MODULE
) $(VFS_CACHEPRIME_OBJ
)
1669 bin
/prealloc.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_PREALLOC_OBJ
)
1670 @echo
"Building plugin $@"
1671 @
$(SHLD_MODULE
) $(VFS_PREALLOC_OBJ
)
1673 bin
/commit.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_COMMIT_OBJ
)
1674 @echo
"Building plugin $@"
1675 @
$(SHLD_MODULE
) $(VFS_COMMIT_OBJ
)
1677 bin
/gpfs.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_GPFS_OBJ
)
1678 @echo
"Building plugin $@"
1679 @
$(SHLD_MODULE
) $(VFS_GPFS_OBJ
)
1681 bin
/notify_fam.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_NOTIFY_FAM_OBJ
)
1682 @echo
"Building plugin $@"
1683 @
$(SHLD_MODULE
) $(VFS_NOTIFY_FAM_OBJ
) @SMB_FAM_LIBS@
1685 bin
/readahead.@SHLIBEXT@
: $(BINARY_PREREQS
) $(VFS_READAHEAD_OBJ
)
1686 @echo
"Building plugin $@"
1687 @
$(SHLD_MODULE
) $(VFS_READAHEAD_OBJ
)
1689 #########################################################
1690 ## IdMap NSS plugins
1692 ## None here right now
1693 #########################################################
1695 bin
/wbinfo@EXEEXT@
: $(BINARY_PREREQS
) $(WBINFO_OBJ
) @BUILD_POPT@
1697 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(WBINFO_OBJ
) $(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) @POPTLIBS@
1699 bin
/ntlm_auth@EXEEXT@
: $(BINARY_PREREQS
) $(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1702 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(NTLM_AUTH_OBJ
) \
1703 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBS
) \
1704 @POPTLIBS@
$(KRB5LIBS
) $(LDAP_LIBS
) $(NSCD_LIBS
)
1706 bin
/pam_smbpass.@SHLIBEXT@
: $(BINARY_PREREQS
) $(PAM_SMBPASS_OBJ
)
1707 @echo
"Linking shared library $@"
1708 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_OBJ
) -lpam
$(DYNEXP
) $(LIBS
) $(LDAP_LIBS
) $(KRB5LIBS
) $(NSCD_LIBS
)
1710 bin
/tdbbackup@EXEEXT@
: $(BINARY_PREREQS
) $(TDBBACKUP_OBJ
)
1712 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBBACKUP_OBJ
)
1714 bin
/tdbtool@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTOOL_OBJ
)
1716 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTOOL_OBJ
)
1718 bin
/tdbdump@EXEEXT@
: $(BINARY_PREREQS
) $(TDBDUMP_OBJ
)
1720 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBDUMP_OBJ
)
1722 bin
/tdbtorture@EXEEXT@
: $(BINARY_PREREQS
) $(TDBTORTURE_OBJ
)
1724 @
$(CC
) $(FLAGS
) -o
$@
$(LDFLAGS
) $(DYNEXP
) $(LIBS
) $(TDBTORTURE_OBJ
)
1726 bin
/t_strcmp@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strcmp.o
1727 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strcmp.o
-L .
/bin
-lbigballofmud
1729 bin
/t_strstr@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strstr.o
1730 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strstr.o
-L .
/bin
-lbigballofmud
1732 bin
/t_strappend@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_strappend.o
1733 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_strappend.o
-L .
/bin
-lbigballofmud
1735 bin
/t_stringoverflow@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_stringoverflow.o
1736 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) torture
/t_stringoverflow.o
-L.
/bin
-lbigballofmud
1738 bin
/t_doschar@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_doschar.o
1739 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_doschar.o
-L .
/bin
-lbigballofmud
1740 bin
/t_push_ucs2@EXEEXT@
: $(BINARY_PREREQS
) bin
/libbigballofmud.@SHLIBEXT@ torture
/t_push_ucs2.o
1741 $(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) $(LIBS
) torture
/t_push_ucs2.o
-L .
/bin
-lbigballofmud
1743 bin
/timelimit@EXEEXT@
: script
/tests
/timelimit.o
1745 @
$(CC
) $(FLAGS
) -o
$@
$(DYNEXP
) script
/tests
/timelimit.o
1747 install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@
1750 install-everything
: install installmodules
1752 # DESTDIR is used here to prevent packagers wasting their time
1753 # duplicating the Makefile. Remove it and you will have the privelege
1754 # of package each samba release for muliple versions of multiple
1755 # distributions and operating systems, or at least supplying patches
1756 # to all the packaging files required for this, prior to committing
1757 # the removal of DESTDIR. Do not remove it even though you think it
1761 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
) $(PIDDIR
) $(LOCKDIR
) $(MANDIR
)
1763 installservers
: all installdirs
1764 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1766 installbin
: all installdirs
1767 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1769 installcifsmount
: @CIFSMOUNT_PROGS@
1770 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(ROOTSBINDIR
)
1771 @
$(SHELL
) script
/installbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1773 # Some symlinks are required for the 'probing' of modules.
1774 # This mechanism should go at some point..
1775 installmodules
: modules
installdirs
1776 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1777 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1778 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1779 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1780 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(NSSINFOLIBDIR
) $(NSS_INFO_MODULES
)
1781 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1782 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1783 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
1784 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
1785 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(PDBLIBDIR
) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1786 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1787 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1788 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1789 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(AUTHLIBDIR
) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1790 @
$(SHELL
) $(srcdir)/script
/linkmodules.sh
$(DESTDIR
)$(NSSINFOLIBDIR
) ..
/idmap
/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
1792 installscripts
: installdirs
1793 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1795 installdat
: installdirs
1796 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1798 installmsg
: installdirs
1799 @
$(SHELL
) $(srcdir)/script
/installmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1801 installswat
: installdirs installmsg
1802 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1804 installclientlib
: installdirs libsmbclient
1805 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1806 -$(INSTALLLIBCMD_SH
) bin
/libsmbclient.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1807 -$(INSTALLLIBCMD_A
) bin
/libsmbclient.a
$(DESTDIR
)$(LIBDIR
)
1808 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1809 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/libsmbclient.h
$(DESTDIR
)${prefix}/include
1811 installlibmsrpc
: installdirs libmsrpc
1812 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1813 -$(INSTALLLIBCMD_SH
) bin
/libmsrpc.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1814 -$(INSTALLLIBCMD_A
) bin
/libmsrpc.a
$(DESTDIR
)$(LIBDIR
)
1815 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) ${prefix}/include
1816 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/libmsrpc.h
$(DESTDIR
)${prefix}/include
1818 installlibsmbsharemodes
: installdirs libsmbsharemodes
1819 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1820 -$(INSTALLLIBCMD_SH
) bin
/libsmbsharemodes.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1821 -$(INSTALLLIBCMD_A
) bin
/libsmbsharemodes.a
$(DESTDIR
)$(LIBDIR
)
1822 -$(INSTALLCMD
) -m
$(INSTALLPERMS_DATA
) $(srcdir)/include/smb_share_modes.h
$(DESTDIR
)${prefix}/include
1824 installlibaddns
: installdirs libaddns
1825 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(LIBDIR
)
1826 -$(INSTALLLIBCMD_SH
) bin
/libaddns.@SHLIBEXT@
$(DESTDIR
)$(LIBDIR
)
1827 -$(INSTALLLIBCMD_A
) bin
/libaddns.a
$(DESTDIR
)$(LIBDIR
)
1829 installpammodules
: $(PAM_MODULES
)
1830 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(PAMMODULESDIR
)
1831 @for module in
$(PAM_MODULES
); do \
1832 echo
"Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1833 $(INSTALLCMD
) -m
$(INSTALLPERMS_BIN
) bin
/$${module}.@SHLIBEXT@ \
1834 "$(DESTDIR)/$(PAMMODULESDIR)"; \
1839 PYTHON_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) $(RPC_PARSE_OBJ
) \
1840 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1841 $(SECRETS_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
1843 python_ext
: $(PYTHON_OBJ
)
1844 @if
test -z
"$(PYTHON)"; then \
1845 echo Use the option
--with-python to configure python
; \
1848 PYTHON_OBJS
="$(PYTHON_OBJ)" \
1849 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
1850 LIBS
="$(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
1851 $(PYTHON
) python
/setup.py build
1853 python_install
: $(PYTHON_OBJ
)
1854 @if
test -z
"$(PYTHON)"; then \
1855 echo Use the option
--with-python to configure python
; \
1858 PYTHON_OBJS
="$(PYTHON_OBJ)" \
1859 PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS)" \
1860 LIBS
="$(LDFLAGS) $(LIBS)" \
1861 $(PYTHON
) python
/setup.py
install --root
=$(DESTDIR
)
1864 @
-if
test -n
"$(PYTHON)"; then
$(PYTHON
) python
/setup.py
clean; fi
1867 # revert to the previously installed version
1869 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
1870 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
1872 installman
: installdirs
1873 @SMBMOUNT_PROGS
="@SMBMOUNT_PROGS@" $(SHELL
) \
1874 $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
"@ROFF@"
1879 @echo
"Samba will be installed into:"
1880 @echo
" prefix: $(prefix)"
1881 @echo
" bindir: $(BINDIR)"
1882 @echo
" sbindir: $(SBINDIR)"
1883 @echo
" libdir: $(LIBDIR)"
1884 @echo
" vardir: $(VARDIR)"
1885 @echo
" mandir: $(MANDIR)"
1886 @echo
" privatedir: $(PRIVATE_DIR)"
1887 @echo
" configdir: $(CONFIGDIR)"
1888 @echo
" lockdir: $(LOCKDIR)"
1889 @echo
" piddir: $(PIDDIR)"
1890 @echo
" swatdir: $(SWATDIR)"
1893 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_LIBMSRPC@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@
1896 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) C
1899 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(SBINDIR
) $(SBIN_PROGS
)
1902 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(BINDIR
) $(BIN_PROGS
)
1905 @
$(SHELL
) script
/uninstallbin.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(ROOTSBINDIR
) @CIFSMOUNT_PROGS@
1908 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(VFSLIBDIR
) $(VFS_MODULES
)
1909 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(PDBLIBDIR
) $(PDB_MODULES
)
1910 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(RPCLIBDIR
) $(RPC_MODULES
)
1911 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(IDMAPLIBDIR
) $(IDMAP_MODULES
)
1912 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(CHARSETLIBDIR
) $(CHARSET_MODULES
)
1913 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
) $(prefix) $(AUTHLIBDIR
) $(AUTH_MODULES
)
1916 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS_BIN
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1919 @
$(SHELL
) $(srcdir)/script
/uninstalldat.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1922 @
$(SHELL
) $(srcdir)/script
/uninstallmsg.sh
$(DESTDIR
) $(LIBDIR
) $(srcdir)
1924 uninstallswat
: uninstallmsg
1925 @
$(SHELL
) $(srcdir)/script
/uninstallswat.sh
$(DESTDIR
) $(SWATDIR
) $(srcdir)
1928 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.@SHLIBEXT@
1929 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbclient.a
1930 -rm -f
$(DESTDIR
)${prefix}/include/libsmbclient.h
1933 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libmsrpc.@SHLIBEXT@
1934 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libmsrpc.a
1935 -rm -f
$(DESTDIR
)${prefix}/include/libmsrpc.h
1937 uninstalllibsmbsharemodes
:
1938 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.@SHLIBEXT@
1939 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libsmbsharemodes.a
1942 -$(UNINSTALLLIBCMD_SH
) $(DESTDIR
)$(LIBDIR
)/libaddns.@SHLIBEXT@
1943 -$(UNINSTALLLIBCMD_A
) $(DESTDIR
)$(LIBDIR
)/libaddns.a
1945 uninstallpammodules
:
1946 @for module in
$(PAM_MODULES
); do \
1947 echo
"Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
1948 rm -f
"$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
1951 # Toplevel clean files
1952 TOPFILES
=dynconfig.o
1954 clean: delheaders python_clean
1955 -rm -f
$(PRECOMPILED_HEADER
)
1956 -rm -f core
*/*~
*~ \
1957 */*.o
*/*/*.o
*/*/*/*.o \
1958 */*.d
*/*/*.d
*/*/*/*.d \
1959 */*.@SHLIBEXT@
*/*/*.@SHLIBEXT@
*/*/*/*.@SHLIBEXT@ \
1960 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1961 $(MODULES
) $(TORTURE_PROGS
) $(LIBSMBCLIENT
) $(LIBADDNS
) \
1962 $(LIBSMBSHAREMODES
) $(EVERYTHING_PROGS
) $(LIBMSRPC
) \
1963 .headers.stamp
*/src
/*.o proto_exists
1966 # Making this target will just make sure that the prototype files
1967 # exist, not necessarily that they are up to date. Since they're
1968 # removed by "make clean" this will always be run when you do anything
1970 proto_exists
: include/proto.h
include/build_env.h \
1971 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1972 client
/client_proto.h utils
/net_proto.h utils
/ntlm_auth_proto.h smbd
/build_options.c
1976 @echo Removing prototype headers
1977 @
rm -f
include/proto.h
include/build_env.h \
1978 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1979 client
/client_proto.h utils
/net_proto.h \
1980 smbd
/build_options.c utils
/ntlm_auth_proto.h \
1981 utils
/passwd_proto.h
1983 MKPROTO_SH
= $(srcdir)/script
/mkproto.sh
1985 include/proto.h
: smbd
/build_options.c
1986 @echo Building
include/proto.h
1987 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1988 -h _PROTO_H_
$(builddir
)/include/proto.h \
1991 include/build_env.h
: script
/build_env.sh
1992 @echo Building
include/build_env.h
1993 @
$(SHELL
) $(srcdir)/script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) \
1994 > $(builddir
)/include/build_env.h
1996 nsswitch
/winbindd_proto.h
:
1997 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
1998 -h _WINBINDD_PROTO_H_
$(builddir
)/nsswitch
/winbindd_proto.h \
2002 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2003 -h _SWAT_PROTO_H_
$(builddir
)/web
/swat_proto.h \
2006 client
/client_proto.h
:
2007 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2008 -h _CLIENT_PROTO_H_
$(builddir
)/client
/client_proto.h \
2012 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2013 -h _NET_PROTO_H_
$(builddir
)/utils
/net_proto.h \
2016 utils
/passwd_proto.h
:
2017 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2018 -h _PASSWD_PROTO_H_
$(builddir
)/utils
/passwd_proto.h \
2021 utils
/ntlm_auth_proto.h
:
2022 @cd
$(srcdir) && $(SHELL
) $(MKPROTO_SH
) $(AWK
) \
2023 -h _NTLM_AUTH_PROTO_H_
$(builddir
)/utils
/ntlm_auth_proto.h \
2026 # "make headers" or "make proto" calls a subshell because we need to
2027 # make sure these commands are executed in sequence even for a
2030 $(MAKE
) delheaders
; \
2031 $(MAKE
) smbd
/build_options.c
; \
2032 $(MAKE
) include/proto.h
; \
2033 $(MAKE
) include/build_env.h
; \
2034 $(MAKE
) nsswitch
/winbindd_proto.h
; \
2035 $(MAKE
) web
/swat_proto.h
; \
2036 $(MAKE
) client
/client_proto.h
; \
2037 $(MAKE
) utils
/ntlm_auth_proto.h
; \
2038 $(MAKE
) utils
/net_proto.h
; \
2039 $(MAKE
) utils
/passwd_proto.h
;
2043 .PHONY
: headers proto
2046 etags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2049 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2051 realclean: clean delheaders
2052 -rm -f config.log bin
/.dummy script
/findsmb script
/gen-8bit-gap.sh
2053 -rm -f script
/installbin.sh script
/uninstallbin.sh
2055 distclean: realclean
2057 -rm -f
include/config.h Makefile
2058 -rm -f config.status config.cache so_locations
2061 realdistclean
: distclean
2062 -rm -f
include/config.h.in
2063 -rm -f
include/version.h
2066 # this target is really just for my use. It only works on a limited
2067 # range of machines and is used to produce a list of potentially
2068 # dead (ie. unused) functions in the code. (tridge)
2070 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
2071 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
2072 comm
-13 nmused.txt nmfns.txt
2075 # when configure.in is updated, reconfigure
2076 $(srcdir)/configure
: $(srcdir)/configure.in
2077 @echo
"WARNING: you need to rerun ./autogen.sh"
2079 config.status
: $(srcdir)/configure
2080 @echo
"WARNING: you need to run ./configure"
2082 Makefile
: $(srcdir)/Makefile.in config.status
2083 @echo
"WARNING: you need to run ./config.status"
2085 ######################################################################
2086 # Samba Testing Framework
2088 # Check for NSS module problems.
2089 test_nss_modules
: nss_modules
2090 @echo
"Testing $(NSS_MODULES) "
2091 @for module in
$(NSS_MODULES
); do \
2092 .
/script
/tests
/dlopen.sh
$${module} \
2096 # Check for PAM module problems. Specifically, check that every module we
2097 # built can actually be loaded by a minimal PAM-aware application.
2098 test_pam_modules
: pam_modules
2099 @echo
"Testing $(PAM_MODULES) "
2100 @for module in
$(PAM_MODULES
); do \
2101 .
/script
/tests
/dlopen.sh
-lpam
-ldl bin
/$${module}.@SHLIBEXT@ \
2106 ## Targets for 'make test'
2108 test: all torture timelimit
2109 @echo Running Test suite
2110 @sh
$(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"
2112 valgrindtest
: all torture timelimit
2113 @echo Running Test suite with valgrind
2114 @NMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2115 SMBD_VALGRIND
="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2116 VALGRIND
="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/st/valgrind.log" \
2117 $(srcdir)/script
/tests
/selftest.sh
${selftest_prefix}/st
all "${smbtorture4_path}"