Make DSO_EXPORTS_CMD regexp more POSIX compliant
[Samba/gebeck_regimport.git] / source3 / Makefile.in
blob5dbac10cf8a2dae2c74b296f2347e783847f6d0e
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 smbtorture4_path=@smbtorture4_path@
22 LIBS=@LIBS@
23 CC=@CC@
24 SHLD=@SHLD@
25 LIB_PATH_VAR=@LIB_PATH_VAR@
27 ## Dynamic shared libraries build settings
28 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
29 DSO_EXPORTS=@DSO_EXPORTS@
30 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
32 # The MODULE_EXPORTS variable contains the platform-specific linker flags
33 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
34 MODULE_EXPORTS=@MODULE_EXPORTS@
36 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
37 # (GCC) warnings. This is done automtically for --enable-developer,
38 # --enable-picky-developer and --enable-krb5developer.
39 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
40 CFLAGS=@CFLAGS@
41 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
43 EXEEXT=@EXEEXT@
44 AR=@AR@
45 LDSHFLAGS=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
46 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
48 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
49 AWK=@AWK@
50 PICFLAG=@PICFLAG@
51 DYNEXP=@DYNEXP@
52 PERL=@PERL@
54 PIDL_ARGS=@PIDL_ARGS@
56 TERMLDFLAGS=@TERMLDFLAGS@
57 TERMLIBS=@TERMLIBS@
58 PRINT_LIBS=@PRINT_LIBS@
59 AUTH_LIBS=@AUTH_LIBS@
60 ACL_LIBS=@ACL_LIBS@
61 PASSDB_LIBS=@PASSDB_LIBS@
62 IDMAP_LIBS=@IDMAP_LIBS@
63 KRB5LIBS=@KRB5_LIBS@
64 LDAP_LIBS=@LDAP_LIBS@
65 NSCD_LIBS=@NSCD_LIBS@
66 UUID_LIBS=@UUID_LIBS@
67 WINBIND_LIBS=@WINBIND_LIBS@
68 WINBIND_NSS_EXTRA_LIBS=@WINBIND_NSS_EXTRA_LIBS@
69 WINBIND_NSS_PTHREAD=@WINBIND_NSS_PTHREAD@
70 PAM_WINBIND_EXTRA_LIBS=@PAM_WINBIND_EXTRA_LIBS@
71 DNSSD_LIBS=@DNSSD_LIBS@
72 POPT_LIBS=@POPTLIBS@
73 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
74 LIBTDB_LIBS=@LIBTDB_LIBS@
75 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
77 INSTALLCMD=@INSTALL@
78 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
79 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
80 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
81 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
83 VPATH=@srcdir@
84 srcdir=@abs_srcdir@
85 builddir=@abs_builddir@
86 SHELL=/bin/sh
87 DESTDIR=/
89 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
90 # will search for a POSIX-compliant shell, and that might not be
91 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
93 # See the autoconf manual "Installation Directory Variables" for a
94 # discussion of the subtle use of these variables.
96 BASEDIR= @prefix@
97 BINDIR = @bindir@
98 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
99 SBINDIR = @sbindir@
100 ROOTSBINDIR = @rootsbindir@
101 LIBDIR = @libdir@
102 INCLUDEDIR=@includedir@
103 PAMMODULESDIR = @pammodulesdir@
104 VFSLIBDIR = $(LIBDIR)/vfs
105 PDBLIBDIR = $(LIBDIR)/pdb
106 RPCLIBDIR = $(LIBDIR)/rpc
107 IDMAPLIBDIR = $(LIBDIR)/idmap
108 NSSINFOLIBDIR = $(LIBDIR)/nss_info
109 CHARSETLIBDIR = $(LIBDIR)/charset
110 AUTHLIBDIR = $(LIBDIR)/auth
111 CONFIGLIBDIR = $(LIBDIR)/config
112 GPEXTLIBDIR = $(LIBDIR)/gpext
113 CONFIGDIR = @configdir@
114 VARDIR = @localstatedir@
115 MANDIR = @mandir@
116 DATADIR = @datadir@
118 # The permissions to give the executables and other data
119 INSTALLPERMS_BIN = 0755
120 INSTALLPERMS_DATA = 0644
122 # set these to where to find various files
123 # These can be overridden by command line switches (see smbd(8))
124 # or in smb.conf (see smb.conf(5))
125 LOGFILEBASE = @logfilebase@
126 CONFIGFILE = $(CONFIGDIR)/smb.conf
127 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
128 CTDBDIR = @ctdbdir@
130 # This is where smbpasswd et al go
131 PRIVATEDIR = @privatedir@
133 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
134 PRIVATE_DIR = $(PRIVATEDIR)
136 # This is where SWAT images and help files go
137 SWATDIR = @swatdir@
139 # the directory where lock files go
140 LOCKDIR = @lockdir@
142 # FHS directories; equal to LOCKDIR if not using --with-fhs
143 CACHEDIR = @cachedir@
144 STATEDIR = @statedir@
146 # Where to look for (and install) codepage databases.
147 CODEPAGEDIR = @codepagedir@
149 # the directory where pid files go
150 PIDDIR = @piddir@
152 FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
153 FLAGS2 =
154 FLAGS3 =
155 FLAGS4 = -I$(CTDBDIR)/include
156 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
157 FLAGS = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
159 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
160 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
161 -DCONFIGFILE=\"$(CONFIGFILE)\" \
162 -DSBINDIR=\"$(SBINDIR)\" \
163 -DBINDIR=\"$(BINDIR)\" \
164 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
165 -DSWATDIR=\"$(SWATDIR)\" \
166 -DLOCKDIR=\"$(LOCKDIR)\" \
167 -DPIDDIR=\"$(PIDDIR)\" \
168 -DLIBDIR=\"$(LIBDIR)\" \
169 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
170 -DSHLIBEXT=\"@SHLIBEXT@\" \
171 -DCTDBDIR=\"$(CTDBDIR)\" \
172 -DCONFIGDIR=\"$(CONFIGDIR)\" \
173 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
174 -DCACHEDIR=\"$(CACHEDIR)\" \
175 -DSTATEDIR=\"$(STATEDIR)\"
177 # Note that all executable programs now provide for an optional executable suffix.
179 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
181 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@ @CIFSUPCALL_PROGS@
183 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
184 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
185 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
186 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
187 bin/tdbtool@EXEEXT@
188 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
189 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
190 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
191 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
192 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@
194 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
195 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
196 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
197 bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
198 bin/tdbtorture@EXEEXT@ \
199 bin/smbconftort@EXEEXT@
201 BIN_PROGS = @EXTRA_BIN_PROGS@ \
202 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
204 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
205 bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
206 bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@ bin/ndrdump@EXEEXT@ \
207 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@
209 PAM_MODULES = @PAM_MODULES@
211 NSS_MODULES = @NSS_MODULES@
213 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
215 VFS_MODULES = @VFS_MODULES@
216 PDB_MODULES = @PDB_MODULES@
217 RPC_MODULES = @RPC_MODULES@
218 IDMAP_MODULES = @IDMAP_MODULES@
219 CHARSET_MODULES = @CHARSET_MODULES@
220 AUTH_MODULES = @AUTH_MODULES@
221 NSS_INFO_MODULES = @NSS_INFO_MODULES@
222 GPEXT_MODULES = @GPEXT_MODULES@
223 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
224 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
225 $(GPEXT_MODULES)
227 ######################################################################
228 # object file lists
229 ######################################################################
231 TDB_OBJ = lib/util_tdb.o \
232 lib/dbwrap.o lib/dbwrap_tdb.o \
233 lib/dbwrap_tdb2.o lib/dbwrap_ctdb.o \
234 lib/dbwrap_rbt.o @LIBTDB_STATIC@
236 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
238 VERSION_OBJ = lib/version.o
240 WBCOMMON_OBJ = nsswitch/wb_common.o
242 AFS_OBJ = lib/afs.o
244 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
246 SERVER_MUTEX_OBJ = lib/server_mutex.o
248 PASSCHANGE_OBJ = libsmb/passchange.o
250 LIBNDR_DRSUAPI_OBJ = librpc/ndr/ndr_drsuapi.o \
251 librpc/ndr/ndr_compression.o \
252 librpc/gen_ndr/ndr_drsuapi.o \
253 librpc/gen_ndr/ndr_drsblobs.o
255 COMPRESSION_OBJ = lib/compression/mszip.o
257 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
258 $(COMPRESSION_OBJ)
260 LIBNDR_OBJ = librpc/ndr/ndr_basic.o \
261 librpc/ndr/ndr.o \
262 librpc/ndr/ndr_misc.o \
263 librpc/gen_ndr/ndr_misc.o \
264 librpc/gen_ndr/ndr_security.o \
265 librpc/ndr/ndr_sec_helper.o \
266 librpc/ndr/ndr_string.o \
267 librpc/ndr/sid.o \
268 librpc/ndr/uuid.o
270 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
272 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
273 librpc/gen_ndr/ndr_lsa.o \
274 librpc/gen_ndr/ndr_dfs.o \
275 librpc/gen_ndr/ndr_echo.o \
276 librpc/gen_ndr/ndr_winreg.o \
277 librpc/gen_ndr/ndr_initshutdown.o \
278 librpc/gen_ndr/ndr_srvsvc.o \
279 librpc/gen_ndr/ndr_eventlog.o \
280 librpc/gen_ndr/ndr_netlogon.o \
281 librpc/gen_ndr/ndr_samr.o \
282 librpc/gen_ndr/ndr_dssetup.o \
283 librpc/gen_ndr/ndr_notify.o \
284 librpc/gen_ndr/ndr_xattr.o \
285 librpc/gen_ndr/ndr_epmapper.o \
286 librpc/gen_ndr/ndr_ntsvcs.o
288 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
290 # this includes only the low level parse code, not stuff
291 # that requires knowledge of security contexts
292 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0) rpc_parse/parse_sec.o
294 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
295 rpc_client/init_netlogon.o \
296 rpc_client/init_lsa.o \
297 rpc_client/init_srvsvc.o
299 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
301 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
302 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
304 LIBSAMBAUTIL_OBJ = @LIBTALLOC_STATIC@ \
305 $(LIBREPLACE_OBJ) \
306 $(SOCKET_WRAPPER_OBJ) \
307 $(NSS_WRAPPER_OBJ)
309 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) \
310 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
311 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
312 lib/interfaces.o lib/rbtree.o lib/memcache.o \
313 lib/util_transfer_file.o lib/async_req.o \
314 $(TDB_OBJ) \
315 $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
316 lib/interface.o lib/md4.o \
317 lib/pidfile.o \
318 lib/signal.o lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
319 lib/ufc.o lib/genrand.o lib/username.o \
320 lib/util_pw.o lib/access.o lib/smbrun.o \
321 lib/bitmap.o lib/crc32.o lib/dprintf.o \
322 lib/xfile.o lib/wins_srv.o $(UTIL_REG_OBJ) \
323 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
324 lib/util_unistr.o lib/util_file.o lib/data_blob.o \
325 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
326 lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
327 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
328 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
329 lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o \
330 lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
331 lib/adt_tree.o lib/gencache.o \
332 lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
333 lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
334 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
335 lib/file_id.o
337 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
338 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
340 READLINE_OBJ = lib/readline.o
342 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
343 # Be sure to include them into your application
344 POPT_LIB_OBJ = lib/popt_common.o
346 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/params.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
347 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
348 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
350 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
352 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
353 libaddns/dnsgss.o libaddns/dnsmarshall.o
354 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ) @LIBTALLOC_STATIC@
356 GPEXT_OBJ = libgpo/gpext/gpext.o @GPEXT_STATIC@
358 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
359 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o \
360 libgpo/gpo_reg.o \
361 $(GPEXT_OBJ)
362 LIBGPO_OBJ = $(LIBGPO_OBJ0)
364 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
365 libads/sasl.o libads/sasl_wrapping.o \
366 libads/krb5_setpw.o libads/ldap_user.o \
367 libads/ads_struct.o libads/kerberos_keytab.o \
368 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
369 libads/ldap_schema.o libads/util.o libads/ndr.o
371 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
372 librpc/ndr/ndr_krb5pac.o \
373 librpc/gen_ndr/ndr_krb5pac.o
375 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
377 LIBNBT_OBJ = libcli/nbt/nbtname.o \
378 librpc/gen_ndr/ndr_nbt.o \
379 librpc/gen_ndr/ndr_svcctl.o
381 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
382 libsmb/namequery.o libsmb/conncache.o libads/dns.o
384 NTERR_OBJ = libsmb/nterr.o
385 DOSERR_OBJ = libsmb/doserr.o
386 ERRORMAP_OBJ = libsmb/errormap.o
387 DCE_RPC_ERR_OBJ = libsmb/dcerpc_err.o
389 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ) \
390 libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ntlmssp_parse.o
392 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) \
393 $(RPC_PARSE_OBJ1) \
394 $(SECRETS_OBJ)
396 LIBSMB_OBJ0 = \
397 libsmb/ntlm_check.o \
398 libsmb/ntlmssp.o \
399 libsmb/ntlmssp_sign.o
401 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
402 $(LIBSMB_ERR_OBJ)
404 CLDAP_OBJ = libads/cldap.o
406 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
407 libsmb/clikrb5.o libsmb/clispnego.o libsmb/asn1.o \
408 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
409 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
410 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
411 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
412 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
413 libsmb/clioplock.o libsmb/clirap2.o \
414 libsmb/smb_seal.o libsmb/async_smb.o \
415 $(LIBSAMBA_OBJ) \
416 $(LIBNMB_OBJ) \
417 $(LIBNBT_OBJ) \
418 $(CLDAP_OBJ) \
419 $(DRSUAPI_OBJ)
421 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
423 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
424 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
425 rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \
426 rpc_client/cli_svcctl.o \
427 rpc_client/init_samr.o \
428 librpc/rpc/dcerpc.o \
429 librpc/rpc/binding.o
431 LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
432 librpc/gen_ndr/cli_dfs.o \
433 librpc/gen_ndr/cli_echo.o \
434 librpc/gen_ndr/cli_srvsvc.o \
435 librpc/gen_ndr/cli_svcctl.o \
436 librpc/gen_ndr/cli_winreg.o \
437 librpc/gen_ndr/cli_initshutdown.o \
438 librpc/gen_ndr/cli_eventlog.o \
439 librpc/gen_ndr/cli_wkssvc.o \
440 librpc/gen_ndr/cli_netlogon.o \
441 librpc/gen_ndr/cli_samr.o \
442 librpc/gen_ndr/cli_dssetup.o \
443 librpc/gen_ndr/cli_ntsvcs.o \
444 librpc/gen_ndr/cli_epmapper.o \
445 librpc/gen_ndr/cli_drsuapi.o \
446 $(LIBNDR_GEN_OBJ) \
447 $(RPCCLIENT_NDR_OBJ)
450 # registry-related objects
452 UTIL_REG_OBJ = lib/util_reg.o
453 UTIL_REG_API_OBJ = lib/util_reg_api.o
455 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
456 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
457 REG_INIT_FULL_OBJ = registry/reg_init_full.o
459 REGFIO_OBJ = registry/regfio.o
461 REGOBJS_OBJ = registry/reg_objects.o
463 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
465 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
467 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
468 registry/reg_backend_shares.o \
469 registry/reg_backend_netlogon_params.o \
470 registry/reg_backend_prod_options.o \
471 registry/reg_backend_tcpip_params.o \
472 registry/reg_backend_hkpt_params.o \
473 registry/reg_backend_current_version.o \
474 registry/reg_backend_perflib.o
476 REG_BASE_OBJ = registry/reg_api.o \
477 registry/reg_dispatcher.o \
478 registry/reg_cachehook.o \
479 $(REGFIO_OBJ) \
480 $(REGOBJS_OBJ) \
481 registry/reg_util.o \
482 $(UTIL_REG_API_OBJ) \
483 lib/util_nttoken.o \
484 $(REG_BACKENDS_BASE_OBJ) \
485 $(REG_INIT_BASIC_OBJ)
487 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
488 $(REG_BACKENDS_SMBCONF_OBJ) \
489 $(REG_INIT_SMBCONF_OBJ)
491 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
492 $(REG_BACKENDS_EXTRA_OBJ) \
493 $(REG_INIT_FULL_OBJ) \
494 registry/reg_eventlog.o \
495 registry/reg_perfcount.o \
496 registry/reg_util_legacy.o
499 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
501 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
502 librpc/gen_ndr/srv_netlogon.o
504 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
505 rpc_server/srv_samr_util.o \
506 librpc/gen_ndr/srv_samr.o
508 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
510 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
511 librpc/gen_ndr/srv_winreg.o
513 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
515 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
516 librpc/gen_ndr/srv_srvsvc.o
518 RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
520 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \
521 librpc/gen_ndr/srv_svcctl.o \
522 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
523 services/svc_netlogon.o services/svc_winreg.o \
524 services/svc_wins.o
526 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs.o rpc_server/srv_ntsvcs_nt.o \
527 librpc/gen_ndr/srv_ntsvcs.o
529 RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
531 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
533 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o \
534 rpc_server/srv_eventlog_lib.o librpc/gen_ndr/srv_eventlog.o
536 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
537 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
539 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
541 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
543 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \
544 rpc_parse/parse_spoolss.o \
545 rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \
546 rpc_parse/parse_ntsvcs.o rpc_parse/parse_svcctl.o
548 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o
550 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
552 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
554 PRIVILEGES_OBJ = lib/privileges.o
556 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
558 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
559 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
560 passdb/util_unixsids.o passdb/lookup_sid.o \
561 passdb/login_cache.o @PDB_STATIC@ \
562 lib/account_pol.o $(PRIVILEGES_OBJ) \
563 lib/util_nscd.o lib/winbind_util.o
565 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
566 CP850_OBJ = modules/CP850.o
567 CP437_OBJ = modules/CP437.o
568 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
570 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
572 PROFILE_OBJ = profile/profile.o
573 PROFILES_OBJ = utils/profiles.o \
574 $(LIBSAMBA_OBJ) \
575 $(PARAM_OBJ) \
576 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
577 $(POPT_LIB_OBJ)
579 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
581 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
583 VFS_DEFAULT_OBJ = modules/vfs_default.o
584 VFS_AUDIT_OBJ = modules/vfs_audit.o
585 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
586 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
587 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
588 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
589 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
590 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
591 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
592 VFS_CAP_OBJ = modules/vfs_cap.o
593 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
594 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
595 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
596 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
597 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
598 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
599 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
600 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
601 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
602 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
603 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
604 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
605 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
606 VFS_CATIA_OBJ = modules/vfs_catia.o
607 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
608 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
609 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
610 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
611 VFS_COMMIT_OBJ = modules/vfs_commit.o
612 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
613 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
614 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
615 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
616 VFS_FILEID_OBJ = modules/vfs_fileid.o
617 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
618 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
620 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
622 SLCACHE_OBJ = libsmb/samlogon_cache.o
624 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
626 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
627 AUTH_DOMAIN_OBJ = auth/auth_domain.o
628 AUTH_SAM_OBJ = auth/auth_sam.o
629 AUTH_SERVER_OBJ = auth/auth_server.o
630 AUTH_UNIX_OBJ = auth/auth_unix.o
631 AUTH_WINBIND_OBJ = auth/auth_winbind.o
632 AUTH_SCRIPT_OBJ = auth/auth_script.o
634 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
635 auth/auth_compat.o auth/auth_ntlmssp.o \
636 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
638 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
640 SMBD_OBJ_MAIN = smbd/server.o
642 BUILDOPT_OBJ = smbd/build_options.o
644 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
645 smbd/utmp.o smbd/session.o smbd/map_username.o \
646 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
647 smbd/share_access.o smbd/fileio.o \
648 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
649 smbd/message.o smbd/nttrans.o smbd/pipes.o \
650 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
651 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
652 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
653 smbd/vfs.o smbd/statcache.o smbd/seal.o \
654 smbd/posix_acls.o lib/sysacls.o $(SERVER_MUTEX_OBJ) \
655 smbd/process.o smbd/service.o smbd/error.o \
656 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
657 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
658 smbd/change_trust_pw.o smbd/fake_file.o \
659 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
660 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
661 smbd/dmapi.o \
662 smbd/file_access.o \
663 smbd/dnsregister.o \
664 $(MANGLE_OBJ) @VFS_STATIC@
666 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
667 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
668 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
669 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
670 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
671 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
672 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
673 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
674 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) @LIBWBCLIENT_STATIC@ \
675 $(LIBSMBCONF_OBJ) \
676 $(PRIVILEGES_BASIC_OBJ)
678 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
679 printing/print_cups.o printing/print_generic.o \
680 printing/lpq_parse.o printing/load.o \
681 printing/print_iprint.o
683 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
684 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
686 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
688 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
689 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
690 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
691 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
692 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
693 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
694 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
695 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
696 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
697 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
698 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
699 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
701 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
702 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
703 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
705 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
706 web/swat.o web/neg_lang.o
708 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
709 $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(KRBCLIENT_OBJ) \
710 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
711 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
712 $(PASSCHANGE_OBJ) $(LDB_OBJ)
714 STATUS_OBJ = utils/status.o utils/status_profile.o \
715 $(LOCKING_OBJ) $(PARAM_OBJ) \
716 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
717 $(LIBSAMBA_OBJ)
719 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
720 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
721 $(LIBSAMBA_OBJ) \
722 $(PRINTBASE_OBJ)
724 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
725 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
726 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
727 rpc_client/cli_pipe.o librpc/rpc/binding.o $(RPC_PARSE_OBJ2) \
728 $(RPC_CLIENT_OBJ1) \
729 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
730 $(LIBMSRPC_GEN_OBJ)
732 TESTPARM_OBJ = utils/testparm.o \
733 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
734 $(LIBSAMBA_OBJ)
736 PASSWD_UTIL_OBJ = utils/passwd_util.o
738 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
739 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
740 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
741 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
742 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
744 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
745 $(LIBSAMBA_OBJ) \
746 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
747 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
748 $(LDB_OBJ)
750 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
752 DISPLAY_SEC_OBJ= lib/display_sec.o
754 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
755 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
756 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
757 rpcclient/cmd_dfs.o \
758 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
759 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
760 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
761 rpcclient/cmd_drsuapi.o \
762 $(DISPLAY_SEC_OBJ)
764 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
765 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
766 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
767 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
768 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
769 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
771 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
772 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
774 LIBSMBCLIENT_OBJ0 = \
775 libsmb/libsmb_cache.o \
776 libsmb/libsmb_compat.o \
777 libsmb/libsmb_context.o \
778 libsmb/libsmb_dir.o \
779 libsmb/libsmb_file.o \
780 libsmb/libsmb_misc.o \
781 libsmb/libsmb_path.o \
782 libsmb/libsmb_printjob.o \
783 libsmb/libsmb_server.o \
784 libsmb/libsmb_stat.o \
785 libsmb/libsmb_xattr.o \
786 libsmb/libsmb_setget.o
788 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
789 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
790 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
791 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
792 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
794 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1) @LIBWBCLIENT_STATIC@
796 # This shared library is intended for linking with unit test programs
797 # to test Samba internals. It's called libbigballofmud.so to
798 # discourage casual usage.
800 LIBBIGBALLOFMUD_MAJOR = 0
802 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
803 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
804 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
806 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
807 librpc/rpc/binding.o \
808 client/dnsbrowse.o \
809 $(RPC_CLIENT_OBJ1) \
810 $(RPC_PARSE_OBJ2)
812 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
813 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
814 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
815 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
816 $(DISPLAY_SEC_OBJ)
818 LIBSMBCONF_OBJ = lib/smbconf/smbconf.o lib/smbconf/smbconf_util.o \
819 lib/smbconf/smbconf_reg.o \
820 lib/smbconf/smbconf_txt.o \
821 lib/smbconf/smbconf_init.o
823 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
825 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
826 $(LIB_NONSMBD_OBJ) \
827 $(PARAM_OBJ) \
828 $(LIBSMB_ERR_OBJ) \
829 $(POPT_LIB_OBJ)
831 LIBNET_OBJ = libnet/libnet_join.o \
832 libnet/libnet_keytab.o \
833 libnet/libnet_samsync.o \
834 libnet/libnet_samsync_ldif.o \
835 libnet/libnet_samsync_passdb.o \
836 libnet/libnet_samsync_display.o \
837 libnet/libnet_samsync_keytab.o \
838 libnet/libnet_dssync.o \
839 libnet/libnet_dssync_keytab.o \
840 librpc/gen_ndr/ndr_libnet_join.o
842 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
843 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
844 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
845 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
846 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
847 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
848 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
849 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
850 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
851 utils/net_conf.o utils/net_join.o utils/net_user.o \
852 utils/net_group.o utils/net_file.o utils/net_registry.o \
853 auth/token_util.o utils/net_dom.o utils/net_share.o
855 # these are not processed by make proto
856 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
858 NET_OBJ = $(NET_OBJ1) \
859 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
860 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
861 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
862 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
863 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
864 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
865 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
866 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
867 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
868 $(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ) \
869 $(LIBSMBCONF_OBJ) \
870 @LIBWBCLIENT_STATIC@ \
871 $(PRIVILEGES_BASIC_OBJ)
873 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
874 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
875 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
877 CIFS_MOUNT_OBJ = client/mount.cifs.o
879 CIFS_UMOUNT_OBJ = client/umount.cifs.o
881 CIFS_UPCALL_OBJ = client/cifs.upcall.o
883 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
884 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
886 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
887 torture/denytest.o torture/mangle_test.o
889 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
890 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
891 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
893 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
894 $(LIB_NONSMBD_OBJ) \
895 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
897 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
898 $(LIB_NONSMBD_OBJ) \
899 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
901 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
902 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
903 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
905 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
906 $(LIB_NONSMBD_OBJ) \
907 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
909 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
910 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
911 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
912 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
914 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
916 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
918 LOG2PCAP_OBJ = utils/log2pcaphex.o
920 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
921 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
922 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
924 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
925 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
926 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
927 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
929 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
930 $(PARAM_OBJ) \
931 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
932 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
933 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
935 EVTLOGADM_OBJ0 = utils/eventlogadm.o
937 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
938 $(LIBSAMBA_OBJ) \
939 registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o
941 SHARESEC_OBJ0 = utils/sharesec.o
942 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
943 $(LIBSAMBA_OBJ) \
944 $(POPT_LIB_OBJ)
946 TALLOCTORT_OBJ = @tallocdir@/testsuite.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
947 $(LIBSAMBA_OBJ)
949 REPLACETORT_OBJ = lib/replace/test/testsuite.o \
950 lib/replace/test/getifaddrs.o \
951 lib/replace/test/os2_delete.o \
952 lib/replace/test/strptime.o \
953 $(LIBREPLACE_OBJ)
955 NDRDUMP_OBJ = librpc/tools/ndrdump.o \
956 $(PARAM_OBJ) $(LIBNDR_GEN_OBJ) \
957 $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
958 librpc/gen_ndr/ndr_svcctl.o
960 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
962 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
963 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
964 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
966 WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
967 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
968 librpc/gen_ndr/ndr_samr.o librpc/gen_ndr/ndr_lsa.o
970 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
971 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
972 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
973 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
974 $(LDB_OBJ)
976 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_cache.o winbindd/idmap_util.o @IDMAP_STATIC@
978 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
980 WINBINDD_OBJ1 = \
981 winbindd/winbindd.o \
982 winbindd/winbindd_user.o \
983 winbindd/winbindd_group.o \
984 winbindd/winbindd_util.o \
985 winbindd/winbindd_cache.o \
986 winbindd/winbindd_pam.o \
987 winbindd/winbindd_sid.o \
988 winbindd/winbindd_misc.o \
989 winbindd/winbindd_cm.o \
990 winbindd/winbindd_wins.o \
991 winbindd/winbindd_rpc.o \
992 winbindd/winbindd_reconnect.o \
993 winbindd/winbindd_ads.o \
994 winbindd/winbindd_passdb.o \
995 winbindd/winbindd_dual.o \
996 winbindd/winbindd_async.o \
997 winbindd/winbindd_creds.o \
998 winbindd/winbindd_cred_cache.o \
999 winbindd/winbindd_ccache_access.o \
1000 winbindd/winbindd_domain.o \
1001 winbindd/winbindd_idmap.o \
1002 winbindd/winbindd_locator.o \
1003 winbindd/winbindd_ndr.o \
1004 auth/token_util.o \
1005 smbd/connection.o
1007 WINBINDD_OBJ = \
1008 $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
1009 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1010 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1011 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1012 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1013 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1014 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1015 $(LIBADS_SERVER_OBJ) $(SERVER_MUTEX_OBJ) $(LDB_OBJ)
1017 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1018 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1019 lib/winbind_util.o $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@
1021 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1023 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1024 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1025 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1026 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1027 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1029 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1030 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1031 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1033 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1034 lib/ldb/modules/objectclass.o \
1035 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1037 # enabled in configure.in
1038 LDB_LDAP_OBJ=@LDBLDAP@
1040 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1042 LDB_CMDLINE_OBJ = $(PARAM_OBJ) \
1043 $(POPT_LIB_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) $(LIBSMB_ERR_OBJ0) \
1044 $(RPC_PARSE_OBJ1) $(SECRETS_OBJ) \
1045 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1048 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1049 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1050 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1051 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1052 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1054 WINBIND_KRB5_LOCATOR_OBJ1 = nsswitch/winbind_krb5_locator.o
1055 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ)
1057 POPT_OBJ=popt/findme.o popt/popt.o popt/poptconfig.o \
1058 popt/popthelp.o popt/poptparse.o
1060 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1061 iniparser_build/strlib.o
1063 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1064 @LIBTDB_STATIC@ $(SOCKET_WRAPPER_OBJ)
1066 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1067 $(SOCKET_WRAPPER_OBJ)
1069 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1070 $(SOCKET_WRAPPER_OBJ)
1072 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o @LIBTDB_STATIC@ $(LIBREPLACE_OBJ) \
1073 $(SOCKET_WRAPPER_OBJ)
1076 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1078 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1079 libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1080 $(SERVER_MUTEX_OBJ) $(LIBADS_SERVER_OBJ) \
1081 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1082 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1083 $(LDB_OBJ) $(WBCOMMON_OBJ) @LIBWBCLIENT_STATIC@ \
1084 librpc/gen_ndr/ndr_samr.o \
1085 librpc/gen_ndr/ndr_lsa.o \
1086 librpc/gen_ndr/ndr_netlogon.o
1089 VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ) librpc/rpc/binding.o
1091 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1092 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1093 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1094 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1095 $(DISPLAY_SEC_OBJ)
1097 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1098 $(LIBSMB_OBJ) \
1099 $(PARAM_OBJ) \
1100 $(PASSDB_OBJ) \
1101 @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
1102 $(LIB_NONSMBD_OBJ) \
1103 $(KRBCLIENT_OBJ) \
1104 $(RPC_PARSE_OBJ2) \
1105 $(RPC_CLIENT_OBJ1) \
1106 rpc_client/cli_pipe.o \
1107 librpc/rpc/binding.o \
1108 $(LIBMSRPC_GEN_OBJ)
1111 ######################################################################
1112 # now the rules...
1113 ######################################################################
1114 all:: SHOWFLAGS libs $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1115 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
1117 nss_modules:: $(NSS_MODULES)
1119 pam_modules:: $(PAM_MODULES)
1121 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1123 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1125 torture:: SHOWFLAGS $(TORTURE_PROGS)
1127 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1129 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1131 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1133 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1135 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1137 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1139 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1141 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1143 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1145 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1147 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1149 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1151 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1153 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1155 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1157 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1158 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1159 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1161 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1163 modules:: SHOWFLAGS $(MODULES)
1165 #####################################################################
1166 ## Perl IDL Compiler
1167 IDL_FILES = lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
1168 srvsvc.idl svcctl.idl eventlog.idl wkssvc.idl netlogon.idl notify.idl \
1169 epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
1170 dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl drsuapi.idl drsblobs.idl \
1171 nbt.idl
1173 idl::
1174 @IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \
1175 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
1178 #####################################################################
1181 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1182 $(EVERYTHING_PROGS)
1184 .SUFFIXES:
1185 .SUFFIXES: .c .o .lo
1187 SHOWFLAGS::
1188 @echo "Using FLAGS = $(FLAGS)"
1189 @echo " PICFLAG = $(PICFLAG)"
1190 @echo " LIBS = $(LIBS)"
1191 @echo " LDFLAGS = $(LDFLAGS)"
1192 @echo " DYNEXP = $(DYNEXP)"
1193 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1194 @echo " SHLIBEXT = @SHLIBEXT@"
1195 @echo " SONAMEFLAG = @SONAMEFLAG@"
1197 MAKEDIR = || exec false; \
1198 if test -d "$$dir"; then :; else \
1199 echo mkdir "$$dir"; \
1200 mkdir -p "$$dir" >/dev/null 2>&1 || \
1201 test -d "$$dir" || \
1202 mkdir "$$dir" || \
1203 exec false; fi || exec false
1205 # Run a static checker.
1206 CHECK_CC = $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1207 # Compile a source file.
1208 COMPILE_CC = $(CC) -I. -I$(srcdir) $(FLAGS) $(PICFLAG) -c $< -o $@
1209 # Compile a source file with the installation paths defined.
1210 COMPILE_CC_PATH = $(CC) -I. -I$(srcdir) $(PATH_FLAGS) $(FLAGS) $(PICFLAG) -c $< -o $@
1212 COMPILE = $(COMPILE_CC)
1214 .c.o:
1215 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1216 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1217 @if test -n "$(CC_CHECKER)"; then \
1218 echo "Checking $*.c with '$(CC_CHECKER)'";\
1219 $(CHECK_CC); \
1221 @echo Compiling $*.c
1222 @$(COMPILE) && exit 0;\
1223 echo "The following command failed:" 1>&2;\
1224 echo "$(COMPILE_CC)" 1>&2;\
1225 $(COMPILE_CC) >/dev/null 2>&1
1226 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1228 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1230 # this adds support for precompiled headers. To use it, install a snapshot
1231 # of gcc-3.4 and run 'make pch' before you do the main build.
1232 pch::
1233 rm -f $(PRECOMPILED_HEADER)
1234 $(MAKE) $(PRECOMPILED_HEADER)
1236 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1237 $(COMPILE)
1239 BINARY_PREREQS = bin/.dummy
1241 # These dependencies are only approximately correct: we want to make
1242 # sure Samba's paths are updated if ./configure is re-run. Really it
1243 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1244 # but since we also require "make install prefix=/opt/samba" *not* to
1245 # rebuild it's a bit hard.
1247 dynconfig.o: dynconfig.c Makefile
1248 @echo Compiling $*.c
1249 @$(COMPILE_CC_PATH) && exit 0;\
1250 echo "The following command failed:" 1>&2;\
1251 echo "$(COMPILE_CC_PATH)" 1>&2;\
1252 $(COMPILE_CC_PATH) >/dev/null 2>&1
1254 lib/pidfile.o: lib/pidfile.c
1255 @echo Compiling $*.c
1256 @$(COMPILE_CC_PATH) && exit 0;\
1257 echo "The following command failed:" 1>&2;\
1258 echo "$(COMPILE_CC_PATH)" 1>&2;\
1259 $(COMPILE_CC_PATH) >/dev/null 2>&1
1261 lib/version.o: lib/version.c include/version.h
1262 @echo Compiling $*.c
1263 @$(COMPILE_CC_PATH) && exit 0;\
1264 echo "The following command failed:" 1>&2;\
1265 echo "$(COMPILE_CC_PATH)" 1>&2;\
1266 $(COMPILE_CC_PATH) >/dev/null 2>&1
1268 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1269 @echo Compiling $*.c
1270 @$(COMPILE_CC_PATH) && exit 0;\
1271 echo "The following command failed:" 1>&2;\
1272 echo "$(COMPILE_CC_PATH)" 1>&2;\
1273 $(COMPILE_CC_PATH) >/dev/null 2>&1
1275 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1276 @echo Generating $@
1277 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1279 bin/.dummy:
1280 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1281 dir=bin $(MAKEDIR); fi
1282 @: >> $@ || : > $@ # what a fancy emoticon!
1284 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1285 @echo Linking $@
1286 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1287 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1288 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) \
1289 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1290 $(WINBIND_LIBS)
1292 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1293 @echo Linking $@
1294 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1295 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1296 $(KRB5LIBS) $(LDAP_LIBS)
1298 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1299 @echo Linking $@
1300 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1301 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1302 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1304 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1305 @echo Linking $@
1306 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1307 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1308 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1309 $(WINBIND_LIBS)
1311 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1312 @echo Linking $@
1313 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1314 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1315 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1316 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1318 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@
1319 @echo Linking $@
1320 @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1321 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1322 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1323 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBNETAPI_LIBS)
1325 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1326 @echo Linking $@
1327 @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1328 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1330 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1331 @echo Linking $@
1332 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1333 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1335 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ) @BUILD_POPT@
1336 @echo Linking $@
1337 @$(CC) $(FLAGS) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1339 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ) @BUILD_POPT@
1340 @echo Linking $@
1341 @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(POPT_LIBS)
1343 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1344 @echo Linking $@
1345 @$(CC) $(FLAGS) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1346 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ1) $(KRB5LIBS) \
1347 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(WINBIND_LIBS) \
1348 $(LIBTDB_LIBS)
1350 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1351 @echo Linking $@
1352 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1353 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1355 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1356 @echo Linking $@
1357 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1358 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1360 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1361 @echo Linking $@
1362 @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
1363 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1364 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1365 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1367 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1368 @echo Linking $@
1369 @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1370 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1371 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1373 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1374 @echo Linking $@
1375 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1376 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1377 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1379 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1380 @echo Linking $@
1381 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1382 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1383 $(LIBTDB_LIBS) $(WINBIND_LIBS)
1385 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1386 @echo Linking $@
1387 @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1388 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1389 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1391 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1392 @echo Linking $@
1393 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1394 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1396 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1397 @echo Linking $@
1398 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1399 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1400 $(LIBTDB_LIBS)
1402 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1403 @echo Linking $@
1404 @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1405 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1406 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1408 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1409 @echo Linking $@
1410 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1411 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1413 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1414 @echo Linking $@
1415 @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1416 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1417 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1419 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1420 @echo Linking $@
1421 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1422 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1423 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1425 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1426 @echo Linking $@
1427 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1428 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1429 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1431 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1432 @echo Linking $@
1433 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1434 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1435 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1437 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1438 @echo Linking $@
1439 @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1440 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1441 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1443 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1444 @echo Linking $@
1445 @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1446 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1448 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1449 @echo Linking $@
1450 @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1451 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1453 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1454 @echo Linking $@
1455 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1456 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1457 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1459 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1460 @echo Linking $@
1461 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1462 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1463 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1465 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1466 @echo Linking $@
1467 @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1468 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1469 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1471 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1472 @echo Linking $@
1473 @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1474 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1475 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1476 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1477 $(WINBIND_LIBS)
1479 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1480 @echo Linking $@
1481 @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1482 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1483 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1485 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1486 @echo Linking $@
1487 @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1488 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1490 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1491 @echo Linking $@
1492 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1493 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1494 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1496 bin/ndrdump@EXEEXT@: $(BINARY_PREREQS) $(NDRDUMP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1497 @echo Linking $@
1498 @$(CC) $(FLAGS) -o $@ $(NDRDUMP_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1499 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1501 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1502 @echo Linking $@
1503 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1504 $(LIBS) $(LIBTALLOC_LIBS)
1506 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1507 @echo Linking $@
1508 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1509 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1510 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1512 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1513 @echo Linking $@
1514 @$(CC) $(FLAGS) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1515 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1516 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1518 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1519 @echo Linking $@
1520 @$(CC) $(FLAGS) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1521 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1522 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1524 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1525 @echo Linking $@
1526 @$(CC) $(FLAGS) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1527 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1528 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1530 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1531 @echo Linking $@
1532 @$(CC) $(FLAGS) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1533 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1534 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1536 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1537 @echo Linking $@
1538 @$(CC) $(FLAGS) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1539 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1540 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
1543 #####################################################################
1545 # libraries
1547 #####################################################################
1549 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1552 #-------------------------------------------------------------------
1554 # libtalloc
1556 #-------------------------------------------------------------------
1558 TALLOC_OBJ = @TALLOC_OBJS@
1560 LIBTALLOC_OBJ0 = $(TALLOC_OBJ)
1561 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1563 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1564 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1565 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1566 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1567 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
1568 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1569 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1571 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1572 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1574 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1575 @echo Linking shared library $@
1576 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1578 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1579 @rm -f $@
1580 @ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1582 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1583 @echo Linking non-shared library $@
1584 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1586 libtalloc: $(LIBTALLOC)
1588 cleanlibtalloc::
1589 -rm -f \
1590 $(LIBTALLOC_SYMS) \
1591 $(LIBTALLOC_STATIC_TARGET) \
1592 $(LIBTALLOC_SHARED_TARGET) \
1593 $(LIBTALLOC_SHARED_TARGET_SONAME)
1595 installlibtalloc:: installdirs libtalloc
1596 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1597 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1598 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1599 -if test -e $(LIBTALLOC_SHARD_TARGET_SONAME) ; then \
1600 ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1601 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1603 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1604 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1605 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1607 uninstalllibtalloc::
1608 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1609 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1610 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1611 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1613 libs:: libtalloc
1614 installlibs:: @INSTALL_LIBTALLOC@
1615 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1616 cleanlibs:: cleanlibtalloc
1617 shlibs test_shlibs: @LIBTALLOC_SHARED@
1619 #-------------------------------------------------------------------
1621 # libtdb
1623 #-------------------------------------------------------------------
1625 LIBTDB_OBJ0 = @TDB_OBJS@
1626 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1628 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1629 LIBTDB_SOVER=@LIBTDB_SOVER@
1630 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1631 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1632 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
1633 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1634 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1636 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1637 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1639 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1640 @echo Linking shared library $@
1641 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1642 @SONAMEFLAG@`basename $@`
1644 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1645 @rm -f $@
1646 @ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1648 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1649 @echo Linking non-shared library $@
1650 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1652 libtdb: $(LIBTDB)
1654 cleanlibtdb::
1655 -rm -f \
1656 $(LIBTDB_SYMS) \
1657 $(LIBTDB_STATIC_TARGET) \
1658 $(LIBTDB_SHARED_TARGET) \
1659 $(LIBTDB_SHARED_TARGET_SONAME)
1662 installlibtdb:: installdirs libtdb
1663 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1664 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1665 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1666 -if test -e $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1667 ln -s -f `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1668 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1670 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1671 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1672 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1674 uninstalllibtdb::
1675 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1676 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1677 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1678 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1680 libs:: libtdb
1681 installlibs:: @INSTALL_LIBTDB@
1682 uninstalllibs:: @UNINSTALL_LIBTDB@
1683 cleanlibs:: cleanlibtdb
1684 shlibs test_shlibs: @LIBTDB_SHARED@
1686 #-------------------------------------------------------------------
1688 # libwbclient
1690 #-------------------------------------------------------------------
1692 LIBWBCLIENT_OBJ0 = nsswitch/libwbclient/wbclient.o \
1693 nsswitch/libwbclient/wbc_util.o \
1694 nsswitch/libwbclient/wbc_pwd.o \
1695 nsswitch/libwbclient/wbc_idmap.o \
1696 nsswitch/libwbclient/wbc_sid.o \
1697 nsswitch/libwbclient/wbc_pam.o
1698 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1699 $(WBCOMMON_OBJ) \
1700 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
1702 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1703 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1704 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1705 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1706 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1707 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1708 LIBWBCLIENT_HEADERS=$(srcdir)/nsswitch/libwbclient/wbclient.h
1710 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1711 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1713 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_SHARED@
1714 @echo Linking shared library $@
1715 @$(SHLD_DSO) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_OBJ) \
1716 @SONAMEFLAG@`basename $@`
1718 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1719 @rm -f $@
1720 @ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1722 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1723 @echo Linking non-shared library $@
1724 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1726 libwbclient: $(LIBWBCLIENT)
1728 cleanlibwbclient::
1729 -rm -f \
1730 $(LIBWBCLIENT_SYMS) \
1731 $(LIBWBCLIENT_STATIC_TARGET) \
1732 $(LIBWBCLIENT_SHARED_TARGET) \
1733 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1735 installlibwbclient:: installdirs libwbclient
1736 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1737 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1738 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1739 -if test -e $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1740 ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1741 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1743 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1744 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1746 uninstalllibwbclient::
1747 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1748 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1749 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1751 libs:: libwbclient
1752 installlibs:: @INSTALL_LIBWBCLIENT@
1753 uninstalllibs:: uninstalllibwbclient
1754 cleanlibs:: cleanlibwbclient
1755 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1758 #-------------------------------------------------------------------
1760 # libaddns
1762 #-------------------------------------------------------------------
1765 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1766 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1767 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1768 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1769 LIBADDNS=$(LIBADDNS_STATIC_TARGET) @LIBADDNS_SHARED@
1770 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1771 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1773 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1774 @echo Linking shared library $@
1775 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1776 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1777 @SONAMEFLAG@`basename $@`
1779 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1780 @rm -f $@
1781 @ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1783 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1784 @echo Linking non-shared library $@
1785 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1787 libaddns: $(LIBADDNS)
1789 cleanlibaddns::
1790 -rm -f \
1791 $(LIBADDNS_SHARED_TARGET) \
1792 $(LIBADDNS_SHARED_TARGET_SONAME) \
1793 $(LIBADDNS_STATIC_TARGET)
1795 installlibaddns:: installdirs libaddns
1796 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1797 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1798 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1799 -if test -e $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1800 ln -s -f `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1801 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1803 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1805 uninstalllibaddns::
1806 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1807 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1808 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
1810 libs:: libaddns
1811 installlibs:: @INSTALL_LIBADDNS@
1812 uninstalllibs:: @UNINSTALL_LIBADDNS@
1813 cleanlibs:: cleanlibaddns
1814 shlibs test_shlibs: @LIBADDNS_SHARED@
1816 #-------------------------------------------------------------------
1818 # libnetapi
1820 #-------------------------------------------------------------------
1822 LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
1823 lib/netapi/cm.o \
1824 librpc/gen_ndr/ndr_libnetapi.o \
1825 lib/netapi/libnetapi.o \
1826 lib/netapi/joindomain.o \
1827 lib/netapi/serverinfo.o \
1828 lib/netapi/getdc.o \
1829 lib/netapi/user.o \
1830 lib/netapi/group.o \
1831 lib/netapi/localgroup.o \
1832 lib/netapi/samr.o \
1833 lib/netapi/sid.o
1835 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
1836 $(LIBSMBCONF_OBJ) \
1837 $(REG_SMBCONF_OBJ) \
1838 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
1839 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1840 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1841 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1842 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ)
1844 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
1845 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
1846 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
1847 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
1848 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
1849 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
1850 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
1852 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
1853 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
1855 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1856 @echo Linking shared library $@
1857 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1858 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1859 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1860 @SONAMEFLAG@`basename $@`
1862 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
1863 @rm -f $@
1864 @ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
1866 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ1)
1867 @echo Linking non-shared library $@
1868 @-$(AR) -rc $@ $(LIBNETAPI_OBJ1)
1870 libnetapi: $(LIBNETAPI)
1872 cleanlibnetapi::
1873 -rm -f \
1874 $(LIBNETAPI_SYMS) \
1875 $(LIBNETAPI_STATIC_TARGET) \
1876 $(LIBNETAPI_SHARED_TARGET) \
1877 $(LIBNETAPI_SHARED_TARGET_SONAME)
1879 installlibnetapi:: installdirs libnetapi
1880 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1881 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1882 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1883 -if test -e $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
1884 ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
1885 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
1887 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1888 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1889 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
1891 uninstalllibnetapi::
1892 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
1893 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
1894 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
1895 -rm -f $(DESTDIR)${prefix}/include/netapi.h
1897 libs:: libnetapi
1898 installlibs:: @INSTALL_LIBNETAPI@
1899 uninstalllibs:: @UNINSTALL_LIBNETAPI@
1900 cleanlibs:: cleanlibnetapi
1901 shlibs test_shlibs: @LIBNETAPI_SHARED@
1903 #-------------------------------------------------------------------
1905 # libsmbclient
1907 #-------------------------------------------------------------------
1909 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
1910 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
1911 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
1912 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
1913 LIBSMBCLIENT=$(LIBSMBCLIENT_STATIC_TARGET) @LIBSMBCLIENT_SHARED@
1914 #LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
1915 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
1917 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1918 @echo Linking shared library $@
1919 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
1920 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1921 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1922 @SONAMEFLAG@`basename $@`
1924 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
1925 @rm -f $@
1926 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
1928 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
1929 @echo Linking non-shared library $@
1930 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
1932 libsmbclient: $(LIBSMBCLIENT)
1934 cleanlibsmbclient::
1935 -rm -f \
1936 $(LIBSMBCLIENT_SHARED_TARGET) \
1937 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
1938 $(LIBSMBCLIENT_STATIC_TARGET)
1940 installlibsmbclient:: installdirs libsmbclient
1941 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1942 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1943 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1944 -if test -e $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
1945 ln -s -f `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
1946 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
1948 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1949 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1950 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1952 installclientlib:: installlibsmbclient
1954 uninstalllibsmbclient::
1955 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
1956 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
1957 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
1958 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
1960 uninstallclientlib:: uninstalllibsmbclient
1962 libs:: libsmbclient
1963 installlibs:: @INSTALL_LIBSMBCLIENT@
1964 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
1965 cleanlibs:: cleanlibsmbclient
1966 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
1968 #-------------------------------------------------------------------
1970 # libsmbsharemodes
1972 #-------------------------------------------------------------------
1974 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
1976 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0) @LIBTDB_STATIC@
1978 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
1979 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
1980 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
1981 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
1982 LIBSMBSHAREMODES=$(LIBSMBSHAREMODES_STATIC_TARGET) @LIBSMBSHAREMODES_SHARED@
1983 #LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
1984 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
1986 LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
1988 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1989 @echo Linking shared library $@
1990 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
1991 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1992 $(KRB5LIBS) $(LDAP_LIBS) \
1993 @SONAMEFLAG@`basename $@`
1995 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
1996 @rm -f $@
1997 @ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
1999 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2000 @echo Linking non-shared library $@
2001 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2003 libsmbsharemodes: $(LIBSMBSHAREMODES)
2005 cleanlibsmbsharemodes::
2006 -rm -f \
2007 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2008 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2009 $(LIBSMBSHAREMODES_STATIC_TARGET)
2011 installlibsmbsharemodes:: installdirs libsmbsharemodes
2012 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2013 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2014 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2015 -if test -e $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2016 ln -s -f `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2017 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2019 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2020 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2021 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2023 uninstalllibsmbsharemodes::
2024 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2025 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2026 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2027 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2029 libs:: libsmbsharemodes
2030 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2031 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2032 cleanlibs:: cleanlibsmbsharemodes
2033 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2035 #-------------------------------------------------------------------
2037 # libbigballofmud
2039 #-------------------------------------------------------------------
2041 # This is probably wrong for anything other than the GNU linker.
2042 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
2043 @echo Linking shared library $@
2044 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2045 $(LIBS) $(LIBTALLOC_LIBS) \
2046 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2047 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2048 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2050 # It would be nice to build a static bigballofmud too, but when I try
2051 # I get linker errors about dl_open and similar things. I'm not sure if
2052 # it can be fixed or if they just can't be called from a static
2053 # library.
2057 #####################################################################
2059 # shared modules
2061 #####################################################################
2063 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2064 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2065 -o $@ @SONAMEFLAG@`basename $@`
2067 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2068 @echo "Linking $@"
2069 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2071 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2072 @echo "Linking $@"
2073 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2075 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2076 @echo "Linking $@"
2077 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2079 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2080 @echo "Linking $@"
2081 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2083 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2084 @echo "Linking $@"
2085 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2087 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2088 @echo "Linking $@"
2089 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2091 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2092 @echo "Linking $@"
2093 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2095 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2096 @echo "Linking $@"
2097 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2099 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2100 @echo "Linking $@"
2101 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2103 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2104 @echo "Linking $@"
2105 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2107 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2108 @echo "Linking $@"
2109 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2111 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2112 @echo "Linking $@"
2113 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2115 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2116 @echo "Linking $@"
2117 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2119 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2120 @echo "Linking $@"
2121 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2123 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2124 @echo "Linking $@"
2125 @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2126 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2127 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2129 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2130 @echo "Linking $@"
2131 @$(CC) $(FLAGS) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2132 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2133 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2134 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2136 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2137 @echo "Linking $@"
2138 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2139 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2140 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2142 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2143 @echo "Linking $@"
2144 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2145 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2146 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2148 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
2149 @echo "Linking $@"
2150 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) \
2151 @SONAMEFLAG@`basename $@`
2153 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ)
2154 @echo "Linking shared library $@"
2155 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2156 $(PAM_WINBIND_EXTRA_LIBS) @SONAMEFLAG@`basename $@`
2158 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2159 @echo "Building plugin $@"
2160 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2162 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2163 @echo "Building plugin $@"
2164 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2166 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2167 @echo "Building plugin $@"
2168 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2170 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2171 @echo "Building plugin $@"
2172 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2174 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2175 @echo "Building plugin $@"
2176 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2178 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2179 @echo "Building plugin $@"
2180 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2182 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2183 @echo "Building plugin $@"
2184 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2186 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2187 @echo "Building plugin $@"
2188 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2190 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2191 @echo "Building plugin $@"
2192 @$(SHLD_MODULE) passdb/pdb_tdb.o
2194 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2195 @echo "Building plugin $@"
2196 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2198 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2199 @echo "Building plugin $@"
2200 @$(SHLD_MODULE) winbindd/idmap_rid.o
2202 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2203 @echo "Building plugin $@"
2204 @$(SHLD_MODULE) winbindd/idmap_ad.o
2206 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2207 @echo "Building plugin $@"
2208 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2210 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2211 @echo "Building plugin $@"
2212 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2214 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2215 @echo "Building plugin $@"
2216 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2218 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2219 @echo "Building plugin $@"
2220 @$(SHLD_MODULE) $(CP850_OBJ)
2222 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2223 @echo "Building plugin $@"
2224 @$(SHLD_MODULE) $(CP437_OBJ)
2226 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2227 @echo "Building plugin $@"
2228 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2230 # NOTE, there is no build rule for a dynamic default VFS module because
2231 # this one MUST MUST MUST be built statically.
2233 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2234 @echo "Building plugin $@"
2235 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2237 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2238 @echo "Building plugin $@"
2239 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2241 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2242 @echo "Building plugin $@"
2243 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2245 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2246 @echo "Building plugin $@"
2247 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2249 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2250 @echo "Building plugin $@"
2251 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2253 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2254 @echo "Building plugin $@"
2255 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2257 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2258 @echo "Building plugin $@"
2259 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2261 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2262 @echo "Building plugin $@"
2263 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2265 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2266 @echo "Building plugin $@"
2267 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2269 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2270 @echo "Building plugin $@"
2271 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2273 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2274 @echo "Building plugin $@"
2275 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2277 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2278 @echo "Building plugin $@"
2279 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2281 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2282 @echo "Building plugin $@"
2283 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2285 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2286 @echo "Building plugin $@"
2287 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2289 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2290 @echo "Building plugin $@"
2291 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2293 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2294 @echo "Building plugin $@"
2295 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2297 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2298 @echo "Building plugin $@"
2299 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2301 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2302 @echo "Building plugin $@"
2303 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2305 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2306 @echo "Building plugin $@"
2307 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2309 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2310 @echo "Building plugin $@"
2311 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2313 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2314 @echo "Building plugin $@"
2315 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2317 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2318 @echo "Building plugin $@"
2319 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2321 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2322 @echo "Building plugin $@"
2323 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2325 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2326 @echo "Building plugin $@"
2327 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2329 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2330 @echo "Building plugin $@"
2331 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2333 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2334 @echo "Building plugin $@"
2335 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2337 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2338 @echo "Building plugin $@"
2339 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2341 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2342 @echo "Building plugin $@"
2343 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2345 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2346 @echo "Building plugin $@"
2347 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2349 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2350 @echo "Building plugin $@"
2351 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2353 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2354 @echo "Building plugin $@"
2355 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2357 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2358 @echo "Building plugin $@"
2359 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2361 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2362 @echo "Building plugin $@"
2363 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2365 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2366 @echo "Building plugin $@"
2367 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2369 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2370 @echo "Building plugin $@"
2371 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2373 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2374 @echo "Building plugin $@"
2375 @$(SHLD_MODULE) libgpo/gpext/registry.o
2377 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2378 @echo "Building plugin $@"
2379 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2381 #########################################################
2382 ## IdMap NSS plugins
2384 ## None here right now
2385 #########################################################
2387 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2388 @echo Linking $@
2389 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2390 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2391 $(WINBIND_LIBS)
2393 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2394 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2395 @echo Linking $@
2396 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2397 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2398 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2399 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2401 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2402 @echo "Linking shared library $@"
2403 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2404 $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
2405 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2407 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2408 @echo Linking $@
2409 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2410 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2412 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2413 @echo Linking $@
2414 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2415 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2417 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2418 @echo Linking $@
2419 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2420 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2422 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2423 @echo Linking $@
2424 @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2425 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2427 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2428 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2429 torture/t_strcmp.o -L ./bin -lbigballofmud
2431 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2432 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2433 torture/t_strstr.o -L ./bin -lbigballofmud
2435 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2436 $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2437 torture/t_strappend.o -L ./bin -lbigballofmud
2439 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2440 $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2441 -L./bin -lbigballofmud
2443 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2444 @echo Linking $@
2445 @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
2447 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2448 @echo "Linking $@"
2449 @$(CC) $(FLAGS) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2450 $(LIBS) $(LIBTALLOC_LIBS) @LIBTDB_SHARED@ $(WINBIND_LIBS) \
2451 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2453 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2454 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2455 @INSTALL_PAM_MODULES@ installlibs
2457 install-everything:: install installmodules
2459 # DESTDIR is used here to prevent packagers wasting their time
2460 # duplicating the Makefile. Remove it and you will have the privelege
2461 # of package each samba release for muliple versions of multiple
2462 # distributions and operating systems, or at least supplying patches
2463 # to all the packaging files required for this, prior to committing
2464 # the removal of DESTDIR. Do not remove it even though you think it
2465 # is not used
2467 installdirs::
2468 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR)
2470 installservers:: all installdirs
2471 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2473 installbin:: all installdirs
2474 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2476 installcifsmount:: @CIFSMOUNT_PROGS@
2477 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2478 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2480 installcifsupcall:: @CIFSUPCALL_PROGS@
2481 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2482 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2484 # Some symlinks are required for the 'probing' of modules.
2485 # This mechanism should go at some point..
2486 installmodules:: modules installdirs
2487 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2488 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2489 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2490 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2491 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2492 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2493 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2494 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2495 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2496 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2497 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2498 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2499 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2500 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2501 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2502 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2504 installscripts:: installdirs
2505 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2507 installdat:: installdirs
2508 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2510 installmsg:: installdirs
2511 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2513 installswat:: installdirs installmsg
2514 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2516 installpammodules:: $(PAM_MODULES)
2517 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2518 @for module in $(PAM_MODULES); do \
2519 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2520 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2521 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2522 done
2524 # revert to the previously installed version
2525 revert::
2526 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2527 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2529 installman:: installdirs
2530 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2532 .PHONY: showlayout
2534 showlayout::
2535 @echo "Samba will be installed into:"
2536 @echo " prefix: $(prefix)"
2537 @echo " bindir: $(BINDIR)"
2538 @echo " sbindir: $(SBINDIR)"
2539 @echo " libdir: $(LIBDIR)"
2540 @echo " vardir: $(VARDIR)"
2541 @echo " mandir: $(MANDIR)"
2542 @echo " privatedir: $(PRIVATE_DIR)"
2543 @echo " configdir: $(CONFIGDIR)"
2544 @echo " lockdir: $(LOCKDIR)"
2545 @echo " piddir: $(PIDDIR)"
2546 @echo " swatdir: $(SWATDIR)"
2549 uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2551 uninstallman::
2552 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2554 uninstallservers::
2555 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2557 uninstallbin::
2558 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2560 uninstallcifsmount::
2561 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2563 uninstallcifsupcall::
2564 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2566 uninstallmodules::
2567 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2568 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2569 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2570 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2571 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2572 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2573 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2575 uninstallscripts::
2576 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2578 uninstalldat::
2579 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2581 uninstallmsg::
2582 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2584 uninstallswat:: uninstallmsg
2585 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2587 uninstallpammodules::
2588 @for module in $(PAM_MODULES); do \
2589 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2590 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2591 done
2593 # Toplevel clean files
2594 TOPFILES=dynconfig.o
2596 clean:: cleanlibs
2597 -rm -f include/build_env.h
2598 -rm -f smbd/build_options.c
2599 -rm -f $(PRECOMPILED_HEADER)
2600 -rm -f core */*~ *~ \
2601 */*.o */*/*.o */*/*/*.o \
2602 ../testsuite/*/*.o \
2603 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2604 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2605 $(MODULES) $(TORTURE_PROGS) \
2606 $(EVERYTHING_PROGS) \
2607 bin/timelimit \
2608 .headers.stamp */src/*.o
2609 -rm -rf t_dir
2611 include/build_env.h: script/build_env.sh
2612 @echo Building include/build_env.h
2613 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2614 > $(builddir)/include/build_env.h
2616 proto::
2617 @echo
2618 @echo "NOTE: 'proto' is no longer a valid make target as proto.h"
2619 @echo "and other prototype headers are not generated anymore."
2620 @echo
2622 .PHONY: proto
2624 etags:
2625 etags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2627 ctags:
2628 ctags `find $(srcdir) -name "*.[ch]" | grep -v /.svn/`
2630 realclean:: clean
2631 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2632 -rm -f script/installbin.sh script/uninstallbin.sh
2634 distclean:: realclean
2635 -rm -f smbadduser
2636 -rm -f include/config.h Makefile
2637 -rm -f config.status config.cache so_locations
2638 -rm -rf .deps TAGS
2640 realdistclean:: distclean
2641 -rm -f include/config.h.in
2642 -rm -f include/version.h
2643 -rm -f configure
2645 # this target is really just for my use. It only works on a limited
2646 # range of machines and is used to produce a list of potentially
2647 # dead (ie. unused) functions in the code. (tridge)
2648 finddead::
2649 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2650 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2651 comm -13 nmused.txt nmfns.txt
2654 # when configure.in is updated, reconfigure
2655 $(srcdir)/configure: $(srcdir)/configure.in
2656 @echo "WARNING: you need to rerun ./autogen.sh"
2658 config.status: $(srcdir)/configure
2659 @echo "WARNING: you need to run ./configure"
2661 Makefile: $(srcdir)/Makefile.in config.status
2662 @echo "WARNING: you need to run ./config.status"
2664 ######################################################################
2665 # Samba Testing Framework
2667 # Check shared libs for unresolved symbols
2668 test_shlibs:
2669 @echo "Testing $? "
2670 @export $(LIB_PATH_VAR)=./bin && \
2671 for module in $?; do \
2672 ./script/tests/dlopen.sh $${module} \
2673 || exit 1; \
2674 done
2676 # Check for NSS module problems.
2677 test_nss_modules:: nss_modules
2678 @echo "Testing $(NSS_MODULES) "
2679 @export $(LIB_PATH_VAR)=./bin && \
2680 for module in $(NSS_MODULES); do \
2681 ./script/tests/dlopen.sh $${module} \
2682 || exit 1; \
2683 done
2685 # Check for PAM module problems. Specifically, check that every module we
2686 # built can actually be loaded by a minimal PAM-aware application.
2687 test_pam_modules:: pam_modules
2688 @echo "Testing $(PAM_MODULES) "
2689 @export $(LIB_PATH_VAR)=./bin && \
2690 for module in $(PAM_MODULES); do \
2691 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2692 || exit 1; \
2693 done
2697 ## Targets for 'make test'
2699 test:: all torture timelimit
2700 @echo Running Test suite
2701 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"
2703 valgrindtest:: all torture timelimit
2704 @echo Running Test suite with valgrind
2705 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2706 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2707 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2708 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2709 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
2710 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all "${smbtorture4_path}"