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 ###########################################################################
9 exec_prefix=@
exec_prefix@
18 LDSHFLAGS
=@LDSHFLAGS@ @LDFLAGS@ @CFLAGS@
22 TERMLDFLAGS
=@TERMLDFLAGS@
25 LINK
=$(CC
) $(FLAGS
) $(LDFLAGS
)
34 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
35 # will search for a POSIX-compliant shell, and that might not be
36 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
38 # See the autoconf manual "Installation Directory Variables" for a
39 # discussion of thesubtle use of these variables.
43 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
46 VARDIR
= @localstatedir@
49 # The permissions to give the executables
52 # set these to where to find various files
53 # These can be overridden by command line switches (see smbd(8))
54 # or in smb.conf (see smb.conf(5))
55 LOGFILEBASE
= $(VARDIR
)
56 CONFIGFILE
= $(LIBDIR
)/smb.conf
57 LMHOSTSFILE
= $(LIBDIR
)/lmhosts
58 DRIVERFILE
= $(LIBDIR
)/printers.def
59 # This is where smbpasswd et al go
60 PRIVATEDIR
= @privatedir@
62 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
63 PRIVATE_DIR
= $(PRIVATEDIR
)
65 # This is where SWAT images and help files go
68 # the directory where lock files go
71 # the directorty where pid files go
73 # man pages language(s)
74 man_langs
= "@manlangs@"
80 FLAGS1
= $(CFLAGS
) @FLAGS1@
-Iinclude
-I
$(srcdir)/include -I
$(srcdir)/ubiqx
-I
$(srcdir)/smbwrapper
-I.
$(CPPFLAGS
) -I
$(srcdir)
84 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
85 FLAGS
= $(ISA
) $(FLAGS5
)
86 FLAGS32
= $(ISA32
) $(FLAGS5
)
88 PASSWD_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\"
89 PATH_FLAGS1
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DSBINDIR
=\"$(SBINDIR
)\"
90 PATH_FLAGS2
= $(PATH_FLAGS1
) -DBINDIR
=\"$(BINDIR
)\" -DDRIVERFILE
=\"$(DRIVERFILE
)\"
91 PATH_FLAGS3
= $(PATH_FLAGS2
) -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
92 PATH_FLAGS4
= $(PATH_FLAGS3
) -DSWATDIR
=\"$(SWATDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\" -DPIDDIR
=\"$(PIDDIR
)\"
93 PATH_FLAGS5
= $(PATH_FLAGS4
) -DLIBDIR
=\"$(LIBDIR
)\" -DLOGFILEBASE
=\"$(LOGFILEBASE
)\"
94 PATH_FLAGS
= $(PATH_FLAGS5
) $(PASSWD_FLAGS
)
96 WINBIND_PROGS
= @WINBIND_TARGETS@
97 WINBIND_SPROGS
= @WINBIND_STARGETS@
98 WINBIND_PAM_PROGS
= @WINBIND_PAM_TARGETS@
99 WINBIND_LPROGS
= @WINBIND_LTARGETS@
101 SPROGS
= bin
/smbd bin
/nmbd bin
/swat bin
/wrepld @WINBIND_STARGETS@
102 PROGS1
= bin
/smbclient bin
/net bin
/smbspool bin
/testparm bin
/testprns bin
/smbstatus bin
/smbcontrol bin
/smbtree bin
/tdbbackup @RUNPROG@ @WINBIND_TARGETS@
103 PROGS2
= bin
/smbpasswd bin
/rpcclient bin
/smbcacls @WRAPPROG@ @WRAP@ @WRAP32@ @PAM_MOD@
105 LPROGS
= $(WINBIND_PAM_PROGS
) $(WINBIND_LPROGS
)
107 PROGS
= $(PROGS1
) $(PROGS2
) $(MPROGS
) bin
/nmblookup bin
/pdbedit bin
/smbgroupedit
108 TORTURE_PROGS
= bin
/smbtorture bin
/msgtest bin
/masktest bin
/locktest \
109 bin
/locktest2 bin
/nsstest
110 SHLIBS
= @LIBSMBCLIENT@
112 SCRIPTS
= $(srcdir)/script
/smbtar
$(srcdir)/script
/addtosmbpass
$(srcdir)/script
/convert_smbpasswd \
113 $(srcdir)/script
/findsmb
115 QUOTAOBJS
=@QUOTAOBJS@
117 ######################################################################
119 ######################################################################
121 TDBBASE_OBJ
= tdb
/tdb.o tdb
/spinlock.o
122 TDB_OBJ
= $(TDBBASE_OBJ
) tdb
/tdbutil.o
124 LIB_OBJ
= lib
/charcnv.o lib
/debug.o lib
/fault.o \
125 lib
/getsmbpass.o lib
/interface.o lib
/md4.o \
126 lib
/interfaces.o lib
/pidfile.o lib
/replace.o \
127 lib
/signal.o lib
/system.o lib
/time.o \
128 lib
/ufc.o lib
/genrand.o lib
/username.o \
129 lib
/util_getent.o lib
/util_pw.o lib
/access.o lib
/smbrun.o \
130 lib
/bitmap.o lib
/crc32.o lib
/snprintf.o lib
/dprintf.o \
131 lib
/xfile.o lib
/wins_srv.o \
132 lib
/util_str.o lib
/util_sid.o \
133 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
134 lib
/util.o lib
/util_sock.o lib
/util_sec.o \
135 lib
/talloc.o lib
/hash.o lib
/substitute.o lib
/fsusage.o \
136 lib
/ms_fnmatch.o lib
/select.o lib
/error.o lib
/messages.o \
137 lib
/server_mutex.o lib
/tallocmsg.o lib
/dmallocmsg.o \
138 lib
/md5.o lib
/hmacmd5.o lib
/iconv.o lib
/smbpasswd.o \
139 nsswitch
/wb_client.o nsswitch
/wb_common.o \
140 lib
/pam_errors.o intl
/lang_tdb.o lib
/account_pol.o \
141 lib
/adt_tree.o
$(TDB_OBJ
)
143 READLINE_OBJ
= lib
/readline.o
145 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
146 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o ubiqx
/debugparse.o
148 PARAM_OBJ
= param
/loadparm.o param
/params.o dynconfig.o
150 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
151 libads
/krb5_setpw.o libads
/kerberos.o libads
/ldap_user.o \
152 libads
/ads_struct.o libads
/ads_status.o \
155 LIBADS_SERVER_OBJ
= libads
/util.o libads
/kerberos_verify.o
157 SECRETS_OBJ
= passdb
/secrets.o
159 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
160 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
161 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
162 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
163 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
164 libsmb
/namequery.o libsmb
/nmblib.o libsmb
/clistr.o \
165 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
166 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
167 libsmb
/clioplock.o libsmb
/errormap.o libsmb
/clirap2.o \
168 libsmb
/passchange.o libsmb
/unexpected.o libsmb
/doserr.o \
171 LIBMSRPC_OBJ
= libsmb
/cli_lsarpc.o libsmb
/cli_samr.o \
172 libsmb
/cli_netlogon.o libsmb
/cli_srvsvc.o libsmb
/cli_wkssvc.o \
173 libsmb
/cli_dfs.o libsmb
/cli_reg.o \
174 rpc_client
/cli_pipe.o libsmb
/cli_spoolss.o libsmb
/cli_spoolss_notify.o
176 LIBMSRPC_SERVER_OBJ
= libsmb
/trust_passwd.o
178 LIBMSRPC_PICOBJ
= $(LIBMSRPC_OBJ
:.o
=.po
)
180 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
183 RPC_SERVER_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o \
184 rpc_server
/srv_lsa_hnd.o rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o \
185 rpc_server
/srv_pipe_hnd.o rpc_server
/srv_reg.o rpc_server
/srv_reg_nt.o \
186 rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o rpc_server
/srv_samr_util.o \
187 rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o \
188 rpc_server
/srv_util.o rpc_server
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o \
189 rpc_server
/srv_pipe.o rpc_server
/srv_dfs.o rpc_server
/srv_dfs_nt.o \
190 rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
$(REGISTRY_OBJ
)
192 # this includes only the low level parse code, not stuff
193 # that requires knowledge of security contexts
194 RPC_PARSE_OBJ1
= rpc_parse
/parse_prs.o rpc_parse
/parse_sec.o \
195 rpc_parse
/parse_misc.o
197 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_net.o \
198 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
199 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
200 rpc_parse
/parse_wks.o \
201 rpc_parse
/parse_spoolss.o rpc_parse
/parse_dfs.o
204 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
206 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
208 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
210 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
211 passdb
/machine_sid.o passdb
/pdb_smbpasswd.o \
212 passdb
/pdb_tdb.o passdb
/pdb_ldap.o passdb
/pdb_plugin.o \
213 passdb
/pdb_nisplus.o passdb
/pdb_unix.o passdb
/util_sam_sid.o \
216 GROUPDB_OBJ
= groupdb
/mapping.o
218 # passdb/smbpass.o passdb/ldap.o passdb/nispass.o
220 PROFILE_OBJ
= profile
/profile.o
222 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
224 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o
226 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
228 UNIGRP_OBJ
= libsmb
/netlogon_unigrp.o
230 AUTH_OBJ
= auth
/auth.o auth
/auth_sam.o auth
/auth_server.o auth
/auth_domain.o \
231 auth
/auth_rhosts.o auth
/auth_unix.o auth
/auth_util.o auth
/auth_winbind.o \
232 auth
/auth_builtin.o auth
/auth_compat.o
$(PLAINTEXT_AUTH_OBJ
) $(UNIGRP_OBJ
)
234 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_map.o smbd
/mangle_hash2.o
236 SMBD_OBJ1
= smbd
/server.o smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
237 smbd
/utmp.o smbd
/session.o \
238 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o smbd
/fileio.o \
239 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
240 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
241 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
242 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
243 smbd
/blocking.o smbd
/sec_ctx.o \
244 smbd
/vfs.o smbd
/vfs-wrap.o smbd
/statcache.o \
245 smbd
/posix_acls.o lib
/sysacls.o \
246 smbd
/process.o smbd
/service.o smbd
/error.o \
247 printing
/printfsp.o lib
/util_seaccess.o smbd
/srvstr.o \
248 smbd
/build_options.o \
249 smbd
/change_trust_pw.o \
253 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o \
254 printing
/print_cups.o printing
/print_generic.o \
255 printing
/lpq_parse.o printing
/load.o
257 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o printing
/notify.o
259 MSDFS_OBJ
= msdfs
/msdfs.o
261 SMBD_OBJ
= $(SMBD_OBJ1
) $(MSDFS_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
262 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
263 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
264 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(QUOTAOBJS
) $(OPLOCK_OBJ
) \
265 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
266 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) \
267 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
)
270 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
271 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
272 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
273 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
274 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
275 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
276 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
277 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
278 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
279 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
280 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
281 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
283 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
284 $(PROFILE_OBJ
) $(LIB_OBJ
)
286 WREPL_OBJ1
= wrepld
/server.o wrepld
/process.o wrepld
/parser.o wrepld
/socket.o \
289 WREPL_OBJ
= $(WREPL_OBJ1
) $(PARAM_OBJ
) $(UBIQX_OBJ
) \
290 $(PROFILE_OBJ
) $(LIB_OBJ
)
292 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
293 web
/swat.o web
/neg_lang.o
295 SWAT_OBJ
= $(SWAT_OBJ1
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) $(LOCKING_OBJ
) \
296 $(PARAM_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) \
297 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
)
299 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o \
300 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
302 MAKE_PRINTERDEF_OBJ
= utils
/make_printerdef.o
$(PARAM_OBJ
) \
303 $(UBIQX_OBJ
) $(LIB_OBJ
)
305 STATUS_OBJ
= utils
/status.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
306 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
308 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
309 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) printing
/notify.o
311 SMBTREE_OBJ
= utils
/smbtree.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
312 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) $(LIBSMB_OBJ
)
314 TESTPARM_OBJ
= utils
/testparm.o \
315 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
317 TESTPRNS_OBJ
= utils
/testprns.o
$(PARAM_OBJ
) $(PRINTING_OBJ
) $(UBIQX_OBJ
) \
320 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PARAM_OBJ
) $(SECRETS_OBJ
) \
321 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
)\
322 $(UBIQX_OBJ
) $(LIB_OBJ
)
324 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
325 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(SECRETS_OBJ
)
327 SMBGROUPEDIT_OBJ
= utils
/smbgroupedit.o
$(GROUPDB_OBJ
) $(PARAM_OBJ
) \
328 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
330 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
331 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
332 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
333 rpcclient
/cmd_dfs.o rpcclient
/cmd_reg.o \
334 rpcclient
/display_sec.o
336 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
337 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
338 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
339 $(READLINE_OBJ
) $(GROUPDB_OBJ
) \
340 $(LIBADS_OBJ
) $(SECRETS_OBJ
)
342 SAMSYNC_OBJ1
= rpcclient
/samsync.o rpcclient
/display_sec.o
344 SAMSYNC_OBJ
= $(SAMSYNC_OBJ1
) \
345 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
346 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
347 $(GROUPDB_OBJ
) $(SECRETS_OBJ
)
349 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.po nsswitch
/wb_common.po lib
/snprintf.po
351 SMBW_OBJ1
= smbwrapper
/smbw.o \
352 smbwrapper
/smbw_dir.o smbwrapper
/smbw_stat.o \
353 smbwrapper
/realcalls.o smbwrapper
/shared.o \
354 smbwrapper
/smbw_cache.o
356 SMBW_OBJ
= $(SMBW_OBJ1
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
357 $(UBIQX_OBJ
) $(LIB_OBJ
)
359 SMBWRAPPER_OBJ1
= smbwrapper
/wrapped.o
361 SMBWRAPPER_OBJ
= $(SMBW_OBJ
) $(SMBWRAPPER_OBJ1
)
363 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
364 libsmb
/libsmb_cache.o
$(LIB_OBJ
) \
365 $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
367 CLIENT_OBJ1
= client
/client.o client
/clitar.o
369 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
372 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_help.o \
373 utils
/net_rap.o utils
/net_rpc.o \
374 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o
376 NET_OBJ
= $(NET_OBJ1
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
377 $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) \
378 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
379 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) \
380 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
)
382 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
384 MOUNT_OBJ
= client
/smbmount.o \
385 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
387 MNT_OBJ
= client
/smbmnt.o
389 UMOUNT_OBJ
= client
/smbumount.o \
390 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
392 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) \
393 $(LIBSMB_OBJ
) $(LIB_OBJ
)
395 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
396 torture
/denytest.o torture
/mangle_test.o
398 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) \
399 $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
401 MASKTEST_OBJ
= torture
/masktest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
402 $(UBIQX_OBJ
) $(LIB_OBJ
)
404 MSGTEST_OBJ
= torture
/msgtest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
405 $(UBIQX_OBJ
) $(LIB_OBJ
)
407 LOCKTEST_OBJ
= torture
/locktest.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
408 $(UBIQX_OBJ
) $(LIB_OBJ
)
410 NSSTEST_OBJ
= torture
/nsstest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
411 $(UBIQX_OBJ
) $(LIB_OBJ
)
413 LOCKTEST2_OBJ
= torture
/locktest2.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
414 $(UBIQX_OBJ
) $(LIB_OBJ
)
416 SMBCACLS_OBJ
= utils
/smbcacls.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
417 $(UBIQX_OBJ
) $(LIB_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) \
420 TALLOCTORT_OBJ
= lib
/talloctort.o
$(LIB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
422 RPCTORTURE_OBJ
= torture
/rpctorture.o \
423 rpcclient
/display.o \
424 rpcclient
/cmd_lsarpc.o \
425 rpcclient
/cmd_wkssvc.o \
426 rpcclient
/cmd_samr.o \
427 rpcclient
/cmd_srvsvc.o \
428 rpcclient
/cmd_netlogon.o \
429 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
430 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
)
432 DEBUG2HTML_OBJ
= utils
/debug2html.o ubiqx
/debugparse.o
434 SMBFILTER_OBJ
= utils
/smbfilter.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
435 $(UBIQX_OBJ
) $(LIB_OBJ
)
437 PROTO_OBJ
= $(SMBD_OBJ1
) $(NMBD_OBJ1
) $(SWAT_OBJ1
) $(LIB_OBJ
) $(LIBSMB_OBJ
) \
438 $(SMBWRAPPER_OBJ1
) $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
439 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) $(RPC_CLIENT_OBJ
) \
440 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) \
441 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
442 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
443 $(QUOTAOBJS
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(MSDFS_OBJ
) \
444 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
)
446 NSS_OBJ_0
= nsswitch
/wins.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIBSMB_OBJ
) \
447 $(LIB_OBJ
) $(NSSWINS_OBJ
)
449 NSS_OBJ
= $(NSS_OBJ_0
:.o
=.po
)
451 PICOBJS
= $(SMBWRAPPER_OBJ
:.o
=.po
)
452 PICOBJS32
= $(SMBWRAPPER_OBJ
:.o
=.po32
)
453 LIBSMBCLIENT_PICOBJS
= $(LIBSMBCLIENT_OBJ
:.o
=.po
)
455 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
456 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o \
457 lib
/debug.o lib
/util_sid.o lib
/messages.o lib
/util_str.o \
458 lib
/wins_srv.o lib
/substitute.o lib
/select.o lib
/util.o \
459 nsswitch
/wb_client.o nsswitch
/wb_common.o \
460 lib
/system.o lib
/util_file.o \
461 lib
/genrand.o lib
/username.o lib
/util_getent.o lib
/charcnv.o lib
/time.o \
462 lib
/md4.o lib
/util_unistr.o lib
/signal.o lib
/talloc.o \
463 lib
/ms_fnmatch.o lib
/util_sock.o lib
/smbrun.o \
464 lib
/util_sec.o lib
/snprintf.o \
465 ubiqx
/ubi_sLinkList.o libsmb
/smbencrypt.o libsmb
/smbdes.o \
466 $(PARAM_OBJ
) $(TDB_OBJ
) $(PASSDB_OBJ
)
468 PAM_SMBPASS_PICOOBJ
= $(PAM_SMBPASS_OBJ_0
:.o
=.po
)
471 nsswitch
/winbindd.o \
472 nsswitch
/winbindd_user.o \
473 nsswitch
/winbindd_group.o \
474 nsswitch
/winbindd_idmap.o \
475 nsswitch
/winbindd_util.o \
476 nsswitch
/winbindd_cache.o \
477 nsswitch
/winbindd_pam.o \
478 nsswitch
/winbindd_sid.o \
479 nsswitch
/winbindd_misc.o \
480 nsswitch
/winbindd_cm.o \
481 nsswitch
/winbindd_wins.o \
482 nsswitch
/winbindd_rpc.o \
483 nsswitch
/winbindd_ads.o \
484 nsswitch
/winbindd_dual.o
487 $(WINBINDD_OBJ1
) $(PASSDB_GET_SET_OBJ
) \
488 $(LIBNMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
489 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) \
490 $(PROFILE_OBJ
) $(UNIGRP_OBJ
) \
491 $(SECRETS_OBJ
) $(LIBADS_OBJ
)
493 WBINFO_OBJ
= nsswitch
/wbinfo.o libsmb
/smbencrypt.o libsmb
/smbdes.o
495 WINBIND_NSS_OBJ
= nsswitch
/winbind_nss.o nsswitch
/wb_common.o @WINBIND_NSS_EXTRA_OBJS@
497 WINBIND_NSS_PICOBJS
= $(WINBIND_NSS_OBJ
:.o
=.po
)
499 POPT_OBJS
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
500 popt
/popthelp.o popt
/poptparse.o
502 TDBBACKUP_OBJ
= tdb
/tdbbackup.o
$(TDBBASE_OBJ
)
504 ######################################################################
506 ######################################################################
507 all : SHOWFLAGS proto_exists
$(SPROGS
) $(PROGS
) $(WINBIND_PROGS
) $(WINBIND_SPROGS
) $(LPROGS
) $(SHLIBS
)
509 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
511 smbwrapper
: SHOWFLAGS @WRAPPROG@ @WRAP@ @WRAP32@
513 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
515 smbtorture
: SHOWFLAGS bin
/smbtorture
517 masktest
: SHOWFLAGS bin
/masktest
519 msgtest
: SHOWFLAGS bin
/msgtest
521 locktest
: SHOWFLAGS bin
/locktest
523 smbcacls
: SHOWFLAGS bin
/smbcacls
525 locktest2
: SHOWFLAGS bin
/locktest2
527 rpctorture
: SHOWFLAGS bin
/rpctorture
529 debug2html
: SHOWFLAGS bin
/debug2html
531 smbfilter
: SHOWFLAGS bin
/smbfilter
533 talloctort
: SHOWFLAGS bin
/talloctort
535 nsswitch
: SHOWFLAGS
$(WINBIND_PROGS
) $(WINBIND_SPROGS
) $(LPROGS
)
537 wins
: SHOWFLAGS nsswitch
/libnss_wins.so
539 everything
: all libsmbclient debug2html smbfilter talloctort bin
/samsync bin
/make_printerdef
542 .SUFFIXES
: .c .o .po .po32 .lo
545 @echo
"Using FLAGS = $(FLAGS)"
546 @echo
" FLAGS32 = $(FLAGS32)"
547 @echo
" LIBS = $(LIBS)"
548 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
549 @echo
" LDFLAGS = $(LDFLAGS)"
551 MAKEDIR
= || exec false
; \
552 if
test -d
"$$dir"; then
:; else \
553 echo mkdir
"$$dir"; \
554 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
557 exec false
; fi || exec false
560 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
561 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
563 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
565 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
567 # These dependencies are only approximately correct: we want to make
568 # sure Samba's paths are updated if ./configure is re-run. Really it
569 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
570 # but since we also require "make install prefix=/opt/samba" *not* to
571 # rebuild it's a bit hard.
573 dynconfig.o
: dynconfig.c Makefile
575 @
$(CC
) $(FLAGS
) $(PATH_FLAGS
) -c
$< -o
$@
577 dynconfig.po
: dynconfig.c Makefile
578 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
579 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
580 @echo Compiling
$*.c with @PICFLAG@
581 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PATH_FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
582 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
583 @POBAD_CC@ @mv
$*.po.o
$@
586 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
587 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
588 @echo Compiling
$*.c with @PICFLAG@
589 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
590 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
591 @POBAD_CC@ @mv
$*.po.o
$@
595 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
596 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
597 @echo Compiling
$*.c with @PICFLAG@ and
-32
598 @
$(CC
) -32 -I.
-I
$(srcdir) $(FLAGS32
) $(PATH_FLAGS
) @PICFLAG@
-c
$< \
600 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
604 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
605 dir=bin
$(MAKEDIR
); fi
606 @
: >> $@ ||
: > $@
# what a fancy emoticon!
608 bin
/smbd
: $(SMBD_OBJ
) bin
/.dummy
610 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
612 bin
/nmbd
: $(NMBD_OBJ
) bin
/.dummy
614 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
616 bin
/wrepld
: $(WREPL_OBJ
) bin
/.dummy
618 @
$(CC
) $(FLAGS
) -o
$@
$(WREPL_OBJ
) $(LDFLAGS
) $(LIBS
)
620 bin
/swat
: $(SWAT_OBJ
) bin
/.dummy
622 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
624 bin
/rpcclient
: $(RPCCLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
626 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @BUILD_POPT@
628 bin
/samsync
: $(SAMSYNC_OBJ
) bin
/.dummy
630 @
$(CC
) $(FLAGS
) -o
$@
$(SAMSYNC_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
632 bin
/smbclient
: $(CLIENT_OBJ
) bin
/.dummy
634 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
)
636 bin
/net
: $(NET_OBJ
) @BUILD_POPT@ bin
/.dummy
638 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
640 bin
/smbspool
: $(CUPS_OBJ
) bin
/.dummy
642 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(LDFLAGS
) $(LIBS
)
644 bin
/smbmount
: $(MOUNT_OBJ
) bin
/.dummy
646 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
648 bin
/smbmnt
: $(MNT_OBJ
) bin
/.dummy
650 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(LDFLAGS
) $(LIBS
)
652 bin
/smbumount
: $(UMOUNT_OBJ
) bin
/.dummy
654 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
656 bin
/testparm
: $(TESTPARM_OBJ
) bin
/.dummy
658 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
660 bin
/testprns
: $(TESTPRNS_OBJ
) bin
/.dummy
662 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPRNS_OBJ
) $(LDFLAGS
) $(LIBS
)
664 bin
/smbstatus
: $(STATUS_OBJ
) @BUILD_POPT@ bin
/.dummy
666 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
668 bin
/smbcontrol
: $(SMBCONTROL_OBJ
) bin
/.dummy
670 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCONTROL_OBJ
) $(LDFLAGS
) $(LIBS
)
672 bin
/smbtree
: $(SMBTREE_OBJ
) bin
/.dummy
674 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(LIBS
)
676 bin
/smbpasswd
: $(SMBPASSWD_OBJ
) bin
/.dummy
678 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
680 bin
/pdbedit
: $(PDBEDIT_OBJ
) bin
/.dummy
682 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @BUILD_POPT@
684 bin
/smbgroupedit
: $(SMBGROUPEDIT_OBJ
) bin
/.dummy
686 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGROUPEDIT_OBJ
) $(LDFLAGS
) $(LIBS
)
688 bin
/nmblookup
: $(NMBLOOKUP_OBJ
) bin
/.dummy
690 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(LIBS
)
692 bin
/make_printerdef
: $(MAKE_PRINTERDEF_OBJ
) bin
/.dummy
694 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_PRINTERDEF_OBJ
) $(LDFLAGS
) $(LIBS
)
696 bin
/smbtorture
: $(SMBTORTURE_OBJ
) bin
/.dummy
698 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
700 bin
/talloctort
: $(TALLOCTORT_OBJ
) bin
/.dummy
702 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) $(LIBS
)
704 bin
/masktest
: $(MASKTEST_OBJ
) bin
/.dummy
706 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
708 bin
/msgtest
: $(MSGTEST_OBJ
) bin
/.dummy
710 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
712 bin
/smbcacls
: $(SMBCACLS_OBJ
) bin
/.dummy
714 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
716 bin
/locktest
: $(LOCKTEST_OBJ
) bin
/.dummy
718 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
720 bin
/nsstest
: $(NSSTEST_OBJ
) bin
/.dummy
722 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
724 bin
/locktest2
: $(LOCKTEST2_OBJ
) bin
/.dummy
726 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(LIBS
)
728 bin
/rpctorture
: $(RPCTORTURE_OBJ
) bin
/.dummy
730 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
732 bin
/debug2html
: $(DEBUG2HTML_OBJ
) bin
/.dummy
734 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(LIBS
)
736 bin
/smbfilter
: $(SMBFILTER_OBJ
) bin
/.dummy
738 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
)
740 bin
/smbw_sample
: $(SMBW_OBJ
) utils
/smbw_sample.o bin
/.dummy
742 @
$(CC
) $(FLAGS
) -o
$@
$(SMBW_OBJ
) utils
/smbw_sample.o
$(LDFLAGS
) $(LIBS
)
744 bin
/smbsh
: $(SMBSH_OBJ
) bin
/.dummy
746 @
$(CC
) $(FLAGS
) -o
$@
$(SMBSH_OBJ
) $(LDFLAGS
) $(LIBS
)
748 bin
/smbwrapper.@SHLIBEXT@
: $(PICOBJS
) bin
/.dummy
749 @echo Linking shared library
$@
750 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PICOBJS
) $(LIBS
) \
751 @SONAMEFLAG@
`basename $@`
753 bin
/smbwrapper
.32.@SHLIBEXT@
: $(PICOBJS32
)
754 @echo Linking shared library
$@
755 @
$(SHLD
) -32 $(LDSHFLAGS
) -o
$@
$(PICOBJS32
) $(LIBS
) \
756 @SONAMEFLAG@
`basename $@`
758 bin
/libsmbclient.@SHLIBEXT@
: $(LIBSMBCLIENT_PICOBJS
)
759 echo Linking libsmbclient shared library
$@
760 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_PICOBJS
) $(LIBS
) \
761 @SONAMEFLAG@
`basename $@`.
$(LIBSMBCLIENT_MAJOR
)
763 bin
/libsmbclient.a
: $(LIBSMBCLIENT_PICOBJS
)
764 @echo Linking libsmbclient non-shared library
$@
765 -$(AR
) -rc
$@
$(LIBSMBCLIENT_PICOBJS
)
767 libsmbclient
: bin
/libsmbclient.a bin
/libsmbclient.@SHLIBEXT@
770 nsswitch
/libnss_wins.so
: $(NSS_OBJ
)
772 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(NSS_OBJ
) -lc \
773 @SONAMEFLAG@
`basename $@`
775 bin
/winbindd
: $(WINBINDD_OBJ
) bin
/.dummy
777 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(DYNEXP
) $(LIBS
)
779 nsswitch
/libns_winbind.so
: $(WINBIND_NSS_PICOBJS
)
781 @
$(SHLD
) @LDSHFLAGS@
-o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@ \
782 @SONAMEFLAG@
`basename $@`
784 nsswitch
/libnss_winbind.so
: $(WINBIND_NSS_PICOBJS
)
786 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@ \
787 @SONAMEFLAG@
`basename $@`
789 nsswitch
/pam_winbind.so
: $(PAM_WINBIND_OBJ
) bin
/.dummy
791 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) \
792 @SONAMEFLAG@
`basename $@`
794 bin
/wbinfo
: $(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
795 $(UBIQX_OBJ
) $(SECRETS_OBJ
) @BUILD_POPT@ bin
/.dummy
797 @
$(LINK
) -o
$@
$(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
798 $(UBIQX_OBJ
) $(SECRETS_OBJ
) $(LIBS
) @BUILD_POPT@
800 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_PICOOBJ
)
801 @echo
"Linking shared library $@"
802 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_PICOOBJ
) -lpam
$(DYNEXP
) $(LIBS
) -lc
804 bin
/libmsrpc.a
: $(LIBMSRPC_PICOBJ
)
805 -$(AR
) -rc
$@
$(LIBMSRPC_PICOBJ
)
807 bin
/spamsync
: rpcclient
/samsync.o bin
/libmsrpc.a
808 @
$(LINK
) -o
$@ rpcclient
/samsync.o bin
/libmsrpc.a \
811 bin
/tdbbackup
: $(TDBBACKUP_OBJ
) bin
/.dummy
813 @
$(CC
) $(FLAGS
) -o
$@
$(TDBBACKUP_OBJ
)
815 install: installbin installman installscripts installdat installswat
818 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(BASEDIR
) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
)
820 installservers
: all installdirs
821 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
823 installbin
: all installdirs
824 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
825 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
827 installscripts
: installdirs
828 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
830 installdat
: installdirs
831 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(LIBDIR
) $(srcdir)
833 installswat
: installdirs
834 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(SWATDIR
) $(srcdir)
837 -$(INSTALLCMD
) bin
/libsmbclient.so
${prefix}/lib
838 -$(INSTALLCMD
) -d
${prefix}/include
839 -$(INSTALLCMD
) include/libsmbclient.h
${prefix}/include
841 # revert to the previously installed version
843 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SPROGS
)
844 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(PROGS
) $(SCRIPTS
)
847 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(MANDIR
) $(srcdir) $(man_langs
) "@ROFF@"
852 @echo
"Samba will be installed into:"
853 @echo
" basedir: $(BASEDIR)"
854 @echo
" bindir: $(BINDIR)"
855 @echo
" sbindir: $(SBINDIR)"
856 @echo
" libdir: $(LIBDIR)"
857 @echo
" vardir: $(VARDIR)"
858 @echo
" mandir: $(MANDIR)"
861 uninstall: uninstallman uninstallbin uninstallscripts
864 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(MANDIR
) $(srcdir) $(man_langs
)
867 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
868 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
871 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
873 # Toplevel clean files
874 TOPFILES
=dynconfig.o dynconfig.po
877 -rm -f core
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.@SHLIBEXT@ \
878 $(TOPFILES
) $(PROGS
) $(SPROGS
) .headers.stamp
880 # Making this target will just make sure that the prototype files
881 # exist, not necessarily that they are up to date. Since they're
882 # removed by "make clean" this will always be run when you do anything
884 proto_exists
: include/proto.h
include/wrepld_proto.h
include/build_env.h \
885 nsswitch
/winbindd_proto.h web
/swat_proto.h \
886 client
/client_proto.h utils
/net_proto.h
889 @echo Removing prototype headers
890 @
/bin
/rm -f
$(srcdir)/include/proto.h
$(srcdir)/include/build_env.h
891 @
/bin
/rm -f
$(srcdir)/include/wrepld_proto.h
$(srcdir)/nsswitch
/winbindd_proto.h
892 @
/bin
/rm -f
$(srcdir)/web
/swat_proto.h
893 @
/bin
/rm -f
$(srcdir)/client
/client_proto.h
$(srcdir)/utils
/net_proto.h
895 @
/bin
/rm -f
include/proto.h
include/build_env.h
include/wrepld_proto.h \
896 nsswitch
/winbindd_proto.h web
/swat_proto.h \
897 client
/client_proto.h utils
/net_proto.h
900 @echo Building
include/proto.h
901 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
902 -h _PROTO_H_
$(builddir
)/include/proto.h \
906 @echo Building
include/build_env.h
907 @cd
$(srcdir) && $(SHELL
) script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) > $(builddir
)/include/build_env.h
909 include/wrepld_proto.h
:
910 @echo Building
include/wrepld_proto.h
911 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
912 -h _WREPLD_PROTO_H_
$(builddir
)/include/wrepld_proto.h \
915 nsswitch
/winbindd_proto.h
:
916 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
917 -h _WINBINDD_PROTO_H_ nsswitch
/winbindd_proto.h \
921 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
922 -h _SWAT_PROTO_H_ web
/swat_proto.h \
925 client
/client_proto.h
:
926 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
927 -h _CLIENT_PROTO_H_ client
/client_proto.h \
931 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
932 -h _CLIENT_PROTO_H_ utils
/net_proto.h \
935 # "make headers" or "make proto" calls a subshell because we need to
936 # make sure these commands are executed in sequence even for a
939 $(MAKE
) delheaders
include/proto.h
include/build_env.h \
940 include/wrepld_proto.h nsswitch
/winbindd_proto.h \
941 web
/swat_proto.h client
/client_proto.h \
946 .PHONY
: headers proto
949 etags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
952 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
955 -rm -f config.log
$(PROGS
) $(SPROGS
) bin
/.dummy
959 -rm -f
include/config.h Makefile
960 -rm -f config.status config.cache so_locations
963 # this target is really just for my use. It only works on a limited
964 # range of machines and is used to produce a list of potentially
965 # dead (ie. unused) functions in the code. (tridge)
967 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
968 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
969 comm
-13 nmused.txt nmfns.txt
972 # when configure.in is updated, reconfigure
973 $(srcdir)/configure
: $(srcdir)/configure.in
974 @echo
"WARNING: you need to rerun autoconf"
976 config.status
: $(srcdir)/configure
977 @echo
"WARNING: you need to run configure"
979 Makefile
: $(srcdir)/Makefile.in config.status
980 @echo
"WARNING: you need to run ./config.status"
982 test_prefix
=/tmp
/test-samba
983 # Run regression suite using the external "satyr" framework
985 @echo
"** Sorry, samba self-test without installation does not work "
986 @echo
"** yet. Please try specifying a scratch directory to"
987 @echo
"** ./configure --prefix DIR"
988 @echo
"** then run \"make install installcheck\""
991 # -rm -rf $(test_prefix)/lib
992 # mkdir $(test_prefix)/lib -p ./testdir
993 # PATH=$(builddir)/bin:$(PATH) \
994 # SATYR_SUITEDIR=../testsuite/build_farm/ prefix=$(test_prefix) \
995 # testdir=./testdir $(SHELL) satyr
997 # Run regression suite on the installed version.
1000 # Perform installation tests (if any). The user must build and
1001 # install the program before running the tests. You should not
1002 # assume that `$(bindir)' is in the search path.
1004 dangerous-installcheck
:
1005 mkdir
-p
$(BASEDIR
)/lib
1006 mkdir
-p
$(BASEDIR
)/var
1007 PATH
=$(BINDIR
):$(SBINDIR
):$(PATH
) \
1008 SATYR_DISCOURAGE
=1 \
1009 SATYR_SUITEDIR
=..
/testsuite
/satyr
/ prefix=$(BASEDIR
) \
1010 LIBSMB_PROG
=$(SBINDIR
)/smbd \
1011 testdir
=.
/testdir
$(SHELL
) satyr