- Put functions for generating SQL queries in pdb_sql.c
[Samba.git] / source / Makefile.in
blob6a60ef02214a9b02bd0f7bbd150dfbbe76816615
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 ###########################################################################
10 prefix=@prefix@
11 exec_prefix=@exec_prefix@
13 LIBS=@LIBS@
14 CC=@CC@
15 SHLD=@SHLD@
16 CFLAGS=@CFLAGS@
17 CPPFLAGS=@CPPFLAGS@
18 EXEEXT=@EXEEXT@
19 LDFLAGS=@LDFLAGS@
20 AR=@AR@
21 LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@
22 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
23 AWK=@AWK@
24 DYNEXP=@DYNEXP@
25 PYTHON=@PYTHON@
26 PERL=@PERL@
28 TERMLDFLAGS=@TERMLDFLAGS@
29 TERMLIBS=@TERMLIBS@
30 PRINT_LIBS=@PRINT_LIBS@
31 AUTH_LIBS=@AUTH_LIBS@
32 ACL_LIBS=@ACL_LIBS@
33 PASSDB_LIBS=@PASSDB_LIBS@
34 IDMAP_LIBS=@IDMAP_LIBS@
35 KRB5LIBS=@KRB5_LIBS@
36 LDAP_LIBS=@LDAP_LIBS@
38 LINK=$(CC) $(FLAGS) $(LDFLAGS)
40 INSTALLCMD=@INSTALL@
41 INSTALLCLIENTCMD_SH=@INSTALLCLIENTCMD_SH@
42 INSTALLCLIENTCMD_A=@INSTALLCLIENTCMD_A@
44 VPATH=@srcdir@
45 srcdir=@abs_srcdir@
46 builddir=@abs_builddir@
47 SHELL=/bin/sh
48 DESTDIR=/
50 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
51 # will search for a POSIX-compliant shell, and that might not be
52 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
54 # See the autoconf manual "Installation Directory Variables" for a
55 # discussion of the subtle use of these variables.
57 BASEDIR= @prefix@
58 BINDIR = @bindir@
59 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
60 SBINDIR = @sbindir@
61 LIBDIR = @libdir@
62 VFSLIBDIR = $(LIBDIR)/vfs
63 PDBLIBDIR = $(LIBDIR)/pdb
64 RPCLIBDIR = $(LIBDIR)/rpc
65 IDMAPLIBDIR = $(LIBDIR)/idmap
66 CHARSETLIBDIR = $(LIBDIR)/charset
67 AUTHLIBDIR = $(LIBDIR)/auth
68 CONFIGDIR = @configdir@
69 VARDIR = @localstatedir@
70 MANDIR = @mandir@
72 # The permissions to give the executables
73 INSTALLPERMS = 0755
75 # set these to where to find various files
76 # These can be overridden by command line switches (see smbd(8))
77 # or in smb.conf (see smb.conf(5))
78 LOGFILEBASE = @logfilebase@
79 CONFIGFILE = $(CONFIGDIR)/smb.conf
80 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
82 # This is where smbpasswd et al go
83 PRIVATEDIR = @privatedir@
85 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
86 PRIVATE_DIR = $(PRIVATEDIR)
88 # This is where SWAT images and help files go
89 SWATDIR = @swatdir@
91 # the directory where lock files go
92 LOCKDIR = @lockdir@
94 # the directory where pid files go
95 PIDDIR = @piddir@
96 # man pages language(s)
97 man_langs = "@manlangs@"
99 LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
100 LIBSMBCLIENT_MAJOR=0
101 LIBSMBCLIENT_MINOR=1
104 FLAGS1 = $(CFLAGS) @FLAGS1@ -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -I$(srcdir)/smbwrapper -I. $(CPPFLAGS) -I$(srcdir)
105 FLAGS2 =
106 FLAGS3 =
107 FLAGS4 =
108 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
109 FLAGS = $(ISA) $(FLAGS5)
111 PASSWD_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" -DPRIVATE_DIR=\"$(PRIVATE_DIR)\"
112 PATH_FLAGS1 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DSBINDIR=\"$(SBINDIR)\"
113 PATH_FLAGS2 = $(PATH_FLAGS1) -DBINDIR=\"$(BINDIR)\" -DDRIVERFILE=\"$(DRIVERFILE)\"
114 PATH_FLAGS3 = $(PATH_FLAGS2) -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
115 PATH_FLAGS4 = $(PATH_FLAGS3) -DSWATDIR=\"$(SWATDIR)\" -DLOCKDIR=\"$(LOCKDIR)\" -DPIDDIR=\"$(PIDDIR)\"
116 PATH_FLAGS5 = $(PATH_FLAGS4) -DLIBDIR=\"$(LIBDIR)\" \
117 -DLOGFILEBASE=\"$(LOGFILEBASE)\" -DSHLIBEXT=\"@SHLIBEXT@\"
118 PATH_FLAGS6 = $(PATH_FLAGS5) -DCONFIGDIR=\"$(CONFIGDIR)\"
119 PATH_FLAGS = $(PATH_FLAGS6) $(PASSWD_FLAGS)
121 # Note that all executable programs now provide for an optional executable suffix.
123 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ bin/swat@EXEEXT@ @EXTRA_SBIN_PROGS@
125 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
126 bin/testparm@EXEEXT@ bin/testprns@EXEEXT@ bin/smbstatus@EXEEXT@
127 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
128 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@
129 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
130 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
131 bin/smbcquotas@EXEEXT@
133 # editreg removed from standard build until it is portable. It needs a major rewrite to
134 # achieve this (tridge)
135 # bin/editreg@EXEEXT@
137 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
138 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
139 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@
141 BIN_PROGS = $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) @EXTRA_BIN_PROGS@
143 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ bin/talloctort@EXEEXT@ \
144 bin/log2pcap@EXEEXT@
146 SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@
148 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
150 VFS_MODULES = @VFS_MODULES@
151 PDB_MODULES = @PDB_MODULES@
152 RPC_MODULES = @RPC_MODULES@
153 IDMAP_MODULES = @IDMAP_MODULES@
154 CHARSET_MODULES = @CHARSET_MODULES@
155 AUTH_MODULES = @AUTH_MODULES@
156 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) $(CHARSET_MODULES) $(AUTH_MODULES)
158 ######################################################################
159 # object file lists
160 ######################################################################
162 TDBBASE_OBJ = tdb/tdb.o tdb/spinlock.o
163 TDB_OBJ = $(TDBBASE_OBJ) tdb/tdbutil.o tdb/tdbback.o
165 SMBLDAP_OBJ = @SMBLDAP@
167 LIB_OBJ = lib/version.o lib/charcnv.o lib/debug.o lib/fault.o \
168 lib/getsmbpass.o lib/interface.o lib/md4.o \
169 lib/interfaces.o lib/pidfile.o lib/replace.o lib/replace1.o \
170 lib/signal.o lib/system.o lib/sendfile.o lib/time.o \
171 lib/ufc.o lib/genrand.o lib/username.o \
172 lib/util_getent.o lib/util_pw.o lib/access.o lib/smbrun.o \
173 lib/bitmap.o lib/crc32.o lib/snprintf.o lib/dprintf.o \
174 lib/xfile.o lib/wins_srv.o \
175 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
176 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
177 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
178 lib/talloc.o lib/hash.o lib/substitute.o lib/fsusage.o \
179 lib/ms_fnmatch.o lib/select.o lib/messages.o \
180 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
181 lib/md5.o lib/hmacmd5.o lib/iconv.o lib/smbpasswd.o \
182 nsswitch/wb_client.o nsswitch/wb_common.o \
183 lib/pam_errors.o intl/lang_tdb.o lib/account_pol.o \
184 lib/adt_tree.o lib/gencache.o $(TDB_OBJ) \
185 lib/module.o lib/ldap_escape.o @CHARSET_STATIC@ \
186 lib/privileges.o lib/secdesc.o lib/secace.o lib/secacl.o
188 LIB_SMBD_OBJ = lib/system_smbd.o lib/util_smbd.o
190 READLINE_OBJ = lib/readline.o
192 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
193 # Be sure to include them into your application
194 POPT_LIB_OBJ = lib/popt_common.o
196 UBIQX_OBJ = ubiqx/ubi_BinTree.o ubiqx/ubi_Cache.o ubiqx/ubi_SplayTree.o \
197 ubiqx/ubi_dLinkList.o ubiqx/ubi_sLinkList.o
199 PARAM_OBJ = dynconfig.o param/loadparm.o param/params.o
201 KRBCLIENT_OBJ = libads/kerberos.o
203 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o libads/sasl.o \
204 libads/krb5_setpw.o libads/ldap_user.o \
205 libads/ads_struct.o libads/ads_status.o \
206 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
207 libads/ads_ldap.o libads/authdata.o
209 LIBADS_SERVER_OBJ = libads/util.o libads/kerberos_verify.o
211 SECRETS_OBJ = passdb/secrets.o
213 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
214 libsmb/namequery.o libsmb/conncache.o
216 LIBSAMBA_OBJ = libsmb/nterr.o libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ntlm_check.o \
217 libsmb/ntlmssp.o libsmb/ntlmssp_parse.o libsmb/ntlmssp_sign.o
219 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
220 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
221 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
222 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
223 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
224 libsmb/clistr.o lib/util_seaccess.o \
225 libsmb/cliquota.o libsmb/clifsinfo.o \
226 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
227 libsmb/clioplock.o libsmb/errormap.o libsmb/clirap2.o \
228 libsmb/passchange.o libsmb/doserr.o \
229 $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(LIBNMB_OBJ)
231 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
232 rpc_client/cli_netlogon.o rpc_client/cli_srvsvc.o \
233 rpc_client/cli_wkssvc.o rpc_client/cli_dfs.o \
234 rpc_client/cli_reg.o rpc_client/cli_pipe.o \
235 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
236 rpc_client/cli_ds.o rpc_client/cli_echo.o \
237 rpc_client/cli_shutdown.o
239 REGOBJS_OBJ = registry/reg_objects.o
240 REGISTRY_OBJ = registry/reg_frontend.o registry/reg_cachehook.o registry/reg_printing.o \
241 registry/reg_db.o
243 RPC_LSA_OBJ = rpc_server/srv_lsa.o rpc_server/srv_lsa_nt.o
245 RPC_NETLOG_OBJ = rpc_server/srv_netlog.o rpc_server/srv_netlog_nt.o
247 RPC_SAMR_OBJ = rpc_server/srv_samr.o rpc_server/srv_samr_nt.o \
248 rpc_server/srv_samr_util.o
250 RPC_REG_OBJ = rpc_server/srv_reg.o rpc_server/srv_reg_nt.o
252 RPC_LSA_DS_OBJ = rpc_server/srv_lsa_ds.o rpc_server/srv_lsa_ds_nt.o
254 RPC_SVC_OBJ = rpc_server/srv_srvsvc.o rpc_server/srv_srvsvc_nt.o
256 RPC_WKS_OBJ = rpc_server/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
258 RPC_DFS_OBJ = rpc_server/srv_dfs.o rpc_server/srv_dfs_nt.o
259 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
261 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o rpc_server/srv_util.o \
262 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
264 RPC_ECHO_OBJ = rpc_server/srv_echo.o rpc_server/srv_echo_nt.o
266 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
268 # this includes only the low level parse code, not stuff
269 # that requires knowledge of security contexts
270 RPC_PARSE_OBJ1 = rpc_parse/parse_prs.o rpc_parse/parse_sec.o \
271 rpc_parse/parse_misc.o
273 RPC_PARSE_OBJ = rpc_parse/parse_lsa.o rpc_parse/parse_net.o \
274 rpc_parse/parse_reg.o rpc_parse/parse_rpc.o \
275 rpc_parse/parse_samr.o rpc_parse/parse_srv.o \
276 rpc_parse/parse_wks.o rpc_parse/parse_ds.o \
277 rpc_parse/parse_spoolss.o rpc_parse/parse_dfs.o \
278 rpc_parse/parse_echo.o rpc_parse/parse_shutdown.o \
279 $(REGOBJS_OBJ)
282 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
284 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
286 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
288 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
289 passdb/machine_sid.o passdb/util_sam_sid.o passdb/pdb_compat.o \
290 passdb/privileges.o passdb/lookup_sid.o @PDB_STATIC@ passdb/pdb_sql.o
292 XML_OBJ = passdb/pdb_xml.o
293 MYSQL_OBJ = passdb/pdb_mysql.o
294 PGSQL_OBJ = passdb/pdb_pgsql.o
295 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
296 CP850_OBJ = modules/CP850.o
297 CP437_OBJ = modules/CP437.o
298 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
300 GROUPDB_OBJ = groupdb/mapping.o
302 PROFILE_OBJ = profile/profile.o
303 PROFILES_OBJ = utils/profiles.o
304 EDITREG_OBJ = utils/editreg.o
306 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
308 NOTIFY_OBJ = smbd/notify.o smbd/notify_hash.o smbd/notify_kernel.o
310 VFS_AUDIT_OBJ = modules/vfs_audit.o
311 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
312 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
313 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
314 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
315 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
316 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
317 VFS_CAP_OBJ = modules/vfs_cap.o
319 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
321 SLCACHE_OBJ = libsmb/samlogon_cache.o
323 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o
325 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
326 AUTH_DOMAIN_OBJ = auth/auth_domain.o
327 AUTH_SAM_OBJ = auth/auth_sam.o
328 AUTH_RHOSTS_OBJ = auth/auth_rhosts.o
329 AUTH_SERVER_OBJ = auth/auth_server.o
330 AUTH_UNIX_OBJ = auth/auth_unix.o
331 AUTH_WINBIND_OBJ = auth/auth_winbind.o
333 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/auth_compat.o \
334 auth/auth_ntlmssp.o \
335 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
337 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_map.o smbd/mangle_hash2.o
339 SMBD_OBJ_MAIN = smbd/server.o
341 BUILDOPT_OBJ = smbd/build_options.o
343 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
344 smbd/utmp.o smbd/session.o \
345 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/fileio.o \
346 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
347 smbd/message.o smbd/nttrans.o smbd/pipes.o \
348 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
349 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
350 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
351 smbd/vfs.o smbd/vfs-wrap.o smbd/statcache.o \
352 smbd/posix_acls.o lib/sysacls.o lib/server_mutex.o \
353 smbd/process.o smbd/service.o smbd/error.o \
354 printing/printfsp.o \
355 lib/sysquotas.o smbd/change_trust_pw.o smbd/fake_file.o \
356 smbd/quotas.o smbd/ntquotas.o lib/afs.o \
357 $(MANGLE_OBJ) @VFS_STATIC@
359 SMBD_OBJ_BASE = $(PARAM_OBJ) $(SMBD_OBJ_SRV) $(MSDFS_OBJ) $(LIBSMB_OBJ) \
360 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) $(SECRETS_OBJ) \
361 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
362 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
363 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
364 $(LIBMSRPC_OBJ) \
365 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
366 $(LIB_SMBD_OBJ) $(REGISTRY_OBJ) $(POPT_LIB_OBJ) \
367 $(UBIQX_OBJ) $(BUILDOPT_OBJ) $(SMBLDAP_OBJ)
369 PRINTING_OBJ = printing/pcap.o printing/print_svid.o \
370 printing/print_cups.o printing/print_generic.o \
371 printing/lpq_parse.o printing/load.o
373 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o printing/notify.o \
374 printing/printing_db.o
376 MSDFS_OBJ = msdfs/msdfs.o
378 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
379 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
380 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
381 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
382 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
383 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
384 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
385 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
386 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
387 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
388 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
389 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
390 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
392 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(UBIQX_OBJ) \
393 $(PROFILE_OBJ) $(LIB_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
395 WREPL_OBJ1 = wrepld/server.o wrepld/process.o wrepld/parser.o wrepld/socket.o \
396 wrepld/partners.o
398 WREPL_OBJ = $(WREPL_OBJ1) $(PARAM_OBJ) $(UBIQX_OBJ) \
399 $(PROFILE_OBJ) $(LIB_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
400 $(LIBSAMBA_OBJ)
402 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
403 web/swat.o web/neg_lang.o
405 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
406 $(LOCKING_OBJ) $(PASSDB_OBJ) $(SECRETS_OBJ) $(KRBCLIENT_OBJ) \
407 $(UBIQX_OBJ) $(LIB_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
408 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) lib/dummyroot.o
410 SMBSH_OBJ = smbwrapper/smbsh.o smbwrapper/shared.o \
411 $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
413 STATUS_OBJ = utils/status.o $(LOCKING_OBJ) $(PARAM_OBJ) \
414 $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) $(POPT_LIB_OBJ) \
415 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) lib/dummyroot.o libsmb/errormap.o
417 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
418 $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) $(POPT_LIB_OBJ) \
419 $(SECRETS_OBJ) $(LIBSAMBA_OBJ) \
420 printing/notify.o printing/printing_db.o lib/dummyroot.o libsmb/errormap.o
422 SMBTREE_OBJ = utils/smbtree.o $(LOCKING_OBJ) $(PARAM_OBJ) \
423 $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) $(LIBSMB_OBJ) \
424 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ)
426 TESTPARM_OBJ = utils/testparm.o \
427 $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) $(POPT_LIB_OBJ) \
428 $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
430 TESTPRNS_OBJ = utils/testprns.o $(PARAM_OBJ) $(PRINTING_OBJ) $(UBIQX_OBJ) \
431 $(LIB_OBJ)
433 SMBPASSWD_OBJ = utils/smbpasswd.o $(PARAM_OBJ) $(SECRETS_OBJ) \
434 $(LIBSMB_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ)\
435 $(UBIQX_OBJ) $(LIB_OBJ) $(KRBCLIENT_OBJ) \
436 $(SMBLDAP_OBJ) lib/dummyroot.o
438 PDBEDIT_OBJ = utils/pdbedit.o $(PARAM_OBJ) $(PASSDB_OBJ) $(LIBSAMBA_OBJ) \
439 $(UBIQX_OBJ) $(LIB_OBJ) $(GROUPDB_OBJ) $(SECRETS_OBJ) \
440 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) lib/dummyroot.o
442 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
443 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
444 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
445 rpcclient/cmd_dfs.o rpcclient/cmd_reg.o \
446 rpcclient/display_sec.o rpcclient/cmd_ds.o \
447 rpcclient/cmd_echo.o rpcclient/cmd_shutdown.o
449 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
450 $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
451 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(LIBMSRPC_OBJ) \
452 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
453 $(LIBADS_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
454 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) lib/dummyroot.o
456 PAM_WINBIND_PICOBJ = nsswitch/pam_winbind.@PICSUFFIX@ \
457 nsswitch/wb_common.@PICSUFFIX@ lib/replace1.@PICSUFFIX@ \
458 lib/snprintf.@PICSUFFIX@
460 SMBW_OBJ1 = smbwrapper/smbw.o \
461 smbwrapper/smbw_dir.o smbwrapper/smbw_stat.o \
462 smbwrapper/realcalls.o smbwrapper/shared.o \
463 smbwrapper/smbw_cache.o
465 SMBW_OBJ = $(SMBW_OBJ1) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(PARAM_OBJ) \
466 $(UBIQX_OBJ) $(LIB_OBJ)
468 SMBWRAPPER_OBJ1 = smbwrapper/wrapped.o
470 SMBWRAPPER_OBJ = $(SMBW_OBJ) $(SMBWRAPPER_OBJ1)
472 LIBSMBCLIENT_OBJ = libsmb/libsmbclient.o libsmb/libsmb_compat.o \
473 libsmb/libsmb_cache.o \
474 $(PARAM_OBJ) $(LIB_OBJ) \
475 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(UBIQX_OBJ) \
476 $(LIBMSRPC_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_GET_SET_OBJ)
478 # This shared library is intended for linking with unit test programs
479 # to test Samba internals. It's called libbigballofmud.so to
480 # discourage casual usage.
482 LIBBIGBALLOFMUD_MAJOR = 0
484 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_OBJ) $(UBIQX_OBJ) $(SECRETS_OBJ) \
485 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) \
486 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) lib/dummyroot.o
488 LIBBIGBALLOFMUD_PICOBJS = $(LIBBIGBALLOFMUD_OBJ:.o=.@PICSUFFIX@)
490 CLIENT_OBJ1 = client/client.o client/clitar.o
492 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) \
493 $(LIB_OBJ) $(KRBCLIENT_OBJ) \
494 $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ)
496 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_ads_cldap.o utils/net_help.o \
497 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
498 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
499 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
500 utils/net_status.o
502 NET_OBJ = $(NET_OBJ1) $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
503 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
504 $(KRBCLIENT_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
505 $(LIBMSRPC_OBJ) $(IDMAP_OBJ) \
506 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
507 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) lib/dummyroot.o lib/server_mutex.o lib/afs.o
509 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) \
510 $(LIB_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ)
512 MOUNT_OBJ = client/smbmount.o \
513 $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
515 MNT_OBJ = client/smbmnt.o lib/version.o lib/snprintf.o
517 UMOUNT_OBJ = client/smbumount.o
519 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(UBIQX_OBJ) $(LIBNMB_OBJ) \
520 $(LIB_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
522 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
523 torture/denytest.o torture/mangle_test.o
525 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
526 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
528 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
529 $(UBIQX_OBJ) $(LIB_OBJ)
531 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
532 $(UBIQX_OBJ) $(LIB_OBJ)
534 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
535 $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
537 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
538 $(UBIQX_OBJ) $(LIB_OBJ)
540 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
542 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_OBJ) $(UBIQX_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
544 LOG2PCAP_OBJ = utils/log2pcaphex.o
546 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
547 $(KRBCLIENT_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
549 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
550 $(KRBCLIENT_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) $(RPC_PARSE_OBJ) \
551 $(PASSDB_GET_SET_OBJ) $(LIBMSRPC_OBJ) $(SECRETS_OBJ) \
552 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ)
554 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LOCKING_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
555 $(PARAM_OBJ) \
556 $(UBIQX_OBJ) $(LIB_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_GET_SET_OBJ) \
557 $(LIBMSRPC_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
559 TALLOCTORT_OBJ = lib/talloctort.o $(PARAM_OBJ) $(LIB_OBJ) $(UBIQX_OBJ)
561 RPCTORTURE_OBJ = torture/rpctorture.o \
562 rpcclient/display.o \
563 rpcclient/cmd_lsarpc.o \
564 rpcclient/cmd_wkssvc.o \
565 rpcclient/cmd_samr.o \
566 rpcclient/cmd_srvsvc.o \
567 rpcclient/cmd_netlogon.o \
568 $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) $(KRBCLIENT_OBJ) \
569 $(RPC_CLIENT_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_GET_SET_OBJ)
571 DEBUG2HTML_OBJ = utils/debug2html.o ubiqx/debugparse.o
573 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
574 $(UBIQX_OBJ) $(LIB_OBJ) $(KRBCLIENT_OBJ)
576 PROTO_OBJ = $(SMBD_OBJ_MAIN) \
577 $(SMBD_OBJ_SRV) $(NMBD_OBJ1) $(SWAT_OBJ1) $(LIB_OBJ) $(LIBSMB_OBJ) \
578 $(SMBW_OBJ1) $(SMBWRAPPER_OBJ1) $(SMBTORTURE_OBJ1) $(RPCCLIENT_OBJ1) \
579 $(LIBMSRPC_OBJ) $(RPC_CLIENT_OBJ) \
580 $(RPC_PIPE_OBJ) $(RPC_PARSE_OBJ) $(KRBCLIENT_OBJ) \
581 $(AUTH_OBJ) $(PARAM_OBJ) $(LOCKING_OBJ) $(SECRETS_OBJ) \
582 $(PRINTING_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) $(NOTIFY_OBJ) \
583 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(MSDFS_OBJ) \
584 $(READLINE_OBJ) $(PROFILE_OBJ) $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) \
585 $(LIB_SMBD_OBJ) $(SAM_OBJ) $(REGISTRY_OBJ) $(POPT_LIB_OBJ) \
586 $(RPC_LSA_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ) $(RPC_REG_OBJ) $(RPC_LSA_DS_OBJ) \
587 $(RPC_SVC_OBJ) $(RPC_WKS_OBJ) $(RPC_DFS_OBJ) $(RPC_SPOOLSS_OBJ) \
588 $(RPC_ECHO_OBJ) $(SMBLDAP_OBJ) $(IDMAP_OBJ) libsmb/spnego.o
590 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) $(UBIQX_OBJ) \
591 $(LIBSMB_OBJ) $(LIB_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ)
593 WINBIND_WINS_NSS_PICOBJS = $(WINBIND_WINS_NSS_OBJ:.o=.@PICSUFFIX@)
595 PICOBJS = $(SMBWRAPPER_OBJ:.o=.@PICSUFFIX@)
596 LIBSMBCLIENT_PICOBJS = $(LIBSMBCLIENT_OBJ:.o=.@PICSUFFIX@)
598 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
599 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
600 lib/dummyroot.o $(PARAM_OBJ) $(LIB_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
601 $(SECRETS_OBJ) $(UBIQX_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ)
603 PAM_SMBPASS_PICOOBJ = $(PAM_SMBPASS_OBJ_0:.o=.@PICSUFFIX@)
605 IDMAP_OBJ = sam/idmap.o sam/idmap_util.o @IDMAP_STATIC@
607 WINBINDD_OBJ1 = \
608 nsswitch/winbindd.o \
609 nsswitch/winbindd_user.o \
610 nsswitch/winbindd_group.o \
611 nsswitch/winbindd_util.o \
612 nsswitch/winbindd_cache.o \
613 nsswitch/winbindd_pam.o \
614 nsswitch/winbindd_sid.o \
615 nsswitch/winbindd_misc.o \
616 nsswitch/winbindd_cm.o \
617 nsswitch/winbindd_wins.o \
618 nsswitch/winbindd_rpc.o \
619 nsswitch/winbindd_ads.o \
620 nsswitch/winbindd_dual.o \
621 nsswitch/winbindd_acct.o
623 WINBINDD_OBJ = \
624 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
625 $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
626 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(RPC_PARSE_OBJ) \
627 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
628 $(SECRETS_OBJ) $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
629 $(DCUTIL_OBJ) $(IDMAP_OBJ) lib/dummyroot.o
631 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_OBJ) \
632 $(UBIQX_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ)
634 WINBIND_NSS_OBJ = nsswitch/wb_common.o lib/replace1.o @WINBIND_NSS_EXTRA_OBJS@
636 WINBIND_NSS_PICOBJS = $(WINBIND_NSS_OBJ:.o=.@PICSUFFIX@) lib/snprintf.@PICSUFFIX@
638 POPT_OBJS=popt/findme.o popt/popt.o popt/poptconfig.o \
639 popt/popthelp.o popt/poptparse.o
641 TDBBACKUP_OBJ = tdb/tdbbackup.o tdb/tdbback.o lib/snprintf.o $(TDBBASE_OBJ)
643 TDBDUMP_OBJ = tdb/tdbdump.o $(TDBBASE_OBJ)
645 NTLM_AUTH_OBJ = utils/ntlm_auth.o $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
646 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
647 libads/kerberos_verify.o $(SECRETS_OBJ) lib/server_mutex.o \
648 libads/authdata.o rpc_parse/parse_prs.o rpc_parse/parse_misc.o \
649 libsmb/doserr.o
651 ######################################################################
652 # now the rules...
653 ######################################################################
654 all : SHOWFLAGS proto_exists $(SBIN_PROGS) $(BIN_PROGS) $(SHLIBS) \
655 $(MODULES) @EXTRA_ALL_TARGETS@
657 pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
659 smbwrapper : SHOWFLAGS @SMBWRAPPER@
661 torture : SHOWFLAGS $(TORTURE_PROGS)
663 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
665 masktest : SHOWFLAGS bin/masktest@EXEEXT@
667 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
669 locktest : SHOWFLAGS bin/locktest@EXEEXT@
671 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
673 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
675 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
677 rpctorture : SHOWFLAGS bin/rpctorture@EXEEXT@
679 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
681 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
683 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
685 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
686 @WINBIND_WINS_NSS@ nsswitch/pam_winbind.@SHLIBEXT@
688 wins : SHOWFLAGS @WINBIND_WINS_NSS@
690 modules: SHOWFLAGS proto_exists $(MODULES)
692 everything: all libsmbclient debug2html smbfilter talloctort modules torture \
693 $(EVERYTHING_PROGS)
695 .SUFFIXES:
696 .SUFFIXES: .c .o .@PICSUFFIX@ .lo
698 SHOWFLAGS:
699 @echo "Using FLAGS = $(FLAGS)"
700 @echo " LIBS = $(LIBS)"
701 @echo " LDSHFLAGS = $(LDSHFLAGS)"
702 @echo " LDFLAGS = $(LDFLAGS)"
704 MAKEDIR = || exec false; \
705 if test -d "$$dir"; then :; else \
706 echo mkdir "$$dir"; \
707 mkdir -p "$$dir" >/dev/null 2>&1 || \
708 test -d "$$dir" || \
709 mkdir "$$dir" || \
710 exec false; fi || exec false
712 .c.o:
713 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
714 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
715 @echo Compiling $*.c
716 @$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
717 -o $@
718 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
720 # this adds support for precompiled headers. To use it, install a snapshot
721 # of gcc-3.4 and run 'make pch' before you do the main build.
722 pch:
723 rm -f $(srcdir)/include/includes.h.gch
724 $(CC) -I. -I$(srcdir) $(FLAGS) -c $(srcdir)/include/includes.h -o $(srcdir)/include/includes.h.gch
726 # These dependencies are only approximately correct: we want to make
727 # sure Samba's paths are updated if ./configure is re-run. Really it
728 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
729 # but since we also require "make install prefix=/opt/samba" *not* to
730 # rebuild it's a bit hard.
732 dynconfig.o: dynconfig.c Makefile
733 @echo Compiling $*.c
734 @$(CC) $(FLAGS) $(PATH_FLAGS) -c $< -o $@
736 dynconfig.@PICSUFFIX@: dynconfig.c Makefile
737 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
738 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
739 @echo Compiling $*.c with @PICFLAGS@
740 @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) @PICFLAGS@ -c $< -o $*.@PICSUFFIX@
741 @BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.@PICSUFFIX@$$%.o%'` $@
742 @POBAD_CC@ @mv $*.@PICSUFFIX@.o $@
744 lib/version.o: lib/version.c include/version.h
745 @echo Compiling $*.c
746 @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) -c $< -o $@
748 lib/version.@PICSUFFIX@: lib/version.c include/version.h
749 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
750 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
751 @echo Compiling $*.c with @PICFLAGS@
752 @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) @PICFLAGS@ -c $< -o $*.@PICSUFFIX@
753 @BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.@PICSUFFIX@$$%.o%'` $@
754 @POBAD_CC@ @mv $*.@PICSUFFIX@.o $@
756 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
757 @echo Compiling $*.c
758 @$(CC) $(FLAGS) $(PATH_FLAGS) -c $< -o $@
760 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
761 @echo Generating $@
762 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
764 .c.@PICSUFFIX@:
765 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
766 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
767 @echo Compiling $*.c with @PICFLAGS@
768 @$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAGS@ -c $< -o $*.@PICSUFFIX@
769 @BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.@PICSUFFIX@$$%.o%'` $@
770 @POBAD_CC@ @mv $*.@PICSUFFIX@.o $@
772 bin/.dummy:
773 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
774 dir=bin $(MAKEDIR); fi
775 @: >> $@ || : > $@ # what a fancy emoticon!
777 bin/smbd@EXEEXT@: $(SMBD_OBJ) @BUILD_POPT@ bin/.dummy
778 @echo Linking $@
779 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
780 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
781 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@
783 bin/nmbd@EXEEXT@: $(NMBD_OBJ) @BUILD_POPT@ bin/.dummy
784 @echo Linking $@
785 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
787 bin/wrepld@EXEEXT@: $(WREPL_OBJ) @BUILD_POPT@ bin/.dummy
788 @echo Linking $@
789 @$(CC) $(FLAGS) -o $@ $(WREPL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@
791 bin/swat@EXEEXT@: $(SWAT_OBJ) @BUILD_POPT@ bin/.dummy
792 @echo Linking $@
793 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
794 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
796 bin/rpcclient@EXEEXT@: $(RPCCLIENT_OBJ) @BUILD_POPT@ bin/.dummy
797 @echo Linking $@
798 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
799 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ \
800 $(KRB5LIBS) $(LDAP_LIBS)
802 bin/smbclient@EXEEXT@: $(CLIENT_OBJ) @BUILD_POPT@ bin/.dummy
803 @echo Linking $@
804 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
806 bin/net@EXEEXT@: $(NET_OBJ) @BUILD_POPT@ bin/.dummy
807 @echo Linking $@
808 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS)
810 bin/profiles@EXEEXT@: $(PROFILES_OBJ) @BUILD_POPT@ bin/.dummy
811 @echo Linking $@
812 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(LDFLAGS) $(LIBS) @POPTLIBS@
814 bin/editreg@EXEEXT@: $(EDITREG_OBJ) @BUILD_POPT@ bin/.dummy
815 @echo Linking $@
816 @$(CC) $(FLAGS) -o $@ $(EDITREG_OBJ) $(LDFLAGS) $(LIBS) @POPTLIBS@
818 bin/smbspool@EXEEXT@: $(CUPS_OBJ) bin/.dummy
819 @echo Linking $@
820 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
822 bin/smbmount@EXEEXT@: $(MOUNT_OBJ) bin/.dummy
823 @echo Linking $@
824 @$(CC) $(FLAGS) -o $@ $(MOUNT_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
826 bin/smbmnt@EXEEXT@: $(MNT_OBJ) bin/.dummy
827 @echo Linking $@
828 @$(CC) $(FLAGS) -o $@ $(MNT_OBJ) $(LDFLAGS)
830 bin/smbumount@EXEEXT@: $(UMOUNT_OBJ) bin/.dummy
831 @echo Linking $@
832 @$(CC) $(FLAGS) -o $@ $(UMOUNT_OBJ) $(LDFLAGS)
834 bin/testparm@EXEEXT@: $(TESTPARM_OBJ) @BUILD_POPT@ bin/.dummy
835 @echo Linking $@
836 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@
838 bin/testprns@EXEEXT@: $(TESTPRNS_OBJ) bin/.dummy
839 @echo Linking $@
840 @$(CC) $(FLAGS) -o $@ $(TESTPRNS_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) $(LIBS)
842 bin/smbstatus@EXEEXT@: $(STATUS_OBJ) @BUILD_POPT@ bin/.dummy
843 @echo Linking $@
844 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
845 @POPTLIBS@
847 bin/smbcontrol@EXEEXT@: $(SMBCONTROL_OBJ) @BUILD_POPT@ bin/.dummy
848 @echo Linking $@
849 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ $(SMBCONTROL_OBJ) $(DYNEXP) \
850 $(LDFLAGS) $(LIBS) \
851 @POPTLIBS@
853 bin/smbtree@EXEEXT@: $(SMBTREE_OBJ) @BUILD_POPT@ bin/.dummy
854 @echo Linking $@
855 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
857 bin/smbpasswd@EXEEXT@: $(SMBPASSWD_OBJ) bin/.dummy
858 @echo Linking $@
859 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
860 $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
862 bin/pdbedit@EXEEXT@: $(PDBEDIT_OBJ) @BUILD_POPT@ bin/.dummy
863 @echo Linking $@
864 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(PASSDB_LIBS) $(LDAP_LIBS)
866 bin/samtest@EXEEXT@: $(SAMTEST_OBJ) @BUILD_POPT@ bin/.dummy
867 @echo Linking $@
868 @$(CC) $(FLAGS) -o $@ $(SAMTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(PASSDB_LIBS) $(KRB5LIBS) $(LDAP_LIBS)
870 bin/nmblookup@EXEEXT@: $(NMBLOOKUP_OBJ) @BUILD_POPT@ bin/.dummy
871 @echo Linking $@
872 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(LDAP_LIBS)
874 bin/smbtorture@EXEEXT@: $(SMBTORTURE_OBJ) bin/.dummy
875 @echo Linking $@
876 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(SECRETS_OBJ)
878 bin/talloctort@EXEEXT@: $(TALLOCTORT_OBJ) bin/.dummy
879 @echo Linking $@
880 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) $(LIBS)
882 bin/masktest@EXEEXT@: $(MASKTEST_OBJ) bin/.dummy
883 @echo Linking $@
884 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(SECRETS_OBJ)
886 bin/msgtest@EXEEXT@: $(MSGTEST_OBJ) bin/.dummy
887 @echo Linking $@
888 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
890 bin/smbcacls@EXEEXT@: $(SMBCACLS_OBJ) @BUILD_POPT@ bin/.dummy
891 @echo Linking $@
892 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
894 bin/smbcquotas@EXEEXT@: $(SMBCQUOTAS_OBJ) @BUILD_POPT@ bin/.dummy
895 @echo Linking $@
896 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
898 bin/locktest@EXEEXT@: $(LOCKTEST_OBJ) bin/.dummy
899 @echo Linking $@
900 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
902 bin/nsstest@EXEEXT@: $(NSSTEST_OBJ) bin/.dummy
903 @echo Linking $@
904 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
906 bin/vfstest@EXEEXT@: $(VFSTEST_OBJ) @BUILD_POPT@ bin/.dummy
907 @echo Linking $@
908 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
910 bin/smbiconv@EXEEXT@: $(SMBICONV_OBJ) @BUILD_POPT@ bin/.dummy
911 @echo Linking $@
912 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) @POPTLIBS@
914 bin/log2pcap@EXEEXT@: $(LOG2PCAP_OBJ) @BUILD_POPT@ bin/.dummy
915 @echo Linking $@
916 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) @POPTLIBS@ $(LIBS)
918 bin/locktest2@EXEEXT@: $(LOCKTEST2_OBJ) bin/.dummy
919 @echo Linking $@
920 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
922 bin/rpctorture@EXEEXT@: $(RPCTORTURE_OBJ) bin/.dummy
923 @echo Linking $@
924 @$(CC) $(FLAGS) -o $@ $(RPCTORTURE_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
926 bin/debug2html@EXEEXT@: $(DEBUG2HTML_OBJ) bin/.dummy
927 @echo Linking $@
928 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(LIBS)
930 bin/smbfilter@EXEEXT@: $(SMBFILTER_OBJ) bin/.dummy
931 @echo Linking $@
932 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
934 bin/smbw_sample@EXEEXT@: $(SMBW_OBJ) utils/smbw_sample.o bin/.dummy
935 @echo Linking $@
936 @$(CC) $(FLAGS) -o $@ $(SMBW_OBJ) utils/smbw_sample.o $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
938 bin/smbsh@EXEEXT@: $(SMBSH_OBJ) bin/.dummy
939 @echo Linking $@
940 @$(CC) $(FLAGS) -o $@ $(SMBSH_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
942 bin/smbwrapper.@SHLIBEXT@: $(PICOBJS) bin/.dummy
943 @echo Linking shared library $@
944 @$(SHLD) $(LDSHFLAGS) -o $@ $(PICOBJS) $(LIBS) \
945 $(KRB5LIBS) $(LDAP_LIBS) \
946 @SONAMEFLAG@`basename $@`
948 bin/libsmbclient.@SHLIBEXT@: $(LIBSMBCLIENT_PICOBJS)
949 @echo Linking libsmbclient shared library $@
950 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBCLIENT_PICOBJS) $(LDFLAGS) $(DYNEXP) $(LIBS) \
951 $(KRB5LIBS) $(LDAP_LIBS) \
952 @SONAMEFLAG@`basename $@`.$(LIBSMBCLIENT_MAJOR)
954 bin/libsmbclient.a: $(LIBSMBCLIENT_PICOBJS)
955 @echo Linking libsmbclient non-shared library $@
956 @-$(AR) -rc $@ $(LIBSMBCLIENT_PICOBJS)
958 # This is probably wrong for anything other than the GNU linker.
959 bin/libbigballofmud.@SHLIBEXT@: $(LIBBIGBALLOFMUD_PICOBJS)
960 @echo Linking bigballofmud shared library $@
961 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_PICOBJS) $(LIBS) \
962 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
963 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
964 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
966 # It would be nice to build a static bigballofmud too, but when I try
967 # I get linker errors about dl_open and similar things. I'm not sure if
968 # it can be fixed or if they just can't be called from a static
969 # library.
971 libsmbclient: $(LIBSMBCLIENT)
973 bin/librpc_lsarpc.@SHLIBEXT@: $(RPC_LSA_OBJ)
974 @echo "Linking $@"
975 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_LSA_OBJ) -lc \
976 @SONAMEFLAG@`basename $@`
978 bin/librpc_samr.@SHLIBEXT@: $(RPC_SAMR_OBJ)
979 @echo "Linking $@"
980 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SAMR_OBJ) -lc \
981 @SONAMEFLAG@`basename $@`
983 bin/librpc_srvsvc.@SHLIBEXT@: $(RPC_SVC_OBJ)
984 @echo "Linking $@"
985 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SVC_OBJ) -lc \
986 @SONAMEFLAG@`basename $@`
988 bin/librpc_wkssvc.@SHLIBEXT@: $(RPC_WKS_OBJ)
989 @echo "Linking $@"
990 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_WKS_OBJ) -lc \
991 @SONAMEFLAG@`basename $@`
993 bin/librpc_NETLOGON.@SHLIBEXT@: $(RPC_NETLOG_OBJ)
994 @echo "Linking $@"
995 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_NETLOG_OBJ) -lc \
996 @SONAMEFLAG@`basename $@`
998 bin/librpc_winreg.@SHLIBEXT@: $(RPC_REG_OBJ)
999 @echo "Linking $@"
1000 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_REG_OBJ) -lc \
1001 @SONAMEFLAG@`basename $@`
1003 bin/librpc_lsa_ds.@SHLIBEXT@: $(RPC_LSA_DS_OBJ)
1004 @echo "Linking $@"
1005 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_LSA_DS_OBJ) -lc \
1006 @SONAMEFLAG@`basename $@`
1008 bin/librpc_spoolss.@SHLIBEXT@: $(RPC_SPOOLSS_OBJ)
1009 @echo "Linking $@"
1010 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SPOOLSS_OBJ) -lc \
1011 @SONAMEFLAG@`basename $@`
1013 bin/librpc_netdfs.@SHLIBEXT@: $(RPC_DFS_OBJ)
1014 @echo "Linking $@"
1015 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_DFS_OBJ) -lc \
1016 @SONAMEFLAG@`basename $@`
1018 bin/librpc_echo.@SHLIBEXT@: $(RPC_ECHO_OBJ)
1019 @echo "Linking $@"
1020 @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_ECHO_OBJ) -lc \
1021 @SONAMEFLAG@`basename $@`
1023 bin/winbindd@EXEEXT@: $(WINBINDD_OBJ) @BUILD_POPT@ bin/.dummy
1024 @echo "Linking $@"
1025 @$(LINK) -o $@ $(WINBINDD_OBJ) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS)
1027 # Please don't add .o files to libnss_winbind, libnss_wins, or the pam_winbind
1028 # libraries. Add to the appropriate PICOBJ variable instead.
1030 @WINBIND_NSS@: $(WINBIND_NSS_PICOBJS)
1031 @echo "Linking $@"
1032 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_PICOBJS) \
1033 @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`
1035 @WINBIND_WINS_NSS@: $(WINBIND_WINS_NSS_PICOBJS)
1036 @echo "Linking $@"
1037 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_PICOBJS) \
1038 $(LDAP_LIBS) $(KRB5LIBS) -lc \
1039 @SONAMEFLAG@`basename $@`
1041 nsswitch/pam_winbind.@SHLIBEXT@: $(PAM_WINBIND_PICOBJ) bin/.dummy
1042 @echo "Linking $@"
1043 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_PICOBJ) \
1044 @SONAMEFLAG@`basename $@` -lpam
1046 bin/rhosts.@SHLIBEXT@: $(AUTH_RHOSTS_OBJ:.o=.@PICSUFFIX@)
1047 @echo "Building plugin $@"
1048 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_RHOSTS_OBJ:.o=.@PICSUFFIX@) @SONAMEFLAG@`basename $@`
1050 bin/builtin.@SHLIBEXT@: $(AUTH_BUILTIN_OBJ:.o=.@PICSUFFIX@)
1051 @echo "Building plugin $@"
1052 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_BUILTIN_OBJ:.o=.@PICSUFFIX@) @SONAMEFLAG@`basename $@`
1054 bin/domain.@SHLIBEXT@: $(AUTH_DOMAIN_OBJ:.o=.@PICSUFFIX@)
1055 @echo "Building plugin $@"
1056 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_DOMAIN_OBJ:.o=.@PICSUFFIX@) @SONAMEFLAG@`basename $@`
1058 bin/smbserver.@SHLIBEXT@: $(AUTH_SERVER_OBJ:.o=.@PICSUFFIX@)
1059 @echo "Building plugin $@"
1060 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_SERVER_OBJ:.o=.@PICSUFFIX@) @SONAMEFLAG@`basename $@`
1062 bin/winbind.@SHLIBEXT@: $(AUTH_WINBIND_OBJ:.o=.@PICSUFFIX@)
1063 @echo "Building plugin $@"
1064 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_WINBIND_OBJ:.o=.@PICSUFFIX@) @SONAMEFLAG@`basename $@`
1066 bin/unix.@SHLIBEXT@: $(AUTH_UNIX_OBJ:.o=.@PICSUFFIX@)
1067 @echo "Building plugin $@"
1068 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_UNIX_OBJ:.o=.@PICSUFFIX@) @SONAMEFLAG@`basename $@`
1070 bin/sam.@SHLIBEXT@: $(AUTH_SAM_OBJ:.o=.@PICSUFFIX@)
1071 @echo "Building plugin $@"
1072 @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_SAM_OBJ:.o=.@PICSUFFIX@) @SONAMEFLAG@`basename $@`
1074 bin/mysql.@SHLIBEXT@: $(MYSQL_OBJ:.o=.@PICSUFFIX@)
1075 @echo "Building plugin $@"
1076 @$(SHLD) $(LDSHFLAGS) -o $@ $(MYSQL_OBJ:.o=.@PICSUFFIX@) @MYSQL_LIBS@ \
1077 @SONAMEFLAG@`basename $@`
1079 bin/pgsql.@SHLIBEXT@: $(PGSQL_OBJ:.o=.po)
1080 @echo "Building plugin $@"
1081 @$(SHLD) $(LDSHFLAGS) -o $@ $(PGSQL_OBJ:.o=.po) @PGSQL_LIBS@ \
1082 @SONAMEFLAG@`basename $@`
1084 bin/ldapsam.@SHLIBEXT@: passdb/pdb_ldap.@PICSUFFIX@
1085 @echo "Building plugin $@"
1086 @$(SHLD) $(LDSHFLAGS) $(LDAP_LIBS) -o $@ passdb/pdb_ldap.@PICSUFFIX@ \
1087 @SONAMEFLAG@`basename $@`
1089 bin/tdbsam.@SHLIBEXT@: passdb/pdb_tdb.@PICSUFFIX@
1090 @echo "Building plugin $@"
1091 @$(SHLD) $(LDSHFLAGS) -o $@ passdb/pdb_tdb.@PICSUFFIX@ \
1092 @SONAMEFLAG@`basename $@`
1094 bin/smbpasswd.@SHLIBEXT@: passdb/pdb_smbpasswd.@PICSUFFIX@
1095 @echo "Building plugin $@"
1096 @$(SHLD) $(LDSHFLAGS) -o $@ passdb/pdb_smbpasswd.@PICSUFFIX@ \
1097 @SONAMEFLAG@`basename $@`
1099 bin/weird.@SHLIBEXT@: $(DEVEL_HELP_WEIRD_OBJ:.o=.@PICSUFFIX@)
1100 @echo "Building plugin $@"
1101 @$(SHLD) $(LDSHFLAGS) -o $@ $(DEVEL_HELP_WEIRD_OBJ:.o=.@PICSUFFIX@) \
1102 @SONAMEFLAG@`basename $@`
1104 bin/CP850.@SHLIBEXT@: $(CP850_OBJ:.o=.@PICSUFFIX@)
1105 @echo "Building plugin $@"
1106 @$(SHLD) $(LDSHFLAGS) -o $@ $(CP850_OBJ:.o=.@PICSUFFIX@) \
1107 @SONAMEFLAG@`basename $@`
1109 bin/CP437.@SHLIBEXT@: $(CP437_OBJ:.o=.@PICSUFFIX@)
1110 @echo "Building plugin $@"
1111 @$(SHLD) $(LDSHFLAGS) -o $@ $(CP437_OBJ:.o=.@PICSUFFIX@) \
1112 @SONAMEFLAG@`basename $@`
1114 bin/macosxfs.@SHLIBEXT@: $(CHARSET_MACOSXFS_OBJ:.o=.po)
1115 @echo "Building plugin $@"
1116 @$(SHLD) $(LDSHFLAGS) -o $@ $(CHARSET_MACOSXFS_OBJ:.o=.po) \
1117 -framework CoreFoundation @SONAMEFLAG@`basename $@`
1119 bin/xml.@SHLIBEXT@: $(XML_OBJ:.o=.@PICSUFFIX@)
1120 @echo "Building plugin $@"
1121 @$(SHLD) $(LDSHFLAGS) -o $@ $(XML_OBJ:.o=.@PICSUFFIX@) @XML_LIBS@ \
1122 @SONAMEFLAG@`basename $@`
1124 bin/audit.@SHLIBEXT@: $(VFS_AUDIT_OBJ:.o=.@PICSUFFIX@)
1125 @echo "Building plugin $@"
1126 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_AUDIT_OBJ:.o=.@PICSUFFIX@) \
1127 @SONAMEFLAG@`basename $@`
1129 bin/extd_audit.@SHLIBEXT@: $(VFS_EXTD_AUDIT_OBJ:.o=.@PICSUFFIX@)
1130 @echo "Building plugin $@"
1131 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_EXTD_AUDIT_OBJ:.o=.@PICSUFFIX@) \
1132 @SONAMEFLAG@`basename $@`
1134 bin/recycle.@SHLIBEXT@: $(VFS_RECYCLE_OBJ:.o=.@PICSUFFIX@)
1135 @echo "Building plugin $@"
1136 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_RECYCLE_OBJ:.o=.@PICSUFFIX@) \
1137 @SONAMEFLAG@`basename $@`
1139 bin/netatalk.@SHLIBEXT@: $(VFS_NETATALK_OBJ:.o=.@PICSUFFIX@)
1140 @echo "Building plugin $@"
1141 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_NETATALK_OBJ:.o=.@PICSUFFIX@) \
1142 @SONAMEFLAG@`basename $@`
1144 bin/fake_perms.@SHLIBEXT@: $(VFS_FAKE_PERMS_OBJ:.o=.@PICSUFFIX@)
1145 @echo "Building plugin $@"
1146 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_FAKE_PERMS_OBJ:.o=.@PICSUFFIX@) \
1147 @SONAMEFLAG@`basename $@`
1149 bin/default_quota.@SHLIBEXT@: $(VFS_DEFAULT_QUOTA_OBJ:.o=.@PICSUFFIX@)
1150 @echo "Building plugin $@"
1151 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_DEFAULT_QUOTA_OBJ:.o=.@PICSUFFIX@) \
1152 @SONAMEFLAG@`basename $@`
1154 bin/readonly.@SHLIBEXT@: $(VFS_READONLY_OBJ:.o=.@PICSUFFIX@)
1155 @echo "Building plugin $@"
1156 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_READONLY_OBJ:.o=.@PICSUFFIX@) \
1157 @SONAMEFLAG@`basename $@`
1159 bin/cap.@SHLIBEXT@: $(VFS_CAP_OBJ:.o=.@PICSUFFIX@)
1160 @echo "Building plugin $@"
1161 @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_CAP_OBJ:.o=.@PICSUFFIX@) \
1162 @SONAMEFLAG@`basename $@`
1164 bin/wbinfo@EXEEXT@: $(WBINFO_OBJ) @BUILD_POPT@ bin/.dummy
1165 @echo Linking $@
1166 @$(LINK) -o $@ $(WBINFO_OBJ) $(LIBS) @POPTLIBS@
1168 bin/ntlm_auth@EXEEXT@: $(NTLM_AUTH_OBJ) $(PARAM_OBJ) $(LIB_OBJ) \
1169 $(UBIQX_OBJ) @BUILD_POPT@ bin/.dummy
1170 @echo Linking $@
1171 @$(LINK) -o $@ $(NTLM_AUTH_OBJ) $(PARAM_OBJ) $(LIB_OBJ) \
1172 $(UBIQX_OBJ) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
1174 bin/pam_smbpass.@SHLIBEXT@: $(PAM_SMBPASS_PICOOBJ)
1175 @echo "Linking shared library $@"
1176 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_PICOOBJ) -lpam $(DYNEXP) $(LIBS) -lc $(LDAP_LIBS) $(KRB5LIBS)
1178 bin/libmsrpc.a: $(LIBMSRPC_PICOBJ)
1179 @-$(AR) -rc $@ $(LIBMSRPC_PICOBJ)
1181 bin/tdbbackup@EXEEXT@: $(TDBBACKUP_OBJ) bin/.dummy
1182 @echo Linking $@
1183 @$(CC) $(FLAGS) -o $@ $(TDBBACKUP_OBJ)
1185 bin/tdbdump@EXEEXT@: $(TDBDUMP_OBJ) bin/.dummy
1186 @echo Linking $@
1187 @$(CC) $(FLAGS) -o $@ $(TDBDUMP_OBJ)
1189 bin/t_strcmp@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
1190 $(CC) $(FLAGS) -o $@ $(LIBS) torture/t_strcmp.o -L ./bin -lbigballofmud
1192 bin/t_stringoverflow@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
1193 $(CC) $(FLAGS) -o $@ torture/t_stringoverflow.o -L./bin -lbigballofmud
1195 bin/t_doschar@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_doschar.o
1196 $(CC) $(FLAGS) -o $@ $(LIBS) torture/t_doschar.o -L ./bin -lbigballofmud
1197 bin/t_push_ucs2@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_push_ucs2.o
1198 $(CC) $(FLAGS) -o $@ $(LIBS) torture/t_push_ucs2.o -L ./bin -lbigballofmud
1200 bin/t_snprintf@EXEEXT@: lib/snprintf.c
1201 $(CC) $(FLAGS) -o $@ -DTEST_SNPRINTF lib/snprintf.c -lm
1202 install: installbin installman installscripts installdat installswat installmodules @INSTALLCLIENT@
1204 install-everything: install installmodules
1206 # DESTDIR is used here to prevent packagers wasting their time
1207 # duplicating the Makefile. Remove it and you will have the privelege
1208 # of package each samba release for muliple versions of multiple
1209 # distributions and operating systems, or at least supplying patches
1210 # to all the packaging files required for this, prior to committing
1211 # the removal of DESTDIR. Do not remove it even though you think it
1212 # is not used
1214 installdirs:
1215 @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(PRIVATEDIR) $(DESTDIR)$(PIDDIR) $(DESTDIR)$(LOCKDIR) $(DESTDIR)$(MANDIR)
1217 installservers: all installdirs
1218 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(SBIN_PROGS)
1220 installbin: all installdirs
1221 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(SBIN_PROGS)
1222 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(BIN_PROGS)
1225 installmodules: modules installdirs
1226 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(VFSLIBDIR) $(VFS_MODULES)
1227 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(PDBLIBDIR) $(PDB_MODULES)
1228 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(RPCLIBDIR) $(RPC_MODULES)
1229 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(IDMAPLIBDIR) $(IDMAP_MODULES)
1230 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(CHARSETLIBDIR) $(CHARSET_MODULES)
1231 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(AUTHLIBDIR) $(AUTH_MODULES)
1232 @# These symlinks are required for the 'probing' of modules.
1233 @# This mechanism should go at some point..
1234 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
1235 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
1236 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
1237 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
1238 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
1240 installscripts: installdirs
1241 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS) $(DESTDIR)$(BINDIR) $(SCRIPTS)
1243 installdat: installdirs
1244 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(LIBDIR) $(srcdir)
1246 installmsg: installdirs
1247 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR)$(LIBDIR) $(srcdir)
1249 installswat: installdirs installmsg
1250 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir)
1252 installclientlib: installdirs libsmbclient
1253 @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/lib
1254 -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)${prefix}/lib
1255 -$(INSTALLCLIENTCMD_A) bin/libsmbclient.a $(DESTDIR)${prefix}/lib
1256 @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/include
1257 -$(INSTALLCMD) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include
1259 # Python extensions
1261 PYTHON_OBJS = $(PARAM_OBJ) $(LIB_OBJ) $(LIBSMB_OBJ) $(RPC_PARSE_OBJ) \
1262 $(UBIQX_OBJ) $(LIBMSRPC_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1263 $(SECRETS_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) lib/dummyroot.o
1265 PYTHON_PICOBJS = $(PYTHON_OBJS:.o=.@PICSUFFIX@)
1267 python_ext: $(PYTHON_PICOBJS)
1268 @if test -z "$(PYTHON)"; then \
1269 echo Use the option --with-python to configure python; \
1270 exit 1; \
1272 PYTHON_OBJS="$(PYTHON_PICOBJS)" \
1273 PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
1274 LIBS="$(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
1275 $(PYTHON) python/setup.py build
1277 python_install: $(PYTHON_PICOBJS)
1278 @if test -z "$(PYTHON)"; then \
1279 echo Use the option --with-python to configure python; \
1280 exit 1; \
1282 PYTHON_OBJS="$(PYTHON_PICOBJS)" \
1283 PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
1284 LIBS="$(LIBS)" \
1285 $(PYTHON) python/setup.py install
1287 python_clean:
1288 @-if test -n "$(PYTHON)"; then $(PYTHON) python/setup.py clean; fi
1290 # revert to the previously installed version
1291 revert:
1292 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
1293 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
1295 installman: installdirs
1296 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) $(man_langs) "@ROFF@"
1298 .PHONY: showlayout
1300 showlayout:
1301 @echo "Samba will be installed into:"
1302 @echo " basedir: $(BASEDIR)"
1303 @echo " bindir: $(BINDIR)"
1304 @echo " sbindir: $(SBINDIR)"
1305 @echo " libdir: $(LIBDIR)"
1306 @echo " vardir: $(VARDIR)"
1307 @echo " mandir: $(MANDIR)"
1308 @echo " privatedir: $(PRIVATE_DIR)"
1309 @echo " configdir: $(CONFIGDIR)"
1310 @echo " lockdir: $(LOCKDIR)"
1311 @echo " piddir: $(PIDDIR)"
1314 uninstall: uninstallman uninstallbin uninstallscripts uninstallmodules
1316 uninstallman:
1317 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) $(man_langs)
1319 uninstallbin:
1320 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(SBIN_PROGS)
1321 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(BIN_PROGS)
1323 uninstallmodules:
1324 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(VFSLIBDIR) $(DESTDIR)$(VFS_MODULES)
1325 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(PDBLIBDIR) $(DESTDIR)$(PDB_MODULES)
1326 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(RPCLIBDIR) $(DESTDIR)$(RPC_MODULES)
1327 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(CHARSETLIBDIR) $(DESTDIR)$(CHARSET_MODULES)
1328 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(AUTHLIBDIR) $(DESTDIR)$(AUTH_MODULES)
1330 uninstallscripts:
1331 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS) $(DESTDIR)$(BINDIR) $(SCRIPTS)
1333 # Toplevel clean files
1334 TOPFILES=dynconfig.o dynconfig.@PICSUFFIX@
1336 clean: delheaders python_clean
1337 -rm -f core */*~ *~ */*.o */*.@PICSUFFIX@ */*.@SHLIBEXT@ \
1338 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(MODULES) $(TORTURE_PROGS) \
1339 $(LIBSMBCLIENT) $(EVERYTHING_PROGS) .headers.stamp
1341 # Making this target will just make sure that the prototype files
1342 # exist, not necessarily that they are up to date. Since they're
1343 # removed by "make clean" this will always be run when you do anything
1344 # afterwards.
1345 proto_exists: include/proto.h include/wrepld_proto.h include/build_env.h \
1346 nsswitch/winbindd_proto.h web/swat_proto.h \
1347 client/client_proto.h utils/net_proto.h smbd/build_options.c
1349 delheaders:
1350 @echo Removing prototype headers
1351 @rm -f include/proto.h include/build_env.h include/wrepld_proto.h \
1352 nsswitch/winbindd_proto.h web/swat_proto.h \
1353 client/client_proto.h utils/net_proto.h \
1354 smbd/build_options.c
1356 MKPROTO_SH = $(srcdir)/script/mkproto.sh
1358 include/proto.h: smbd/build_options.c
1359 @echo Building include/proto.h
1360 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1361 -h _PROTO_H_ $(builddir)/include/proto.h \
1362 $(PROTO_OBJ)
1364 include/build_env.h: script/build_env.sh
1365 @echo Building include/build_env.h
1366 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
1367 > $(builddir)/include/build_env.h
1369 include/wrepld_proto.h:
1370 @echo Building include/wrepld_proto.h
1371 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1372 -h _WREPLD_PROTO_H_ $(builddir)/include/wrepld_proto.h \
1373 $(WREPL_OBJ1)
1375 nsswitch/winbindd_proto.h:
1376 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1377 -h _WINBINDD_PROTO_H_ $(builddir)/nsswitch/winbindd_proto.h \
1378 $(WINBINDD_OBJ1)
1380 web/swat_proto.h:
1381 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1382 -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
1383 $(SWAT_OBJ1)
1385 client/client_proto.h:
1386 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1387 -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
1388 $(CLIENT_OBJ1)
1390 utils/net_proto.h:
1391 @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
1392 -h _CLIENT_PROTO_H_ $(builddir)/utils/net_proto.h \
1393 $(NET_OBJ1)
1395 # "make headers" or "make proto" calls a subshell because we need to
1396 # make sure these commands are executed in sequence even for a
1397 # parallel make.
1398 headers:
1399 $(MAKE) delheaders; \
1400 $(MAKE) smbd/build_options.c; \
1401 $(MAKE) include/proto.h; \
1402 $(MAKE) include/build_env.h; \
1403 $(MAKE) include/wrepld_proto.h; \
1404 $(MAKE) nsswitch/winbindd_proto.h; \
1405 $(MAKE) web/swat_proto.h; \
1406 $(MAKE) client/client_proto.h; \
1407 $(MAKE) utils/net_proto.h
1409 proto: headers
1411 .PHONY: headers proto
1413 etags:
1414 etags `find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1416 ctags:
1417 ctags `find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1419 realclean: clean delheaders
1420 -rm -f config.log bin/.dummy script/findsmb
1422 distclean: realclean
1423 -rm -f include/stamp-h
1424 -rm -f include/config.h Makefile
1425 -rm -f config.status config.cache so_locations
1426 -rm -rf .deps TAGS
1428 realdistclean: distclean
1429 -rm -f include/config.h.in
1430 -rm -f include/version.h
1431 -rm -f configure
1433 # this target is really just for my use. It only works on a limited
1434 # range of machines and is used to produce a list of potentially
1435 # dead (ie. unused) functions in the code. (tridge)
1436 finddead:
1437 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
1438 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
1439 comm -13 nmused.txt nmfns.txt
1442 # when configure.in is updated, reconfigure
1443 $(srcdir)/configure: $(srcdir)/configure.in
1444 @echo "WARNING: you need to rerun ./autogen.sh"
1446 config.status: $(srcdir)/configure
1447 @echo "WARNING: you need to run ./configure"
1449 Makefile: $(srcdir)/Makefile.in config.status
1450 @echo "WARNING: you need to run ./config.status"
1452 ######################################################################
1453 # Samba Testing Framework
1455 # FIXME: LD_LIBRARY_PATH is not portable, but in the absence of
1456 # libtool I don't know a better way to do it. Perhaps we should fix
1457 # libbigballofmud to link statically?
1459 check: check-programs
1460 LD_LIBRARY_PATH="`pwd`/bin:$$LD_LIBRARY_PATH" \
1461 PATH="`pwd`/bin:$$PATH" \
1462 python stf/standardcheck.py; \
1463 if test -n "$(PYTHON)"; then \
1464 python stf/pythoncheck.py; \
1467 # These are called by the test suite and need to be built before
1468 # running it. For the time being we don't build all of BIN_PROGS,
1469 # because they're not all needed.
1470 check-programs: bin/t_strcmp bin/t_push_ucs2 bin/smbcontrol bin/t_snprintf