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@ @CFLAGS@
21 TERMLDFLAGS
=@TERMLDFLAGS@
24 LINK
=$(CC
) $(FLAGS
) $(LDFLAGS
)
33 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
34 # will search for a POSIX-compliant shell, and that might not be
35 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
37 # See the autoconf manual "Installation Directory Variables" for a
38 # discussion of thesubtle use of these variables.
42 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
45 VARDIR
= @localstatedir@
48 # The permissions to give the executables
51 # set these to where to find various files
52 # These can be overridden by command line switches (see smbd(8))
53 # or in smb.conf (see smb.conf(5))
54 LOGFILEBASE
= $(VARDIR
)
55 CONFIGFILE
= $(LIBDIR
)/smb.conf
56 LMHOSTSFILE
= $(LIBDIR
)/lmhosts
57 DRIVERFILE
= $(LIBDIR
)/printers.def
58 # This is where smbpasswd et al go
59 PRIVATEDIR
= @privatedir@
61 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
62 PRIVATE_DIR
= $(PRIVATEDIR
)
64 # This is where SWAT images and help files go
67 # the directory where lock files go
70 # man pages language(s)
71 man_langs
= "@manlangs@"
73 FLAGS1
= $(CFLAGS
) @FLAGS1@
-Iinclude
-I
$(srcdir)/include -I
$(srcdir)/ubiqx
-I
$(srcdir)/smbwrapper
-I.
$(CPPFLAGS
) -I
$(srcdir)
77 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
78 FLAGS
= $(ISA
) $(FLAGS5
)
79 FLAGS32
= $(ISA32
) $(FLAGS5
)
81 PASSWD_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\"
82 PATH_FLAGS1
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DSBINDIR
=\"$(SBINDIR
)\"
83 PATH_FLAGS2
= $(PATH_FLAGS1
) -DBINDIR
=\"$(BINDIR
)\" -DDRIVERFILE
=\"$(DRIVERFILE
)\"
84 PATH_FLAGS3
= $(PATH_FLAGS2
) -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
85 PATH_FLAGS4
= $(PATH_FLAGS3
) -DSWATDIR
=\"$(SWATDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\"
86 PATH_FLAGS5
= $(PATH_FLAGS4
) -DLIBDIR
=\"$(LIBDIR
)\" -DLOGFILEBASE
=\"$(LOGFILEBASE
)\"
87 PATH_FLAGS
= $(PATH_FLAGS5
) $(PASSWD_FLAGS
)
89 WINBIND_PROGS
= @WINBIND_TARGETS@
90 WINBIND_SPROGS
= @WINBIND_STARGETS@
91 WINBIND_PAM_PROGS
= @WINBIND_PAM_TARGETS@
92 WINBIND_LPROGS
= @WINBIND_LTARGETS@
94 SPROGS
= bin
/smbd bin
/nmbd bin
/swat bin
/wrepld @WINBIND_STARGETS@
95 PROGS1
= bin
/smbclient bin
/net bin
/smbspool bin
/testparm bin
/testprns bin
/smbstatus bin
/smbcontrol bin
/smbtree bin
/tdbbackup @RUNPROG@ @WINBIND_TARGETS@
96 PROGS2
= bin
/smbpasswd bin
/rpcclient bin
/smbcacls @WRAP@ @WRAP32@ @PAM_MOD@
98 LPROGS
= $(WINBIND_PAM_PROGS
) $(WINBIND_LPROGS
)
100 PROGS
= $(PROGS1
) $(PROGS2
) $(MPROGS
) bin
/nmblookup bin
/pdbedit bin
/smbgroupedit
101 TORTURE_PROGS
= bin
/smbtorture bin
/msgtest bin
/masktest bin
/locktest bin
/locktest2
102 SHLIBS
= libsmbclient
104 SCRIPTS
= $(srcdir)/script
/smbtar
$(srcdir)/script
/addtosmbpass
$(srcdir)/script
/convert_smbpasswd
106 QUOTAOBJS
=@QUOTAOBJS@
108 ######################################################################
110 ######################################################################
112 TDBBASE_OBJ
= tdb
/tdb.o tdb
/spinlock.o
113 TDB_OBJ
= $(TDBBASE_OBJ
) tdb
/tdbutil.o
115 LIB_OBJ
= lib
/charcnv.o lib
/debug.o lib
/fault.o \
116 lib
/getsmbpass.o lib
/interface.o lib
/md4.o \
117 lib
/interfaces.o lib
/pidfile.o lib
/replace.o \
118 lib
/signal.o lib
/system.o lib
/time.o \
119 lib
/ufc.o lib
/genrand.o lib
/username.o \
120 lib
/util_getent.o lib
/util_pw.o lib
/access.o lib
/smbrun.o \
121 lib
/bitmap.o lib
/crc32.o lib
/snprintf.o lib
/dprintf.o \
122 lib
/xfile.o lib
/wins_srv.o \
123 lib
/util_str.o lib
/util_sid.o \
124 lib
/util_unistr.o lib
/util_file.o \
125 lib
/util.o lib
/util_sock.o lib
/util_sec.o smbd
/ssl.o \
126 lib
/talloc.o lib
/hash.o lib
/substitute.o lib
/fsusage.o \
127 lib
/ms_fnmatch.o lib
/select.o lib
/error.o lib
/messages.o \
128 lib
/tallocmsg.o lib
/dmallocmsg.o \
129 lib
/md5.o lib
/hmacmd5.o lib
/iconv.o lib
/smbpasswd.o \
130 nsswitch
/wb_client.o nsswitch
/wb_common.o \
131 lib
/pam_errors.o intl
/lang_tdb.o lib
/account_pol.o \
134 READLINE_OBJ
= lib
/readline.o
136 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
137 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o ubiqx
/debugparse.o
139 PARAM_OBJ
= param
/loadparm.o param
/params.o dynconfig.o
141 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
142 libads
/krb5_setpw.o libads
/kerberos.o \
143 libads
/ads_struct.o libads
/ads_status.o passdb
/secrets.o \
144 libads
/util.o libads
/disp_sec.o
146 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
147 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
148 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
149 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
150 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
151 libsmb
/namequery.o libsmb
/nmblib.o libsmb
/clistr.o \
152 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
153 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
154 libsmb
/clioplock.o libsmb
/errormap.o libsmb
/clirap2.o \
155 libsmb
/passchange.o libsmb
/unexpected.o libsmb
/doserr.o \
156 $(RPC_PARSE_OBJ1
) $(LIBADS_OBJ
)
158 LIBMSRPC_OBJ
= libsmb
/cli_lsarpc.o libsmb
/cli_samr.o libsmb
/cli_spoolss.o \
159 libsmb
/cli_netlogon.o libsmb
/cli_srvsvc.o libsmb
/cli_wkssvc.o \
160 libsmb
/cli_dfs.o libsmb
/cli_reg.o libsmb
/trust_passwd.o\
161 rpc_client
/cli_pipe.o libsmb
/cli_pipe_util.o
163 LIBMSRPC_PICOBJ
= $(LIBMSRPC_OBJ
:.o
=.po
)
165 RPC_SERVER_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o \
166 rpc_server
/srv_lsa_hnd.o rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o \
167 rpc_server
/srv_pipe_hnd.o rpc_server
/srv_reg.o rpc_server
/srv_reg_nt.o \
168 rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o \
169 rpc_server
/srv_util.o rpc_server
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o \
170 rpc_server
/srv_pipe.o rpc_server
/srv_dfs.o rpc_server
/srv_dfs_nt.o \
171 rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
173 # this includes only the low level parse code, not stuff
174 # that requires knowledge of security contexts
175 RPC_PARSE_OBJ1
= rpc_parse
/parse_prs.o rpc_parse
/parse_sec.o \
176 rpc_parse
/parse_misc.o
178 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_net.o \
179 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
180 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
181 rpc_parse
/parse_wks.o \
182 rpc_parse
/parse_spoolss.o rpc_parse
/parse_dfs.o
185 RPC_CLIENT_OBJ
= rpc_client
/cli_netlogon.o rpc_client
/cli_pipe.o \
186 rpc_client
/cli_login.o \
187 rpc_client
/cli_spoolss_notify.o
189 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
191 PASSDB_OBJ
= passdb
/passdb.o passdb
/pdb_interface.o passdb
/pdb_get_set.o \
192 passdb
/machine_sid.o passdb
/pdb_smbpasswd.o \
193 passdb
/pdb_tdb.o passdb
/pdb_ldap.o passdb
/pdb_plugin.o \
196 GROUPDB_OBJ
= groupdb
/mapping.o
198 # passdb/smbpass.o passdb/ldap.o passdb/nispass.o
200 PROFILE_OBJ
= profile
/profile.o
202 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
204 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o
206 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
208 UNIGRP_OBJ
= libsmb
/netlogon_unigrp.o
210 AUTH_OBJ
= auth
/auth.o auth
/auth_sam.o auth
/auth_server.o auth
/auth_domain.o \
211 auth
/auth_rhosts.o auth
/auth_unix.o auth
/auth_util.o auth
/auth_winbind.o \
212 auth
/auth_builtin.o auth
/auth_compat.o
$(PLAINTEXT_AUTH_OBJ
) $(UNIGRP_OBJ
)
215 SMBD_OBJ1
= smbd
/server.o smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
216 smbd
/utmp.o smbd
/session.o \
217 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o smbd
/fileio.o \
218 smbd
/ipc.o smbd
/lanman.o smbd
/mangle.o smbd
/negprot.o \
219 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
220 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
221 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
222 smbd
/blocking.o smbd
/sec_ctx.o \
223 smbd
/vfs.o smbd
/vfs-wrap.o smbd
/statcache.o \
224 smbd
/posix_acls.o lib
/sysacls.o \
225 smbd
/process.o smbd
/service.o smbd
/error.o \
226 printing
/printfsp.o lib
/util_seaccess.o smbd
/srvstr.o \
227 smbd
/build_options.o \
228 smbd
/change_trust_pw.o \
229 rpc_client
/cli_spoolss_notify.o
232 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o \
233 printing
/print_cups.o printing
/print_generic.o \
234 printing
/lpq_parse.o printing
/load.o
236 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
238 MSDFS_OBJ
= msdfs
/msdfs.o
240 SMBD_OBJ
= $(SMBD_OBJ1
) $(MSDFS_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
241 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) \
242 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
243 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(QUOTAOBJS
) $(OPLOCK_OBJ
) \
244 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) $(LIBMSRPC_OBJ
)
247 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
248 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
249 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
250 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
251 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
252 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
253 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
254 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
255 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
256 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
257 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
258 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
260 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
261 $(PROFILE_OBJ
) $(LIB_OBJ
)
263 WREPL_OBJ1
= wrepld
/server.o wrepld
/process.o wrepld
/parser.o wrepld
/socket.o \
266 WREPL_OBJ
= $(WREPL_OBJ1
) $(PARAM_OBJ
) $(UBIQX_OBJ
) \
267 $(PROFILE_OBJ
) $(LIB_OBJ
)
269 SWAT_OBJ
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
270 web
/swat.o web
/neg_lang.o
$(PRINTING_OBJ
) $(LIBSMB_OBJ
) $(LOCKING_OBJ
) \
271 $(PARAM_OBJ
) $(PASSDB_OBJ
) \
272 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
275 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o \
276 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
278 MAKE_PRINTERDEF_OBJ
= utils
/make_printerdef.o
$(PARAM_OBJ
) \
279 $(UBIQX_OBJ
) $(LIB_OBJ
)
281 STATUS_OBJ
= utils
/status.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
282 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
284 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
285 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
287 SMBTREE_OBJ
= utils
/smbtree.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
288 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) $(LIBSMB_OBJ
)
290 TESTPARM_OBJ
= utils
/testparm.o \
291 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
293 TESTPRNS_OBJ
= utils
/testprns.o
$(PARAM_OBJ
) $(PRINTING_OBJ
) $(UBIQX_OBJ
) \
296 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PARAM_OBJ
) \
297 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
)\
298 $(UBIQX_OBJ
) $(LIB_OBJ
)
300 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
301 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
)
303 SMBGROUPEDIT_OBJ
= utils
/smbgroupedit.o
$(GROUPDB_OBJ
) $(PARAM_OBJ
) \
304 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
306 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
307 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
308 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
309 rpcclient
/cmd_dfs.o rpcclient
/cmd_reg.o \
310 rpc_client
/cli_login.o rpc_client
/cli_netlogon.o \
311 rpcclient
/display_sec.o
313 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
314 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
315 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
316 $(READLINE_OBJ
) $(GROUPDB_OBJ
)
318 SAMSYNC_OBJ1
= rpcclient
/samsync.o rpcclient
/display_sec.o
320 SAMSYNC_OBJ
= $(SAMSYNC_OBJ1
) \
321 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
322 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
325 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.po nsswitch
/wb_common.po lib
/snprintf.po
327 SMBW_OBJ
= smbwrapper
/smbw.o \
328 smbwrapper
/smbw_dir.o smbwrapper
/smbw_stat.o \
329 smbwrapper
/realcalls.o smbwrapper
/shared.o \
330 smbwrapper
/smbw_cache.o \
331 $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
332 $(UBIQX_OBJ
) $(LIB_OBJ
)
334 SMBWRAPPER_OBJ
= $(SMBW_OBJ
) smbwrapper
/wrapped.o
336 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o
$(LIB_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
338 CLIENT_OBJ
= client
/client.o client
/clitar.o \
339 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
342 NET_OBJ
= utils
/net.o utils
/net_ads.o \
343 utils
/net_rap.o utils
/net_rpc.o \
344 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
345 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
346 $(GROUPDB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
349 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
351 MOUNT_OBJ
= client
/smbmount.o \
352 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
354 MNT_OBJ
= client
/smbmnt.o \
355 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
357 UMOUNT_OBJ
= client
/smbumount.o \
358 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
360 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) \
361 $(LIBSMB_OBJ
) $(LIB_OBJ
)
363 SMBTORTURE_OBJ
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
365 $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
367 MASKTEST_OBJ
= torture
/masktest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
368 $(UBIQX_OBJ
) $(LIB_OBJ
)
370 MSGTEST_OBJ
= torture
/msgtest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
371 $(UBIQX_OBJ
) $(LIB_OBJ
)
373 LOCKTEST_OBJ
= torture
/locktest.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
374 $(UBIQX_OBJ
) $(LIB_OBJ
)
376 NSSTEST_OBJ
= torture
/nsstest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
377 $(UBIQX_OBJ
) $(LIB_OBJ
)
379 LOCKTEST2_OBJ
= torture
/locktest2.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
380 $(UBIQX_OBJ
) $(LIB_OBJ
)
382 SMBCACLS_OBJ
= utils
/smbcacls.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
383 $(UBIQX_OBJ
) $(LIB_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
384 $(LIBMSRPC_OBJ
) $(GROUPDB_OBJ
)
386 TALLOCTORT_OBJ
= lib
/talloctort.o
$(LIB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
388 RPCTORTURE_OBJ
= torture
/rpctorture.o \
389 rpcclient
/display.o \
390 rpcclient
/cmd_lsarpc.o \
391 rpcclient
/cmd_wkssvc.o \
392 rpcclient
/cmd_samr.o \
393 rpcclient
/cmd_srvsvc.o \
394 rpcclient
/cmd_netlogon.o \
395 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
396 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
)
398 DEBUG2HTML_OBJ
= utils
/debug2html.o ubiqx
/debugparse.o
400 SMBFILTER_OBJ
= utils
/smbfilter.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
401 $(UBIQX_OBJ
) $(LIB_OBJ
)
403 PROTO_OBJ
= $(SMBD_OBJ
) $(NMBD_OBJ
) $(SWAT_OBJ
) $(CLIENT_OBJ
) \
404 $(SMBWRAPPER_OBJ
) $(SMBTORTURE_OBJ
) $(RPCCLIENT_OBJ1
) \
405 $(LIBMSRPC_OBJ
) $(RPC_CLIENT_OBJ
) $(AUTH_OBJ
) $(NET_OBJ
)
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
)
410 PICOBJS
= $(SMBWRAPPER_OBJ
:.o
=.po
)
411 PICOBJS32
= $(SMBWRAPPER_OBJ
:.o
=.po32
)
412 LIBSMBCLIENT_PICOBJS
= $(LIBSMBCLIENT_OBJ
:.o
=.po
)
414 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
415 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o \
416 lib
/debug.o lib
/util_sid.o lib
/messages.o lib
/util_str.o \
417 lib
/wins_srv.o lib
/substitute.o lib
/select.o lib
/util.o \
418 nsswitch
/wb_client.o nsswitch
/wb_common.o \
419 lib
/system.o lib
/util_file.o \
420 lib
/genrand.o lib
/username.o lib
/util_getent.o lib
/charcnv.o lib
/time.o \
421 lib
/md4.o lib
/util_unistr.o lib
/signal.o lib
/talloc.o \
422 lib
/ms_fnmatch.o lib
/util_sock.o lib
/smbrun.o \
423 lib
/util_sec.o lib
/snprintf.o \
424 ubiqx
/ubi_sLinkList.o libsmb
/smbencrypt.o libsmb
/smbdes.o \
425 $(PARAM_OBJ
) $(TDB_OBJ
) $(PASSDB_OBJ
)
427 PAM_SMBPASS_PICOOBJ
= $(PAM_SMBPASS_OBJ_0
:.o
=.po
)
430 nsswitch
/winbindd.o \
431 nsswitch
/winbindd_user.o \
432 nsswitch
/winbindd_group.o \
433 nsswitch
/winbindd_idmap.o \
434 nsswitch
/winbindd_util.o \
435 nsswitch
/winbindd_cache.o \
436 nsswitch
/winbindd_pam.o \
437 nsswitch
/winbindd_sid.o \
438 nsswitch
/winbindd_misc.o \
439 nsswitch
/winbindd_cm.o \
440 nsswitch
/winbindd_rpc.o \
441 nsswitch
/winbindd_ads.o
444 $(WINBINDD_OBJ1
) $(NOPROTO_OBJ
) $(PASSDB_OBJ
) \
445 $(LIBNMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
446 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) \
447 $(GROUPDB_OBJ
) $(PROFILE_OBJ
) $(UNIGRP_OBJ
)
449 WBINFO_OBJ
= nsswitch
/wbinfo.o libsmb
/smbencrypt.o libsmb
/smbdes.o \
452 WINBIND_NSS_OBJ
= nsswitch
/winbind_nss.o nsswitch
/wb_common.o @WINBIND_NSS_EXTRA_OBJS@
454 WINBIND_NSS_PICOBJS
= $(WINBIND_NSS_OBJ
:.o
=.po
)
456 POPT_OBJS
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
457 popt
/popthelp.o popt
/poptparse.o
459 TDBBACKUP_OBJ
= tdb
/tdbbackup.o
$(TDBBASE_OBJ
)
461 ######################################################################
463 ######################################################################
464 all : SHOWFLAGS
include/proto.h
include/wrepld_proto.h
include/build_env.h
$(SPROGS
) $(PROGS
) $(WINBIND_PROGS
) $(WINBIND_SPROGS
) $(LPROGS
) $(SHLIBS
)
466 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
468 smbwrapper
: SHOWFLAGS bin
/smbsh bin
/smbwrapper.@SHLIBEXT@ @WRAP32@
470 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
472 smbtorture
: SHOWFLAGS bin
/smbtorture
474 masktest
: SHOWFLAGS bin
/masktest
476 msgtest
: SHOWFLAGS bin
/msgtest
478 locktest
: SHOWFLAGS bin
/locktest
480 smbcacls
: SHOWFLAGS bin
/smbcacls
482 locktest2
: SHOWFLAGS bin
/locktest2
484 rpctorture
: SHOWFLAGS bin
/rpctorture
486 debug2html
: SHOWFLAGS bin
/debug2html
488 smbfilter
: SHOWFLAGS bin
/smbfilter
490 talloctort
: SHOWFLAGS bin
/talloctort
492 nsswitch
: SHOWFLAGS
$(WINBIND_PROGS
) $(WINBIND_SPROGS
) $(LPROGS
)
494 wins
: SHOWFLAGS nsswitch
/libnss_wins.so
497 .SUFFIXES
: .c .o .po .po32 .lo
500 @echo
"Using FLAGS = $(FLAGS)"
501 @echo
" FLAGS32 = $(FLAGS32)"
502 @echo
" LIBS = $(LIBS)"
503 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
504 @echo
" LDFLAGS = $(LDFLAGS)"
506 MAKEDIR
= || exec false
; \
507 if
test -d
"$$dir"; then
:; else \
508 echo mkdir
"$$dir"; \
509 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
512 exec false
; fi || exec false
515 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
516 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
518 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
520 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
522 # These dependencies are only approximately correct: we want to make
523 # sure Samba's paths are updated if ./configure is re-run. Really it
524 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
525 # but since we also require "make install prefix=/opt/samba" *not* to
526 # rebuild it's a bit hard.
528 dynconfig.o
: dynconfig.c Makefile
530 @
$(CC
) $(FLAGS
) $(PATH_FLAGS
) -c
$< -o
$@
532 dynconfig.po
: dynconfig.c Makefile
533 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
534 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
535 @echo Compiling
$*.c with @PICFLAG@
536 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PATH_FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
537 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
538 @POBAD_CC@ @mv
$*.po.o
$@
541 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
542 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
543 @echo Compiling
$*.c with @PICFLAG@
544 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
545 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
546 @POBAD_CC@ @mv
$*.po.o
$@
550 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
551 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
552 @echo Compiling
$*.c with @PICFLAG@ and
-32
553 @
$(CC
) -32 -I.
-I
$(srcdir) $(FLAGS32
) $(PATH_FLAGS
) @PICFLAG@
-c
$< \
555 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
559 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
560 dir=bin
$(MAKEDIR
); fi
561 @
: >> $@ ||
: > $@
# what a fancy emoticon!
563 bin
/smbd
: $(SMBD_OBJ
) bin
/.dummy
565 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
567 bin
/nmbd
: $(NMBD_OBJ
) bin
/.dummy
569 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
571 bin
/wrepld
: $(WREPL_OBJ
) bin
/.dummy
573 @
$(CC
) $(FLAGS
) -o
$@
$(WREPL_OBJ
) $(LDFLAGS
) $(LIBS
)
575 bin
/swat
: $(SWAT_OBJ
) bin
/.dummy
577 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
579 bin
/rpcclient
: $(RPCCLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
581 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @BUILD_POPT@
583 bin
/samsync
: $(SAMSYNC_OBJ
) bin
/.dummy
585 @
$(CC
) $(FLAGS
) -o
$@
$(SAMSYNC_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
587 bin
/smbclient
: $(CLIENT_OBJ
) bin
/.dummy
589 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
)
591 bin
/net
: $(NET_OBJ
) @BUILD_POPT@ bin
/.dummy
593 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
595 bin
/smbspool
: $(CUPS_OBJ
) bin
/.dummy
597 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(LDFLAGS
) $(LIBS
)
599 bin
/smbmount
: $(MOUNT_OBJ
) bin
/.dummy
601 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
603 bin
/smbmnt
: $(MNT_OBJ
) bin
/.dummy
605 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(LDFLAGS
) $(LIBS
)
607 bin
/smbumount
: $(UMOUNT_OBJ
) bin
/.dummy
609 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
611 bin
/testparm
: $(TESTPARM_OBJ
) bin
/.dummy
613 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(LIBS
)
615 bin
/testprns
: $(TESTPRNS_OBJ
) bin
/.dummy
617 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPRNS_OBJ
) $(LDFLAGS
) $(LIBS
)
619 bin
/smbstatus
: $(STATUS_OBJ
) @BUILD_POPT@ bin
/.dummy
621 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
623 bin
/smbcontrol
: $(SMBCONTROL_OBJ
) bin
/.dummy
625 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCONTROL_OBJ
) $(LDFLAGS
) $(LIBS
)
627 bin
/smbtree
: $(SMBTREE_OBJ
) bin
/.dummy
629 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(LIBS
)
631 bin
/smbpasswd
: $(SMBPASSWD_OBJ
) bin
/.dummy
633 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
635 bin
/pdbedit
: $(PDBEDIT_OBJ
) bin
/.dummy
637 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
639 bin
/smbgroupedit
: $(SMBGROUPEDIT_OBJ
) bin
/.dummy
641 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGROUPEDIT_OBJ
) $(LDFLAGS
) $(LIBS
)
643 bin
/nmblookup
: $(NMBLOOKUP_OBJ
) bin
/.dummy
645 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(LIBS
)
647 bin
/make_printerdef
: $(MAKE_PRINTERDEF_OBJ
) bin
/.dummy
649 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_PRINTERDEF_OBJ
) $(LDFLAGS
) $(LIBS
)
651 bin
/smbtorture
: $(SMBTORTURE_OBJ
) bin
/.dummy
653 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
655 bin
/talloctort
: $(TALLOCTORT_OBJ
) bin
/.dummy
657 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) $(LIBS
)
659 bin
/masktest
: $(MASKTEST_OBJ
) bin
/.dummy
661 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
663 bin
/msgtest
: $(MSGTEST_OBJ
) bin
/.dummy
665 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
667 bin
/smbcacls
: $(SMBCACLS_OBJ
) bin
/.dummy
669 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
671 bin
/locktest
: $(LOCKTEST_OBJ
) bin
/.dummy
673 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
675 bin
/nsstest
: $(NSSTEST_OBJ
) bin
/.dummy
677 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
679 bin
/locktest2
: $(LOCKTEST2_OBJ
) bin
/.dummy
681 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(LIBS
)
683 bin
/rpctorture
: $(RPCTORTURE_OBJ
) bin
/.dummy
685 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
687 bin
/debug2html
: $(DEBUG2HTML_OBJ
) bin
/.dummy
689 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(LIBS
)
691 bin
/smbfilter
: $(SMBFILTER_OBJ
) bin
/.dummy
693 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
)
695 bin
/smbw_sample
: $(SMBW_OBJ
) utils
/smbw_sample.o bin
/.dummy
697 @
$(CC
) $(FLAGS
) -o
$@
$(SMBW_OBJ
) utils
/smbw_sample.o
$(LDFLAGS
) $(LIBS
)
699 bin
/smbwrapper.@SHLIBEXT@
: $(PICOBJS
)
700 @echo Linking shared library
$@
701 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PICOBJS
) $(LIBS
)
703 bin
/smbwrapper
.32.@SHLIBEXT@
: $(PICOBJS32
)
704 @echo Linking shared library
$@
705 @
$(SHLD
) -32 $(LDSHFLAGS
) -o
$@
$(PICOBJS32
) $(LIBS
)
707 bin
/libsmbclient.@SHLIBEXT@
: $(LIBSMBCLIENT_PICOBJS
)
708 echo Linking libsmbclient shared library
$@
709 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_PICOBJS
) $(LIBS
)
711 bin
/libsmbclient.a
: $(LIBSMBCLIENT_PICOBJS
)
712 @echo Linking libsmbclient non-shared library
$@
713 -$(AR
) -rc
$@
$(LIBSMBCLIENT_PICOBJS
)
715 libsmbclient
: bin
/libsmbclient.a @LIBSMBCLIENT_SHARED@
717 bin
/smbsh
: $(SMBSH_OBJ
) bin
/.dummy
719 @
$(CC
) $(FLAGS
) -o
$@
$(SMBSH_OBJ
) $(LDFLAGS
) $(LIBS
)
721 nsswitch
/libnss_wins.so
: $(NSS_OBJ
)
723 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(NSS_OBJ
) -lc
725 bin
/winbindd
: $(WINBINDD_OBJ
) bin
/.dummy
727 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(DYNEXP
) $(LIBS
)
729 nsswitch
/libnss_winbind.so
: $(WINBIND_NSS_PICOBJS
)
731 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@
733 nsswitch
/pam_winbind.so
: $(PAM_WINBIND_OBJ
) bin
/.dummy
735 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
)
737 bin
/wbinfo
: $(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) $(NOPROTO_OBJ
) \
738 $(UBIQX_OBJ
) @BUILD_POPT@ bin
/.dummy
740 @
$(LINK
) -o
$@
$(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) $(NOPROTO_OBJ
) \
741 $(UBIQX_OBJ
) $(LIBS
) @BUILD_POPT@
743 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_PICOOBJ
)
744 @echo
"Linking shared library $@"
745 $(SHLD
) $(LDSHFLAGS
) -symbolic
-o
$@
$(PAM_SMBPASS_PICOOBJ
) -lpam
$(DYNEXP
) $(LIBS
) -lc
747 bin
/libmsrpc.a
: $(LIBMSRPC_PICOBJ
)
748 -$(AR
) -rc
$@
$(LIBMSRPC_PICOBJ
)
750 bin
/spamsync
: rpcclient
/samsync.o bin
/libmsrpc.a
751 @
$(LINK
) -o
$@ rpcclient
/samsync.o bin
/libmsrpc.a \
754 bin
/tdbbackup
: $(TDBBACKUP_OBJ
) bin
/.dummy
756 @
$(CC
) $(FLAGS
) -o
$@
$(TDBBACKUP_OBJ
)
758 install: installbin installman installscripts installdat installswat
761 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(BASEDIR
) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
)
763 installservers
: all installdirs
764 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
766 installbin
: all installdirs
767 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
768 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
770 installscripts
: installdirs
771 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
773 installdat
: installdirs
774 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(LIBDIR
) $(srcdir)
776 installswat
: installdirs
777 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(SWATDIR
) $(srcdir)
780 -$(INSTALLCMD
) bin
/libsmbclient.so
${prefix}/lib
781 -$(INSTALLCMD
) -d
${prefix}/include
782 -$(INSTALLCMD
) include/libsmbclient.h
${prefix}/include
784 # revert to the previously installed version
786 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SPROGS
)
787 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(PROGS
) $(SCRIPTS
)
790 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(MANDIR
) $(srcdir) $(man_langs
) "@ROFF@"
795 @echo
"Samba will be installed into:"
796 @echo
" basedir: $(BASEDIR)"
797 @echo
" bindir: $(BINDIR)"
798 @echo
" sbindir: $(SBINDIR)"
799 @echo
" libdir: $(LIBDIR)"
800 @echo
" vardir: $(VARDIR)"
801 @echo
" mandir: $(MANDIR)"
804 uninstall: uninstallman uninstallbin uninstallscripts
807 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(MANDIR
) $(srcdir) $(man_langs
)
810 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
811 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
814 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
816 # Toplevel clean files
817 TOPFILES
=dynconfig.o dynconfig.po
819 # NB: According to the GNU standards, "make clean" should not delete
820 # things that normally come with the distribution, even if they could
821 # possibly be rebuilt. For Samba, that includes the header files.
823 -rm -f core
*.o
*.po
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.@SHLIBEXT@ \
824 $(TOPFILES
) $(PROGS
) $(SPROGS
) .proto.stamp .proto.
check
827 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
828 -h _WINBINDD_PROTO_H_ nsswitch
/winbindd_proto.h \
831 # We don't kill .proto.stamp, because we don't want to force
832 # rebuilding of everything.
834 @
rm -f
$(srcdir)/include/proto.h
$(srcdir)/include/build_env.h
835 @
rm -f
$(srcdir)/.proto.
check
836 @
rm -f
$(builddir
)/.proto.
check
837 @
rm -f
include/proto.h
include/build_env.h
839 # Intended new behaviour for proto.h, whenever source is being
842 # If proto.h does not exist, it is built.
844 # If any source files have changed since proto.h was last checked
845 # (.proto.check), then proto.h is checked. If there are no actual
846 # changes since last time, its mtime is not changed, but we do
847 # remember the time at which it was checked.
849 # Whenever we try to build a .o, we need to check the headers are up
850 # to date. However, rebuilding the prototypes does not (yet) imply
851 # rebuilding all object files. (To change this behaviour, make
852 # PROTO_OBJ depend on proto.h)
854 # Also to allow people to build on machines without Awk, we never try
855 # to use it unless a source file has changed. I guess if we wanted,
856 # we could have lack of Awk only cause a warning, not failure.
858 $(PROTO_OBJ
): .proto.stamp
860 # Whenever a source file changes, we regenerate the prototypes and see if they're
861 # different to the existing ones.
862 $(srcdir)/include/proto.h
: .proto.
check
865 @echo Checking
$(srcdir)/include/proto.h
866 @cd
$(srcdir) && $(AWK
) -f script
/mkproto.awk \
867 `echo $(PROTO_OBJ) | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort -u | egrep -v 'ubiqx/|wrapped'` \
868 > $(builddir
)/include/proto.h.new
&& \
869 touch
$(builddir
)/.proto.
check && \
870 if
test -f
include/proto.h
&& cmp
-s
$(builddir
)/include/proto.h.new
include/proto.h
; \
871 then
rm -f
$(builddir
)/include/proto.h.new
; \
872 echo No changes to
include/proto.h
; \
874 echo Installing new proto.h
; \
875 mv
$(builddir
)/include/proto.h.new
include/proto.h
; \
878 .proto.stamp
: .proto.
check
879 @
[ -f .proto.stamp
] || touch .proto.stamp
882 @echo rebuilding
include/build_env.h
883 @cd
$(srcdir) && $(SHELL
) script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) > $(builddir
)/include/build_env.h
885 include/wrepld_proto.h
:
886 @echo rebuilding
include/wrepld_proto.h
887 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
888 -h _WREPLD_PROTO_H_
$(builddir
)/include/wrepld_proto.h \
891 headers
: .proto.
check $(srcdir)/include/proto.h
include/build_env.h
include/wrepld_proto.h
893 proto
: headers winbindd_proto
896 etags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
899 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
902 -rm -f config.log
$(PROGS
) $(SPROGS
) bin
/.dummy
906 -rm -f
include/config.h Makefile
907 -rm -f config.status config.cache so_locations
910 # this target is really just for my use. It only works on a limited
911 # range of machines and is used to produce a list of potentially
912 # dead (ie. unused) functions in the code. (tridge)
914 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
915 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
916 comm
-13 nmused.txt nmfns.txt
919 # when configure.in is updated, reconfigure
920 $(srcdir)/configure
: $(srcdir)/configure.in
921 @echo
"WARNING: you need to rerun autoconf"
923 config.status
: $(srcdir)/configure
924 @echo
"WARNING: you need to run configure"
926 Makefile
: $(srcdir)/Makefile.in config.status
927 @echo
"WARNING: you need to run ./config.status"
929 test_prefix
=/tmp
/test-samba
930 # Run regression suite using the external "satyr" framework
932 @echo
"** Sorry, samba self-test without installation does not work "
933 @echo
"** yet. Please try specifying a scratch directory to"
934 @echo
"** ./configure --prefix DIR"
935 @echo
"** then run \"make install installcheck\""
938 # -rm -rf $(test_prefix)/lib
939 # mkdir $(test_prefix)/lib -p ./testdir
940 # PATH=$(builddir)/bin:$(PATH) \
941 # SATYR_SUITEDIR=../testsuite/build_farm/ prefix=$(test_prefix) \
942 # testdir=./testdir $(SHELL) satyr
944 # Run regression suite on the installed version.
947 # Perform installation tests (if any). The user must build and
948 # install the program before running the tests. You should not
949 # assume that `$(bindir)' is in the search path.
951 dangerous-installcheck
:
952 mkdir
-p
$(BASEDIR
)/lib
953 mkdir
-p
$(BASEDIR
)/var
954 PATH
=$(BINDIR
):$(SBINDIR
):$(PATH
) \
956 SATYR_SUITEDIR
=..
/testsuite
/satyr
/ prefix=$(BASEDIR
) \
957 LIBSMB_PROG
=$(SBINDIR
)/smbd \
958 testdir
=.
/testdir
$(SHELL
) satyr