lib/crypto: add aes encryption routines to main cryto lib.
[ira/wip.git] / source3 / Makefile.in
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 ###########################################################################
12
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
18
19 selftest_prefix=@selftest_prefix@
20 selftest_shrdir=@selftest_shrdir@
21 smbtorture4_path=@smbtorture4_path@
22 smbtorture4_option=@smbtorture4_option@
23 selftest_custom_conf=@selftest_custom_conf@
24
25 LIBS=@LIBS@
26 CC=@CC@
27 SHLD=@SHLD@
28 LIB_PATH_VAR=@LIB_PATH_VAR@
29
30 ## Dynamic shared libraries build settings
31 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
32 DSO_EXPORTS=@DSO_EXPORTS@
33 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
34
35 # The MODULE_EXPORTS variable contains the platform-specific linker flags
36 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
37 MODULE_EXPORTS=@MODULE_EXPORTS@
38
39 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
40 # (GCC) warnings. This is done automatically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
43 CFLAGS=@CFLAGS@
44 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
45
46 EXEEXT=@EXEEXT@
47 AR=@AR@
48 LDSHFLAGS=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
49 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
50
51 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
52 AWK=@AWK@
53 PICFLAG=@PICFLAG@
54 DYNEXP=@DYNEXP@
55 PERL=@PERL@
56 LIBDL=@LIBDL@
57
58 PIDL_ARGS=@PIDL_ARGS@
59
60 TERMLDFLAGS=@TERMLDFLAGS@
61 TERMLIBS=@TERMLIBS@
62 PRINT_LIBS=@PRINT_LIBS@
63 ZLIB_LIBS=@ZLIB_LIBS@
64 AUTH_LIBS=@AUTH_LIBS@
65 ACL_LIBS=@ACL_LIBS@
66 PASSDB_LIBS=@PASSDB_LIBS@
67 IDMAP_LIBS=@IDMAP_LIBS@
68 KRB5LIBS=@KRB5_LIBS@
69 LDAP_LIBS=@LDAP_LIBS@
70 NSCD_LIBS=@NSCD_LIBS@
71 UUID_LIBS=@UUID_LIBS@
72 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
73 WINBIND_NSS_EXTRA_LIBS=@WINBIND_NSS_EXTRA_LIBS@
74 WINBIND_NSS_PTHREAD=@WINBIND_NSS_PTHREAD@
75 PAM_WINBIND_EXTRA_LIBS=@PAM_WINBIND_EXTRA_LIBS@
76 DNSSD_LIBS=@DNSSD_LIBS@
77 AVAHI_LIBS=@AVAHI_LIBS@
78 POPT_LIBS=@POPTLIBS@
79 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
80 LIBTDB_LIBS=@LIBTDB_LIBS@
81 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
82 LIBLUA_LIBS=@LIBLUA_LIBS@
83 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
84 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
85
86 TALLOCTORT = @TALLOCTORT@
87
88 TDBBACKUP = @TDBBACKUP@
89 TDBTOOL = @TDBTOOL@
90 TDBDUMP = @TDBDUMP@
91 TDBTORTURE = @TDBTORTURE@
92
93 INSTALLCMD=@INSTALL@
94 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
95 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
96 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
97 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
98
99 VPATH=@srcdir@
100 srcdir=@abs_srcdir@
101 builddir=@abs_builddir@
102 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
103 # will search for a POSIX-compliant shell, and that might not be
104 # /bin/sh on some platforms.  I guess it's not a big problem -- mbp
105 SHELL=/bin/sh
106 DESTDIR=/
107
108 # See the autoconf manual "Installation Directory Variables" for a
109 # discussion of the subtle use of these variables.
110
111 BASEDIR= @prefix@
112 BINDIR = @bindir@
113 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
114 SBINDIR = @sbindir@
115 ROOTSBINDIR = @rootsbindir@
116 LIBDIR = @libdir@
117 MODULESDIR = @modulesdir@
118 INCLUDEDIR=@includedir@
119 PAMMODULESDIR = @pammodulesdir@
120 VFSLIBDIR = $(MODULESDIR)/vfs
121 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
122 PDBLIBDIR = $(MODULESDIR)/pdb
123 RPCLIBDIR = $(MODULESDIR)/rpc
124 IDMAPLIBDIR = $(MODULESDIR)/idmap
125 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
126 CHARSETLIBDIR = $(MODULESDIR)/charset
127 AUTHLIBDIR = $(MODULESDIR)/auth
128 CONFIGLIBDIR = $(MODULESDIR)/config
129 GPEXTLIBDIR = $(MODULESDIR)/gpext
130 CONFIGDIR = @configdir@
131 VARDIR = @localstatedir@
132 MANDIR = @mandir@
133 DATADIR = @datadir@
134
135 # The permissions to give the executables and other data
136 INSTALLPERMS_BIN = 0755
137 INSTALLPERMS_DATA = 0644
138
139 # set these to where to find various files
140 # These can be overridden by command line switches (see smbd(8))
141 # or in smb.conf (see smb.conf(5))
142 LOGFILEBASE = @logfilebase@
143 CONFIGFILE = $(CONFIGDIR)/smb.conf
144 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
145 NCALRPCDIR = @ncalrpcdir@
146
147 # This is where smbpasswd et al go
148 PRIVATEDIR = @privatedir@
149
150 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
151 PRIVATE_DIR = $(PRIVATEDIR)
152
153 # This is where SWAT images and help files go
154 SWATDIR = @swatdir@
155
156 # This is where locale(mo) files go
157 LOCALEDIR= @localedir@
158
159 # the directory where lock files go
160 LOCKDIR = @lockdir@
161
162 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
163 CACHEDIR = @cachedir@
164 STATEDIR = @statedir@
165
166 # Where to look for (and install) codepage databases.
167 CODEPAGEDIR = @codepagedir@
168
169 # the directory where pid files go
170 PIDDIR = @piddir@
171
172 FLAGS = -I. \
173         -I$(srcdir) \
174         @FLAGS1@ \
175         @SAMBA_CPPFLAGS@ \
176         $(CPPFLAGS) \
177         $(ISA) \
178         -I$(srcdir)/lib \
179         -I.. \
180         -I../source4 \
181         -D_SAMBA_BUILD_=3
182
183 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
184         -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
185         -DCONFIGFILE=\"$(CONFIGFILE)\" \
186         -DSBINDIR=\"$(SBINDIR)\" \
187         -DBINDIR=\"$(BINDIR)\" \
188         -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
189         -DSWATDIR=\"$(SWATDIR)\" \
190         -DLOCKDIR=\"$(LOCKDIR)\" \
191         -DPIDDIR=\"$(PIDDIR)\" \
192         -DLIBDIR=\"$(LIBDIR)\" \
193         -DMODULESDIR=\"$(MODULESDIR)\" \
194         -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
195         -DSHLIBEXT=\"@SHLIBEXT@\" \
196         -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
197         -DCONFIGDIR=\"$(CONFIGDIR)\" \
198         -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
199         -DCACHEDIR=\"$(CACHEDIR)\" \
200         -DSTATEDIR=\"$(STATEDIR)\" \
201         -DLOCALEDIR=\"$(LOCALEDIR)\"
202
203 # Note that all executable programs now provide for an optional executable suffix.
204
205 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
206
207 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@ @CIFSUMOUNT_PROGS@
208
209 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
210         bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
211 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
212         bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
213         $(TDBTOOL)
214 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
215         bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
216         bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
217 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
218         bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@ bin/ldbrename@EXEEXT@
219
220 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
221         bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
222         bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
223         bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
224         $(TDBTORTURE) \
225         bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
226
227 BIN_PROGS = @EXTRA_BIN_PROGS@ \
228         $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4) 
229
230 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
231         $(TALLOCTORT) bin/replacetort@EXEEXT@ \
232         bin/log2pcap@EXEEXT@ \
233         bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
234         bin/dbwrap_tool@EXEEXT@
235
236 PAM_MODULES = @PAM_MODULES@
237
238 NSS_MODULES = @NSS_MODULES@
239
240 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
241
242 VFS_MODULES = @VFS_MODULES@
243 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
244 PDB_MODULES = @PDB_MODULES@
245 RPC_MODULES = @RPC_MODULES@
246 IDMAP_MODULES = @IDMAP_MODULES@
247 CHARSET_MODULES = @CHARSET_MODULES@
248 AUTH_MODULES = @AUTH_MODULES@
249 NSS_INFO_MODULES = @NSS_INFO_MODULES@
250 GPEXT_MODULES = @GPEXT_MODULES@
251 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
252           $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
253           $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
254
255 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
256
257 ######################################################################
258 # object file lists
259 ######################################################################
260
261 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
262           lib/dbwrap.o lib/dbwrap_tdb.o \
263           lib/dbwrap_ctdb.o \
264           lib/dbwrap_rbt.o
265
266 TDB_VALIDATE_OBJ = lib/tdb_validate.o
267
268 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
269
270 VERSION_OBJ = lib/version.o
271
272 WBCOMMON_OBJ = ../nsswitch/wb_common.o
273
274 AFS_OBJ = lib/afs.o
275
276 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
277
278 AVAHI_OBJ = @AVAHI_OBJ@
279
280 SERVER_MUTEX_OBJ = lib/server_mutex.o
281
282 PASSCHANGE_OBJ = libsmb/passchange.o
283
284 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
285                      ../librpc/ndr/ndr_compression.o \
286                      ../librpc/gen_ndr/ndr_drsuapi.o \
287                      ../librpc/ndr/ndr_drsblobs.o \
288                      ../librpc/gen_ndr/ndr_drsblobs.o
289
290 ZLIB_OBJ = @ZLIB_OBJS@
291
292 COMPRESSION_OBJ = ../lib/compression/mszip.o \
293                                   ../lib/compression/lzxpress.o \
294                                   $(ZLIB_OBJ)
295
296 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
297               $(COMPRESSION_OBJ)
298
299 LIBNDR_NTLMSSP_OBJ = ../librpc/gen_ndr/ndr_ntlmssp.o \
300                      ../librpc/ndr/ndr_ntlmssp.o
301
302 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
303              ../librpc/ndr/ndr.o \
304              ../librpc/ndr/ndr_misc.o \
305              ../librpc/gen_ndr/ndr_misc.o \
306              ../librpc/gen_ndr/ndr_security.o \
307              ../librpc/ndr/ndr_sec_helper.o \
308              librpc/ndr/ndr_string.o \
309              ../librpc/ndr/uuid.o \
310              librpc/ndr/util.o \
311              ../librpc/gen_ndr/ndr_dcerpc.o
312
313 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
314
315 LIBNDR_GEN_OBJ0 = ../librpc/gen_ndr/ndr_samr.o \
316                   ../librpc/gen_ndr/ndr_lsa.o
317
318 LIBNDR_GEN_OBJ1 = ../librpc/gen_ndr/ndr_netlogon.o \
319                   ../librpc/ndr/ndr_netlogon.o
320
321 LIBNDR_GEN_OBJ2 = ../librpc/gen_ndr/ndr_spoolss.o \
322                   ../librpc/ndr/ndr_spoolss_buf.o
323
324 LIBNDR_GEN_OBJ = ../librpc/gen_ndr/ndr_wkssvc.o \
325                  $(LIBNDR_GEN_OBJ0) \
326                  ../librpc/gen_ndr/ndr_dfs.o \
327                  ../librpc/gen_ndr/ndr_echo.o \
328                  ../librpc/gen_ndr/ndr_winreg.o \
329                  ../librpc/gen_ndr/ndr_initshutdown.o \
330                  ../librpc/gen_ndr/ndr_srvsvc.o \
331                  ../librpc/gen_ndr/ndr_eventlog.o \
332                  $(LIBNDR_GEN_OBJ1) \
333                  ../librpc/gen_ndr/ndr_dssetup.o \
334                  librpc/gen_ndr/ndr_notify.o \
335                  ../librpc/gen_ndr/ndr_xattr.o \
336                  ../librpc/gen_ndr/ndr_epmapper.o \
337                  ../librpc/gen_ndr/ndr_named_pipe_auth.o \
338                  ../librpc/gen_ndr/ndr_ntsvcs.o \
339                  $(LIBNDR_GEN_OBJ2)
340
341 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
342
343 # this includes only the low level parse code, not stuff
344 # that requires knowledge of security contexts
345 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0)
346
347 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
348                  rpc_client/init_netlogon.o \
349                  rpc_client/init_lsa.o
350
351 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
352
353 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
354 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
355
356 LIBSAMBAUTIL_OBJ = \
357                 $(LIBREPLACE_OBJ) \
358                 $(SOCKET_WRAPPER_OBJ) \
359                 $(NSS_WRAPPER_OBJ)
360
361 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
362                    ../lib/util/xfile.o ../lib/util/util_strlist.o  \
363                    ../lib/util/util_file.o ../lib/util/data_blob.o \
364                    ../lib/util/util.o ../lib/util/fsusage.o \
365                    ../lib/util/params.o ../lib/util/talloc_stack.o \
366                    ../lib/util/genrand.o ../lib/util/util_net.o \
367                    ../lib/util/become_daemon.o ../lib/util/system.o \
368                    ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
369                    ../lib/util/smb_threads.o ../lib/util/util_id.o \
370                    ../lib/util/blocking.o
371
372 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
373                          ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
374                          ../lib/crypto/md4.o \
375                          ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
376                          ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
377
378 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
379           lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
380           lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
381           lib/interfaces.o lib/memcache.o \
382           lib/talloc_dict.o \
383           lib/util_transfer_file.o ../lib/async_req/async_sock.o \
384           $(TDB_LIB_OBJ) \
385           $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
386           lib/interface.o lib/pidfile.o \
387           lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
388           lib/username.o \
389           ../libds/common/flag_mapping.o \
390           lib/util_pw.o lib/access.o lib/smbrun.o \
391           lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
392           lib/wins_srv.o \
393           lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
394           lib/util_unistr.o lib/util_file.o \
395           lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
396           lib/substitute.o lib/dbwrap_util.o \
397           lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
398           lib/tallocmsg.o lib/dmallocmsg.o \
399           libsmb/clisigning.o libsmb/smb_signing.o \
400           lib/iconv.o lib/pam_errors.o intl/lang_tdb.o \
401           lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
402           lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
403           lib/ldap_escape.o @CHARSET_STATIC@ \
404           lib/secdesc.o lib/util_seaccess.o ../libcli/security/secace.o \
405           ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
406           lib/fncall.o \
407           libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
408           lib/file_id.o lib/idmap_cache.o \
409           ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o
410
411 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
412 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
413
414 READLINE_OBJ = lib/readline.o
415
416 # Also depends on  $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
417 # Be sure to include them into your application
418 POPT_LIB_OBJ = lib/popt_common.o
419
420 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
421 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
422 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
423
424 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
425
426 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o  libaddns/dnssock.o \
427                libaddns/dnsgss.o libaddns/dnsmarshall.o
428 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
429
430 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
431
432 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
433               ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
434               libgpo/gpo_reg.o \
435               $(GPEXT_OBJ)
436 LIBGPO_OBJ = $(LIBGPO_OBJ0)
437
438 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
439              libads/sasl.o libads/sasl_wrapping.o \
440              libads/krb5_setpw.o libads/ldap_user.o \
441              libads/ads_struct.o libads/kerberos_keytab.o \
442              libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
443              libads/ldap_schema.o libads/util.o libads/ndr.o
444
445 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
446                     ../librpc/ndr/ndr_krb5pac.o \
447                     ../librpc/gen_ndr/ndr_krb5pac.o
448
449 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
450
451 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
452              ../libcli/netlogon.o \
453              ../libcli/ndr_netlogon.o \
454              ../librpc/gen_ndr/ndr_nbt.o \
455              ../librpc/gen_ndr/ndr_svcctl.o \
456              ../librpc/ndr/ndr_svcctl.o
457
458 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
459              libsmb/namequery.o ../libcli/nbt/lmhosts.o libsmb/conncache.o libads/dns.o
460
461 NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
462 DOSERR_OBJ = ../libcli/util/doserr.o
463 ERRORMAP_OBJ = libsmb/errormap.o
464 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
465
466 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
467
468 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
469
470 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
471                  $(RPC_PARSE_OBJ1) \
472                  $(SECRETS_OBJ)
473
474 LIBSMB_OBJ0 = \
475                ../libcli/auth/ntlm_check.o \
476                libsmb/ntlmssp.o \
477                libsmb/ntlmssp_sign.o \
478                $(LIBNDR_NTLMSSP_OBJ) \
479                libsmb/ntlmssp_ndr.o
480
481 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
482                $(LIBSMB_ERR_OBJ)
483
484 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
485 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o
486
487 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
488                 ../lib/tsocket/tsocket_helpers.o \
489                 ../lib/tsocket/tsocket_bsd.o
490
491 CLDAP_OBJ = libads/cldap.o \
492         ../libcli/cldap/cldap.o \
493         ../lib/util/idtree.o \
494         $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
495
496 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
497
498 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
499                ../libcli/auth/schannel_state_tdb.o \
500                ../librpc/gen_ndr/ndr_schannel.o \
501                ../librpc/ndr/ndr_schannel.o \
502                passdb/secrets_schannel.o
503
504 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
505              libsmb/clikrb5.o libsmb/clispnego.o ../lib/util/asn1.o \
506              libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
507              libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
508              libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
509              libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
510              libsmb/clioplock.o libsmb/clirap2.o \
511              libsmb/smb_seal.o libsmb/async_smb.o \
512              $(LIBSAMBA_OBJ) \
513              $(LIBNMB_OBJ) \
514              $(LIBNBT_OBJ) \
515              $(CLDAP_OBJ) \
516              $(DRSUAPI_OBJ)
517
518 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o \
519                   $(SCHANNEL_OBJ)
520
521 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
522                $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
523                rpc_client/cli_spoolss.o \
524                rpc_client/init_spoolss.o \
525                rpc_client/init_samr.o \
526                    librpc/rpc/dcerpc.o \
527                    ../librpc/rpc/binding.o
528
529 LIBMSRPC_GEN_OBJ = ../librpc/gen_ndr/cli_lsa.o \
530                    ../librpc/gen_ndr/cli_dfs.o \
531                    ../librpc/gen_ndr/cli_echo.o \
532                    ../librpc/gen_ndr/cli_srvsvc.o \
533                    ../librpc/gen_ndr/cli_svcctl.o \
534                    ../librpc/gen_ndr/cli_winreg.o \
535                    ../librpc/gen_ndr/cli_initshutdown.o \
536                    ../librpc/gen_ndr/cli_eventlog.o \
537                    ../librpc/gen_ndr/cli_wkssvc.o \
538                    ../librpc/gen_ndr/cli_netlogon.o \
539                    ../librpc/gen_ndr/cli_samr.o \
540                    ../librpc/gen_ndr/cli_dssetup.o \
541                    ../librpc/gen_ndr/cli_ntsvcs.o \
542                    ../librpc/gen_ndr/cli_epmapper.o \
543                    ../librpc/gen_ndr/cli_drsuapi.o \
544                    ../librpc/gen_ndr/cli_spoolss.o \
545                    $(LIBNDR_GEN_OBJ) \
546                    $(RPCCLIENT_NDR_OBJ)
547
548 #
549 # registry-related objects
550 #
551 UTIL_REG_OBJ = lib/util_reg.o
552 UTIL_REG_API_OBJ = lib/util_reg_api.o
553
554 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
555 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
556 REG_INIT_FULL_OBJ = registry/reg_init_full.o
557
558 REGFIO_OBJ = registry/regfio.o
559
560 REGOBJS_OBJ = registry/reg_objects.o
561
562 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
563
564 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
565
566 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
567                          registry/reg_backend_shares.o \
568                          registry/reg_backend_netlogon_params.o \
569                          registry/reg_backend_prod_options.o \
570                          registry/reg_backend_tcpip_params.o \
571                          registry/reg_backend_hkpt_params.o \
572                          registry/reg_backend_current_version.o \
573                          registry/reg_backend_perflib.o
574
575 REG_BASE_OBJ = registry/reg_api.o \
576                registry/reg_dispatcher.o \
577                registry/reg_cachehook.o \
578                $(REGFIO_OBJ) \
579                $(REGOBJS_OBJ) \
580                registry/reg_util.o \
581                $(UTIL_REG_API_OBJ) \
582                lib/util_nttoken.o \
583                $(REG_BACKENDS_BASE_OBJ) \
584                $(REG_INIT_BASIC_OBJ)
585
586 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
587                   $(REG_BACKENDS_SMBCONF_OBJ) \
588                   $(REG_INIT_SMBCONF_OBJ)
589
590 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
591                $(REG_BACKENDS_EXTRA_OBJ) \
592                $(REG_INIT_FULL_OBJ) \
593                registry/reg_eventlog.o \
594                registry/reg_perfcount.o \
595                registry/reg_util_legacy.o
596
597 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
598
599 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o ../librpc/gen_ndr/srv_lsa.o
600
601 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
602                  ../librpc/gen_ndr/srv_netlogon.o
603
604 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
605                rpc_server/srv_samr_util.o \
606                ../librpc/gen_ndr/srv_samr.o
607
608 RPC_INITSHUTDOWN_OBJ =  ../librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
609
610 RPC_REG_OBJ =  rpc_server/srv_winreg_nt.o \
611                ../librpc/gen_ndr/srv_winreg.o
612
613 RPC_DSSETUP_OBJ =  rpc_server/srv_dssetup_nt.o ../librpc/gen_ndr/srv_dssetup.o
614
615 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
616               ../librpc/gen_ndr/srv_srvsvc.o
617
618 RPC_WKS_OBJ =  ../librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
619
620 RPC_SVCCTL_OBJ =  rpc_server/srv_svcctl_nt.o \
621                   ../librpc/gen_ndr/srv_svcctl.o \
622                   services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
623                   services/svc_netlogon.o services/svc_winreg.o \
624                   services/svc_wins.o
625
626 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs_nt.o \
627                  ../librpc/gen_ndr/srv_ntsvcs.o
628
629 RPC_DFS_OBJ =  ../librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
630
631 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss_nt.o \
632                   ../librpc/gen_ndr/srv_spoolss.o
633
634 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog_nt.o \
635                    $(LIB_EVENTLOG_OBJ) ../librpc/gen_ndr/srv_eventlog.o
636
637 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
638                rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
639
640 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o ../librpc/gen_ndr/srv_echo.o
641
642 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
643
644 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2)
645
646 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o rpc_client/rpc_transport_np.o \
647         rpc_client/rpc_transport_sock.o rpc_client/rpc_transport_smbd.o
648
649 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
650
651 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
652
653 PRIVILEGES_OBJ = lib/privileges.o
654
655 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
656
657 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
658                 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
659                 passdb/util_unixsids.o passdb/lookup_sid.o \
660                 passdb/login_cache.o @PDB_STATIC@ \
661                 lib/account_pol.o $(PRIVILEGES_OBJ) \
662                 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ)
663
664 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
665 CP850_OBJ = modules/CP850.o
666 CP437_OBJ = modules/CP437.o
667 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
668
669 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
670
671 PROFILE_OBJ = profile/profile.o
672 PROFILES_OBJ = utils/profiles.o \
673                $(LIBSAMBA_OBJ) \
674                $(PARAM_OBJ) \
675                $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
676                $(POPT_LIB_OBJ)
677
678 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
679              smbd/oplock_onefs.o
680
681 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
682
683 FNAME_UTIL_OBJ = smbd/filename_util.o
684
685 VFS_DEFAULT_OBJ = modules/vfs_default.o
686 VFS_AUDIT_OBJ = modules/vfs_audit.o
687 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
688 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
689 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
690 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
691 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
692 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
693 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
694 VFS_CAP_OBJ = modules/vfs_cap.o
695 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
696 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
697 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
698 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
699 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
700 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
701 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
702 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
703 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
704 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
705 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
706 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
707 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
708 VFS_CATIA_OBJ = modules/vfs_catia.o
709 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
710 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
711 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
712 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
713 VFS_COMMIT_OBJ = modules/vfs_commit.o
714 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
715 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
716 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
717 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
718 VFS_FILEID_OBJ = modules/vfs_fileid.o
719 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
720 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
721 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
722 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
723 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
724 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
725 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
726                 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
727                 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
728 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
729 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
730 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
731 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
732
733 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
734
735 SLCACHE_OBJ = libsmb/samlogon_cache.o
736
737 DCUTIL_OBJ  = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
738
739 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
740 AUTH_DOMAIN_OBJ = auth/auth_domain.o
741 AUTH_SAM_OBJ = auth/auth_sam.o
742 AUTH_SERVER_OBJ = auth/auth_server.o
743 AUTH_UNIX_OBJ = auth/auth_unix.o
744 AUTH_WINBIND_OBJ = auth/auth_winbind.o
745 AUTH_WBC_OBJ = auth/auth_wbc.o
746 AUTH_SCRIPT_OBJ = auth/auth_script.o
747 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
748
749 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
750            auth/auth_compat.o auth/auth_ntlmssp.o \
751            $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
752
753 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
754
755 SMBD_OBJ_MAIN = smbd/server.o
756
757 BUILDOPT_OBJ = smbd/build_options.o
758
759 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
760                smbd/utmp.o smbd/session.o smbd/map_username.o \
761                smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
762                smbd/share_access.o smbd/fileio.o \
763                smbd/ipc.o smbd/lanman.o smbd/negprot.o \
764                smbd/message.o smbd/nttrans.o smbd/pipes.o \
765                smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
766                smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
767                smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
768                smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
769                smbd/posix_acls.o lib/sysacls.o \
770                smbd/process.o smbd/service.o smbd/error.o \
771                printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
772                lib/sysquotas_xfs.o lib/sysquotas_4A.o \
773                smbd/change_trust_pw.o smbd/fake_file.o \
774                smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
775                $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
776                smbd/dmapi.o smbd/signing.o \
777                smbd/file_access.o \
778                smbd/dnsregister.o smbd/globals.o \
779                smbd/smb2_server.o \
780                smbd/smb2_signing.o \
781                smbd/smb2_glue.o \
782                smbd/smb2_negprot.o \
783                smbd/smb2_sesssetup.o \
784                smbd/smb2_tcon.o \
785                smbd/smb2_create.o \
786                smbd/smb2_close.o \
787                smbd/smb2_flush.o \
788                smbd/smb2_read.o \
789                smbd/smb2_write.o \
790                smbd/smb2_lock.o \
791                smbd/smb2_ioctl.o \
792                smbd/smb2_keepalive.o \
793                smbd/smb2_find.o \
794                smbd/smb2_notify.o \
795                smbd/smb2_getinfo.o \
796                smbd/smb2_setinfo.o \
797                smbd/smb2_break.o \
798                ../libcli/smb/smb2_create_blob.o \
799                $(MANGLE_OBJ) @VFS_STATIC@
800
801 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
802                 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
803                 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
804                 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
805                 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
806                 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
807                 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
808                 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
809                 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) \
810                 $(LIBSMBCONF_OBJ) \
811                 $(PRIVILEGES_BASIC_OBJ)
812
813 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
814                printing/print_cups.o printing/print_generic.o \
815                printing/lpq_parse.o printing/load.o \
816                printing/print_iprint.o
817
818 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
819 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
820
821 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
822
823 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
824             nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
825             nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
826             nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
827             nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
828             nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
829             nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
830             nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
831             nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
832             nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
833             nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
834             nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
835
836 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
837            $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
838            $(LIBNDR_GEN_OBJ0)
839
840 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
841            web/swat.o web/neg_lang.o
842
843 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
844            $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
845            $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
846            $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
847            $(PASSCHANGE_OBJ) $(LDB_OBJ) $(FNAME_UTIL_OBJ)
848
849 STATUS_OBJ = utils/status.o utils/status_profile.o \
850              $(LOCKING_OBJ) $(PARAM_OBJ) \
851              $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
852              $(LIBSAMBA_OBJ) $(FNAME_UTIL_OBJ)
853
854 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
855         $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
856         $(LIBSAMBA_OBJ) $(FNAME_UTIL_OBJ) \
857         $(PRINTBASE_OBJ)
858
859 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
860              $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
861              $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
862              $(RPC_CLIENT_OBJ) ../librpc/rpc/binding.o $(RPC_PARSE_OBJ2) \
863              $(RPC_CLIENT_OBJ1) \
864              $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
865              $(LIBMSRPC_GEN_OBJ)
866
867 TESTPARM_OBJ = utils/testparm.o \
868                $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
869                $(LIBSAMBA_OBJ)
870
871 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
872                    $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
873                    $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
874
875 PASSWD_UTIL_OBJ = utils/passwd_util.o
876
877 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
878                 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
879                 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
880                 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
881                 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
882
883 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
884                 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
885                 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
886                 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o \
887                 $(LDB_OBJ)
888
889 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
890
891 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
892
893 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
894                  rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
895                  rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
896                  rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
897                  rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
898                  rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
899                  rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
900                  rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
901                  $(DISPLAY_SEC_OBJ)
902
903 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
904              $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
905              $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
906              $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
907              $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
908              $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ) 
909
910 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o localedir.o $(WBCOMMON_OBJ) \
911                   $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
912
913 LIBSMBCLIENT_OBJ0 = \
914                     libsmb/libsmb_cache.o \
915                     libsmb/libsmb_compat.o \
916                     libsmb/libsmb_context.o \
917                     libsmb/libsmb_dir.o \
918                     libsmb/libsmb_file.o \
919                     libsmb/libsmb_misc.o \
920                     libsmb/libsmb_path.o \
921                     libsmb/libsmb_printjob.o \
922                     libsmb/libsmb_server.o \
923                     libsmb/libsmb_stat.o \
924                     libsmb/libsmb_xattr.o \
925                     libsmb/libsmb_setget.o \
926                     libsmb/libsmb_thread_impl.o \
927                     libsmb/libsmb_thread_posix.o
928
929 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
930                     $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
931                     $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
932                     $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
933                     $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
934
935 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
936
937 # This shared library is intended for linking with unit test programs
938 # to test Samba internals.  It's called libbigballofmud.so to
939 # discourage casual usage.
940
941 LIBBIGBALLOFMUD_MAJOR = 0
942
943 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
944         $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) \
945         $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
946
947 CLIENT_OBJ1 = client/client.o client/clitar.o $(RPC_CLIENT_OBJ) \
948               ../librpc/rpc/binding.o \
949               client/dnsbrowse.o \
950               $(RPC_CLIENT_OBJ1) \
951               $(RPC_PARSE_OBJ2)
952
953 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
954              $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
955              $(READLINE_OBJ) $(POPT_LIB_OBJ) \
956              $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
957              $(DISPLAY_SEC_OBJ)
958
959 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
960                  ../lib/smbconf/smbconf_util.o \
961                  ../lib/smbconf/smbconf_txt.o \
962                  lib/smbconf/smbconf_reg.o \
963                  lib/smbconf/smbconf_init.o
964
965 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
966
967 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
968                   $(LIB_NONSMBD_OBJ) \
969                   $(PARAM_OBJ) \
970                   $(LIBSMB_ERR_OBJ) \
971                   $(POPT_LIB_OBJ)
972
973 LIBNET_OBJ = libnet/libnet_join.o \
974              libnet/libnet_keytab.o \
975              librpc/gen_ndr/ndr_libnet_join.o
976
977 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
978                     libnet/libnet_dssync_keytab.o \
979                     ../libcli/drsuapi/repl_decrypt.o
980
981 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
982                      libnet/libnet_samsync_ldif.o \
983                      libnet/libnet_samsync_passdb.o \
984                      libnet/libnet_samsync_display.o \
985                      libnet/libnet_samsync_keytab.o \
986                      ../libcli/samsync/decrypt.o
987
988 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
989            utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
990            utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
991            utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
992            utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
993            utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
994            utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
995            utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
996            $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
997            utils/net_conf.o utils/net_join.o utils/net_user.o \
998            utils/net_group.o utils/net_file.o utils/net_registry.o \
999            auth/token_util.o utils/net_dom.o utils/net_share.o utils/net_lua.o \
1000            utils/net_eventlog.o
1001
1002 # these are not processed by make proto
1003 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1004
1005 NET_OBJ = $(NET_OBJ1) \
1006           $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1007           $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1008           $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1009           $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1010           $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1011           $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
1012           $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1013           $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1014           $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1015           $(REG_SMBCONF_OBJ) \
1016           $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1017           $(LIBSMBCONF_OBJ) \
1018           $(PRIVILEGES_BASIC_OBJ) \
1019           $(LIB_EVENTLOG_OBJ) localedir.o
1020
1021 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
1022           $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1023           $(LIBNDR_GEN_OBJ0)
1024
1025 CIFS_MOUNT_OBJ = ../client/mount.cifs.o ../client/mtab.o
1026
1027 CIFS_UMOUNT_OBJ = ../client/umount.cifs.o ../client/mtab.o
1028
1029 CIFS_UPCALL_OBJ = ../client/cifs.upcall.o
1030
1031 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1032                $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1033
1034 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1035                 torture/denytest.o torture/mangle_test.o
1036
1037 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1038         $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1039         @LIBWBCLIENT_STATIC@ \
1040         $(LIBNDR_GEN_OBJ0)
1041
1042 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
1043                  $(LIB_NONSMBD_OBJ) \
1044                  $(LIBNDR_GEN_OBJ0)
1045
1046 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
1047                  $(LIB_NONSMBD_OBJ) \
1048                  $(LIBNDR_GEN_OBJ0)
1049
1050 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1051                $(LIBSMB_OBJ) $(LDB_OBJ) $(LIB_NONSMBD_OBJ) \
1052                $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1053
1054 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
1055                  $(LIB_NONSMBD_OBJ) \
1056                  $(LIBNDR_GEN_OBJ0)
1057
1058 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1059                 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1060                 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
1061                 $(LIBNDR_GEN_OBJ0)
1062
1063 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1064
1065 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1066
1067 LOG2PCAP_OBJ = utils/log2pcaphex.o
1068
1069 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
1070                 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1071                 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1072
1073 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1074                 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
1075                 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1076                 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
1077
1078 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1079                 $(PARAM_OBJ) \
1080                 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
1081                 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1082                 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
1083
1084 EVTLOGADM_OBJ0  = utils/eventlogadm.o
1085
1086 EVTLOGADM_OBJ   = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1087                 $(LIBSAMBA_OBJ) \
1088                 registry/reg_eventlog.o $(LIB_EVENTLOG_OBJ) \
1089                 ../librpc/gen_ndr/ndr_eventlog.o \
1090                 ../librpc/gen_ndr/ndr_lsa.o
1091
1092 SHARESEC_OBJ0 = utils/sharesec.o
1093 SHARESEC_OBJ  = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1094                 $(LIBSAMBA_OBJ) \
1095                 $(POPT_LIB_OBJ)
1096
1097 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1098                 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSAMBA_OBJ)
1099
1100 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1101                 @libreplacedir@/test/getifaddrs.o \
1102                 @libreplacedir@/test/os2_delete.o \
1103                 @libreplacedir@/test/strptime.o \
1104                 @libreplacedir@/test/main.o \
1105                 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1106
1107 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1108
1109 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
1110                  $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1111                  $(LIBNDR_GEN_OBJ0)
1112
1113 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1114         $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
1115         $(LIBNDR_GEN_OBJ0) $(LDB_OBJ)
1116
1117 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1118                 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
1119 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1120                 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1121                 $(LDB_OBJ)
1122
1123 IDMAP_OBJ     = winbindd/idmap.o winbindd/idmap_util.o @IDMAP_STATIC@
1124
1125 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1126
1127 IDMAP_HASH_OBJ = \
1128                 winbindd/idmap_hash/idmap_hash.o \
1129                 winbindd/idmap_hash/mapfile.o
1130
1131 IDMAP_ADEX_OBJ = \
1132                 winbindd/idmap_adex/idmap_adex.o \
1133                 winbindd/idmap_adex/cell_util.o \
1134                 winbindd/idmap_adex/likewise_cell.o \
1135                 winbindd/idmap_adex/provider_unified.o \
1136                 winbindd/idmap_adex/gc_util.o \
1137                 winbindd/idmap_adex/domain_util.o
1138
1139 WINBINDD_OBJ1 = \
1140                 winbindd/winbindd.o       \
1141                 winbindd/winbindd_user.o  \
1142                 winbindd/winbindd_group.o \
1143                 winbindd/winbindd_util.o  \
1144                 winbindd/winbindd_cache.o \
1145                 winbindd/winbindd_pam.o   \
1146                 winbindd/winbindd_misc.o  \
1147                 winbindd/winbindd_cm.o    \
1148                 winbindd/winbindd_wins.o  \
1149                 winbindd/winbindd_rpc.o   \
1150                 winbindd/winbindd_reconnect.o \
1151                 winbindd/winbindd_ads.o   \
1152                 winbindd/winbindd_passdb.o \
1153                 winbindd/winbindd_dual.o  \
1154                 winbindd/winbindd_dual_ndr.o  \
1155                 winbindd/winbindd_dual_srv.o  \
1156                 librpc/gen_ndr/cli_wbint.o \
1157                 librpc/gen_ndr/srv_wbint.o \
1158                 librpc/gen_ndr/ndr_wbint.o \
1159                 winbindd/winbindd_async.o \
1160                 winbindd/winbindd_creds.o \
1161                 winbindd/winbindd_cred_cache.o \
1162                 winbindd/winbindd_ccache_access.o \
1163                 winbindd/winbindd_domain.o \
1164                 winbindd/winbindd_idmap.o \
1165                 winbindd/winbindd_locator.o \
1166                 winbindd/winbindd_ndr.o \
1167                 winbindd/wb_ping.o \
1168                 winbindd/wb_lookupsid.o \
1169                 winbindd/wb_lookupname.o \
1170                 winbindd/wb_sid2uid.o \
1171                 winbindd/wb_sid2gid.o \
1172                 winbindd/wb_uid2sid.o \
1173                 winbindd/wb_gid2sid.o \
1174                 winbindd/wb_queryuser.o \
1175                 winbindd/wb_lookupuseraliases.o \
1176                 winbindd/wb_lookupusergroups.o \
1177                 winbindd/wb_getpwsid.o \
1178                 winbindd/wb_gettoken.o \
1179                 winbindd/wb_seqnum.o \
1180                 winbindd/wb_seqnums.o \
1181                 winbindd/wb_group_members.o \
1182                 winbindd/wb_getgrsid.o \
1183                 winbindd/wb_query_user_list.o \
1184                 winbindd/wb_fill_pwent.o \
1185                 winbindd/wb_next_pwent.o \
1186                 winbindd/wb_next_grent.o \
1187                 winbindd/wb_dsgetdcname.o \
1188                 winbindd/winbindd_lookupsid.o \
1189                 winbindd/winbindd_lookupname.o \
1190                 winbindd/winbindd_sid_to_uid.o \
1191                 winbindd/winbindd_sid_to_gid.o \
1192                 winbindd/winbindd_uid_to_sid.o \
1193                 winbindd/winbindd_gid_to_sid.o \
1194                 winbindd/winbindd_allocate_uid.o \
1195                 winbindd/winbindd_allocate_gid.o \
1196                 winbindd/winbindd_getpwsid.o \
1197                 winbindd/winbindd_getpwnam.o \
1198                 winbindd/winbindd_getpwuid.o \
1199                 winbindd/winbindd_getsidaliases.o \
1200                 winbindd/winbindd_getuserdomgroups.o \
1201                 winbindd/winbindd_getgroups.o \
1202                 winbindd/winbindd_show_sequence.o \
1203                 winbindd/winbindd_getgrgid.o \
1204                 winbindd/winbindd_getgrnam.o \
1205                 winbindd/winbindd_getusersids.o \
1206                 winbindd/winbindd_lookuprids.o \
1207                 winbindd/winbindd_setpwent.o \
1208                 winbindd/winbindd_getpwent.o \
1209                 winbindd/winbindd_endpwent.o \
1210                 winbindd/winbindd_setgrent.o \
1211                 winbindd/winbindd_getgrent.o \
1212                 winbindd/winbindd_endgrent.o \
1213                 winbindd/winbindd_dsgetdcname.o \
1214                 winbindd/winbindd_getdcname.o \
1215                 winbindd/winbindd_list_users.o \
1216                 winbindd/winbindd_list_groups.o \
1217                 winbindd/winbindd_check_machine_acct.o \
1218                 winbindd/winbindd_set_mapping.o \
1219                 winbindd/winbindd_remove_mapping.o \
1220                 winbindd/winbindd_set_hwm.o \
1221                 auth/token_util.o \
1222                 ../nsswitch/libwbclient/wb_reqtrans.o \
1223                 smbd/connection.o
1224
1225 WINBINDD_OBJ = \
1226                 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1227                 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1228                 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1229                 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1230                 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1231                 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1232                 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1233                 $(LIBADS_SERVER_OBJ) $(LDB_OBJ) \
1234                 $(TDB_VALIDATE_OBJ)
1235
1236 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1237                 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1238                 lib/winbind_util.o $(WBCOMMON_OBJ)
1239
1240 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1241
1242 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1243           lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1244           lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1245           lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1246           lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1247
1248 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1249        lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1250        lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1251
1252 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1253           lib/ldb/modules/objectclass.o \
1254           lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1255
1256 # enabled in configure.in
1257 LDB_LDAP_OBJ=@LDBLDAP@
1258
1259 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1260
1261 LDB_CMDLINE_OBJ = $(PARAM_OBJ) \
1262           $(POPT_LIB_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
1263           $(RPC_PARSE_OBJ1) $(SECRETS_OBJ) \
1264           $(LDB_OBJ) lib/ldb/tools/cmdline.o 
1265
1266
1267 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1268 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1269 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1270 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1271 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1272 LDBRENAME_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbrename.o
1273
1274 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1275 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1276
1277 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1278           ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1279
1280 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1281                 iniparser_build/strlib.o
1282
1283 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1284         $(SOCKET_WRAPPER_OBJ)
1285
1286 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1287         $(SOCKET_WRAPPER_OBJ)
1288
1289 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1290         $(SOCKET_WRAPPER_OBJ)
1291
1292 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1293         $(SOCKET_WRAPPER_OBJ)
1294
1295
1296 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1297
1298 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1299                 ../lib/util/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1300                 $(LIBADS_SERVER_OBJ) \
1301                 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1302                 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1303                 $(LDB_OBJ) $(WBCOMMON_OBJ) \
1304                 $(LIBNDR_GEN_OBJ0) $(LIBNDR_GEN_OBJ1) @BUILD_INIPARSER@
1305
1306
1307 VLP_OBJ = printing/tests/vlp.o \
1308           ../lib/util/util_tdb.o \
1309           $(LIBSAMBAUTIL_OBJ) \
1310           param/util.o
1311
1312 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1313                    $(LIBSMB_OBJ) \
1314                    $(PARAM_OBJ) \
1315                    $(PASSDB_OBJ) \
1316                    $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
1317                    $(LIB_NONSMBD_OBJ) \
1318                    $(KRBCLIENT_OBJ) \
1319                    $(RPC_PARSE_OBJ2) \
1320                    $(RPC_CLIENT_OBJ1) \
1321                    rpc_client/cli_pipe.o \
1322                    ../librpc/rpc/binding.o \
1323                    $(LIBMSRPC_GEN_OBJ)
1324
1325 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1326                   $(PARAM_OBJ) \
1327                   $(LIB_NONSMBD_OBJ) \
1328                   $(LIBSAMBA_OBJ)
1329
1330 ######################################################################
1331 # now the rules...
1332 ######################################################################
1333 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1334         $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @CIFSUPCALL_PROGS@ \
1335         $(EXTRA_ALL_TARGETS)
1336
1337 basics::
1338
1339 nss_modules:: $(NSS_MODULES)
1340
1341 pam_modules:: $(PAM_MODULES)
1342
1343 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1344
1345 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1346
1347 gpext_modules:: $(GPEXT_MODULES)
1348
1349 torture:: SHOWFLAGS basics $(TORTURE_PROGS) 
1350
1351 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1352
1353 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1354
1355 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1356
1357 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1358
1359 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1360
1361 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1362
1363 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1364
1365 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1366
1367 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1368
1369 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1370
1371 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1372
1373 talloctort : SHOWFLAGS $(TALLOCTORT)
1374
1375 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1376
1377 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1378
1379 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1380
1381 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1382         @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1383         bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1384
1385 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1386
1387 modules:: SHOWFLAGS $(MODULES)
1388
1389 #####################################################################
1390 ## Perl IDL Compiler
1391 samba3-idl::
1392         @PIDL_OUTPUTDIR="../librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1393          srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1394         @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1395          srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh \
1396                 librpc/idl/messaging.idl librpc/idl/libnetapi.idl librpc/idl/notify.idl \
1397                 librpc/idl/wbint.idl
1398
1399 #####################################################################
1400
1401
1402 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1403         $(EVERYTHING_PROGS)
1404
1405 .SUFFIXES:
1406 .SUFFIXES: .c .o .lo
1407
1408 .PHONY: showflags SHOWFLAGS
1409
1410 showflags: SHOWFLAGS
1411
1412 SHOWFLAGS::
1413         @echo "Using CFLAGS     = $(CFLAGS)"
1414         @echo "      PICFLAG    = $(PICFLAG)"
1415         @echo "      LIBS       = $(LIBS)"
1416         @echo "      LDFLAGS    = $(LDFLAGS)"
1417         @echo "      DYNEXP     = $(DYNEXP)"
1418         @echo "      LDSHFLAGS  = $(LDSHFLAGS)"
1419         @echo "      SHLIBEXT   = @SHLIBEXT@"
1420         @echo "      SONAMEFLAG = @SONAMEFLAG@"
1421
1422 # "showcflags" target for debuggin how CFLAGS are composed:
1423
1424 .PHONY: showcflags SHOWCFLAGS
1425
1426 showcflags: SHOWCFLAGS
1427
1428 SHOWCFLAGS::
1429         @echo "CFLAGS         = $(CFLAGS)"
1430         @echo "FLAGS          = $(FLAGS)"
1431         @echo ""
1432         @echo "FLAGS1         = @FLAGS1@"
1433         @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1434         @echo "CPPFLAGS       = $(CPPFLAGS)"
1435         @echo "ISA            = $(ISA)"
1436
1437 MAKEDIR = || exec false; \
1438           if test -d "$$dir"; then :; else \
1439           echo mkdir "$$dir"; \
1440           mkdir -p "$$dir" >/dev/null 2>&1 || \
1441           test -d "$$dir" || \
1442           mkdir "$$dir" || \
1443           exec false; fi || exec false
1444
1445 # Run a static checker.
1446 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1447 # Compile a source file.
1448 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1449 # Compile a source file with the installation paths defined.
1450 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1451
1452 COMPILE = $(COMPILE_CC)
1453
1454 .c.o:
1455         @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1456          dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1457         @if test -n "$(CC_CHECKER)"; then \
1458           echo "Checking  $*.c with '$(CC_CHECKER)'";\
1459           $(CHECK_CC); \
1460          fi
1461         @echo Compiling $*.c
1462         @$(COMPILE) && exit 0;\
1463                 echo "The following command failed:" 1>&2;\
1464                 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1465                 $(COMPILE_CC) >/dev/null 2>&1
1466 @BROKEN_CC@     -mv `echo $@ | sed 's%^.*/%%g'` $@
1467
1468 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1469
1470 # this adds support for precompiled headers. To use it, install a snapshot
1471 # of gcc-3.4 and run 'make pch' before you do the main build.
1472 pch::
1473         rm -f $(PRECOMPILED_HEADER)
1474         $(MAKE) $(PRECOMPILED_HEADER)
1475
1476 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1477         $(COMPILE)
1478
1479 BINARY_PREREQS = bin/.dummy
1480
1481 # These dependencies are only approximately correct: we want to make
1482 # sure Samba's paths are updated if ./configure is re-run.  Really it
1483 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1484 # but since we also require "make install prefix=/opt/samba" *not* to
1485 # rebuild it's a bit hard.
1486
1487 dynconfig.o: dynconfig.c Makefile
1488         @echo Compiling $*.c
1489         @$(COMPILE_CC_PATH) && exit 0;\
1490                 echo "The following command failed:" 1>&2;\
1491                 echo "$(COMPILE_CC_PATH)" 1>&2;\
1492                 $(COMPILE_CC_PATH) >/dev/null 2>&1
1493
1494 localedir.o: localedir.c Makefile
1495         @echo Compiling $*.c
1496         @$(COMPILE_CC_PATH) && exit 0;\
1497                 echo "The following command failed:" 1>&2;\
1498                 echo "$(COMPILE_CC_PATH)" 1>&2;\
1499                 $(COMPILE_CC_PATH) >/dev/null 2>&1
1500
1501 lib/pidfile.o: lib/pidfile.c
1502         @echo Compiling $*.c
1503         @$(COMPILE_CC_PATH) && exit 0;\
1504                 echo "The following command failed:" 1>&2;\
1505                 echo "$(COMPILE_CC_PATH)" 1>&2;\
1506                 $(COMPILE_CC_PATH) >/dev/null 2>&1
1507
1508 lib/version.o: lib/version.c include/version.h
1509         @echo Compiling $*.c
1510         @$(COMPILE_CC_PATH) && exit 0;\
1511                 echo "The following command failed:" 1>&2;\
1512                 echo "$(COMPILE_CC_PATH)" 1>&2;\
1513                 $(COMPILE_CC_PATH) >/dev/null 2>&1
1514
1515 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1516         @echo Compiling $*.c
1517         @$(COMPILE_CC_PATH) && exit 0;\
1518                 echo "The following command failed:" 1>&2;\
1519                 echo "$(COMPILE_CC_PATH)" 1>&2;\
1520                 $(COMPILE_CC_PATH) >/dev/null 2>&1
1521
1522 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1523         @echo Generating $@
1524         @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1525
1526 bin/.dummy:
1527         @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1528           dir=bin $(MAKEDIR); fi
1529         @: >> $@ || : > $@ # what a fancy emoticon!
1530
1531 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@ @BUILD_POPT@
1532         @echo Linking $@
1533         @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1534                 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1535                 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1536                 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1537                 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1538
1539 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1540         @echo Linking $@
1541         @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1542                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1543                 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1544
1545 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1546         @echo Linking $@
1547         @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1548           $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1549           $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1550
1551 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1552         @echo Linking $@
1553         @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1554                 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1555                 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1556                 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1557
1558 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1559         @echo Linking $@
1560         @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1561                 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1562                 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1563                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1564
1565 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@ @LIBNETAPI_TARGET@ @LIBLUA_TARGET@
1566         @echo Linking $@
1567         @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1568                 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1569                 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1570                 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS)  $(LIBLUA_LIBS) -lm \
1571                 $(ZLIB_LIBS)
1572
1573 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1574         @echo Linking $@
1575         @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1576                 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1577
1578 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1579         @echo Linking $@
1580         @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1581                 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1582
1583 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ)
1584         @echo Linking $@
1585         @$(CC) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1586
1587 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ)
1588         @echo Linking $@
1589         @$(CC) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1590
1591 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1592         @echo Linking $@
1593         @$(CC) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1594                 $(LIBSMBCLIENT_OBJ1) $(LIBS) -lkeyutils $(KRB5LIBS) \
1595                 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
1596                 $(LIBTDB_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS)
1597
1598 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1599         @echo Linking $@
1600         @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1601                 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1602
1603 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1604         @echo Linking $@
1605         @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1606                 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1607
1608 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1609         @echo Linking $@
1610         @$(CC) -DUSING_SMBCONTROL -o $@ \
1611                 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1612                 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1613                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1614
1615 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1616         @echo Linking $@
1617         @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1618                 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1619                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1620
1621 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1622         @echo Linking $@
1623         @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1624                 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1625                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1626
1627 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1628         @echo Linking $@
1629         @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1630                 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1631                 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1632
1633 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1634         @echo Linking $@
1635         @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1636                 $(POPT_LIBS)  $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1637                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1638
1639 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1640         @echo Linking $@
1641         @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1642                 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1643
1644 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1645         @echo Linking $@
1646         @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1647                 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1648                 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1649
1650 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1651         @echo Linking $@
1652         @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1653                 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1654                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1655
1656 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1657         @echo Linking $@
1658         @$(CC) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1659                 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1660
1661 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1662         @echo Linking $@
1663         @$(CC) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1664                 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1665                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1666
1667 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1668         @echo Linking $@
1669         @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1670                 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1671                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1672
1673 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1674         @echo Linking $@
1675         @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1676                 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1677                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1678
1679 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1680         @echo Linking $@
1681         @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1682                 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1683                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1684
1685 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1686         @echo Linking $@
1687         @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1688                 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1689                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1690
1691 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1692         @echo Linking $@
1693         @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1694                 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1695
1696 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1697         @echo Linking $@
1698         @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1699                 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1700
1701 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1702         @echo Linking $@
1703         @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1704                 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1705                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1706
1707 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1708         @echo Linking $@
1709         @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1710                 $(LIBS) $(KRB5LIBS)  $(LDAP_LIBS) $(POPT_LIBS) \
1711                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1712
1713 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1714         @echo Linking $@
1715         @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1716                 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1717                 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1718
1719 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1720         @echo Linking $@
1721         @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1722                 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1723                 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1724                 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1725                 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1726
1727 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1728         @echo Linking $@
1729         @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1730                 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1731                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1732
1733 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1734         @echo Linking $@
1735         @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1736                 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1737
1738 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1739         @echo Linking $@
1740         @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1741                 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1742                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1743
1744 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1745         @echo Linking $@
1746         @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1747                 $(LIBS) $(LIBTALLOC_LIBS)
1748
1749 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1750         @echo Linking $@
1751         @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1752                 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1753                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1754
1755 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1756         @echo Linking $@
1757         @$(CC) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1758                 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1759                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1760
1761 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1762         @echo Linking $@
1763         @$(CC) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1764                 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1765                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1766
1767 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1768         @echo Linking $@
1769         @$(CC) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1770                 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1771                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1772
1773 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1774         @echo Linking $@
1775         @$(CC) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1776                 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1777                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1778
1779 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1780         @echo Linking $@
1781         @$(CC) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1782                 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1783                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1784
1785 bin/ldbrename: $(BINARY_PREREQS) $(LDBRENAME_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1786         @echo Linking $@
1787         @$(CC) $(FLAGS) -o $@ $(LDBRENAME_OBJ) $(DYNEXP) $(LDFLAGS) \
1788                 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1789                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1790
1791 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1792         @echo Linking $@
1793         @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1794
1795
1796 #####################################################################
1797 #
1798 # libraries
1799 #
1800 #####################################################################
1801
1802 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1803
1804
1805 #-------------------------------------------------------------------
1806 #
1807 # libtalloc
1808 #
1809 #-------------------------------------------------------------------
1810
1811
1812 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1813 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1814
1815 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1816 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1817 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1818 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1819 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
1820 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1821 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1822
1823 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1824         @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1825
1826 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1827         @echo Linking shared library $@
1828         @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1829
1830 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1831         @rm -f $@
1832         @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1833
1834 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1835         @echo Linking non-shared library $@
1836         @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1837
1838 libtalloc: $(LIBTALLOC)
1839
1840 cleanlibtalloc::
1841         -rm -f \
1842                 $(LIBTALLOC_SYMS) \
1843                 $(LIBTALLOC_STATIC_TARGET) \
1844                 $(LIBTALLOC_SHARED_TARGET) \
1845                 $(LIBTALLOC_SHARED_TARGET_SONAME)
1846
1847 installlibtalloc:: installdirs libtalloc
1848         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1849         -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1850         @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1851         -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1852                 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1853                         $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1854         fi
1855         -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1856         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1857         -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1858
1859 uninstalllibtalloc::
1860         -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1861         -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1862         -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1863         -rm -f $(DESTDIR)${prefix}/include/talloc.h
1864
1865 libs:: libtalloc
1866 installlibs:: @INSTALL_LIBTALLOC@
1867 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1868 cleanlibs:: cleanlibtalloc
1869 shlibs test_shlibs: @LIBTALLOC_SHARED@
1870
1871 showlibtalloc:
1872         @echo  ""
1873         @echo "LIBTALLOC_SHARED               = @LIBTALLOC_SHARED@"
1874         @echo "LIBTALLOC_STATIC               = @LIBTALLOC_STATIC@"
1875         @echo "LIBTALLOC_TARGET               = @LIBTALLOC_TARGET@"
1876         @echo "LIBTALLOC_LIBS                 = $(LIBTALLOC_LIBS)"
1877         @echo ""
1878         @echo "LIBTALLOC_SHARED_TARGET        = $(LIBTALLOC_SHARED_TARGET)"
1879         @echo "LIBTALLOC_SOVER                = $(LIBTALLOC_SOVER)"
1880         @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
1881         @echo "LIBTALLOC_STATIC_TARGET        = $(LIBTALLOC_STATIC_TARGET)"
1882         @echo "LIBTALLOC                      = $(LIBTALLOC)"
1883
1884 showlibs:: showlibtalloc
1885
1886 #-------------------------------------------------------------------
1887 #
1888 # libtdb
1889 #
1890 #-------------------------------------------------------------------
1891
1892 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
1893 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1894
1895 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1896 LIBTDB_SOVER=@LIBTDB_SOVER@
1897 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1898 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1899 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
1900 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1901 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1902
1903 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1904         @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1905
1906 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1907         @echo Linking shared library $@
1908         @$(SHLD_DSO) $(LIBTDB_OBJ) \
1909                 @SONAMEFLAG@`basename $@`
1910
1911 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1912         @rm -f $@
1913         @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1914
1915 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1916         @echo Linking non-shared library $@
1917         @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1918
1919 libtdb: $(LIBTDB)
1920
1921 cleanlibtdb::
1922         -rm -f \
1923                 $(LIBTDB_SYMS) \
1924                 $(LIBTDB_STATIC_TARGET) \
1925                 $(LIBTDB_SHARED_TARGET) \
1926                 $(LIBTDB_SHARED_TARGET_SONAME)
1927
1928
1929 installlibtdb:: installdirs libtdb
1930         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1931         -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1932         @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1933         -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1934                 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1935                         $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1936         fi
1937         -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1938         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1939         -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1940
1941 uninstalllibtdb::
1942         -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1943         -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1944         -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1945         -rm -f $(DESTDIR)${prefix}/include/tdb.h
1946
1947 libs:: libtdb
1948 installlibs:: @INSTALL_LIBTDB@
1949 uninstalllibs:: @UNINSTALL_LIBTDB@
1950 cleanlibs:: cleanlibtdb
1951 shlibs test_shlibs: @LIBTDB_SHARED@
1952
1953 showlibtdb:
1954         @echo  ""
1955         @echo "LIBTDB_SHARED               = @LIBTDB_SHARED@"
1956         @echo "LIBTDB_STATIC               = @LIBTDB_STATIC@"
1957         @echo "LIBTDB_TARGET               = @LIBTDB_TARGET@"
1958         @echo "LIBTDB_LIBS                 = $(LIBTDB_LIBS)"
1959         @echo ""
1960         @echo "LIBTDB_SHARED_TARGET        = $(LIBTDB_SHARED_TARGET)"
1961         @echo "LIBTDB_SOVER                = $(LIBTDB_SOVER)"
1962         @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
1963         @echo "LIBTDB_STATIC_TARGET        = $(LIBTDB_STATIC_TARGET)"
1964         @echo "LIBTDB                      = $(LIBTDB)"
1965
1966 showlibs:: showlibtdb
1967
1968 #-------------------------------------------------------------------
1969 #
1970 # libwbclient
1971 #
1972 #-------------------------------------------------------------------
1973
1974 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
1975                   ../nsswitch/libwbclient/wbc_util.o \
1976                   ../nsswitch/libwbclient/wbc_pwd.o \
1977                   ../nsswitch/libwbclient/wbc_idmap.o \
1978                   ../nsswitch/libwbclient/wbc_sid.o \
1979                   ../nsswitch/libwbclient/wbc_guid.o \
1980                   ../nsswitch/libwbclient/wbc_pam.o \
1981                   ../nsswitch/libwbclient/wb_reqtrans.o \
1982                   ../nsswitch/libwbclient/wbc_async.o
1983
1984 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1985                   $(WBCOMMON_OBJ) \
1986                   $(LIBREPLACE_OBJ) \
1987                   ../lib/async_req/async_sock.o \
1988                   ../lib/util/tevent_unix.o \
1989                   ../lib/util/blocking.o \
1990                   $(SOCKET_WRAPPER_OBJ) @LIBTEVENT_OBJ0@
1991
1992 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1993 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1994 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1995 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1996 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1997 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1998 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h \
1999                     $(srcdir)/../nsswitch/libwbclient/wbc_async.h
2000
2001 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2002         @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2003
2004 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_TARGET@
2005         @echo Linking shared library $@
2006         @$(SHLD_DSO) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_OBJ) \
2007                 @SONAMEFLAG@`basename $@`
2008
2009 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2010         @rm -f $@
2011         @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2012
2013 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2014         @echo Linking non-shared library $@
2015         @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2016
2017 libwbclient: $(LIBWBCLIENT)
2018
2019 cleanlibwbclient::
2020         -rm -f \
2021                 $(LIBWBCLIENT_SYMS) \
2022                 $(LIBWBCLIENT_STATIC_TARGET) \
2023                 $(LIBWBCLIENT_SHARED_TARGET) \
2024                 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2025
2026 installlibwbclient:: installdirs libwbclient
2027         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2028         -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2029         @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2030         -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2031                 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2032                         $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2033         fi
2034         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2035         -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2036
2037 uninstalllibwbclient::
2038         -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2039         -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2040         -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2041
2042 libs:: libwbclient
2043 installlibs:: @INSTALL_LIBWBCLIENT@
2044 uninstalllibs:: uninstalllibwbclient
2045 cleanlibs:: cleanlibwbclient
2046 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2047
2048 showlibwbclient:
2049         @echo  ""
2050         @echo "LIBWBCLIENT_SHARED               = @LIBWBCLIENT_SHARED@"
2051         @echo "LIBWBCLIENT_STATIC               = @LIBWBCLIENT_STATIC@"
2052         @echo "LIBWBCLIENT_TARGET               = @LIBWBCLIENT_TARGET@"
2053         @echo "LIBWBCLIENT_LIBS                 = $(LIBWBCLIENT_LIBS)"
2054         @echo ""
2055         @echo "LIBWBCLIENT_SHARED_TARGET        = $(LIBWBCLIENT_SHARED_TARGET)"
2056         @echo "LIBWBCLIENT_SOVER                = $(LIBWBCLIENT_SOVER)"
2057         @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2058         @echo "LIBWBCLIENT_STATIC_TARGET        = $(LIBWBCLIENT_STATIC_TARGET)"
2059         @echo "LIBWBCLIENT                      = $(LIBWBCLIENT)"
2060
2061 showlibs:: showlibwbclient
2062
2063
2064 #-------------------------------------------------------------------
2065 #
2066 # libaddns
2067 #
2068 #-------------------------------------------------------------------
2069
2070
2071 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2072 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2073 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2074 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2075 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2076 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2077 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
2078
2079 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_TARGET@
2080         @echo Linking shared library $@
2081         @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2082                 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2083                 @SONAMEFLAG@`basename $@`
2084
2085 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2086         @rm -f $@
2087         @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2088
2089 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2090         @echo Linking non-shared library $@
2091         @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2092
2093 libaddns: $(LIBADDNS)
2094
2095 cleanlibaddns::
2096         -rm -f \
2097                 $(LIBADDNS_SHARED_TARGET) \
2098                 $(LIBADDNS_SHARED_TARGET_SONAME) \
2099                 $(LIBADDNS_STATIC_TARGET)
2100
2101 installlibaddns:: installdirs libaddns
2102         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2103         -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2104         @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2105         -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2106                 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2107                         $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2108         fi
2109         -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2110
2111 uninstalllibaddns::
2112         -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2113         -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2114         -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2115
2116 libs:: libaddns
2117 installlibs:: @INSTALL_LIBADDNS@
2118 uninstalllibs:: @UNINSTALL_LIBADDNS@
2119 cleanlibs:: cleanlibaddns
2120 shlibs test_shlibs: @LIBADDNS_SHARED@
2121
2122 showlibaddns:
2123         @echo  ""
2124         @echo "LIBADDNS_SHARED               = @LIBADDNS_SHARED@"
2125         @echo "LIBADDNS_STATIC               = @LIBADDNS_STATIC@"
2126         @echo "LIBADDNS_TARGET               = @LIBADDNS_TARGET@"
2127         @echo "LIBADDNS_LIBS                 = $(LIBADDNS_LIBS)"
2128         @echo ""
2129         @echo "LIBADDNS_SHARED_TARGET        = $(LIBADDNS_SHARED_TARGET)"
2130         @echo "LIBADDNS_SOVER                = $(LIBADDNS_SOVER)"
2131         @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2132         @echo "LIBADDNS_STATIC_TARGET        = $(LIBADDNS_STATIC_TARGET)"
2133         @echo "LIBADDNS                      = $(LIBADDNS)"
2134
2135 showlibs:: showlibaddns
2136
2137 #-------------------------------------------------------------------
2138 #
2139 # libnetapi
2140 #
2141 #-------------------------------------------------------------------
2142
2143 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2144                  lib/netapi/cm.o \
2145                  librpc/gen_ndr/ndr_libnetapi.o \
2146                  lib/netapi/libnetapi.o \
2147                  lib/netapi/joindomain.o \
2148                  lib/netapi/serverinfo.o \
2149                  lib/netapi/getdc.o \
2150                  lib/netapi/user.o \
2151                  lib/netapi/group.o \
2152                  lib/netapi/localgroup.o \
2153                  lib/netapi/samr.o \
2154                  lib/netapi/sid.o \
2155                  lib/netapi/share.o \
2156                  lib/netapi/file.o \
2157                  lib/netapi/shutdown.o
2158
2159 LIBNETAPI_OBJ  = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2160                  $(LIBSMBCONF_OBJ) \
2161                  $(REG_SMBCONF_OBJ) \
2162                  $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2163                  $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2164                  $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
2165                  $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
2166                  $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2167                  auth/token_util.o
2168
2169 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2170 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2171 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2172 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2173 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
2174 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2175 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2176
2177 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2178         @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2179
2180 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2181         @echo Linking shared library $@
2182         @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2183                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2184                 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2185                 @SONAMEFLAG@`basename $@`
2186
2187 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2188         @rm -f $@
2189         @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2190
2191 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2192         @echo Linking non-shared library $@
2193         @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2194
2195 libnetapi: $(LIBNETAPI)
2196
2197 cleanlibnetapi::
2198         -rm -f \
2199                 $(LIBNETAPI_SYMS) \
2200                 $(LIBNETAPI_STATIC_TARGET) \
2201                 $(LIBNETAPI_SHARED_TARGET) \
2202                 $(LIBNETAPI_SHARED_TARGET_SONAME)
2203
2204 installlibnetapi:: installdirs libnetapi
2205         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2206         -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2207         @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2208         -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2209                 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2210                         $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2211         fi
2212         -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2213         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2214         -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2215
2216 uninstalllibnetapi::
2217         -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2218         -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2219         -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2220         -rm -f $(DESTDIR)${prefix}/include/netapi.h
2221
2222 libs:: libnetapi
2223 installlibs:: @INSTALL_LIBNETAPI@
2224 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2225 cleanlibs:: cleanlibnetapi
2226 shlibs test_shlibs: @LIBNETAPI_SHARED@
2227
2228 showlibnetapi:
2229         @echo  ""
2230         @echo "LIBNETAPI_SHARED               = @LIBNETAPI_SHARED@"
2231         @echo "LIBNETAPI_STATIC               = @LIBNETAPI_STATIC@"
2232         @echo "LIBNETAPI_TARGET               = @LIBNETAPI_TARGET@"
2233         @echo "LIBNETAPI_LIBS                 = $(LIBNETAPI_LIBS)"
2234         @echo ""
2235         @echo "LIBNETAPI_SHARED_TARGET        = $(LIBNETAPI_SHARED_TARGET)"
2236         @echo "LIBNETAPI_SOVER                = $(LIBNETAPI_SOVER)"
2237         @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2238         @echo "LIBNETAPI_STATIC_TARGET        = $(LIBNETAPI_STATIC_TARGET)"
2239         @echo "LIBNETAPI                      = $(LIBNETAPI)"
2240
2241 showlibs:: showlibnetapi
2242
2243 #-------------------------------------------------------------------
2244 #
2245 # libsmbclient
2246 #
2247 #-------------------------------------------------------------------
2248
2249 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2250 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2251 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2252 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2253 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2254 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2255 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2256
2257 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2258         @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2259
2260 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2261         @echo Linking shared library $@
2262         @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
2263                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2264                 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2265                 @SONAMEFLAG@`basename $@`
2266
2267 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2268         @rm -f $@
2269         @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2270
2271 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2272         @echo Linking non-shared library $@
2273         @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2274
2275 libsmbclient: $(LIBSMBCLIENT)
2276
2277 cleanlibsmbclient::
2278         -rm -f \
2279                 $(LIBSMBCLIENT_SHARED_TARGET) \
2280                 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2281                 $(LIBSMBCLIENT_STATIC_TARGET)
2282
2283 installlibsmbclient:: installdirs libsmbclient
2284         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2285         -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2286         @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2287         -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2288                 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2289                         $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2290         fi
2291         -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2292         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2293         -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2294
2295 installclientlib:: installlibsmbclient
2296
2297 uninstalllibsmbclient::
2298         -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2299         -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2300         -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2301         -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2302
2303 uninstallclientlib:: uninstalllibsmbclient
2304
2305 libs:: libsmbclient
2306 installlibs:: @INSTALL_LIBSMBCLIENT@
2307 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2308 cleanlibs:: cleanlibsmbclient
2309 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2310
2311 showlibsmbclient:
2312         @echo  ""
2313         @echo "LIBSMBCLIENT_SHARED               = @LIBSMBCLIENT_SHARED@"
2314         @echo "LIBSMBCLIENT_STATIC               = @LIBSMBCLIENT_STATIC@"
2315         @echo "LIBSMBCLIENT_TARGET               = @LIBSMBCLIENT_TARGET@"
2316         @echo "LIBSMBCLIENT_LIBS                 = $(LIBSMBCLIENT_LIBS)"
2317         @echo ""
2318         @echo "LIBSMBCLIENT_SHARED_TARGET        = $(LIBSMBCLIENT_SHARED_TARGET)"
2319         @echo "LIBSMBCLIENT_SOVER                = $(LIBSMBCLIENT_SOVER)"
2320         @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2321         @echo "LIBSMBCLIENT_STATIC_TARGET        = $(LIBSMBCLIENT_STATIC_TARGET)"
2322         @echo "LIBSMBCLIENT                      = $(LIBSMBCLIENT)"
2323
2324 showlibs:: showlibsmbclient
2325
2326 #-------------------------------------------------------------------
2327 #
2328 # libsmbsharemodes
2329 #
2330 #-------------------------------------------------------------------
2331
2332 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2333
2334 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2335
2336 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2337 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2338 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2339 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2340 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2341 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2342 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2343
2344 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2345         @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2346
2347 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2348         @echo Linking shared library $@
2349         @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2350                 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2351                 $(KRB5LIBS) $(LDAP_LIBS) \
2352                 @SONAMEFLAG@`basename $@`
2353
2354 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2355         @rm -f $@
2356         @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2357
2358 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2359         @echo Linking non-shared library $@
2360         @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2361
2362 libsmbsharemodes: $(LIBSMBSHAREMODES)
2363
2364 cleanlibsmbsharemodes::
2365         -rm -f \
2366                 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2367                 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2368                 $(LIBSMBSHAREMODES_STATIC_TARGET)
2369
2370 installlibsmbsharemodes:: installdirs libsmbsharemodes
2371         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2372         -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2373         @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2374         -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2375                 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2376                         $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2377         fi
2378         -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2379         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2380         -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2381
2382 uninstalllibsmbsharemodes::
2383         -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2384         -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2385         -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2386         -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2387
2388 libs:: libsmbsharemodes
2389 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2390 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2391 cleanlibs:: cleanlibsmbsharemodes
2392 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2393
2394 showlibsmbsharemodes:
2395         @echo  ""
2396         @echo "LIBSMBSHAREMODES_SHARED               = @LIBSMBSHAREMODES_SHARED@"
2397         @echo "LIBSMBSHAREMODES_STATIC               = @LIBSMBSHAREMODES_STATIC@"
2398         @echo "LIBSMBSHAREMODES_TARGET               = @LIBSMBSHAREMODES_TARGET@"
2399         @echo "LIBSMBSHAREMODES_LIBS                 = $(LIBSMBSHAREMODES_LIBS)"
2400         @echo ""
2401         @echo "LIBSMBSHAREMODES_SHARED_TARGET        = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2402         @echo "LIBSMBSHAREMODES_SOVER                = $(LIBSMBSHAREMODES_SOVER)"
2403         @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2404         @echo "LIBSMBSHAREMODES_STATIC_TARGET        = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2405         @echo "LIBSMBSHAREMODES                      = $(LIBSMBSHAREMODES)"
2406
2407 showlibs:: showlibsmbsharemodes
2408
2409 #-------------------------------------------------------------------
2410 #
2411 # libbigballofmud
2412 #
2413 #-------------------------------------------------------------------
2414
2415 # This is probably wrong for anything other than the GNU linker.
2416 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_TARGET@
2417         @echo Linking shared library $@
2418         @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2419                 $(LIBS) $(LIBTALLOC_LIBS) \
2420                 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2421                 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2422         ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2423
2424 # It would be nice to build a static bigballofmud too, but when I try
2425 # I get linker errors about dl_open and similar things.  I'm not sure if
2426 # it can be fixed or if they just can't be called from a static
2427 # library.
2428
2429 #-------------------------------------------------------------------
2430 #
2431 # libsmblua
2432 #
2433 #-------------------------------------------------------------------
2434
2435 LIBLUA_OBJ0 = @LIBLUA_OBJ0@
2436
2437 LIBLUA_OBJ = $(LIBLUA_OBJ0)
2438
2439 LIBLUA_SHARED_TARGET=@LIBLUA_SHARED_TARGET@
2440 LIBLUA_SOVER=@LIBLUA_SOVER@
2441 LIBLUA_SHARED_TARGET_SONAME=$(LIBLUA_SHARED_TARGET).$(LIBLUA_SOVER)
2442 LIBLUA_STATIC_TARGET=@LIBLUA_STATIC_TARGET@
2443 LIBLUA=@LIBLUA_STATIC@ @LIBLUA_SHARED@
2444 LIBLUA_SYMS=$(srcdir)/exports/liblua.@SYMSEXT@
2445 LIBLUA_HEADERS=$(srcdir)/lua-5.1.4/src/lua.h
2446
2447 $(LIBLUA_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBLUA_OBJ) $(LIBLUA_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2448         @echo Linking shared library $@
2449         @$(SHLD_DSO) $(LIBLUA_OBJ) \
2450                 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2451                 $(KRB5LIBS) $(LDAP_LIBS) \
2452                 @SONAMEFLAG@`basename $@`
2453
2454 $(LIBLUA_SHARED_TARGET): $(LIBLUA_SHARED_TARGET_SONAME)
2455         @rm -f $@
2456         @ln -f -s `basename $(LIBLUA_SHARED_TARGET_SONAME)` $@
2457
2458 $(LIBLUA_STATIC_TARGET): $(BINARY_PREREQS) $(LIBLUA_OBJ0)
2459         @echo Linking non-shared library $@
2460         @-$(AR) -rc $@ $(LIBLUA_OBJ0)
2461
2462 liblua: $(LIBLUA)
2463
2464 cleanliblua::
2465         -rm -f \
2466                 $(LIBLUA_SHARED_TARGET) \
2467                 $(LIBLUA_SHARED_TARGET_SONAME) \
2468                 $(LIBLUA_STATIC_TARGET)
2469
2470 installliblua:: installdirs liblua
2471         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2472         -$(INSTALLLIBCMD_SH) $(LIBLUA_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2473         @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)`
2474         -if test -f $(LIBLUA_SHARED_TARGET_SONAME) ; then \
2475                 ln -f -s `basename $(LIBLUA_SHARED_TARGET_SONAME)` \
2476                         $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)` ; \
2477         fi
2478         -$(INSTALLLIBCMD_A) $(LIBLUA_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2479         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2480         -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBLUA_HEADERS) $(DESTDIR)${prefix}/include
2481
2482 uninstallliblua::
2483         -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)`
2484         -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET_SONAME)`
2485         -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_STATIC_TARGET)`
2486         -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2487
2488 libs:: liblua
2489 installlibs:: @INSTALL_LIBLUA@
2490 uninstalllibs:: @UNINSTALL_LIBLUA@
2491 cleanlibs:: cleanliblua
2492 shlibs test_shlibs: @LIBLUA_SHARED@
2493
2494 showliblua:
2495         @echo  ""
2496         @echo "LIBLUA_SHARED               = @LIBLUA_SHARED@"
2497         @echo "LIBLUA_STATIC               = @LIBLUA_STATIC@"
2498         @echo "LIBLUA_TARGET               = @LIBLUA_TARGET@"
2499         @echo "LIBLUA_LIBS                 = $(LIBLUA_LIBS)"
2500         @echo ""
2501         @echo "LIBLUA_SHARED_TARGET        = $(LIBLUA_SHARED_TARGET)"
2502         @echo "LIBLUA_SOVER                = $(LIBLUA_SOVER)"
2503         @echo "LIBLUA_SHARED TARGET_SONAME = $(LIBLUA_SHARED_TARGET_SONAME)"
2504         @echo "LIBLUA_STATIC_TARGET        = $(LIBLUA_STATIC_TARGET)"
2505         @echo "LIBLUA                      = $(LIBLUA)"
2506
2507 showlibs:: showliblua
2508
2509
2510 #####################################################################
2511 #
2512 # shared modules
2513 #
2514 #####################################################################
2515
2516 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2517 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2518               -o $@ @SONAMEFLAG@`basename $@`
2519
2520 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2521         @echo "Linking $@"
2522         @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2523
2524 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2525         @echo "Linking $@"
2526         @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2527
2528 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2529         @echo "Linking $@"
2530         @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2531
2532 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2533         @echo "Linking $@"
2534         @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2535
2536 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2537         @echo "Linking $@"
2538         @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2539
2540 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2541         @echo "Linking $@"
2542         @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2543
2544 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2545         @echo "Linking $@"
2546         @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2547
2548 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2549         @echo "Linking $@"
2550         @$(SHLD_MODULE) $(RPC_REG_OBJ)
2551
2552 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2553         @echo "Linking $@"
2554         @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2555
2556 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2557         @echo "Linking $@"
2558         @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2559
2560 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2561         @echo "Linking $@"
2562         @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2563
2564 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2565         @echo "Linking $@"
2566         @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2567
2568 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2569         @echo "Linking $@"
2570         @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2571
2572 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2573         @echo "Linking $@"
2574         @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2575
2576 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2577         @echo "Linking $@"
2578         @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2579                 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2580                 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2581                 $(ZLIB_LIBS)
2582
2583 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTDB_TARGET@
2584         @echo "Linking $@"
2585         @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2586                 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2587                 $(LIBTDB_LIBS)
2588
2589 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2590         @echo "Linking $@"
2591         @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2592                 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2593                 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2594
2595 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2596         @echo "Linking $@"
2597         @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2598                 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2599                 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2600
2601 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) @LIBWBCLIENT_TARGET@
2602         @echo "Linking $@"
2603         @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) \
2604                 @SONAMEFLAG@`basename $@`
2605
2606 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) @LIBTALLOC_TARGET@ @LIBWBCLIENT_TARGET@
2607         @echo "Linking shared library $@"
2608         @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2609                 $(PAM_WINBIND_EXTRA_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2610
2611 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2612         @echo "Building plugin $@"
2613         @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2614
2615 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2616         @echo "Building plugin $@"
2617         @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2618
2619 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2620         @echo "Building plugin $@"
2621         @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2622
2623 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2624         @echo "Building plugin $@"
2625         @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2626
2627 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2628         @echo "Building plugin $@"
2629         @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2630
2631 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2632         @echo "Building plugin $@"
2633         @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2634
2635 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2636         @echo "Building plugin $@"
2637         @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2638
2639 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2640         @echo "Building plugin $@"
2641         @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2642
2643 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2644         @echo "Building plugin $@"
2645         @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2646
2647 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2648         @echo "Building plugin $@"
2649         @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2650
2651 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2652         @echo "Building plugin $@"
2653         @$(SHLD_MODULE) passdb/pdb_ads.o
2654
2655 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2656         @echo "Building plugin $@"
2657         @$(SHLD_MODULE) passdb/pdb_tdb.o
2658
2659 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2660         @echo "Building plugin $@"
2661         @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2662
2663 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2664         @echo "Building plugin $@"
2665         @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2666
2667 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2668         @echo "Building plugin $@"
2669         @$(SHLD_MODULE) winbindd/idmap_rid.o
2670
2671 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2672         @echo "Building plugin $@"
2673         @$(SHLD_MODULE) winbindd/idmap_ad.o
2674
2675 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2676         @echo "Building plugin $@"
2677         @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2678
2679 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2680         @echo "Building plugin $@"
2681         @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2682
2683 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2684         @echo "Building plugin $@"
2685         @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2686
2687 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2688         @echo "Building plugin $@"
2689         @$(SHLD_MODULE) winbindd/idmap_ldap.o
2690
2691 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2692         @echo "Building plugin $@"
2693         @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2694
2695 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2696         @echo "Building plugin $@"
2697         @$(SHLD_MODULE) $(CP850_OBJ)
2698
2699 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2700         @echo "Building plugin $@"
2701         @$(SHLD_MODULE) $(CP437_OBJ)
2702
2703 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2704         @echo "Building plugin $@"
2705         @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2706
2707 # NOTE, there is no build rule for a dynamic default VFS module because
2708 # this one MUST MUST MUST be built statically.
2709
2710 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2711         @echo "Building plugin $@"
2712         @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2713
2714 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2715         @echo "Building plugin $@"
2716         @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2717
2718 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2719         @echo "Building plugin $@"
2720         @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2721
2722 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2723         @echo "Building plugin $@"
2724         @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2725
2726 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2727         @echo "Building plugin $@"
2728         @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2729
2730 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2731         @echo "Building plugin $@"
2732         @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2733
2734 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2735         @echo "Building plugin $@"
2736         @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2737
2738 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2739         @echo "Building plugin $@"
2740         @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2741
2742 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2743         @echo "Building plugin $@"
2744         @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2745
2746 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2747         @echo "Building plugin $@"
2748         @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2749
2750 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2751         @echo "Building plugin $@"
2752         @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2753
2754 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2755         @echo "Building plugin $@"
2756         @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2757
2758 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2759         @echo "Building plugin $@"
2760         @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2761
2762 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2763         @echo "Building plugin $@"
2764         @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2765
2766 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2767         @echo "Building plugin $@"
2768         @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2769
2770 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2771         @echo "Building plugin $@"
2772         @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2773
2774 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2775         @echo "Building plugin $@"
2776         @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2777
2778 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2779         @echo "Building plugin $@"
2780         @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2781
2782 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2783         @echo "Building plugin $@"
2784         @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2785
2786 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2787         @echo "Building plugin $@"
2788         @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2789
2790 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2791         @echo "Building plugin $@"
2792         @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2793
2794 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2795         @echo "Building plugin $@"
2796         @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2797
2798 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2799         @echo "Building plugin $@"
2800         @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2801
2802 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2803         @echo "Building plugin $@"
2804         @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2805
2806 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2807         @echo "Building plugin $@"
2808         @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2809
2810 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2811         @echo "Building plugin $@"
2812         @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2813
2814 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2815         @echo "Building plugin $@"
2816         @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2817
2818 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2819         @echo "Building plugin $@"
2820         @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2821
2822 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2823         @echo "Building plugin $@"
2824         @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2825
2826 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2827         @echo "Building plugin $@"
2828         @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2829
2830 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2831         @echo "Building plugin $@"
2832         @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2833
2834 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2835         @echo "Building plugin $@"
2836         @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2837
2838 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2839         @echo "Building plugin $@"
2840         @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2841
2842 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2843         @echo "Building plugin $@"
2844         @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2845
2846 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2847         @echo "Building plugin $@"
2848         @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2849
2850 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2851         @echo "Building plugin $@"
2852         @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2853
2854 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2855         @echo "Building plugin $@"
2856         @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2857
2858 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2859         @echo "Building plugin $@"
2860         @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2861
2862 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2863         @echo "Building plugin $@"
2864         @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2865
2866 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2867         @echo "Building plugin $@"
2868         @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2869
2870 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2871         @echo "Building plugin $@"
2872         @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2873
2874 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2875         @echo "Building plugin $@"
2876         @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2877
2878 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2879         @echo "Building plugin $@"
2880         @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2881
2882 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2883         @echo "Building plugin $@"
2884         @$(SHLD_MODULE) libgpo/gpext/registry.o
2885
2886 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2887         @echo "Building plugin $@"
2888         @$(SHLD_MODULE) libgpo/gpext/scripts.o
2889
2890 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2891         @echo "Building plugin $@"
2892         @$(SHLD_MODULE) libgpo/gpext/security.o
2893
2894 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2895         @echo "Building plugin $@"
2896         @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2897
2898 #########################################################
2899 ## IdMap NSS plugins
2900
2901 ## None here right now
2902 #########################################################
2903
2904 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2905         @echo Linking $@
2906         @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2907                 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2908                 $(LIBWBCLIENT_LIBS)
2909
2910 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2911         $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2912         @echo Linking $@
2913         @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2914                 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2915                 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2916                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
2917
2918 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_TARGET@ @LIBWBCLIENT_TARGET@ @LIBTDB_TARGET@
2919         @echo "Linking shared library $@"
2920         @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2921                 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2922                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2923
2924 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2925         @echo Linking $@
2926         @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2927                 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2928
2929 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2930         @echo Linking $@
2931         @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2932                 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2933
2934 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2935         @echo Linking $@
2936         @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2937                 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2938
2939 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2940         @echo Linking $@
2941         @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2942                 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2943
2944 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2945         $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2946                 torture/t_strcmp.o -L ./bin -lbigballofmud
2947
2948 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2949         $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2950                 torture/t_strstr.o -L ./bin -lbigballofmud
2951
2952 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2953         $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2954                 torture/t_strappend.o -L ./bin -lbigballofmud
2955
2956 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2957         $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2958                 -L./bin -lbigballofmud
2959
2960 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2961         @echo Linking $@
2962         @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
2963
2964 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2965         @echo "Linking $@"
2966         @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2967                 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
2968                 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2969
2970 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2971         @echo "Linking $@"
2972         @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
2973                 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2974                 $(LDAP_LIBS) \
2975                 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2976
2977 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2978         @echo "Linking $@"
2979         @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
2980                 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2981                 $(LDAP_LIBS) \
2982                 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2983
2984 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
2985         @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
2986
2987 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2988                 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2989                 @INSTALL_PAM_MODULES@ installlibs installmo
2990
2991 install-everything:: install installmodules
2992
2993 # DESTDIR is used here to prevent packagers wasting their time
2994 # duplicating the Makefile. Remove it and you will have the privelege
2995 # of package each samba release for muliple versions of multiple
2996 # distributions and operating systems, or at least supplying patches
2997 # to all the packaging files required for this, prior to committing
2998 # the removal of DESTDIR. Do not remove it even though you think it
2999 # is not used
3000
3001 installdirs::
3002         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3003                 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3004                 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3005                 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3006
3007 installservers:: all installdirs
3008         @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3009
3010 installbin:: all installdirs
3011         @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3012
3013 installcifsmount:: @CIFSMOUNT_PROGS@
3014         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
3015         @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
3016
3017 installcifsumount:: @CIFSUMOUNT_PROGS@
3018         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
3019         @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUMOUNT_PROGS@
3020
3021 installcifsupcall:: @CIFSUPCALL_PROGS@
3022         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(SBINDIR)
3023         @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) @CIFSUPCALL_PROGS@
3024
3025 # Some symlinks are required for the 'probing' of modules.
3026 # This mechanism should go at some point..
3027 installmodules:: modules installdirs
3028         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3029         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3030         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3031         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3032         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3033         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3034         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3035         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3036         @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3037         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3038         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3039         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3040         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3041         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3042         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3043         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3044         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3045         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3046         @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3047
3048 installscripts:: installdirs
3049         @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3050
3051 installdat:: installdirs
3052         @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3053
3054 installmsg:: installdirs
3055         @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3056
3057 installswat:: installdirs installmsg
3058         @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3059
3060 installpammodules:: $(PAM_MODULES)
3061         @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3062         @for module in $(PAM_MODULES); do \
3063                 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3064                 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3065                         "$(DESTDIR)/$(PAMMODULESDIR)"; \
3066         done
3067
3068 # revert to the previously installed version
3069 revert::
3070         @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3071         @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3072
3073 installman:: installdirs
3074         @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3075
3076 installmo:: all installdirs
3077         @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3078
3079 .PHONY: showlayout
3080
3081 showlayout::
3082         @echo "Samba will be installed into:"
3083         @echo "  prefix:      $(prefix)"
3084         @echo "  bindir:      $(BINDIR)"
3085         @echo "  sbindir:     $(SBINDIR)"
3086         @echo "  libdir:      $(LIBDIR)"
3087         @echo "  modulesdir:  $(MODULESDIR)"
3088         @echo "  vardir:      $(VARDIR)"
3089         @echo "  mandir:      $(MANDIR)"
3090         @echo "  privatedir:  $(PRIVATE_DIR)"
3091         @echo "  configdir:   $(CONFIGDIR)"
3092         @echo "  lockdir:     $(LOCKDIR)"
3093         @echo "  statedir:    $(STATEDIR)"
3094         @echo "  cachedir:    $(CACHEDIR)"
3095         @echo "  piddir:      $(PIDDIR)"
3096         @echo "  swatdir:     $(SWATDIR)"
3097         @echo "  codepagedir: $(CODEPAGEDIR)"
3098
3099
3100 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3101
3102 uninstallmo::
3103         @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3104
3105 uninstallman::
3106         @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3107
3108 uninstallservers::
3109         @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3110
3111 uninstallbin::
3112         @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3113
3114 uninstallcifsmount::
3115         @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
3116
3117 uninstallcifsumount::
3118         @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUMOUNT_PROGS@
3119
3120 uninstallcifsupcall::
3121         @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
3122
3123 uninstallmodules::
3124         @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3125         @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3126         @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3127         @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3128         @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3129         @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3130         @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3131         @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3132
3133 uninstallscripts::
3134         @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3135
3136 uninstalldat::
3137         @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3138
3139 uninstallmsg::
3140         @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3141
3142 uninstallswat:: uninstallmsg
3143         @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3144
3145 uninstallpammodules::
3146         @for module in $(PAM_MODULES); do \
3147                 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3148                 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3149         done
3150
3151 # Toplevel clean files
3152 TOPFILES=dynconfig.o localedir.o
3153
3154 cleanlibs::
3155         -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3156                 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3157                 ../librpc/*/*.o \
3158                 ../libgpo/*.o ../libgpo/*/*.o
3159
3160 clean:: cleanlibs
3161         -rm -f include/build_env.h
3162         -rm -f smbd/build_options.c
3163         -rm -f $(PRECOMPILED_HEADER)
3164         -rm -f core */*~ *~ \
3165                 */*.o */*/*.o */*/*/*.o \
3166                 ../testsuite/*/*.o \
3167                 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3168                 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3169                 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
3170                 $(MODULES) $(TORTURE_PROGS) \
3171                 $(EVERYTHING_PROGS) \
3172                 bin/timelimit \
3173                 .headers.stamp */src/*.o
3174         -rm -rf t_dir
3175
3176 include/build_env.h: script/build_env.sh
3177         @echo Building include/build_env.h
3178         @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3179           > $(builddir)/include/build_env.h
3180
3181 proto::
3182
3183 etags::
3184         find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3185
3186 ctags::
3187         ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3188
3189 realclean:: clean
3190         -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3191         -rm -f script/installbin.sh script/uninstallbin.sh
3192
3193 distclean:: realclean
3194         -rm -f smbadduser
3195         -rm -f include/config.h Makefile
3196         -rm -f config.status config.cache so_locations
3197         -rm -rf .deps TAGS
3198
3199 realdistclean:: distclean
3200         -rm -f include/config.h.in
3201         -rm -f include/version.h
3202         -rm -f configure
3203
3204 # this target is really just for my use. It only works on a limited
3205 # range of machines and is used to produce a list of potentially
3206 # dead (ie. unused) functions in the code. (tridge)
3207 finddead::
3208         nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3209         nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3210         comm -13 nmused.txt nmfns.txt
3211
3212
3213 # when configure.in is updated, reconfigure
3214 $(srcdir)/configure: $(srcdir)/configure.in
3215         @echo "WARNING: you need to rerun ./autogen.sh"
3216
3217 config.status: $(srcdir)/configure
3218         @echo "WARNING: you need to run ./configure"
3219
3220 Makefile: $(srcdir)/Makefile.in config.status
3221         @echo "WARNING: you need to run ./config.status"
3222
3223 ######################################################################
3224 # Samba Testing Framework
3225
3226 # Check shared libs for unresolved symbols
3227 test_shlibs:
3228         @echo "Testing $? "
3229         @$(LIB_PATH_VAR)=./bin && \
3230         export $(LIB_PATH_VAR) && \
3231         for module in $?; do \
3232                 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3233                         || exit 1; \
3234         done
3235
3236 # Check for NSS module problems.
3237 test_nss_modules:: nss_modules
3238         @echo "Testing $(NSS_MODULES) "
3239         @$(LIB_PATH_VAR)=./bin && \
3240         export $(LIB_PATH_VAR) && \
3241         for module in $(NSS_MODULES); do \
3242                 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3243                         || exit 1; \
3244         done
3245
3246 # Check for PAM module problems.  Specifically, check that every module we
3247 # built can actually be loaded by a minimal PAM-aware application.
3248 test_pam_modules:: pam_modules
3249         @echo "Testing $(PAM_MODULES) "
3250         @$(LIB_PATH_VAR)=./bin && \
3251         export $(LIB_PATH_VAR) && \
3252         for module in $(PAM_MODULES); do \
3253                 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3254                         || exit 1; \
3255         done
3256
3257
3258 ##
3259 ## Targets for 'make test'
3260 ##
3261
3262 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3263
3264 test:: all torture timelimit
3265         @echo Running Test suite
3266         @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/@WINBIND_NSS@" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3267
3268 valgrindtest:: all torture timelimit
3269         @echo Running Test suite with valgrind
3270         @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3271          NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3272          WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3273          SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3274          VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
3275          PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3276
3277 SELFTEST_FORMAT = plain
3278 selftestdir = ../selftest
3279
3280 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3281
3282 selftest:: all torture timelimit
3283         @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3284                 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3285                 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3286                 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/@WINBIND_NSS@" \
3287                 $(PERL) $(selftestdir)/selftest.pl \
3288                 --prefix=${selftest_prefix} --target=samba3 \
3289                 --testlist="$(srcdir)/selftest/tests.sh|" \
3290                 --exclude=$(srcdir)/selftest/skip \
3291                 --socket-wrapper $(TESTS) | \
3292                 $(PERL) $(selftestdir)/filter-subunit.pl \
3293                 --expected-failures=$(srcdir)/selftest/knownfail | \
3294                 $(PERL) $(selftestdir)/format-subunit.pl --format=$(SELFTEST_FORMAT) \
3295                 --immediate
3296
3297 selftest-%:
3298         $(MAKE) selftest TESTS=$*
3299
3300 # Check for Winbind struct 32/64bit padding
3301 test_wbpad:
3302         @echo "Testing winbind request/response structure for 32/64bit padding"
3303         @./script/tests/wb_pad.sh || exit 1;
3304
3305 ##
3306 ## Examples:
3307 ##
3308
3309 libsmbclient_examples: libsmbclient
3310         $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3311
3312 clean_libsmbclient_examples:
3313         $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3314
3315 libnetapi_examples: libnetapi
3316         $(MAKE) -C lib/netapi/examples
3317
3318 clean_libnetapi_examples:
3319         $(MAKE) -C lib/netapi/examples clean