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 ###########################################################################
8 exec_prefix=@
exec_prefix@
17 LDSHFLAGS
=@LDSHFLAGS@ @LDFLAGS@
20 TERMLDFLAGS
=@TERMLDFLAGS@
23 LINK
=$(CC
) $(FLAGS
) $(LDFLAGS
)
32 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
33 # will search for a POSIX-compliant shell, and that might not be
34 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
36 # See the autoconf manual "Installation Directory Variables" for a
37 # discussion of thesubtle use of these variables.
41 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
44 VARDIR
= @localstatedir@
47 # The permissions to give the executables
50 # set these to where to find various files
51 # These can be overridden by command line switches (see smbd(8))
52 # or in smb.conf (see smb.conf(5))
53 LOGFILEBASE
= $(VARDIR
)
54 CONFIGFILE
= $(LIBDIR
)/smb.conf
55 LMHOSTSFILE
= $(LIBDIR
)/lmhosts
56 DRIVERFILE
= $(LIBDIR
)/printers.def
57 # This is where smbpasswd et al go
58 PRIVATEDIR
= @privatedir@
60 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
61 PRIVATE_DIR
= $(PRIVATEDIR
)
63 # This is where SWAT images and help files go
66 # the directory where lock files go
69 # man pages language(s)
70 man_langs
= "@manlangs@"
72 FLAGS1
= $(CFLAGS
) -Iinclude
-I
$(srcdir)/include -I
$(srcdir)/ubiqx
-I
$(srcdir)/smbwrapper
$(CPPFLAGS
) -I.
-I
$(srcdir)
75 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
76 FLAGS
= $(ISA
) $(FLAGS5
)
77 FLAGS32
= $(ISA32
) $(FLAGS5
)
79 PASSWD_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\"
80 PATH_FLAGS1
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DSBINDIR
=\"$(SBINDIR
)\"
81 PATH_FLAGS2
= $(PATH_FLAGS1
) -DBINDIR
=\"$(BINDIR
)\" -DDRIVERFILE
=\"$(DRIVERFILE
)\"
82 PATH_FLAGS3
= $(PATH_FLAGS2
) -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
83 PATH_FLAGS4
= $(PATH_FLAGS3
) -DSWATDIR
=\"$(SWATDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\"
84 PATH_FLAGS5
= $(PATH_FLAGS4
) -DLIBDIR
=\"$(LIBDIR
)\" -DLOGFILEBASE
=\"$(LOGFILEBASE
)\"
85 PATH_FLAGS
= $(PATH_FLAGS5
) $(PASSWD_FLAGS
)
87 WINBIND_PROGS
= bin
/wbinfo
88 WINBIND_SPROGS
= bin
/winbindd
89 WINBIND_PAM_PROGS
= nsswitch
/pam_winbind.so
90 WINBIND_LPROGS
= @WINBIND_PAM_PROGS@ nsswitch
/libnss_winbind.so
92 SPROGS
= bin
/smbd bin
/nmbd bin
/swat @WINBIND_STARGETS@
93 PROGS1
= bin
/smbclient bin
/net bin
/smbspool bin
/testparm bin
/testprns bin
/smbstatus bin
/smbcontrol bin
/smbtree @RUNPROG@ @WINBIND_TARGETS@
94 PROGS2
= bin
/smbpasswd bin
/rpcclient bin
/smbcacls @WRAP@ @WRAP32@ @PAM_MOD@
96 LPROGS
= @WINBIND_LTARGETS@
98 PROGS
= $(PROGS1
) $(PROGS2
) $(MPROGS
) bin
/nmblookup bin
/pdbedit bin
/smbgroupedit
99 TORTURE_PROGS
= bin
/smbtorture bin
/msgtest bin
/masktest bin
/locktest bin
/locktest2
100 SHLIBS
= libsmbclient
102 SCRIPTS
= $(srcdir)/script
/smbtar
$(srcdir)/script
/addtosmbpass
$(srcdir)/script
/convert_smbpasswd
104 QUOTAOBJS
=@QUOTAOBJS@
106 ######################################################################
108 ######################################################################
110 TDB_OBJ
= tdb
/tdb.o tdb
/spinlock.o tdb
/tdbutil.o
112 LIB_OBJ
= lib
/charcnv.o lib
/debug.o lib
/fault.o \
113 lib
/getsmbpass.o lib
/interface.o lib
/md4.o \
114 lib
/interfaces.o lib
/pidfile.o lib
/replace.o \
115 lib
/signal.o lib
/system.o lib
/time.o \
116 lib
/ufc.o lib
/genrand.o lib
/username.o lib
/access.o lib
/smbrun.o \
117 lib
/bitmap.o lib
/crc32.o lib
/snprintf.o lib
/dprintf.o lib
/xfile.o lib
/wins_srv.o \
118 lib
/util_str.o lib
/util_sid.o \
119 lib
/util_unistr.o lib
/util_file.o lib
/sysacls.o \
120 lib
/util.o lib
/util_sock.o lib
/util_sec.o smbd
/ssl.o \
121 lib
/talloc.o lib
/hash.o lib
/substitute.o lib
/fsusage.o \
122 lib
/ms_fnmatch.o lib
/select.o lib
/error.o lib
/messages.o \
123 lib
/md5.o lib
/hmacmd5.o lib
/iconv.o lib
/smbpasswd.o \
124 nsswitch
/wb_client.o nsswitch
/wb_common.o \
125 intl
/lang_tdb.o lib
/account_pol.o
$(TDB_OBJ
)
127 READLINE_OBJ
= lib
/readline.o
129 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
130 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o ubiqx
/debugparse.o
132 PARAM_OBJ
= param
/loadparm.o param
/params.o dynconfig.o
134 LIBADS_OBJ
= libads
/ldap.o libads
/krb5_setpw.o libads
/kerberos.o \
135 libads
/ads_struct.o passdb
/secrets.o
137 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
138 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
139 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
140 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
141 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
142 libsmb
/namequery.o libsmb
/nmblib.o libsmb
/clistr.o \
143 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
144 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
145 libsmb
/clioplock.o libsmb
/errormap.o libsmb
/clirap2.o \
146 libsmb
/passchange.o libsmb
/unexpected.o
$(RPC_PARSE_OBJ1
) \
149 LIBMSRPC_OBJ
= libsmb
/cli_lsarpc.o libsmb
/cli_samr.o libsmb
/cli_spoolss.o \
150 libsmb
/cli_netlogon.o libsmb
/cli_srvsvc.o libsmb
/cli_dfs.o \
152 rpc_client
/cli_pipe.o libsmb
/cli_pipe_util.o
154 LIBMSRPC_PICOBJ
= $(LIBMSRPC_OBJ
:.o
=.po
)
156 RPC_SERVER_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o \
157 rpc_server
/srv_lsa_hnd.o rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o \
158 rpc_server
/srv_pipe_hnd.o rpc_server
/srv_reg.o rpc_server
/srv_reg_nt.o \
159 rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o \
160 rpc_server
/srv_util.o rpc_server
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o \
161 rpc_server
/srv_pipe.o rpc_server
/srv_dfs.o rpc_server
/srv_dfs_nt.o \
162 rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o \
165 # this includes only the low level parse code, not stuff
166 # that requires knowledge of security contexts
167 RPC_PARSE_OBJ1
= rpc_parse
/parse_prs.o rpc_parse
/parse_sec.o \
168 rpc_parse
/parse_misc.o
170 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_net.o \
171 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
172 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
173 rpc_parse
/parse_wks.o \
174 rpc_parse
/parse_spoolss.o rpc_parse
/parse_dfs.o
177 RPC_CLIENT_OBJ
= rpc_client
/cli_netlogon.o rpc_client
/cli_pipe.o \
178 rpc_client
/cli_login.o rpc_client
/cli_trust.o \
179 rpc_client
/cli_spoolss_notify.o
181 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
183 PASSDB_OBJ
= passdb
/passdb.o \
184 passdb
/machine_sid.o passdb
/pdb_smbpasswd.o \
185 passdb
/pdb_tdb.o passdb
/pdb_ldap.o \
188 GROUPDB_OBJ
= groupdb
/mapping.o
190 # passdb/smbpass.o passdb/ldap.o passdb/nispass.o
192 PROFILE_OBJ
= profile
/profile.o
194 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
196 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o
198 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
200 AUTH_OBJ
= auth
/auth.o auth
/auth_sam.o auth
/auth_server.o auth
/auth_domain.o \
201 auth
/auth_rhosts.o auth
/auth_unix.o auth
/auth_util.o auth
/auth_winbind.o \
202 auth
/auth_info.o auth
/auth_builtin.o
$(PLAINTEXT_AUTH_OBJ
)
205 SMBD_OBJ1
= smbd
/server.o smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
206 smbd
/utmp.o smbd
/session.o \
207 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o smbd
/fileio.o \
208 smbd
/ipc.o smbd
/lanman.o smbd
/mangle.o smbd
/negprot.o \
209 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
210 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
211 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
212 smbd
/blocking.o smbd
/sec_ctx.o \
213 smbd
/vfs.o smbd
/vfs-wrap.o smbd
/statcache.o \
215 smbd
/process.o smbd
/service.o smbd
/error.o \
216 printing
/printfsp.o lib
/util_seaccess.o smbd
/srvstr.o \
219 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o \
220 printing
/print_cups.o printing
/print_generic.o \
221 printing
/lpq_parse.o printing
/load.o
223 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
225 MSDFS_OBJ
= msdfs
/msdfs.o
227 SMBD_OBJ
= $(SMBD_OBJ1
) $(MSDFS_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
228 $(RPC_SERVER_OBJ
) $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) \
229 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
230 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(QUOTAOBJS
) $(OPLOCK_OBJ
) \
231 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
)
233 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
234 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
235 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
236 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
237 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
238 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
239 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
240 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
241 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
242 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
243 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
244 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
246 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
247 $(PROFILE_OBJ
) $(LIB_OBJ
)
249 SWAT_OBJ
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
250 web
/swat.o web
/neg_lang.o
$(PRINTING_OBJ
) $(LIBSMB_OBJ
) $(LOCKING_OBJ
) \
251 $(PARAM_OBJ
) $(PASSDB_OBJ
) $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) \
252 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
255 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o \
256 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
258 MAKE_PRINTERDEF_OBJ
= utils
/make_printerdef.o
$(PARAM_OBJ
) \
259 $(UBIQX_OBJ
) $(LIB_OBJ
)
261 STATUS_OBJ
= utils
/status.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
262 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
264 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
265 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
267 SMBTREE_OBJ
= utils
/smbtree.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
268 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) $(LIBSMB_OBJ
)
270 TESTPARM_OBJ
= utils
/testparm.o \
271 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
273 TESTPRNS_OBJ
= utils
/testprns.o
$(PARAM_OBJ
) $(PRINTING_OBJ
) $(UBIQX_OBJ
) \
276 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PARAM_OBJ
) \
277 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
)\
278 $(UBIQX_OBJ
) $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(LIB_OBJ
) \
279 libsmb
/cli_lsarpc.o libsmb
/cli_samr.o libsmb
/cli_pipe_util.o
281 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
282 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
)
284 SMBGROUPEDIT_OBJ
= utils
/smbgroupedit.o
$(GROUPDB_OBJ
) $(PARAM_OBJ
) \
285 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
287 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
288 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
289 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
290 rpcclient
/cmd_dfs.o rpcclient
/cmd_reg.o \
291 rpc_client
/cli_login.o rpc_client
/cli_netlogon.o
293 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
294 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
295 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
296 $(READLINE_OBJ
) $(GROUPDB_OBJ
)
298 SAMSYNC_OBJ1
= rpcclient
/samsync.o rpc_client
/cli_netlogon.o
300 SAMSYNC_OBJ
= $(SAMSYNC_OBJ1
) \
301 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
302 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
305 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.po nsswitch
/wb_common.po
307 SMBW_OBJ
= smbwrapper
/smbw.o \
308 smbwrapper
/smbw_dir.o smbwrapper
/smbw_stat.o \
309 smbwrapper
/realcalls.o smbwrapper
/shared.o \
310 smbwrapper
/smbw_cache.o \
311 $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
312 $(UBIQX_OBJ
) $(LIB_OBJ
)
314 SMBWRAPPER_OBJ
= $(SMBW_OBJ
) smbwrapper
/wrapped.o
316 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o
$(LIB_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
318 CLIENT_OBJ
= client
/client.o client
/clitar.o \
319 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
322 NET_OBJ
= utils
/net.o utils
/net_ads.o utils
/net_rap.o utils
/net_rpc.o \
323 utils
/net_rpc_join.o \
324 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
325 $(GROUPDB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
326 $(NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
)
328 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
330 MOUNT_OBJ
= client
/smbmount.o \
331 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
333 MNT_OBJ
= client
/smbmnt.o \
334 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
336 UMOUNT_OBJ
= client
/smbumount.o \
337 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
339 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) \
340 $(LIBSMB_OBJ
) $(LIB_OBJ
)
342 SMBTORTURE_OBJ
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
344 $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
346 MASKTEST_OBJ
= torture
/masktest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
347 $(UBIQX_OBJ
) $(LIB_OBJ
)
349 MSGTEST_OBJ
= torture
/msgtest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
350 $(UBIQX_OBJ
) $(LIB_OBJ
)
352 LOCKTEST_OBJ
= torture
/locktest.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
353 $(UBIQX_OBJ
) $(LIB_OBJ
)
355 NSSTEST_OBJ
= torture
/nsstest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
356 $(UBIQX_OBJ
) $(LIB_OBJ
)
358 LOCKTEST2_OBJ
= torture
/locktest2.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
359 $(UBIQX_OBJ
) $(LIB_OBJ
)
361 SMBCACLS_OBJ
= utils
/smbcacls.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
362 $(UBIQX_OBJ
) $(LIB_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
363 $(LIBMSRPC_OBJ
) $(GROUPDB_OBJ
)
366 RPCTORTURE_OBJ
= torture
/rpctorture.o \
367 rpcclient
/display.o \
368 rpcclient
/cmd_lsarpc.o \
369 rpcclient
/cmd_wkssvc.o \
370 rpcclient
/cmd_samr.o \
371 rpcclient
/cmd_srvsvc.o \
372 rpcclient
/cmd_netlogon.o \
373 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
374 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
)
376 DEBUG2HTML_OBJ
= utils
/debug2html.o ubiqx
/debugparse.o
378 SMBFILTER_OBJ
= utils
/smbfilter.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
379 $(UBIQX_OBJ
) $(LIB_OBJ
)
381 PROTO_OBJ
= $(SMBD_OBJ
) $(NMBD_OBJ
) $(SWAT_OBJ
) $(CLIENT_OBJ
) \
382 $(SMBWRAPPER_OBJ
) $(SMBTORTURE_OBJ
) $(RPCCLIENT_OBJ1
) \
383 $(LIBMSRPC_OBJ
) $(RPC_CLIENT_OBJ
) $(AUTH_OBJ
) $(NET_OBJ
)
385 NSS_OBJ_0
= nsswitch
/wins.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIBSMB_OBJ
) $(LIB_OBJ
) $(NSSWINS_OBJ
)
386 NSS_OBJ
= $(NSS_OBJ_0
:.o
=.po
)
388 PICOBJS
= $(SMBWRAPPER_OBJ
:.o
=.po
)
389 PICOBJS32
= $(SMBWRAPPER_OBJ
:.o
=.po32
)
390 LIBSMBCLIENT_PICOBJS
= $(LIBSMBCLIENT_OBJ
:.o
=.po
)
392 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
393 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o \
394 lib
/debug.o lib
/util_sid.o lib
/messages.o lib
/util_str.o \
395 lib
/wins_srv.o lib
/substitute.o lib
/select.o lib
/util.o \
396 nsswitch
/wb_client.o nsswitch
/wb_common.o \
397 lib
/system.o lib
/util_file.o \
398 lib
/genrand.o lib
/username.o lib
/charcnv.o lib
/time.o \
399 lib
/md4.o lib
/util_unistr.o lib
/signal.o lib
/talloc.o \
400 lib
/ms_fnmatch.o lib
/util_sock.o lib
/smbrun.o \
402 ubiqx
/ubi_sLinkList.o libsmb
/smbencrypt.o libsmb
/smbdes.o \
403 $(PARAM_OBJ
) $(TDB_OBJ
) $(PASSDB_OBJ
)
405 PAM_SMBPASS_PICOOBJ
= $(PAM_SMBPASS_OBJ_0
:.o
=.po
)
407 NSS_OBJ_0
= nsswitch
/wins.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIBSMB_OBJ
) $(LIB_OBJ
) $(NSSWINS_OBJ
)
408 NSS_OBJ
= $(NSS_OBJ_0
:.o
=.po
)
411 nsswitch
/winbindd.o \
412 nsswitch
/winbindd_user.o \
413 nsswitch
/winbindd_group.o \
414 nsswitch
/winbindd_idmap.o \
415 nsswitch
/winbindd_util.o \
416 nsswitch
/winbindd_cache.o \
417 nsswitch
/winbindd_pam.o \
418 nsswitch
/winbindd_sid.o \
419 nsswitch
/winbindd_misc.o \
420 nsswitch
/winbindd_cm.o \
421 nsswitch
/winbindd_rpc.o \
422 nsswitch
/winbindd_ads.o
424 NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
= \
425 rpc_client
/cli_netlogon.o rpc_client
/cli_login.o \
429 $(WINBINDD_OBJ1
) $(NOPROTO_OBJ
) $(PASSDB_OBJ
) \
430 $(LIBNMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
431 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) \
432 $(GROUPDB_OBJ
) $(PROFILE_OBJ
) \
433 $(NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
)
435 WBINFO_OBJ
= nsswitch
/wbinfo.o libsmb
/smbencrypt.o libsmb
/smbdes.o
437 WINBIND_NSS_OBJ
= nsswitch
/winbind_nss.o nsswitch
/wb_common.o
439 WINBIND_NSS_PICOBJS
= $(WINBIND_NSS_OBJ
:.o
=.po
)
441 POPT_OBJS
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
442 popt
/popthelp.o popt
/poptparse.o
444 ######################################################################
446 ######################################################################
447 all : SHOWFLAGS
include/proto.h
$(SPROGS
) $(PROGS
) $(SHLIBS
) nsswitch
449 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
451 smbwrapper
: SHOWFLAGS bin
/smbsh bin
/smbwrapper.@SHLIBEXT@ @WRAP32@
453 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
455 smbtorture
: SHOWFLAGS bin
/smbtorture
457 masktest
: SHOWFLAGS bin
/masktest
459 msgtest
: SHOWFLAGS bin
/msgtest
461 locktest
: SHOWFLAGS bin
/locktest
463 smbcacls
: SHOWFLAGS bin
/smbcacls
465 locktest2
: SHOWFLAGS bin
/locktest2
467 rpctorture
: SHOWFLAGS bin
/rpctorture
469 debug2html
: SHOWFLAGS bin
/debug2html
471 smbfilter
: SHOWFLAGS bin
/smbfilter
473 nsswitch
: SHOWFLAGS @WINBIND_TARGETS@ @WINBIND_STARGETS@ @WINBIND_LTARGETS@
476 .SUFFIXES
: .c .o .po .po32 .lo
479 @echo
"Using FLAGS = $(FLAGS)"
480 @echo
"Using FLAGS32 = $(FLAGS32)"
481 @echo
"Using LIBS = $(LIBS)"
483 MAKEDIR
= || exec false
; \
484 if
test -d
"$$dir"; then
:; else \
485 echo mkdir
"$$dir"; \
486 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
489 exec false
; fi || exec false
492 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
493 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
495 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
497 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
499 # These dependencies are only approximately correct: we want to make
500 # sure Samba's paths are updated if ./configure is re-run. Really it
501 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
502 # but since we also require "make install prefix=/opt/samba" *not* to
503 # rebuild it's a bit hard.
505 dynconfig.o
: dynconfig.c Makefile
507 @
$(CC
) $(FLAGS
) $(PATH_FLAGS
) -c
$< -o
$@
509 dynconfig.po
: dynconfig.c Makefile
510 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
511 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
512 @echo Compiling
$*.c with @PICFLAG@
513 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PATH_FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
514 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
515 @POBAD_CC@ @mv
$*.po.o
$@
518 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
519 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
520 @echo Compiling
$*.c with @PICFLAG@
521 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
522 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
523 @POBAD_CC@ @mv
$*.po.o
$@
527 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
528 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
529 @echo Compiling
$*.c with @PICFLAG@ and
-32
530 @
$(CC
) -32 -I.
-I
$(srcdir) $(FLAGS32
) @PICFLAG@
-c
$< \
532 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
536 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
537 dir=bin
$(MAKEDIR
); fi
538 @
: >> $@ ||
: > $@
# what a fancy emoticon!
540 bin
/smbd
: $(SMBD_OBJ
) bin
/.dummy
542 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
544 bin
/nmbd
: $(NMBD_OBJ
) bin
/.dummy
546 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
548 bin
/swat
: $(SWAT_OBJ
) bin
/.dummy
550 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(LIBS
)
552 bin
/rpcclient
: $(RPCCLIENT_OBJ
) bin
/.dummy
554 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
)
556 bin
/samsync
: $(SAMSYNC_OBJ
) bin
/.dummy
558 @
$(CC
) $(FLAGS
) -o
$@
$(SAMSYNC_OBJ
) $(LDFLAGS
) $(LIBS
)
560 bin
/smbclient
: $(CLIENT_OBJ
) bin
/.dummy
562 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
)
564 bin
/net
: $(NET_OBJ
) bin
/.dummy @BUILD_POPT@
566 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
568 bin
/smbspool
: $(CUPS_OBJ
) bin
/.dummy
570 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(LDFLAGS
) $(LIBS
)
572 bin
/smbmount
: $(MOUNT_OBJ
) bin
/.dummy
574 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
576 bin
/smbmnt
: $(MNT_OBJ
) bin
/.dummy
578 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(LDFLAGS
) $(LIBS
)
580 bin
/smbumount
: $(UMOUNT_OBJ
) bin
/.dummy
582 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
584 bin
/testparm
: $(TESTPARM_OBJ
) bin
/.dummy
586 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(LIBS
)
588 bin
/testprns
: $(TESTPRNS_OBJ
) bin
/.dummy
590 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPRNS_OBJ
) $(LDFLAGS
) $(LIBS
)
592 bin
/smbstatus
: $(STATUS_OBJ
) bin
/.dummy
594 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(LIBS
)
596 bin
/smbcontrol
: $(SMBCONTROL_OBJ
) bin
/.dummy
598 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCONTROL_OBJ
) $(LDFLAGS
) $(LIBS
)
600 bin
/smbtree
: $(SMBTREE_OBJ
) bin
/.dummy
602 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(LIBS
)
604 bin
/smbpasswd
: $(SMBPASSWD_OBJ
) bin
/.dummy
606 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(LIBS
)
608 bin
/pdbedit
: $(PDBEDIT_OBJ
) bin
/.dummy
610 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(LIBS
)
612 bin
/smbgroupedit
: $(SMBGROUPEDIT_OBJ
) bin
/.dummy
614 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGROUPEDIT_OBJ
) $(LDFLAGS
) $(LIBS
)
616 bin
/nmblookup
: $(NMBLOOKUP_OBJ
) bin
/.dummy
618 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(LIBS
)
620 bin
/make_printerdef
: $(MAKE_PRINTERDEF_OBJ
) bin
/.dummy
622 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_PRINTERDEF_OBJ
) $(LDFLAGS
) $(LIBS
)
624 bin
/smbtorture
: $(SMBTORTURE_OBJ
) bin
/.dummy
626 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
628 bin
/masktest
: $(MASKTEST_OBJ
) bin
/.dummy
630 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
632 bin
/msgtest
: $(MSGTEST_OBJ
) bin
/.dummy
634 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
636 bin
/smbcacls
: $(SMBCACLS_OBJ
) bin
/.dummy
638 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(LDFLAGS
) $(LIBS
)
640 bin
/locktest
: $(LOCKTEST_OBJ
) bin
/.dummy
642 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
644 bin
/nsstest
: $(NSSTEST_OBJ
) bin
/.dummy
646 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
648 bin
/locktest2
: $(LOCKTEST2_OBJ
) bin
/.dummy
650 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(LIBS
)
652 bin
/rpctorture
: $(RPCTORTURE_OBJ
) bin
/.dummy
654 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
656 bin
/debug2html
: $(DEBUG2HTML_OBJ
) bin
/.dummy
658 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(LIBS
)
660 bin
/smbfilter
: $(SMBFILTER_OBJ
) bin
/.dummy
662 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
)
665 bin
/smbw_sample
: $(SMBW_OBJ
) utils
/smbw_sample.o bin
/.dummy
667 @
$(CC
) $(FLAGS
) -o
$@
$(SMBW_OBJ
) utils
/smbw_sample.o
$(LDFLAGS
) $(LIBS
)
669 bin
/smbwrapper.@SHLIBEXT@
: $(PICOBJS
)
670 @echo Linking shared library
$@
671 @
$(LD
) $(LDSHFLAGS
) -o
$@
$(PICOBJS
) $(LIBS
)
673 bin
/smbwrapper
.32.@SHLIBEXT@
: $(PICOBJS32
)
674 @echo Linking shared library
$@
675 @
$(LD
) -32 $(LDSHFLAGS
) -o
$@
$(PICOBJS32
) $(LIBS
)
677 bin
/libsmbclient.@SHLIBEXT@
: $(LIBSMBCLIENT_PICOBJS
)
678 echo Linking libsmbclient shared library
$@
679 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_PICOBJS
) $(LIBS
)
681 bin
/libsmbclient.a
: $(LIBSMBCLIENT_PICOBJS
)
682 @echo Linking libsmbclient non-shared library
$@
683 -$(AR
) -rc
$@
$(LIBSMBCLIENT_PICOBJS
)
685 libsmbclient
: bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
687 bin
/smbsh
: $(SMBSH_OBJ
) bin
/.dummy
689 @
$(CC
) $(FLAGS
) -o
$@
$(SMBSH_OBJ
) $(LDFLAGS
) $(LIBS
)
691 nsswitch
/libnss_wins.so
: $(NSS_OBJ
)
693 @
$(LD
) $(LDSHFLAGS
) -o
$@
$(NSS_OBJ
) -lc
695 bin
/winbindd
: $(WINBINDD_OBJ
) bin
/.dummy
697 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(LIBS
)
699 nsswitch
/libnss_winbind.so
: $(WINBIND_NSS_PICOBJS
)
701 @
$(LINK
) $(LDSHFLAGS
) -o
$@
$(WINBIND_NSS_PICOBJS
)
703 nsswitch
/pam_winbind.so
: $(PAM_WINBIND_OBJ
) bin
/.dummy
705 @
$(LINK
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
)
707 bin
/wbinfo
: $(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) $(NOPROTO_OBJ
) $(UBIQX_OBJ
) bin
/.dummy
709 @
$(LINK
) -o
$@
$(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) $(NOPROTO_OBJ
) \
712 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_PICOOBJ
)
713 @echo
"Linking shared library $@"
714 $(LD
) $(LDSHFLAGS
) -symbolic
-o
$@
$(PAM_SMBPASS_PICOOBJ
) -lpam
$(LIBS
) -lc
716 bin
/libmsrpc.a
: $(LIBMSRPC_PICOBJ
)
717 -$(AR
) -rc
$@
$(LIBMSRPC_PICOBJ
)
719 bin
/spamsync
: rpcclient
/samsync.o bin
/libmsrpc.a
720 @
$(LINK
) -o
$@ rpcclient
/samsync.o bin
/libmsrpc.a \
723 install: installbin installman installscripts installswat
726 -$(SHELL
) $(srcdir)/install-sh
-d
-m
$(INSTALLPERMS
) \
727 $(BASEDIR
) $(SBINDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
)
729 installservers
: all installdirs
730 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
732 installbin
: all installdirs
733 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
734 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
736 installscripts
: installdirs
737 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
739 installswat
: installdirs
740 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(SWATDIR
) $(srcdir)
743 -$(INSTALLCMD
) bin
/libsmbclient.so
$(LIBDIR
)
744 -$(INSTALLCMD
) -d
${prefix}/include
745 -$(INSTALLCMD
) include/libsmbclient.h
${prefix}/include
747 # revert to the previously installed version
749 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SPROGS
)
750 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(PROGS
) $(SCRIPTS
)
753 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(MANDIR
) $(srcdir) $(man_langs
) "@ROFF@"
758 @echo
"Samba will be installed into:"
759 @echo
" basedir: $(BASEDIR)"
760 @echo
" bindir: $(BINDIR)"
761 @echo
" sbindir: $(SBINDIR)"
762 @echo
" libdir: $(LIBDIR)"
763 @echo
" vardir: $(VARDIR)"
764 @echo
" mandir: $(MANDIR)"
767 uninstall: uninstallman uninstallbin uninstallscripts
770 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(MANDIR
) $(srcdir) $(man_langs
)
773 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
774 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
777 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
780 -rm -f core
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.@SHLIBEXT@
$(PROGS
) $(SPROGS
)
783 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
784 -h _WINBINDD_PROTO_H_ nsswitch
/winbindd_proto.h \
788 @
/bin
/rm -f
$(srcdir)/include/proto.h
$(srcdir)/include/build_env.h
790 # we want our generated headers to be rebuilt if they don't exist, but not rebuilt every time
791 .headers.stamp
: include/proto.h
include/build_env.h
792 @
[ -f
$@
] || touch
$@
794 $(PROTO_OBJ
) : .headers.stamp
797 @echo rebuilding
include/proto.h
798 @cd
$(srcdir) && $(AWK
) -f script
/mkproto.awk
`echo $(PROTO_OBJ) | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort -u | egrep -v 'ubiqx/|wrapped'` > include/proto.h
801 @echo rebuilding
include/build_env.h
802 @cd
$(srcdir) && $(SHELL
) script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) > include/build_env.h
804 headers
: delheaders
include/proto.h
include/build_env.h
806 proto
: headers winbindd_proto
809 etags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
812 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
815 -rm -f config.log
$(PROGS
) $(SPROGS
) bin
/.dummy
819 -rm -f
include/config.h Makefile
820 -rm -f config.status config.cache so_locations
824 # This target is for documenation updators. It regenerates
825 # the man pages and HTML docs from the YODL source files.
826 # In order for this target to work YODL must be installed
827 # and working on your system. JRA.
829 @
$(SHELL
) $(srcdir)/script
/makeyodldocs.sh
$(srcdir)
831 # this target is really just for my use. It only works on a limited
832 # range of machines and is used to produce a list of potentially
833 # dead (ie. unused) functions in the code. (tridge)
835 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
836 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
837 comm
-13 nmused.txt nmfns.txt
840 # when configure.in is updated, reconfigure
841 $(srcdir)/configure
: $(srcdir)/configure.in
842 @echo
"WARNING: you need to rerun autoconf"
844 config.status
: $(srcdir)/configure
845 @echo
"WARNING: you need to run configure"
847 Makefile
: $(srcdir)/Makefile.in config.status
848 @echo
"WARNING: you need to run ./config.status"
850 test_prefix
=/tmp
/test-samba
851 # Run regression suite using the external "satyr" framework
853 @echo
"** Sorry, samba self-test without installation does not work "
854 @echo
"** yet. Please try specifying a scratch directory to"
855 @echo
"** ./configure --prefix DIR"
856 @echo
"** then run \"make install installcheck\""
859 # -rm -rf $(test_prefix)/lib
860 # mkdir $(test_prefix)/lib -p ./testdir
861 # PATH=$(builddir)/bin:$(PATH) \
862 # SATYR_SUITEDIR=../testsuite/build_farm/ prefix=$(test_prefix) \
863 # testdir=./testdir $(SHELL) satyr
865 # Run regression suite on the installed version.
868 # Perform installation tests (if any). The user must build and
869 # install the program before running the tests. You should not
870 # assume that `$(bindir)' is in the search path.
872 dangerous-installcheck
:
873 mkdir
-p
$(BASEDIR
)/lib
874 mkdir
-p
$(BASEDIR
)/var
875 PATH
=$(BINDIR
):$(SBINDIR
):$(PATH
) \
877 SATYR_SUITEDIR
=..
/testsuite
/satyr
/ prefix=$(BASEDIR
) \
878 LIBSMB_PROG
=$(SBINDIR
)/smbd \
879 testdir
=.
/testdir
$(SHELL
) satyr