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 Barteltt 2002
6 # Copyright (C) 2003 Anthony Liguori <aliguor@us.ibm.com>
7 ###########################################################################
10 exec_prefix=@
exec_prefix@
20 LDSHFLAGS
=@LDSHFLAGS@ @LDFLAGS@ @CFLAGS@
25 TERMLDFLAGS
=@TERMLDFLAGS@
30 LINK
=$(CC
) $(FLAGS
) $(LDFLAGS
)
33 INSTALLCLIENTCMD_SH
=@INSTALLCLIENTCMD_SH@
34 INSTALLCLIENTCMD_A
=@INSTALLCLIENTCMD_A@
41 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
42 # will search for a POSIX-compliant shell, and that might not be
43 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
45 # See the autoconf manual "Installation Directory Variables" for a
46 # discussion of thesubtle use of these variables.
50 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
53 VFSLIBDIR
= $(LIBDIR
)/vfs
54 PDBLIBDIR
= $(LIBDIR
)/pdb
55 RPCLIBDIR
= $(LIBDIR
)/rpc
56 CONFIGDIR
= @configdir@
57 VARDIR
= @localstatedir@
60 # The permissions to give the executables
63 # set these to where to find various files
64 # These can be overridden by command line switches (see smbd(8))
65 # or in smb.conf (see smb.conf(5))
66 LOGFILEBASE
= @logfilebase@
67 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
68 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
70 # This is where smbpasswd et al go
71 PRIVATEDIR
= @privatedir@
73 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
74 PRIVATE_DIR
= $(PRIVATEDIR
)
76 # This is where SWAT images and help files go
79 # the directory where lock files go
82 # the directory where pid files go
84 # man pages language(s)
85 man_langs
= "@manlangs@"
91 FLAGS1
= $(CFLAGS
) @FLAGS1@
-Iinclude
-I
$(srcdir)/include -I
$(srcdir)/ubiqx
-I
$(srcdir)/smbwrapper
-I.
$(CPPFLAGS
) -I
$(srcdir)
95 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
96 FLAGS
= $(ISA
) $(FLAGS5
)
97 FLAGS32
= $(ISA32
) $(FLAGS5
)
99 PASSWD_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\"
100 PATH_FLAGS1
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DSBINDIR
=\"$(SBINDIR
)\"
101 PATH_FLAGS2
= $(PATH_FLAGS1
) -DBINDIR
=\"$(BINDIR
)\" -DDRIVERFILE
=\"$(DRIVERFILE
)\"
102 PATH_FLAGS3
= $(PATH_FLAGS2
) -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
103 PATH_FLAGS4
= $(PATH_FLAGS3
) -DSWATDIR
=\"$(SWATDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\" -DPIDDIR
=\"$(PIDDIR
)\"
104 PATH_FLAGS5
= $(PATH_FLAGS4
) -DLIBDIR
=\"$(LIBDIR
)\" \
105 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" -DSHLIBEXT
=\"@SHLIBEXT@
\"
106 PATH_FLAGS6
= $(PATH_FLAGS5
) -DCONFIGDIR
=\"$(CONFIGDIR
)\"
107 PATH_FLAGS
= $(PATH_FLAGS6
) $(PASSWD_FLAGS
)
109 # Note that all executable programs now provide for an optional executable suffix.
111 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ bin
/swat@EXEEXT@ \
112 bin
/wrepld@EXEEXT@ @EXTRA_SBIN_PROGS@
114 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
115 bin
/testparm@EXEEXT@ bin
/testprns@EXEEXT@ bin
/smbstatus@EXEEXT@
116 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
117 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@
118 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
119 bin
/profiles@EXEEXT@ bin
/smbgroupedit@EXEEXT@ bin
/ntlm_auth@EXEEXT@ \
122 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
123 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
124 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@
126 BIN_PROGS
= $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) @EXTRA_BIN_PROGS@
128 SHLIBS
= @SHLIB_PROGS@ @LIBSMBCLIENT@
130 SCRIPTS
= $(srcdir)/script
/smbtar
$(srcdir)/script
/addtosmbpass
$(srcdir)/script
/convert_smbpasswd \
131 $(builddir
)/script
/findsmb
133 QUOTAOBJS
=@QUOTAOBJS@
135 VFS_MODULES
= bin
/vfs_audit.@SHLIBEXT@ bin
/vfs_extd_audit.@SHLIBEXT@ bin
/vfs_recycle.@SHLIBEXT@ \
136 bin
/vfs_netatalk.@SHLIBEXT@ bin
/vfs_fake_perms.@SHLIBEXT@
137 PDB_MODULES
= @MODULE_MYSQL@ @MODULE_XML@
138 MODULES
= bin
/developer.@SHLIBEXT@
140 ######################################################################
142 ######################################################################
144 TDBBASE_OBJ
= tdb
/tdb.o tdb
/spinlock.o
145 TDB_OBJ
= $(TDBBASE_OBJ
) tdb
/tdbutil.o
147 LIB_OBJ
= lib
/charcnv.o lib
/debug.o lib
/fault.o \
148 lib
/getsmbpass.o lib
/interface.o lib
/md4.o \
149 lib
/interfaces.o lib
/pidfile.o lib
/replace.o \
150 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/time.o \
151 lib
/ufc.o lib
/genrand.o lib
/username.o \
152 lib
/util_getent.o lib
/util_pw.o lib
/access.o lib
/smbrun.o \
153 lib
/bitmap.o lib
/crc32.o lib
/snprintf.o lib
/dprintf.o \
154 lib
/xfile.o lib
/wins_srv.o \
155 lib
/util_str.o lib
/util_sid.o lib
/util_uuid.o \
156 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
157 lib
/util.o lib
/util_sock.o lib
/util_sec.o \
158 lib
/talloc.o lib
/hash.o lib
/substitute.o lib
/fsusage.o \
159 lib
/ms_fnmatch.o lib
/select.o lib
/messages.o \
160 lib
/tallocmsg.o lib
/dmallocmsg.o \
161 lib
/md5.o lib
/hmacmd5.o lib
/iconv.o lib
/smbpasswd.o \
162 nsswitch
/wb_client.o nsswitch
/wb_common.o \
163 lib
/pam_errors.o intl
/lang_tdb.o lib
/account_pol.o \
164 lib
/adt_tree.o lib
/gencache.o
$(TDB_OBJ
) \
165 lib
/module.o lib
/genparser.o lib
/genparser_samba.o \
168 LIB_SMBD_OBJ
= lib
/system_smbd.o lib
/util_smbd.o
170 READLINE_OBJ
= lib
/readline.o
172 POPT_LIB_OBJ
= lib
/popt_common.o
174 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
175 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o
177 PARAM_OBJ
= param
/loadparm.o param
/params.o dynconfig.o
179 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
180 libads
/krb5_setpw.o libads
/kerberos.o libads
/ldap_user.o \
181 libads
/ads_struct.o libads
/ads_status.o \
182 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
185 LIBADS_SERVER_OBJ
= libads
/util.o libads
/kerberos_verify.o
187 SECRETS_OBJ
= passdb
/secrets.o
189 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
190 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
191 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
192 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
193 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
194 libsmb
/namequery.o libsmb
/nmblib.o libsmb
/clistr.o \
195 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
196 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
197 libsmb
/clioplock.o libsmb
/errormap.o libsmb
/clirap2.o \
198 libsmb
/passchange.o libsmb
/unexpected.o libsmb
/doserr.o \
199 libsmb
/namecache.o libsmb
/trustdom_cache.o libsmb
/ntlmssp.o \
202 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
203 rpc_client
/cli_netlogon.o rpc_client
/cli_srvsvc.o \
204 rpc_client
/cli_wkssvc.o rpc_client
/cli_dfs.o \
205 rpc_client
/cli_reg.o rpc_client
/cli_pipe.o \
206 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
207 rpc_client
/cli_ds.o libsmb
/namequery_dc.o
209 LIBMSRPC_SERVER_OBJ
= libsmb
/trust_passwd.o
211 REGOBJS_OBJ
= registry
/reg_objects.o
212 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
215 RPC_LSA_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o
217 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o
219 RPC_SAMR_OBJ
= rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o \
220 rpc_server
/srv_samr_util.o
222 RPC_REG_OBJ
= rpc_server
/srv_reg.o rpc_server
/srv_reg_nt.o
224 RPC_SVC_OBJ
= rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o
226 RPC_WKS_OBJ
= rpc_server
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
228 RPC_DFS_OBJ
= rpc_server
/srv_dfs.o rpc_server
/srv_dfs_nt.o
229 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
231 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o rpc_server
/srv_util.o \
232 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
234 # These are like they are to avoid a dependency on GNU MAKE
235 @LSA_DYNAMIC_YES@RPC_MODULES1
= bin
/librpc_lsarpc.@SHLIBEXT@
236 @NETLOG_DYNAMIC_YES@RPC_MODULES2
= bin
/librpc_NETLOGON.@SHLIBEXT@
237 @SAMR_DYNAMIC_YES@RPC_MODULES3
= bin
/librpc_samr.@SHLIBEXT@
238 @SVC_DYNAMIC_YES@RPC_MODULES4
= bin
/librpc_srvsvc.@SHLIBEXT@
239 @WKS_DYNAMIC_YES@RPC_MODULES5
= bin
/librpc_wkssvc.@SHLIBEXT@
240 @REG_DYNAMIC_YES@RPC_MODULES6
= bin
/librpc_winreg.@SHLIBEXT@
241 @SPOOLSS_DYNAMIC_YES@RPC_MODULES7
= bin
/librpc_spoolss.@SHLIBEXT@
242 @DFS_DYNAMIC_YES@RPC_MODULES8
= bin
/librpc_netdfs.@SHLIBEXT@
243 RPC_MODULES
= $(RPC_MODULES1
) $(RPC_MODULES2
) $(RPC_MODULES3
) $(RPC_MODULES4
) \
244 $(RPC_MODULES5
) $(RPC_MODULES6
) $(RPC_MODULES7
) $(RPC_MODULES8
)
246 @LSA_DYNAMIC_NO@RPC_PIPE_OBJ1
= $(RPC_LSA_OBJ
)
247 @NETLOG_DYNAMIC_NO@RPC_PIPE_OBJ2
= $(RPC_NETLOG_OBJ
)
248 @SAMR_DYNAMIC_NO@RPC_PIPE_OBJ3
= $(RPC_SAMR_OBJ
)
249 @SVC_DYNAMIC_NO@RPC_PIPE_OBJ4
= $(RPC_SVC_OBJ
)
250 @WKS_DYNAMIC_NO@RPC_PIPE_OBJ5
= $(RPC_WKS_OBJ
)
251 @REG_DYNAMIC_NO@RPC_PIPE_OBJ6
= $(RPC_REG_OBJ
)
252 @SPOOLSS_DYNAMIC_NO@RPC_PIPE_OBJ7
= $(RPC_SPOOLSS_OBJ
)
253 @DFS_DYNAMIC_NO@RPC_PIPE_OBJ8
= $(RPC_DFS_OBJ
)
254 RPC_SERVER_OBJ
= $(RPC_PIPE_OBJ1
) $(RPC_PIPE_OBJ2
) $(RPC_PIPE_OBJ3
) \
255 $(RPC_PIPE_OBJ4
) $(RPC_PIPE_OBJ5
) $(RPC_PIPE_OBJ6
) $(RPC_PIPE_OBJ7
) \
256 $(RPC_PIPE_OBJ8
) $(RPC_PIPE_OBJ
)
258 # this includes only the low level parse code, not stuff
259 # that requires knowledge of security contexts
260 RPC_PARSE_OBJ1
= rpc_parse
/parse_prs.o rpc_parse
/parse_sec.o \
261 rpc_parse
/parse_misc.o
263 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_net.o \
264 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
265 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
266 rpc_parse
/parse_wks.o rpc_parse
/parse_ds.o \
267 rpc_parse
/parse_spoolss.o rpc_parse
/parse_dfs.o \
271 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
273 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
275 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
277 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
278 passdb
/machine_sid.o passdb
/pdb_smbpasswd.o \
279 passdb
/pdb_tdb.o passdb
/pdb_ldap.o \
280 passdb
/pdb_unix.o passdb
/util_sam_sid.o \
281 passdb
/pdb_compat.o passdb
/pdb_nisplus.o passdb
/privileges.o
283 XML_OBJ
= modules
/xml.o
284 MYSQL_OBJ
= modules
/mysql.o
285 DEVEL_HELP_OBJ
= modules
/developer.o
287 SAM_STATIC_MODULES
= sam
/sam_plugin.o sam
/sam_skel.o sam
/sam_ads.o
289 SAM_OBJ
= sam
/account.o sam
/get_set_account.o sam
/get_set_group.o \
290 sam
/get_set_domain.o sam
/interface.o
$(SAM_STATIC_MODULES
)
292 SAMTEST_OBJ
= torture
/samtest.o torture
/cmd_sam.o
$(SAM_OBJ
) $(LIB_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(READLINE_OBJ
) lib
/util_seaccess.o
$(LIBADS_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(GROUPDB_OBJ
)
294 GROUPDB_OBJ
= groupdb
/mapping.o
296 # passdb/smbpass.o passdb/ldap.o passdb/nispass.o
298 PROFILE_OBJ
= profile
/profile.o
300 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
302 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o
304 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
306 UNIGRP_OBJ
= libsmb
/netlogon_unigrp.o
308 AUTH_OBJ
= auth
/auth.o auth
/auth_sam.o auth
/auth_server.o auth
/auth_domain.o \
309 auth
/auth_rhosts.o auth
/auth_unix.o auth
/auth_util.o auth
/auth_winbind.o \
310 auth
/auth_builtin.o auth
/auth_compat.o auth
/auth_ntlmssp.o \
311 $(PLAINTEXT_AUTH_OBJ
) $(UNIGRP_OBJ
)
313 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_map.o smbd
/mangle_hash2.o
315 SMBD_OBJ_MAIN
= smbd
/server.o
317 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
318 smbd
/utmp.o smbd
/session.o \
319 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o smbd
/fileio.o \
320 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
321 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
322 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
323 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
324 smbd
/blocking.o smbd
/sec_ctx.o \
325 smbd
/vfs.o smbd
/vfs-wrap.o smbd
/statcache.o \
326 smbd
/posix_acls.o lib
/sysacls.o lib
/server_mutex.o \
327 smbd
/process.o smbd
/service.o smbd
/error.o \
328 printing
/printfsp.o lib
/util_seaccess.o smbd
/srvstr.o \
329 smbd
/build_options.o \
330 smbd
/change_trust_pw.o \
333 SMBD_OBJ_BASE
= $(SMBD_OBJ_SRV
) $(MSDFS_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
334 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
335 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
336 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(QUOTAOBJS
) $(OPLOCK_OBJ
) \
337 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
338 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) \
339 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
340 $(LIB_SMBD_OBJ
) $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
)
343 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o \
344 printing
/print_cups.o printing
/print_generic.o \
345 printing
/lpq_parse.o printing
/load.o
347 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o printing
/notify.o \
348 printing
/printing_db.o
350 MSDFS_OBJ
= msdfs
/msdfs.o
352 SMBD_OBJ
= $(SMBD_OBJ_MAIN
) $(SMBD_OBJ_BASE
)
354 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
355 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
356 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
357 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
358 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
359 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
360 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
361 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
362 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
363 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
364 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
365 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
367 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
368 $(PROFILE_OBJ
) $(LIB_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
370 WREPL_OBJ1
= wrepld
/server.o wrepld
/process.o wrepld
/parser.o wrepld
/socket.o \
373 WREPL_OBJ
= $(WREPL_OBJ1
) $(PARAM_OBJ
) $(UBIQX_OBJ
) \
374 $(PROFILE_OBJ
) $(LIB_OBJ
)
376 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
377 web
/swat.o web
/neg_lang.o
379 SWAT_OBJ
= $(SWAT_OBJ1
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) $(LOCKING_OBJ
) \
380 $(PARAM_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) \
381 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
)
383 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o \
384 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
386 STATUS_OBJ
= utils
/status.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
387 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) $(POPT_LIB_OBJ
)
389 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
390 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) printing
/notify.o \
391 printing
/printing_db.o
393 SMBTREE_OBJ
= utils
/smbtree.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
394 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) $(LIBSMB_OBJ
)
396 TESTPARM_OBJ
= utils
/testparm.o \
397 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) $(POPT_LIB_OBJ
)
399 TESTPRNS_OBJ
= utils
/testprns.o
$(PARAM_OBJ
) $(PRINTING_OBJ
) $(UBIQX_OBJ
) \
402 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PARAM_OBJ
) $(SECRETS_OBJ
) \
403 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
)\
404 $(UBIQX_OBJ
) $(LIB_OBJ
)
406 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
407 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(SECRETS_OBJ
) \
410 SMBGROUPEDIT_OBJ
= utils
/smbgroupedit.o
$(GROUPDB_OBJ
) $(PARAM_OBJ
) \
411 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
413 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
414 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
415 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
416 rpcclient
/cmd_dfs.o rpcclient
/cmd_reg.o \
417 rpcclient
/display_sec.o rpcclient
/cmd_ds.o
419 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
420 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
421 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
422 $(READLINE_OBJ
) $(GROUPDB_OBJ
) \
423 $(LIBADS_OBJ
) $(SECRETS_OBJ
) $(POPT_LIB_OBJ
)
425 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.po nsswitch
/wb_common.po lib
/snprintf.po
427 SMBW_OBJ1
= smbwrapper
/smbw.o \
428 smbwrapper
/smbw_dir.o smbwrapper
/smbw_stat.o \
429 smbwrapper
/realcalls.o smbwrapper
/shared.o \
430 smbwrapper
/smbw_cache.o
432 SMBW_OBJ
= $(SMBW_OBJ1
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
433 $(UBIQX_OBJ
) $(LIB_OBJ
)
435 SMBWRAPPER_OBJ1
= smbwrapper
/wrapped.o
437 SMBWRAPPER_OBJ
= $(SMBW_OBJ
) $(SMBWRAPPER_OBJ1
)
439 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
440 libsmb
/libsmb_cache.o
$(LIB_OBJ
) \
441 $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
443 # This shared library is intended for linking with unit test programs
444 # to test Samba internals. It's called libbigballofmud.so to
445 # discourage casual usage.
447 LIBBIGBALLOFMUD_MAJOR
= 0
449 LIBBIGBALLOFMUD_OBJ
= $(LIB_OBJ
) $(UBIQX_OBJ
) $(PARAM_OBJ
) $(SECRETS_OBJ
) \
450 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
453 LIBBIGBALLOFMUD_PICOBJS
= $(LIBBIGBALLOFMUD_OBJ
:.o
=.po
)
455 CLIENT_OBJ1
= client
/client.o client
/clitar.o
457 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
458 $(READLINE_OBJ
) $(POPT_LIB_OBJ
)
460 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_ads_cldap.o utils
/net_help.o \
461 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
462 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
465 NET_OBJ
= $(NET_OBJ1
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
466 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
467 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
468 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) \
469 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
)
471 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
473 MOUNT_OBJ
= client
/smbmount.o \
474 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
476 MNT_OBJ
= client
/smbmnt.o
478 UMOUNT_OBJ
= client
/smbumount.o
480 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) \
481 $(LIBSMB_OBJ
) $(LIB_OBJ
)
483 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
484 torture
/denytest.o torture
/mangle_test.o
486 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) \
487 $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
489 MASKTEST_OBJ
= torture
/masktest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
490 $(UBIQX_OBJ
) $(LIB_OBJ
)
492 MSGTEST_OBJ
= torture
/msgtest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
493 $(UBIQX_OBJ
) $(LIB_OBJ
)
495 LOCKTEST_OBJ
= torture
/locktest.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
496 $(UBIQX_OBJ
) $(LIB_OBJ
)
498 NSSTEST_OBJ
= torture
/nsstest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
499 $(UBIQX_OBJ
) $(LIB_OBJ
)
501 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
503 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
504 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
505 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
506 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
507 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
509 LOCKTEST2_OBJ
= torture
/locktest2.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
510 $(UBIQX_OBJ
) $(LIB_OBJ
)
512 SMBCACLS_OBJ
= utils
/smbcacls.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
513 $(UBIQX_OBJ
) $(LIB_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) \
514 $(LIBMSRPC_OBJ
) $(SECRETS_OBJ
)
516 TALLOCTORT_OBJ
= lib
/talloctort.o
$(LIB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
518 RPCTORTURE_OBJ
= torture
/rpctorture.o \
519 rpcclient
/display.o \
520 rpcclient
/cmd_lsarpc.o \
521 rpcclient
/cmd_wkssvc.o \
522 rpcclient
/cmd_samr.o \
523 rpcclient
/cmd_srvsvc.o \
524 rpcclient
/cmd_netlogon.o \
525 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
526 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
)
528 DEBUG2HTML_OBJ
= utils
/debug2html.o ubiqx
/debugparse.o
530 SMBFILTER_OBJ
= utils
/smbfilter.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
531 $(UBIQX_OBJ
) $(LIB_OBJ
)
533 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) \
534 $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(SWAT_OBJ1
) $(LIB_OBJ
) $(LIBSMB_OBJ
) \
535 $(SMBW_OBJ1
) $(SMBWRAPPER_OBJ1
) $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
536 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) $(RPC_CLIENT_OBJ
) \
537 $(RPC_PIPE_OBJ
) $(RPC_PARSE_OBJ
) \
538 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
539 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
540 $(QUOTAOBJS
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(MSDFS_OBJ
) \
541 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
542 $(LIB_SMBD_OBJ
) $(SAM_OBJ
) $(REGISTRY_OBJ
) $(POPT_LIB_OBJ
) \
543 $(RPC_LSA_OBJ
) $(RPC_NETLOG_OBJ
) $(RPC_SAMR_OBJ
) $(RPC_REG_OBJ
) \
544 $(RPC_SVC_OBJ
) $(RPC_WKS_OBJ
) $(RPC_DFS_OBJ
) $(RPC_SPOOLSS_OBJ
)
546 NSS_OBJ_0
= nsswitch
/wins.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIBSMB_OBJ
) \
547 $(LIB_OBJ
) $(NSSWINS_OBJ
)
549 NSS_OBJ
= $(NSS_OBJ_0
:.o
=.po
)
551 PICOBJS
= $(SMBWRAPPER_OBJ
:.o
=.po
)
552 PICOBJS32
= $(SMBWRAPPER_OBJ
:.o
=.po32
)
553 LIBSMBCLIENT_PICOBJS
= $(LIBSMBCLIENT_OBJ
:.o
=.po
)
555 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
556 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o \
557 libsmb
/smbencrypt.o libsmb
/smbdes.o libsmb
/nterr.o \
558 $(PARAM_OBJ
) $(LIB_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
559 $(SECRETS_OBJ
) $(UBIQX_OBJ
)
561 PAM_SMBPASS_PICOOBJ
= $(PAM_SMBPASS_OBJ_0
:.o
=.po
)
564 nsswitch
/winbindd.o \
565 nsswitch
/winbindd_user.o \
566 nsswitch
/winbindd_group.o \
567 nsswitch
/winbindd_idmap.o \
568 nsswitch
/winbindd_util.o \
569 nsswitch
/winbindd_cache.o \
570 nsswitch
/winbindd_pam.o \
571 nsswitch
/winbindd_sid.o \
572 nsswitch
/winbindd_misc.o \
573 nsswitch
/winbindd_cm.o \
574 nsswitch
/winbindd_wins.o \
575 nsswitch
/winbindd_rpc.o \
576 nsswitch
/winbindd_ads.o \
577 nsswitch
/winbindd_dual.o
580 $(WINBINDD_OBJ1
) $(PASSDB_GET_SET_OBJ
) \
581 $(LIBNMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
582 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) \
583 $(PROFILE_OBJ
) $(UNIGRP_OBJ
) \
584 $(SECRETS_OBJ
) $(LIBADS_OBJ
)
586 WBINFO_OBJ
= nsswitch
/wbinfo.o libsmb
/smbencrypt.o libsmb
/smbdes.o
588 WINBIND_NSS_OBJ
= nsswitch
/winbind_nss.o nsswitch
/wb_common.o @WINBIND_NSS_EXTRA_OBJS@
590 WINBIND_NSS_PICOBJS
= $(WINBIND_NSS_OBJ
:.o
=.po
)
592 POPT_OBJS
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
593 popt
/popthelp.o popt
/poptparse.o
595 TDBBACKUP_OBJ
= tdb
/tdbbackup.o
$(TDBBASE_OBJ
)
597 NTLM_AUTH_OBJ
= utils
/ntlm_auth.o
$(LIBSMB_OBJ
) $(POPT_LIB_OBJ
)
599 ######################################################################
601 ######################################################################
602 all : SHOWFLAGS proto_exists
$(SBIN_PROGS
) $(BIN_PROGS
) $(SHLIBS
) \
603 $(TORTURE_PROGS
) $(RPC_MODULES
) @EXTRA_ALL_TARGETS@
605 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
607 smbwrapper
: SHOWFLAGS @SMBWRAPPER@
609 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
611 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
613 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
615 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
617 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
619 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
621 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
623 rpctorture
: SHOWFLAGS bin
/rpctorture@EXEEXT@
625 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
627 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
629 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
631 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ nsswitch
/libnss_winbind.so nsswitch
/pam_winbind.so
633 wins
: SHOWFLAGS nsswitch
/libnss_wins.@SHLIBEXT@
635 modules
: SHOWFLAGS proto_exists
$(VFS_MODULES
) $(PDB_MODULES
) $(MODULES
)
637 everything
: all libsmbclient debug2html smbfilter talloctort
640 .SUFFIXES
: .c .o .po .po32 .lo
643 @echo
"Using FLAGS = $(FLAGS)"
644 @echo
" FLAGS32 = $(FLAGS32)"
645 @echo
" LIBS = $(LIBS)"
646 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
647 @echo
" LDFLAGS = $(LDFLAGS)"
649 MAKEDIR
= || exec false
; \
650 if
test -d
"$$dir"; then
:; else \
651 echo mkdir
"$$dir"; \
652 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
655 exec false
; fi || exec false
658 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
659 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
661 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
663 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
665 # These dependencies are only approximately correct: we want to make
666 # sure Samba's paths are updated if ./configure is re-run. Really it
667 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
668 # but since we also require "make install prefix=/opt/samba" *not* to
669 # rebuild it's a bit hard.
671 dynconfig.o
: dynconfig.c Makefile
673 @
$(CC
) $(FLAGS
) $(PATH_FLAGS
) -c
$< -o
$@
675 dynconfig.po
: dynconfig.c Makefile
676 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
677 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
678 @echo Compiling
$*.c with @PICFLAG@
679 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PATH_FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
680 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
681 @POBAD_CC@ @mv
$*.po.o
$@
684 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
685 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
686 @echo Compiling
$*.c with @PICFLAG@
687 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
688 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
689 @POBAD_CC@ @mv
$*.po.o
$@
693 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
694 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
695 @echo Compiling
$*.c with @PICFLAG@ and
-32
696 @
$(CC
) -32 -I.
-I
$(srcdir) $(FLAGS32
) $(PATH_FLAGS
) @PICFLAG@
-c
$< \
698 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
702 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
703 dir=bin
$(MAKEDIR
); fi
704 @
: >> $@ ||
: > $@
# what a fancy emoticon!
706 bin
/smbd@EXEEXT@
: $(SMBD_OBJ
) @BUILD_POPT@ bin
/.dummy
708 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINTLIBS
) \
709 $(AUTHLIBS
) $(LIBS
) @BUILD_POPT@
711 bin
/nmbd@EXEEXT@
: $(NMBD_OBJ
) @BUILD_POPT@ bin
/.dummy
713 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
715 bin
/wrepld@EXEEXT@
: $(WREPL_OBJ
) bin
/.dummy
717 @
$(CC
) $(FLAGS
) -o
$@
$(WREPL_OBJ
) $(LDFLAGS
) $(LIBS
)
719 bin
/swat@EXEEXT@
: $(SWAT_OBJ
) bin
/.dummy
721 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINTLIBS
) \
724 bin
/rpcclient@EXEEXT@
: $(RPCCLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
726 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @BUILD_POPT@
728 bin
/smbclient@EXEEXT@
: $(CLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
730 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @BUILD_POPT@
732 bin
/net@EXEEXT@
: $(NET_OBJ
) @BUILD_POPT@ bin
/.dummy
734 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
736 bin
/profiles@EXEEXT@
: utils
/profiles.o bin
/.dummy
738 @
$(CC
) $(FLAGS
) -o
$@ utils
/profiles.o
$(LDFLAGS
) $(LIBS
)
740 bin
/editreg@EXEEXT@
: utils
/editreg.o bin
/.dummy
742 @
$(CC
) $(FLAGS
) -o
$@ utils
/editreg.o
$(LDFLAGS
) $(LIBS
)
744 bin
/smbspool@EXEEXT@
: $(CUPS_OBJ
) bin
/.dummy
746 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(LDFLAGS
) $(LIBS
)
748 bin
/smbmount@EXEEXT@
: $(MOUNT_OBJ
) bin
/.dummy
750 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
752 bin
/smbmnt@EXEEXT@
: $(MNT_OBJ
) bin
/.dummy
754 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(LDFLAGS
)
756 bin
/smbumount@EXEEXT@
: $(UMOUNT_OBJ
) bin
/.dummy
758 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(LDFLAGS
)
760 bin
/testparm@EXEEXT@
: $(TESTPARM_OBJ
) @BUILD_POPT@ bin
/.dummy
762 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
764 bin
/testprns@EXEEXT@
: $(TESTPRNS_OBJ
) bin
/.dummy
766 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPRNS_OBJ
) $(LDFLAGS
) $(PRINTLIBS
) $(LIBS
)
768 bin
/smbstatus@EXEEXT@
: $(STATUS_OBJ
) @BUILD_POPT@ bin
/.dummy
770 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
772 bin
/smbcontrol@EXEEXT@
: $(SMBCONTROL_OBJ
) bin
/.dummy
774 @
$(CC
) -DUSING_SMBCONTROL
$(FLAGS
) -o
$@
$(SMBCONTROL_OBJ
) $(LDFLAGS
) $(LIBS
)
776 bin
/smbtree@EXEEXT@
: $(SMBTREE_OBJ
) bin
/.dummy
778 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(LIBS
)
780 bin
/smbpasswd@EXEEXT@
: $(SMBPASSWD_OBJ
) bin
/.dummy
782 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
784 bin
/pdbedit@EXEEXT@
: $(PDBEDIT_OBJ
) @BUILD_POPT@ bin
/.dummy
786 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @BUILD_POPT@
788 bin
/samtest@EXEEXT@
: $(SAMTEST_OBJ
) @BUILD_POPT@ bin
/.dummy
790 @
$(CC
) $(FLAGS
) -o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @BUILD_POPT@
792 bin
/smbgroupedit@EXEEXT@
: $(SMBGROUPEDIT_OBJ
) bin
/.dummy
794 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGROUPEDIT_OBJ
) $(LDFLAGS
) $(LIBS
)
796 bin
/nmblookup@EXEEXT@
: $(NMBLOOKUP_OBJ
) bin
/.dummy
798 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(LIBS
)
800 bin
/smbtorture@EXEEXT@
: $(SMBTORTURE_OBJ
) bin
/.dummy
802 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
804 bin
/talloctort@EXEEXT@
: $(TALLOCTORT_OBJ
) bin
/.dummy
806 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) $(LIBS
)
808 bin
/masktest@EXEEXT@
: $(MASKTEST_OBJ
) bin
/.dummy
810 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
812 bin
/msgtest@EXEEXT@
: $(MSGTEST_OBJ
) bin
/.dummy
814 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
816 bin
/smbcacls@EXEEXT@
: $(SMBCACLS_OBJ
) bin
/.dummy
818 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
820 bin
/locktest@EXEEXT@
: $(LOCKTEST_OBJ
) bin
/.dummy
822 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
824 bin
/nsstest@EXEEXT@
: $(NSSTEST_OBJ
) bin
/.dummy
826 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
828 bin
/vfstest@EXEEXT@
: $(VFSTEST_OBJ
) @BUILD_POPT@ bin
/.dummy
830 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(PRINTLIBS
) $(AUTHLIBS
) $(LIBS
) @BUILD_POPT@
832 bin
/locktest2@EXEEXT@
: $(LOCKTEST2_OBJ
) bin
/.dummy
834 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(LIBS
)
836 bin
/rpctorture@EXEEXT@
: $(RPCTORTURE_OBJ
) bin
/.dummy
838 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
840 bin
/debug2html@EXEEXT@
: $(DEBUG2HTML_OBJ
) bin
/.dummy
842 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(LIBS
)
844 bin
/smbfilter@EXEEXT@
: $(SMBFILTER_OBJ
) bin
/.dummy
846 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
)
848 bin
/smbw_sample@EXEEXT@
: $(SMBW_OBJ
) utils
/smbw_sample.o bin
/.dummy
850 @
$(CC
) $(FLAGS
) -o
$@
$(SMBW_OBJ
) utils
/smbw_sample.o
$(LDFLAGS
) $(LIBS
)
852 bin
/smbsh@EXEEXT@
: $(SMBSH_OBJ
) bin
/.dummy
854 @
$(CC
) $(FLAGS
) -o
$@
$(SMBSH_OBJ
) $(LDFLAGS
) $(LIBS
)
856 bin
/smbwrapper.@SHLIBEXT@
: $(PICOBJS
) bin
/.dummy
857 @echo Linking shared library
$@
858 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PICOBJS
) $(LIBS
) \
859 @SONAMEFLAG@
`basename $@`
861 bin
/smbwrapper
.32.@SHLIBEXT@
: $(PICOBJS32
)
862 @echo Linking shared library
$@
863 @
$(SHLD
) -32 $(LDSHFLAGS
) -o
$@
$(PICOBJS32
) $(LIBS
) \
864 @SONAMEFLAG@
`basename $@`
866 bin
/libsmbclient.@SHLIBEXT@
: $(LIBSMBCLIENT_PICOBJS
)
867 @echo Linking libsmbclient shared library
$@
868 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_PICOBJS
) $(LDFLAGS
) $(LIBS
) \
869 @SONAMEFLAG@
`basename $@`.
$(LIBSMBCLIENT_MAJOR
)
871 bin
/libsmbclient.a
: $(LIBSMBCLIENT_PICOBJS
)
872 @echo Linking libsmbclient non-shared library
$@
873 -$(AR
) -rc
$@
$(LIBSMBCLIENT_PICOBJS
)
875 bin
/libbigballofmud.@SHLIBEXT@
: $(LIBBIGBALLOFMUD_PICOBJS
)
876 @echo Linking bigballofmud shared library
$@
877 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBBIGBALLOFMUD_PICOBJS
) $(LIBS
) \
878 @SONAMEFLAG@
`basename $@`.
$(LIBBIGBALLOFMUD_MAJOR
)
880 libsmbclient
: bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
882 bin
/librpc_lsarpc.@SHLIBEXT@
: $(RPC_LSA_OBJ
)
884 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_LSA_OBJ
) -lc \
885 @SONAMEFLAG@
`basename $@`
887 bin
/librpc_samr.@SHLIBEXT@
: $(RPC_SAMR_OBJ
)
889 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_SAMR_OBJ
) -lc \
890 @SONAMEFLAG@
`basename $@`
892 bin
/librpc_srvsvc.@SHLIBEXT@
: $(RPC_SVC_OBJ
)
894 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_SVC_OBJ
) -lc \
895 @SONAMEFLAG@
`basename $@`
897 bin
/librpc_wkssvc.@SHLIBEXT@
: $(RPC_WKS_OBJ
)
899 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_WKS_OBJ
) -lc \
900 @SONAMEFLAG@
`basename $@`
902 bin
/librpc_NETLOGON.@SHLIBEXT@
: $(RPC_NETLOG_OBJ
)
904 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_NETLOG_OBJ
) -lc \
905 @SONAMEFLAG@
`basename $@`
907 bin
/librpc_winreg.@SHLIBEXT@
: $(RPC_REG_OBJ
)
909 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_REG_OBJ
) -lc \
910 @SONAMEFLAG@
`basename $@`
912 bin
/librpc_spoolss.@SHLIBEXT@
: $(RPC_SPOOLSS_OBJ
)
914 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_SPOOLSS_OBJ
) -lc \
915 @SONAMEFLAG@
`basename $@`
917 bin
/librpc_netdfs.@SHLIBEXT@
: $(RPC_DFS_OBJ
)
919 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(RPC_DFS_OBJ
) -lc \
920 @SONAMEFLAG@
`basename $@`
922 nsswitch
/libnss_wins.@SHLIBEXT@
: $(NSS_OBJ
)
924 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(NSS_OBJ
) -lc \
925 @SONAMEFLAG@
`basename $@`
927 bin
/winbindd@EXEEXT@
: $(WINBINDD_OBJ
) bin
/.dummy
929 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(DYNEXP
) $(LIBS
)
931 nsswitch
/libns_winbind.@SHLIBEXT@
: $(WINBIND_NSS_PICOBJS
)
933 @
$(SHLD
) @LDSHFLAGS@
-o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@ \
934 @SONAMEFLAG@
`basename $@`
936 nsswitch
/libnss_winbind.@SHLIBEXT@
: $(WINBIND_NSS_PICOBJS
)
938 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@ \
939 @SONAMEFLAG@
`basename $@`
941 nsswitch
/pam_winbind.@SHLIBEXT@
: $(PAM_WINBIND_OBJ
) bin
/.dummy
943 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) \
944 @SONAMEFLAG@
`basename $@` -lpam
946 bin
/mysql.@SHLIBEXT@
: $(MYSQL_OBJ
)
947 @echo
"Building plugin $@"
948 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(MYSQL_OBJ
) @MYSQL_LIBS@ \
949 @SONAMEFLAG@
`basename $@`
951 bin
/developer.@SHLIBEXT@
: $(DEVEL_HELP_OBJ
)
952 @echo
"Building plugin $@"
953 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(DEVEL_HELP_OBJ
) \
954 @SONAMEFLAG@
`basename $@`
956 bin
/xml.@SHLIBEXT@
: $(XML_OBJ
)
957 @echo
"Building plugin $@"
958 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(XML_OBJ
) @XML_LIBS@ \
959 @SONAMEFLAG@
`basename $@`
961 bin
/vfs_audit.@SHLIBEXT@
: $(VFS_AUDIT_OBJ
)
962 @echo
"Building plugin $@"
963 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_AUDIT_OBJ
) \
964 @SONAMEFLAG@
`basename $@`
966 bin
/vfs_extd_audit.@SHLIBEXT@
: $(VFS_EXTD_AUDIT_OBJ
)
967 @echo
"Building plugin $@"
968 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_AUDIT_OBJ
) \
969 @SONAMEFLAG@
`basename $@`
971 bin
/vfs_recycle.@SHLIBEXT@
: $(VFS_RECYCLE_OBJ
)
972 @echo
"Building plugin $@"
973 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_RECYCLE_OBJ
) \
974 @SONAMEFLAG@
`basename $@`
976 bin
/vfs_netatalk.@SHLIBEXT@
: $(VFS_NETATALK_OBJ
)
977 @echo
"Building plugin $@"
978 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_NETATALK_OBJ
) \
979 @SONAMEFLAG@
`basename $@`
981 bin
/vfs_fake_perms.@SHLIBEXT@
: $(VFS_FAKE_PERMS_OBJ
)
982 @echo
"Building plugin $@"
983 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(VFS_FAKE_PERMS_OBJ
) \
984 @SONAMEFLAG@
`basename $@`
986 bin
/wbinfo@EXEEXT@
: $(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
987 $(UBIQX_OBJ
) $(SECRETS_OBJ
) @BUILD_POPT@ bin
/.dummy
989 @
$(LINK
) -o
$@
$(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
990 $(UBIQX_OBJ
) $(SECRETS_OBJ
) $(LIBS
) @BUILD_POPT@
992 bin
/ntlm_auth@EXEEXT@
: $(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
993 $(UBIQX_OBJ
) @BUILD_POPT@ bin
/.dummy
995 @
$(LINK
) -o
$@
$(NTLM_AUTH_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
996 $(UBIQX_OBJ
) $(LIBS
) @BUILD_POPT@
998 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_PICOOBJ
)
999 @echo
"Linking shared library $@"
1000 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_PICOOBJ
) -lpam
$(DYNEXP
) $(LIBS
) -lc
1002 bin
/libmsrpc.a
: $(LIBMSRPC_PICOBJ
)
1003 -$(AR
) -rc
$@
$(LIBMSRPC_PICOBJ
)
1005 bin
/tdbbackup@EXEEXT@
: $(TDBBACKUP_OBJ
) bin
/.dummy
1007 @
$(CC
) $(FLAGS
) -o
$@
$(TDBBACKUP_OBJ
)
1009 install: installbin installman installscripts installdat installswat
1011 # DESTDIR is used here to prevent packagers wasting their time
1012 # duplicating the Makefile. Remove it and you will have the privelege
1013 # of package each samba release for muliple versions of multiple
1014 # distributions and operating systems, or at least supplying patches
1015 # to all the packaging files required for this, prior to committing
1016 # the removal of DESTDIR. Do not remove it even though you think it
1020 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(BINDIR
) $(DESTDIR
)$(SBINDIR
) $(DESTDIR
)$(LIBDIR
) $(DESTDIR
)$(VARDIR
) $(DESTDIR
)$(PRIVATEDIR
) $(DESTDIR
)$(VFSLIBDIR
) $(DESTDIR
)$(PDBLIBDIR
) $(DESTDIR
)$(PIDDIR
) $(DESTDIR
)$(LOCKDIR
)
1022 installservers
: all installdirs
1023 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(SBINDIR
) $(DESTDIR
)$(LIBDIR
) $(DESTDIR
)$(VARDIR
) $(SBIN_PROGS
)
1025 installbin
: all installdirs
1026 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(SBINDIR
) $(DESTDIR
)$(LIBDIR
) $(DESTDIR
)$(VARDIR
) $(SBIN_PROGS
)
1027 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(BINDIR
) $(DESTDIR
)$(LIBDIR
) $(DESTDIR
)$(VARDIR
) $(BIN_PROGS
)
1029 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(RPCLIBDIR
) $(RPC_MODULES
)
1031 installmodules
: all installdirs
1032 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(VFSLIBDIR
) $(VFS_MODULES
)
1033 @
$(SHELL
) $(srcdir)/script
/installmodules.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(PDBLIBDIR
) $(PDB_MODULES
)
1035 installscripts
: installdirs
1036 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1038 installdat
: installdirs
1039 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
)$(LIBDIR
) $(srcdir)
1041 installswat
: installdirs
1042 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(DESTDIR
)$(SWATDIR
) $(srcdir)
1045 -$(INSTALLCLIENTCMD_SH
) bin
/libsmbclient.@SHLIBEXT@
$(DESTDIR
)${prefix}/lib
1046 -$(INSTALLCLIENTCMD_A
) bin
/libsmbclient.a
$(DESTDIR
)${prefix}/lib
1047 -$(INSTALLCMD
) -d
$(DESTDIR
)${prefix}/include
1048 -$(INSTALLCMD
) include/libsmbclient.h
$(DESTDIR
)${prefix}/include
1052 PYTHON_OBJS
= $(LIB_OBJ
) $(LIBSMB_OBJ
) $(RPC_PARSE_OBJ
) $(UBIQX_OBJ
) \
1053 $(PARAM_OBJ
) $(LIBMSRPC_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(SECRETS_OBJ
)
1055 PY_SPOOLSS_PROTO_OBJ
= python
/py_spoolss.o \
1056 python
/py_spoolss_printers.o python
/py_spoolss_printers_conv.o\
1057 python
/py_spoolss_forms.o python
/py_spoolss_forms_conv.o \
1058 python
/py_spoolss_ports.o python
/py_spoolss_ports_conv.o \
1059 python
/py_spoolss_drivers.o python
/py_spoolss_drivers_conv.o \
1060 python
/py_spoolss_jobs.o python
/py_spoolss_jobs_conv.o \
1061 python
/py_spoolss_printerdata.o
1063 PY_LSA_PROTO_OBJ
= python
/py_lsa.o
1065 PY_COMMON_PROTO_OBJ
= python
/py_common.c python
/py_ntsec.c
1067 python_proto
: python_spoolss_proto python_lsa_proto python_common_proto
1069 python_spoolss_proto
:
1070 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1071 -h _PY_SPOOLSS_PROTO_H python
/py_spoolss_proto.h \
1072 $(PY_SPOOLSS_PROTO_OBJ
)
1075 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1076 -h _PY_LSA_PROTO_H python
/py_lsa_proto.h \
1079 python_common_proto
:
1080 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1081 -h _PY_COMMON_PROTO_H python
/py_common_proto.h \
1082 $(PY_COMMON_PROTO_OBJ
)
1084 python_ext
: $(PYTHON_OBJS
)
1085 @if
test -z
"$(PYTHON)"; then \
1086 echo Use the option
--with-python to configure python
; \
1088 PYTHON_OBJS
="$(PYTHON_OBJS)" PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
1090 $(PYTHON
) python
/setup.py build
1092 python_install
: $(PYTHON_OBJS
)
1093 @if
test -z
"$(PYTHON)"; then \
1094 echo Use the option
--with-python to configure python
; \
1096 PYTHON_OBJS
="$(PYTHON_OBJS)" PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS)" \
1098 $(PYTHON
) python
/setup.py
install
1101 @if
test -n
"$(PYTHON)"; then
$(PYTHON
) python
/setup.py
clean; fi
1103 # revert to the previously installed version
1105 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SBIN_PROGS
)
1106 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(BIN_PROGS
) $(SCRIPTS
)
1109 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) $(man_langs
) "@ROFF@"
1114 @echo
"Samba will be installed into:"
1115 @echo
" basedir: $(BASEDIR)"
1116 @echo
" bindir: $(BINDIR)"
1117 @echo
" sbindir: $(SBINDIR)"
1118 @echo
" libdir: $(LIBDIR)"
1119 @echo
" vardir: $(VARDIR)"
1120 @echo
" mandir: $(MANDIR)"
1123 uninstall: uninstallman uninstallbin uninstallscripts
1126 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(MANDIR
) $(srcdir) $(man_langs
)
1129 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(SBINDIR
) $(DESTDIR
)$(LIBDIR
) $(DESTDIR
)$(VARDIR
) $(DESTDIR
)$(SBIN_PROGS
)
1130 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(BINDIR
) $(DESTDIR
)$(LIBDIR
) $(DESTDIR
)$(VARDIR
) $(DESTDIR
)$(BIN_PROGS
)
1131 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(RPCLIBDIR
) $(DESTDIR
)$(RPC_MODULES
)
1134 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(VFSLIBDIR
) $(DESTDIR
)$(VFS_MODULES
)
1135 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(PDBLIBDIR
) $(DESTDIR
)$(PDB_MODULES
)
1136 @
$(SHELL
) $(srcdir)/script
/uninstallmodules.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(LIBDIR
) $(DESTDIR
)$(MODULES
)
1139 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BINDIR
) $(SCRIPTS
)
1141 # Toplevel clean files
1142 TOPFILES
=dynconfig.o dynconfig.po
1144 clean: delheaders python_clean
1145 -rm -f core
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.@SHLIBEXT@ \
1146 $(TOPFILES
) $(BIN_PROGS
) $(SBIN_PROGS
) $(MODULES
) $(TORTURE_PROGS
) .headers.stamp
1148 # Making this target will just make sure that the prototype files
1149 # exist, not necessarily that they are up to date. Since they're
1150 # removed by "make clean" this will always be run when you do anything
1152 proto_exists
: include/proto.h
include/wrepld_proto.h
include/build_env.h \
1153 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1154 client
/client_proto.h utils
/net_proto.h \
1155 include/tdbsam2_parse_info.h
1158 @echo Removing prototype headers
1159 @
/bin
/rm -f
$(srcdir)/include/proto.h
$(srcdir)/include/build_env.h
1160 @
/bin
/rm -f
$(srcdir)/include/wrepld_proto.h
$(srcdir)/nsswitch
/winbindd_proto.h
1161 @
/bin
/rm -f
$(srcdir)/web
/swat_proto.h
1162 @
/bin
/rm -f
$(srcdir)/client
/client_proto.h
$(srcdir)/utils
/net_proto.h
1163 @
/bin
/rm -f
$(srcdir)/include/tdbsam2_parse_info.h
1165 @
/bin
/rm -f
include/proto.h
include/build_env.h
include/wrepld_proto.h \
1166 nsswitch
/winbindd_proto.h web
/swat_proto.h \
1167 client
/client_proto.h utils
/net_proto.h \
1168 include/tdbsam2_parse_info.h
1171 @echo Building
include/proto.h
1172 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1173 -h _PROTO_H_
$(builddir
)/include/proto.h \
1176 include/build_env.h
:
1177 @echo Building
include/build_env.h
1178 @cd
$(srcdir) && $(SHELL
) script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) > $(builddir
)/include/build_env.h
1180 include/wrepld_proto.h
:
1181 @echo Building
include/wrepld_proto.h
1182 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1183 -h _WREPLD_PROTO_H_
$(builddir
)/include/wrepld_proto.h \
1186 nsswitch
/winbindd_proto.h
:
1187 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1188 -h _WINBINDD_PROTO_H_ nsswitch
/winbindd_proto.h \
1192 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1193 -h _SWAT_PROTO_H_ web
/swat_proto.h \
1196 client
/client_proto.h
:
1197 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1198 -h _CLIENT_PROTO_H_ client
/client_proto.h \
1202 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1203 -h _CLIENT_PROTO_H_ utils
/net_proto.h \
1206 include/tdbsam2_parse_info.h
:
1207 @cd
$(srcdir) && @PERL@
-w script
/genstruct.pl \
1208 -o
include/tdbsam2_parse_info.h
$(CC
) -E
-O2
-g \
1211 # "make headers" or "make proto" calls a subshell because we need to
1212 # make sure these commands are executed in sequence even for a
1215 $(MAKE
) delheaders
; \
1216 $(MAKE
) include/proto.h
; \
1217 $(MAKE
) include/build_env.h
; \
1218 $(MAKE
) include/wrepld_proto.h
; \
1219 $(MAKE
) nsswitch
/winbindd_proto.h
; \
1220 $(MAKE
) web
/swat_proto.h
; \
1221 $(MAKE
) client
/client_proto.h
; \
1222 $(MAKE
) utils
/net_proto.h
; \
1223 $(MAKE
) include/tdbsam2_parse_info.h
1227 .PHONY
: headers proto
1230 etags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1233 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1235 realclean: clean delheaders
1236 -rm -f config.log
$(BIN_PROGS
) $(MODULES
) $(SBIN_PROGS
) bin
/.dummy script
/findsmb
1238 distclean: realclean
1239 -rm -f
include/stamp-h
1240 -rm -f
include/config.h Makefile
1241 -rm -f config.status config.cache so_locations
1244 # this target is really just for my use. It only works on a limited
1245 # range of machines and is used to produce a list of potentially
1246 # dead (ie. unused) functions in the code. (tridge)
1248 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
1249 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
1250 comm
-13 nmused.txt nmfns.txt
1253 # when configure.in is updated, reconfigure
1254 $(srcdir)/configure
: $(srcdir)/configure.in
1255 @echo
"WARNING: you need to rerun autoconf"
1257 config.status
: $(srcdir)/configure
1258 @echo
"WARNING: you need to run configure"
1260 Makefile
: $(srcdir)/Makefile.in config.status
1261 @echo
"WARNING: you need to run ./config.status"
1263 test_prefix
=/tmp
/test-samba
1264 # Run regression suite using the external "satyr" framework
1266 @echo
"** Sorry, samba self-test without installation does not work "
1267 @echo
"** yet. Please try specifying a scratch directory to"
1268 @echo
"** ./configure --prefix DIR"
1269 @echo
"** then run \"make install installcheck\""
1272 # -rm -rf $(test_prefix)/lib
1273 # mkdir $(test_prefix)/lib -p ./testdir
1274 # PATH=$(builddir)/bin:$(PATH) \
1275 # SATYR_SUITEDIR=../testsuite/build_farm/ prefix=$(test_prefix) \
1276 # testdir=./testdir $(SHELL) satyr
1278 # Run regression suite on the installed version.
1281 # Perform installation tests (if any). The user must build and
1282 # install the program before running the tests. You should not
1283 # assume that `$(bindir)' is in the search path.
1285 dangerous-installcheck
:
1286 mkdir
-p
$(BASEDIR
)/lib
1287 mkdir
-p
$(BASEDIR
)/var
1288 PATH
=$(BINDIR
):$(SBINDIR
):$(PATH
) \
1289 SATYR_DISCOURAGE
=1 \
1290 SATYR_SUITEDIR
=..
/testsuite
/satyr
/ prefix=$(BASEDIR
) \
1291 LIBSMB_PROG
=$(SBINDIR
)/smbd \
1292 testdir
=.
/testdir
$(SHELL
) satyr