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@
23 TERMLDFLAGS
=@TERMLDFLAGS@
28 LINK
=$(CC
) $(FLAGS
) $(LDFLAGS
)
37 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
38 # will search for a POSIX-compliant shell, and that might not be
39 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
41 # See the autoconf manual "Installation Directory Variables" for a
42 # discussion of thesubtle use of these variables.
46 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
49 VARDIR
= @localstatedir@
52 # The permissions to give the executables
55 # set these to where to find various files
56 # These can be overridden by command line switches (see smbd(8))
57 # or in smb.conf (see smb.conf(5))
58 LOGFILEBASE
= @logfilebase@
59 CONFIGFILE
= $(LIBDIR
)/smb.conf
60 LMHOSTSFILE
= $(LIBDIR
)/lmhosts
61 DRIVERFILE
= $(LIBDIR
)/printers.def
62 # This is where smbpasswd et al go
63 PRIVATEDIR
= @privatedir@
65 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
66 PRIVATE_DIR
= $(PRIVATEDIR
)
68 # This is where SWAT images and help files go
71 # the directory where lock files go
74 # the directory where pid files go
76 # man pages language(s)
77 man_langs
= "@manlangs@"
83 FLAGS1
= $(CFLAGS
) @FLAGS1@
-Iinclude
-I
$(srcdir)/include -I
$(srcdir)/ubiqx
-I
$(srcdir)/smbwrapper
-I.
$(CPPFLAGS
) -I
$(srcdir)
87 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
88 FLAGS
= $(ISA
) $(FLAGS5
)
89 FLAGS32
= $(ISA32
) $(FLAGS5
)
91 PASSWD_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\"
92 PATH_FLAGS1
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DSBINDIR
=\"$(SBINDIR
)\"
93 PATH_FLAGS2
= $(PATH_FLAGS1
) -DBINDIR
=\"$(BINDIR
)\" -DDRIVERFILE
=\"$(DRIVERFILE
)\"
94 PATH_FLAGS3
= $(PATH_FLAGS2
) -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
95 PATH_FLAGS4
= $(PATH_FLAGS3
) -DSWATDIR
=\"$(SWATDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\" -DPIDDIR
=\"$(PIDDIR
)\"
96 PATH_FLAGS5
= $(PATH_FLAGS4
) -DLIBDIR
=\"$(LIBDIR
)\" -DLOGFILEBASE
=\"$(LOGFILEBASE
)\"
97 PATH_FLAGS
= $(PATH_FLAGS5
) $(PASSWD_FLAGS
)
99 WINBIND_PROGS
= @WINBIND_TARGETS@
100 WINBIND_SPROGS
= @WINBIND_STARGETS@
101 WINBIND_PAM_PROGS
= @WINBIND_PAM_TARGETS@
102 WINBIND_LPROGS
= @WINBIND_LTARGETS@
104 SPROGS
= bin
/smbd bin
/nmbd bin
/swat bin
/wrepld @WINBIND_STARGETS@
105 PROGS1
= bin
/smbclient bin
/net bin
/smbspool bin
/testparm bin
/testprns bin
/smbstatus bin
/smbcontrol bin
/smbtree bin
/tdbbackup @RUNPROG@ @WINBIND_TARGETS@
106 PROGS2
= bin
/smbpasswd bin
/rpcclient bin
/smbcacls @WRAPPROG@ @WRAP@ @WRAP32@ @PAM_MOD@
108 LPROGS
= $(WINBIND_PAM_PROGS
) $(WINBIND_LPROGS
)
110 PROGS
= $(PROGS1
) $(PROGS2
) $(MPROGS
) bin
/nmblookup bin
/pdbedit bin
/smbgroupedit
111 TORTURE_PROGS
= bin
/smbtorture bin
/msgtest bin
/masktest bin
/locktest \
112 bin
/locktest2 bin
/nsstest bin
/vfstest
113 SHLIBS
= @LIBSMBCLIENT@
115 SCRIPTS
= $(srcdir)/script
/smbtar
$(srcdir)/script
/addtosmbpass
$(srcdir)/script
/convert_smbpasswd \
116 $(builddir
)/script
/findsmb
118 QUOTAOBJS
=@QUOTAOBJS@
120 ######################################################################
122 ######################################################################
124 TDBBASE_OBJ
= tdb
/tdb.o tdb
/spinlock.o
125 TDB_OBJ
= $(TDBBASE_OBJ
) tdb
/tdbutil.o
127 LIB_OBJ
= lib
/charcnv.o lib
/debug.o lib
/fault.o \
128 lib
/getsmbpass.o lib
/interface.o lib
/md4.o \
129 lib
/interfaces.o lib
/pidfile.o lib
/replace.o \
130 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/time.o \
131 lib
/ufc.o lib
/genrand.o lib
/username.o \
132 lib
/util_getent.o lib
/util_pw.o lib
/access.o lib
/smbrun.o \
133 lib
/bitmap.o lib
/crc32.o lib
/snprintf.o lib
/dprintf.o \
134 lib
/xfile.o lib
/wins_srv.o \
135 lib
/util_str.o lib
/util_sid.o lib
/util_uuid.o \
136 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
137 lib
/util.o lib
/util_sock.o lib
/util_sec.o \
138 lib
/talloc.o lib
/hash.o lib
/substitute.o lib
/fsusage.o \
139 lib
/ms_fnmatch.o lib
/select.o lib
/error.o lib
/messages.o \
140 lib
/tallocmsg.o lib
/dmallocmsg.o \
141 lib
/md5.o lib
/hmacmd5.o lib
/iconv.o lib
/smbpasswd.o \
142 nsswitch
/wb_client.o nsswitch
/wb_common.o \
143 lib
/pam_errors.o intl
/lang_tdb.o lib
/account_pol.o \
144 lib
/adt_tree.o lib
/popt_common.o lib
/gencache.o
$(TDB_OBJ
)
146 LIB_SMBD_OBJ
= lib
/system_smbd.o lib
/util_smbd.o
148 READLINE_OBJ
= lib
/readline.o
150 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
151 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o ubiqx
/debugparse.o
153 PARAM_OBJ
= param
/loadparm.o param
/params.o dynconfig.o
155 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
156 libads
/krb5_setpw.o libads
/kerberos.o libads
/ldap_user.o \
157 libads
/ads_struct.o libads
/ads_status.o \
158 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
161 LIBADS_SERVER_OBJ
= libads
/util.o libads
/kerberos_verify.o
163 SECRETS_OBJ
= passdb
/secrets.o
165 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
166 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
167 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
168 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
169 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
170 libsmb
/namequery.o libsmb
/nmblib.o libsmb
/clistr.o \
171 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
172 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
173 libsmb
/clioplock.o libsmb
/errormap.o libsmb
/clirap2.o \
174 libsmb
/passchange.o libsmb
/unexpected.o libsmb
/doserr.o \
175 libsmb
/namecache.o
$(RPC_PARSE_OBJ1
)
177 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
178 rpc_client
/cli_netlogon.o rpc_client
/cli_srvsvc.o \
179 rpc_client
/cli_wkssvc.o rpc_client
/cli_dfs.o \
180 rpc_client
/cli_reg.o rpc_client
/cli_pipe.o \
181 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o \
184 LIBMSRPC_SERVER_OBJ
= libsmb
/trust_passwd.o
186 LIBMSRPC_PICOBJ
= $(LIBMSRPC_OBJ
:.o
=.po
)
188 REGOBJS_OBJ
= registry
/reg_objects.o
189 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
192 RPC_SERVER_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o \
193 rpc_server
/srv_lsa_hnd.o rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o \
194 rpc_server
/srv_pipe_hnd.o rpc_server
/srv_reg.o rpc_server
/srv_reg_nt.o \
195 rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o rpc_server
/srv_samr_util.o \
196 rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o \
197 rpc_server
/srv_util.o rpc_server
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o \
198 rpc_server
/srv_pipe.o rpc_server
/srv_dfs.o rpc_server
/srv_dfs_nt.o \
199 rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
201 # this includes only the low level parse code, not stuff
202 # that requires knowledge of security contexts
203 RPC_PARSE_OBJ1
= rpc_parse
/parse_prs.o rpc_parse
/parse_sec.o \
204 rpc_parse
/parse_misc.o
206 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_net.o \
207 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
208 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
209 rpc_parse
/parse_wks.o rpc_parse
/parse_ds.o \
210 rpc_parse
/parse_spoolss.o rpc_parse
/parse_dfs.o \
214 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
216 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
218 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
220 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
221 passdb
/machine_sid.o passdb
/pdb_smbpasswd.o \
222 passdb
/pdb_tdb.o passdb
/pdb_ldap.o passdb
/pdb_plugin.o \
223 passdb
/pdb_unix.o passdb
/util_sam_sid.o \
224 passdb
/pdb_compat.o passdb
/pdb_nisplus.o
226 SAM_STATIC_MODULES
= sam
/sam_plugin.o sam
/sam_skel.o sam
/sam_ads.o
228 SAM_OBJ
= sam
/account.o sam
/get_set_account.o sam
/get_set_group.o \
229 sam
/get_set_domain.o sam
/interface.o
$(SAM_STATIC_MODULES
)
231 SAMTEST_OBJ
= torture
/samtest.o torture
/cmd_sam.o
$(SAM_OBJ
) $(LIB_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(READLINE_OBJ
) lib
/util_seaccess.o
$(LIBADS_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(GROUPDB_OBJ
)
233 GROUPDB_OBJ
= groupdb
/mapping.o
235 # passdb/smbpass.o passdb/ldap.o passdb/nispass.o
237 PROFILE_OBJ
= profile
/profile.o
239 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
241 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o
243 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
245 UNIGRP_OBJ
= libsmb
/netlogon_unigrp.o
247 AUTH_OBJ
= auth
/auth.o auth
/auth_sam.o auth
/auth_server.o auth
/auth_domain.o \
248 auth
/auth_rhosts.o auth
/auth_unix.o auth
/auth_util.o auth
/auth_winbind.o \
249 auth
/auth_builtin.o auth
/auth_compat.o \
250 $(PLAINTEXT_AUTH_OBJ
) $(UNIGRP_OBJ
)
252 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_map.o smbd
/mangle_hash2.o
254 SMBD_OBJ_MAIN
= smbd
/server.o
256 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
257 smbd
/utmp.o smbd
/session.o \
258 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o smbd
/fileio.o \
259 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
260 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
261 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
262 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
263 smbd
/blocking.o smbd
/sec_ctx.o \
264 smbd
/vfs.o smbd
/vfs-wrap.o smbd
/statcache.o \
265 smbd
/posix_acls.o lib
/sysacls.o lib
/server_mutex.o \
266 smbd
/process.o smbd
/service.o smbd
/error.o \
267 printing
/printfsp.o lib
/util_seaccess.o smbd
/srvstr.o \
268 smbd
/build_options.o \
269 smbd
/change_trust_pw.o \
272 SMBD_OBJ_BASE
= $(SMBD_OBJ_SRV
) $(MSDFS_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
273 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
274 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
275 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(QUOTAOBJS
) $(OPLOCK_OBJ
) \
276 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
277 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) \
278 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
279 $(LIB_SMBD_OBJ
) $(REGISTRY_OBJ
)
282 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o \
283 printing
/print_cups.o printing
/print_generic.o \
284 printing
/lpq_parse.o printing
/load.o
286 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o printing
/notify.o
288 MSDFS_OBJ
= msdfs
/msdfs.o
290 SMBD_OBJ
= $(SMBD_OBJ_MAIN
) $(SMBD_OBJ_BASE
)
292 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
293 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
294 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
295 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
296 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
297 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
298 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
299 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
300 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
301 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
302 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
303 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
305 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
306 $(PROFILE_OBJ
) $(LIB_OBJ
) $(SECRETS_OBJ
)
308 WREPL_OBJ1
= wrepld
/server.o wrepld
/process.o wrepld
/parser.o wrepld
/socket.o \
311 WREPL_OBJ
= $(WREPL_OBJ1
) $(PARAM_OBJ
) $(UBIQX_OBJ
) \
312 $(PROFILE_OBJ
) $(LIB_OBJ
)
314 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
315 web
/swat.o web
/neg_lang.o
317 SWAT_OBJ
= $(SWAT_OBJ1
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) $(LOCKING_OBJ
) \
318 $(PARAM_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) \
319 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
)
321 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o \
322 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
324 STATUS_OBJ
= utils
/status.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
325 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
327 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
328 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) printing
/notify.o
330 SMBTREE_OBJ
= utils
/smbtree.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
331 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) $(LIBSMB_OBJ
)
333 TESTPARM_OBJ
= utils
/testparm.o \
334 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
336 TESTPRNS_OBJ
= utils
/testprns.o
$(PARAM_OBJ
) $(PRINTING_OBJ
) $(UBIQX_OBJ
) \
339 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PARAM_OBJ
) $(SECRETS_OBJ
) \
340 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
)\
341 $(UBIQX_OBJ
) $(LIB_OBJ
)
343 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
344 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(SECRETS_OBJ
)
346 SMBGROUPEDIT_OBJ
= utils
/smbgroupedit.o
$(GROUPDB_OBJ
) $(PARAM_OBJ
) \
347 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
349 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
350 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
351 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
352 rpcclient
/cmd_dfs.o rpcclient
/cmd_reg.o \
353 rpcclient
/display_sec.o rpcclient
/cmd_ds.o
355 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
356 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
357 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
358 $(READLINE_OBJ
) $(GROUPDB_OBJ
) \
359 $(LIBADS_OBJ
) $(SECRETS_OBJ
)
361 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.po nsswitch
/wb_common.po lib
/snprintf.po
363 SMBW_OBJ1
= smbwrapper
/smbw.o \
364 smbwrapper
/smbw_dir.o smbwrapper
/smbw_stat.o \
365 smbwrapper
/realcalls.o smbwrapper
/shared.o \
366 smbwrapper
/smbw_cache.o
368 SMBW_OBJ
= $(SMBW_OBJ1
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
369 $(UBIQX_OBJ
) $(LIB_OBJ
)
371 SMBWRAPPER_OBJ1
= smbwrapper
/wrapped.o
373 SMBWRAPPER_OBJ
= $(SMBW_OBJ
) $(SMBWRAPPER_OBJ1
)
375 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o libsmb
/libsmb_compat.o \
376 libsmb
/libsmb_cache.o
$(LIB_OBJ
) \
377 $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
379 CLIENT_OBJ1
= client
/client.o client
/clitar.o
381 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
384 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_ads_cldap.o utils
/net_help.o \
385 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
386 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
389 NET_OBJ
= $(NET_OBJ1
) $(SECRETS_OBJ
) $(LIBSMB_OBJ
) \
390 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
391 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
392 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) \
393 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
)
395 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
397 MOUNT_OBJ
= client
/smbmount.o \
398 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
400 MNT_OBJ
= client
/smbmnt.o
402 UMOUNT_OBJ
= client
/smbumount.o \
403 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
405 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) \
406 $(LIBSMB_OBJ
) $(LIB_OBJ
)
408 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
409 torture
/denytest.o torture
/mangle_test.o
411 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) \
412 $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
414 MASKTEST_OBJ
= torture
/masktest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
415 $(UBIQX_OBJ
) $(LIB_OBJ
)
417 MSGTEST_OBJ
= torture
/msgtest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
418 $(UBIQX_OBJ
) $(LIB_OBJ
)
420 LOCKTEST_OBJ
= torture
/locktest.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
421 $(UBIQX_OBJ
) $(LIB_OBJ
)
423 NSSTEST_OBJ
= torture
/nsstest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
424 $(UBIQX_OBJ
) $(LIB_OBJ
)
426 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
428 LOCKTEST2_OBJ
= torture
/locktest2.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
429 $(UBIQX_OBJ
) $(LIB_OBJ
)
431 SMBCACLS_OBJ
= utils
/smbcacls.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
432 $(UBIQX_OBJ
) $(LIB_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
) \
435 TALLOCTORT_OBJ
= lib
/talloctort.o
$(LIB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
437 RPCTORTURE_OBJ
= torture
/rpctorture.o \
438 rpcclient
/display.o \
439 rpcclient
/cmd_lsarpc.o \
440 rpcclient
/cmd_wkssvc.o \
441 rpcclient
/cmd_samr.o \
442 rpcclient
/cmd_srvsvc.o \
443 rpcclient
/cmd_netlogon.o \
444 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
445 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_GET_SET_OBJ
)
447 DEBUG2HTML_OBJ
= utils
/debug2html.o ubiqx
/debugparse.o
449 SMBFILTER_OBJ
= utils
/smbfilter.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
450 $(UBIQX_OBJ
) $(LIB_OBJ
)
452 PROTO_OBJ
= $(SMBD_OBJ_MAIN
) \
453 $(SMBD_OBJ_SRV
) $(NMBD_OBJ1
) $(SWAT_OBJ1
) $(LIB_OBJ
) $(LIBSMB_OBJ
) \
454 $(SMBW_OBJ1
) $(SMBWRAPPER_OBJ1
) $(SMBTORTURE_OBJ1
) $(RPCCLIENT_OBJ1
) \
455 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) $(RPC_CLIENT_OBJ
) \
456 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) \
457 $(AUTH_OBJ
) $(PARAM_OBJ
) $(LOCKING_OBJ
) $(SECRETS_OBJ
) \
458 $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
) \
459 $(QUOTAOBJS
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(MSDFS_OBJ
) \
460 $(READLINE_OBJ
) $(PROFILE_OBJ
) $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
461 $(LIB_SMBD_OBJ
) $(SAM_OBJ
) $(REGISTRY_OBJ
)
463 NSS_OBJ_0
= nsswitch
/wins.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIBSMB_OBJ
) \
464 $(LIB_OBJ
) $(NSSWINS_OBJ
)
466 NSS_OBJ
= $(NSS_OBJ_0
:.o
=.po
)
468 PICOBJS
= $(SMBWRAPPER_OBJ
:.o
=.po
)
469 PICOBJS32
= $(SMBWRAPPER_OBJ
:.o
=.po32
)
470 LIBSMBCLIENT_PICOBJS
= $(LIBSMBCLIENT_OBJ
:.o
=.po
)
472 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
473 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o \
474 libsmb
/smbencrypt.o libsmb
/smbdes.o libsmb
/nterr.o \
475 $(PARAM_OBJ
) $(LIB_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
476 $(SECRETS_OBJ
) $(UBIQX_OBJ
)
478 PAM_SMBPASS_PICOOBJ
= $(PAM_SMBPASS_OBJ_0
:.o
=.po
)
481 nsswitch
/winbindd.o \
482 nsswitch
/winbindd_user.o \
483 nsswitch
/winbindd_group.o \
484 nsswitch
/winbindd_idmap.o \
485 nsswitch
/winbindd_util.o \
486 nsswitch
/winbindd_cache.o \
487 nsswitch
/winbindd_pam.o \
488 nsswitch
/winbindd_sid.o \
489 nsswitch
/winbindd_misc.o \
490 nsswitch
/winbindd_cm.o \
491 nsswitch
/winbindd_wins.o \
492 nsswitch
/winbindd_rpc.o \
493 nsswitch
/winbindd_ads.o \
494 nsswitch
/winbindd_dual.o
497 $(WINBINDD_OBJ1
) $(PASSDB_GET_SET_OBJ
) \
498 $(LIBNMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
499 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) \
500 $(PROFILE_OBJ
) $(UNIGRP_OBJ
) \
501 $(SECRETS_OBJ
) $(LIBADS_OBJ
)
503 WBINFO_OBJ
= nsswitch
/wbinfo.o libsmb
/smbencrypt.o libsmb
/smbdes.o
505 WINBIND_NSS_OBJ
= nsswitch
/winbind_nss.o nsswitch
/wb_common.o @WINBIND_NSS_EXTRA_OBJS@
507 WINBIND_NSS_PICOBJS
= $(WINBIND_NSS_OBJ
:.o
=.po
)
509 POPT_OBJS
=popt
/findme.o popt
/popt.o popt
/poptconfig.o \
510 popt
/popthelp.o popt
/poptparse.o
512 TDBBACKUP_OBJ
= tdb
/tdbbackup.o
$(TDBBASE_OBJ
)
514 ######################################################################
516 ######################################################################
517 all : SHOWFLAGS proto_exists
$(SPROGS
) $(PROGS
) $(WINBIND_PROGS
) $(WINBIND_SPROGS
) $(LPROGS
) $(SHLIBS
)
519 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
521 smbwrapper
: SHOWFLAGS @WRAPPROG@ @WRAP@ @WRAP32@
523 torture
: SHOWFLAGS
$(TORTURE_PROGS
)
525 smbtorture
: SHOWFLAGS bin
/smbtorture
527 masktest
: SHOWFLAGS bin
/masktest
529 msgtest
: SHOWFLAGS bin
/msgtest
531 locktest
: SHOWFLAGS bin
/locktest
533 smbcacls
: SHOWFLAGS bin
/smbcacls
535 locktest2
: SHOWFLAGS bin
/locktest2
537 rpctorture
: SHOWFLAGS bin
/rpctorture
539 debug2html
: SHOWFLAGS bin
/debug2html
541 smbfilter
: SHOWFLAGS bin
/smbfilter
543 talloctort
: SHOWFLAGS bin
/talloctort
545 nsswitch
: SHOWFLAGS
$(WINBIND_PROGS
) $(WINBIND_SPROGS
) $(LPROGS
)
547 wins
: SHOWFLAGS nsswitch
/libnss_wins.@SHLIBEXT@
549 everything
: all libsmbclient debug2html smbfilter talloctort
552 .SUFFIXES
: .c .o .po .po32 .lo
555 @echo
"Using FLAGS = $(FLAGS)"
556 @echo
" FLAGS32 = $(FLAGS32)"
557 @echo
" LIBS = $(LIBS)"
558 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
559 @echo
" LDFLAGS = $(LDFLAGS)"
561 MAKEDIR
= || exec false
; \
562 if
test -d
"$$dir"; then
:; else \
563 echo mkdir
"$$dir"; \
564 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
567 exec false
; fi || exec false
570 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
571 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
573 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
575 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
577 # These dependencies are only approximately correct: we want to make
578 # sure Samba's paths are updated if ./configure is re-run. Really it
579 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
580 # but since we also require "make install prefix=/opt/samba" *not* to
581 # rebuild it's a bit hard.
583 dynconfig.o
: dynconfig.c Makefile
585 @
$(CC
) $(FLAGS
) $(PATH_FLAGS
) -c
$< -o
$@
587 dynconfig.po
: dynconfig.c Makefile
588 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
589 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
590 @echo Compiling
$*.c with @PICFLAG@
591 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) $(PATH_FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
592 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
593 @POBAD_CC@ @mv
$*.po.o
$@
596 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
597 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
598 @echo Compiling
$*.c with @PICFLAG@
599 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< -o
$*.@PICSUFFIX@
600 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
601 @POBAD_CC@ @mv
$*.po.o
$@
605 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
606 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
607 @echo Compiling
$*.c with @PICFLAG@ and
-32
608 @
$(CC
) -32 -I.
-I
$(srcdir) $(FLAGS32
) $(PATH_FLAGS
) @PICFLAG@
-c
$< \
610 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
614 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
615 dir=bin
$(MAKEDIR
); fi
616 @
: >> $@ ||
: > $@
# what a fancy emoticon!
618 bin
/smbd
: $(SMBD_OBJ
) bin
/.dummy
620 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINTLIBS
) \
623 bin
/nmbd
: $(NMBD_OBJ
) bin
/.dummy
625 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
627 bin
/wrepld
: $(WREPL_OBJ
) bin
/.dummy
629 @
$(CC
) $(FLAGS
) -o
$@
$(WREPL_OBJ
) $(LDFLAGS
) $(LIBS
)
631 bin
/swat
: $(SWAT_OBJ
) bin
/.dummy
633 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINTLIBS
) \
636 bin
/rpcclient
: $(RPCCLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
638 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @BUILD_POPT@
640 bin
/smbclient
: $(CLIENT_OBJ
) bin
/.dummy
642 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
)
644 bin
/net
: $(NET_OBJ
) @BUILD_POPT@ bin
/.dummy
646 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
648 bin
/smbspool
: $(CUPS_OBJ
) bin
/.dummy
650 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(LDFLAGS
) $(LIBS
)
652 bin
/smbmount
: $(MOUNT_OBJ
) bin
/.dummy
654 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
656 bin
/smbmnt
: $(MNT_OBJ
) bin
/.dummy
658 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(LDFLAGS
) $(LIBS
)
660 bin
/smbumount
: $(UMOUNT_OBJ
) bin
/.dummy
662 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
664 bin
/testparm
: $(TESTPARM_OBJ
) bin
/.dummy
666 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
668 bin
/testprns
: $(TESTPRNS_OBJ
) bin
/.dummy
670 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPRNS_OBJ
) $(LDFLAGS
) $(PRINTLIBS
) $(LIBS
)
672 bin
/smbstatus
: $(STATUS_OBJ
) @BUILD_POPT@ bin
/.dummy
674 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
676 bin
/smbcontrol
: $(SMBCONTROL_OBJ
) bin
/.dummy
678 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCONTROL_OBJ
) $(LDFLAGS
) $(LIBS
)
680 bin
/smbtree
: $(SMBTREE_OBJ
) bin
/.dummy
682 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(LIBS
)
684 bin
/smbpasswd
: $(SMBPASSWD_OBJ
) bin
/.dummy
686 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
688 bin
/pdbedit
: $(PDBEDIT_OBJ
) bin
/.dummy
690 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @BUILD_POPT@
692 bin
/samtest
: $(SAMTEST_OBJ
) bin
/.dummy
694 @
$(CC
) $(FLAGS
) -o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @BUILD_POPT@
696 bin
/smbgroupedit
: $(SMBGROUPEDIT_OBJ
) bin
/.dummy
698 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGROUPEDIT_OBJ
) $(LDFLAGS
) $(LIBS
)
700 bin
/nmblookup
: $(NMBLOOKUP_OBJ
) bin
/.dummy
702 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(LIBS
)
704 bin
/smbtorture
: $(SMBTORTURE_OBJ
) bin
/.dummy
706 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
708 bin
/talloctort
: $(TALLOCTORT_OBJ
) bin
/.dummy
710 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) $(LIBS
)
712 bin
/masktest
: $(MASKTEST_OBJ
) bin
/.dummy
714 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
716 bin
/msgtest
: $(MSGTEST_OBJ
) bin
/.dummy
718 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
720 bin
/smbcacls
: $(SMBCACLS_OBJ
) bin
/.dummy
722 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
724 bin
/locktest
: $(LOCKTEST_OBJ
) bin
/.dummy
726 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
728 bin
/nsstest
: $(NSSTEST_OBJ
) bin
/.dummy
730 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
732 bin
/vfstest
: $(VFSTEST_OBJ
) bin
/.dummy
734 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(PRINTLIBS
) $(AUTHLIBS
) $(LIBS
) @BUILD_POPT@
736 bin
/locktest2
: $(LOCKTEST2_OBJ
) bin
/.dummy
738 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(LIBS
)
740 bin
/rpctorture
: $(RPCTORTURE_OBJ
) bin
/.dummy
742 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
744 bin
/debug2html
: $(DEBUG2HTML_OBJ
) bin
/.dummy
746 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(LIBS
)
748 bin
/smbfilter
: $(SMBFILTER_OBJ
) bin
/.dummy
750 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
)
752 bin
/smbw_sample
: $(SMBW_OBJ
) utils
/smbw_sample.o bin
/.dummy
754 @
$(CC
) $(FLAGS
) -o
$@
$(SMBW_OBJ
) utils
/smbw_sample.o
$(LDFLAGS
) $(LIBS
)
756 bin
/smbsh
: $(SMBSH_OBJ
) bin
/.dummy
758 @
$(CC
) $(FLAGS
) -o
$@
$(SMBSH_OBJ
) $(LDFLAGS
) $(LIBS
)
760 bin
/smbwrapper.@SHLIBEXT@
: $(PICOBJS
) bin
/.dummy
761 @echo Linking shared library
$@
762 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PICOBJS
) $(LIBS
) \
763 @SONAMEFLAG@
`basename $@`
765 bin
/smbwrapper
.32.@SHLIBEXT@
: $(PICOBJS32
)
766 @echo Linking shared library
$@
767 @
$(SHLD
) -32 $(LDSHFLAGS
) -o
$@
$(PICOBJS32
) $(LIBS
) \
768 @SONAMEFLAG@
`basename $@`
770 bin
/libsmbclient.@SHLIBEXT@
: $(LIBSMBCLIENT_PICOBJS
)
771 echo Linking libsmbclient shared library
$@
772 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_PICOBJS
) $(LIBS
) \
773 @SONAMEFLAG@
`basename $@`.
$(LIBSMBCLIENT_MAJOR
)
775 bin
/libsmbclient.a
: $(LIBSMBCLIENT_PICOBJS
)
776 @echo Linking libsmbclient non-shared library
$@
777 -$(AR
) -rc
$@
$(LIBSMBCLIENT_PICOBJS
)
779 libsmbclient
: bin
/libsmbclient.a bin
/libsmbclient.@SHLIBEXT@
781 bin
/pdb_mysql.@SHLIBEXT@
: $(PDB_MYSQL_OBJ
)
782 echo
"Building plugin $@"
783 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(PDB_MYSQL_OBJ
) @MYSQL_LIBS@ \
784 @SONAMEFLAG@
`basename $@`
786 nsswitch
/libnss_wins.@SHLIBEXT@
: $(NSS_OBJ
)
788 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(NSS_OBJ
) -lc \
789 @SONAMEFLAG@
`basename $@`
791 bin
/winbindd
: $(WINBINDD_OBJ
) bin
/.dummy
793 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(DYNEXP
) $(LIBS
)
795 nsswitch
/libns_winbind.@SHLIBEXT@
: $(WINBIND_NSS_PICOBJS
)
797 @
$(SHLD
) @LDSHFLAGS@
-o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@ \
798 @SONAMEFLAG@
`basename $@`
800 nsswitch
/libnss_winbind.@SHLIBEXT@
: $(WINBIND_NSS_PICOBJS
)
802 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@ \
803 @SONAMEFLAG@
`basename $@`
805 nsswitch
/pam_winbind.@SHLIBEXT@
: $(PAM_WINBIND_OBJ
) bin
/.dummy
807 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) \
808 @SONAMEFLAG@
`basename $@` -lpam
810 bin
/wbinfo
: $(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
811 $(UBIQX_OBJ
) $(SECRETS_OBJ
) @BUILD_POPT@ bin
/.dummy
813 @
$(LINK
) -o
$@
$(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
814 $(UBIQX_OBJ
) $(SECRETS_OBJ
) $(LIBS
) @BUILD_POPT@
816 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_PICOOBJ
)
817 @echo
"Linking shared library $@"
818 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_PICOOBJ
) -lpam
$(DYNEXP
) $(LIBS
) -lc
820 bin
/libmsrpc.a
: $(LIBMSRPC_PICOBJ
)
821 -$(AR
) -rc
$@
$(LIBMSRPC_PICOBJ
)
823 bin
/tdbbackup
: $(TDBBACKUP_OBJ
) bin
/.dummy
825 @
$(CC
) $(FLAGS
) -o
$@
$(TDBBACKUP_OBJ
)
827 install: installbin installman installscripts installdat installswat
830 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(BASEDIR
) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
)
832 installservers
: all installdirs
833 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
835 installbin
: all installdirs
836 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
837 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
839 installscripts
: installdirs
840 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
842 installdat
: installdirs
843 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(LIBDIR
) $(srcdir)
845 installswat
: installdirs
846 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(SWATDIR
) $(srcdir)
849 -$(INSTALLCMD
) bin
/libsmbclient.@SHLIBEXT@
${prefix}/lib
850 -$(INSTALLCMD
) -d
${prefix}/include
851 -$(INSTALLCMD
) include/libsmbclient.h
${prefix}/include
855 PYTHON_OBJS
= $(LIB_OBJ
) $(LIBSMB_OBJ
) $(RPC_PARSE_OBJ
) $(UBIQX_OBJ
) \
856 $(PARAM_OBJ
) $(LIBMSRPC_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(SECRETS_OBJ
)
858 PY_SPOOLSS_PROTO_OBJ
= python
/py_spoolss.o \
859 python
/py_spoolss_printers.o python
/py_spoolss_printers_conv.o\
860 python
/py_spoolss_forms.o python
/py_spoolss_forms_conv.o \
861 python
/py_spoolss_ports.o python
/py_spoolss_ports_conv.o \
862 python
/py_spoolss_drivers.o python
/py_spoolss_drivers_conv.o \
863 python
/py_spoolss_jobs.o python
/py_spoolss_jobs_conv.o \
864 python
/py_spoolss_printerdata.o
866 PY_LSA_PROTO_OBJ
= python
/py_lsa.o
868 PY_COMMON_PROTO_OBJ
= python
/py_common.c python
/py_ntsec.c
870 python_proto
: python_spoolss_proto python_lsa_proto python_common_proto
872 python_spoolss_proto
:
873 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
874 -h _PY_SPOOLSS_PROTO_H python
/py_spoolss_proto.h \
875 $(PY_SPOOLSS_PROTO_OBJ
)
878 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
879 -h _PY_LSA_PROTO_H python
/py_lsa_proto.h \
883 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
884 -h _PY_COMMON_PROTO_H python
/py_common_proto.h \
885 $(PY_COMMON_PROTO_OBJ
)
887 python_ext
: $(PYTHON_OBJS
)
888 PYTHON_OBJS
="$(PYTHON_OBJS)" PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
890 $(PYTHON
) python
/setup.py build
892 python_install
: $(PYTHON_OBJS
)
893 PYTHON_OBJS
="$(PYTHON_OBJS)" PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS)" \
895 $(PYTHON
) python
/setup.py
install
898 @if
test -n
"$(PYTHON)"; then
$(PYTHON
) python
/setup.py
clean; fi
900 # revert to the previously installed version
902 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SPROGS
)
903 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(PROGS
) $(SCRIPTS
)
906 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(MANDIR
) $(srcdir) $(man_langs
) "@ROFF@"
911 @echo
"Samba will be installed into:"
912 @echo
" basedir: $(BASEDIR)"
913 @echo
" bindir: $(BINDIR)"
914 @echo
" sbindir: $(SBINDIR)"
915 @echo
" libdir: $(LIBDIR)"
916 @echo
" vardir: $(VARDIR)"
917 @echo
" mandir: $(MANDIR)"
920 uninstall: uninstallman uninstallbin uninstallscripts
923 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(MANDIR
) $(srcdir) $(man_langs
)
926 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
927 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
930 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
932 # Toplevel clean files
933 TOPFILES
=dynconfig.o dynconfig.po
935 clean: delheaders python_clean
936 -rm -f core
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.@SHLIBEXT@ \
937 $(TOPFILES
) $(PROGS
) $(SPROGS
) .headers.stamp
939 # Making this target will just make sure that the prototype files
940 # exist, not necessarily that they are up to date. Since they're
941 # removed by "make clean" this will always be run when you do anything
943 proto_exists
: include/proto.h
include/wrepld_proto.h
include/build_env.h \
944 nsswitch
/winbindd_proto.h web
/swat_proto.h \
945 client
/client_proto.h utils
/net_proto.h
948 @echo Removing prototype headers
949 @
/bin
/rm -f
$(srcdir)/include/proto.h
$(srcdir)/include/build_env.h
950 @
/bin
/rm -f
$(srcdir)/include/wrepld_proto.h
$(srcdir)/nsswitch
/winbindd_proto.h
951 @
/bin
/rm -f
$(srcdir)/web
/swat_proto.h
952 @
/bin
/rm -f
$(srcdir)/client
/client_proto.h
$(srcdir)/utils
/net_proto.h
954 @
/bin
/rm -f
include/proto.h
include/build_env.h
include/wrepld_proto.h \
955 nsswitch
/winbindd_proto.h web
/swat_proto.h \
956 client
/client_proto.h utils
/net_proto.h
959 @echo Building
include/proto.h
960 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
961 -h _PROTO_H_
$(builddir
)/include/proto.h \
965 @echo Building
include/build_env.h
966 @cd
$(srcdir) && $(SHELL
) script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) > $(builddir
)/include/build_env.h
968 include/wrepld_proto.h
:
969 @echo Building
include/wrepld_proto.h
970 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
971 -h _WREPLD_PROTO_H_
$(builddir
)/include/wrepld_proto.h \
974 nsswitch
/winbindd_proto.h
:
975 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
976 -h _WINBINDD_PROTO_H_ nsswitch
/winbindd_proto.h \
980 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
981 -h _SWAT_PROTO_H_ web
/swat_proto.h \
984 client
/client_proto.h
:
985 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
986 -h _CLIENT_PROTO_H_ client
/client_proto.h \
990 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
991 -h _CLIENT_PROTO_H_ utils
/net_proto.h \
994 # "make headers" or "make proto" calls a subshell because we need to
995 # make sure these commands are executed in sequence even for a
998 $(MAKE
) delheaders
include/proto.h
include/build_env.h \
999 include/wrepld_proto.h nsswitch
/winbindd_proto.h \
1000 web
/swat_proto.h client
/client_proto.h \
1005 .PHONY
: headers proto
1008 etags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1011 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1013 realclean: clean delheaders
1014 -rm -f config.log
$(PROGS
) $(SPROGS
) bin
/.dummy script
/findsmb
1016 distclean: realclean
1017 -rm -f
include/stamp-h
1018 -rm -f
include/config.h Makefile
1019 -rm -f config.status config.cache so_locations
1022 # this target is really just for my use. It only works on a limited
1023 # range of machines and is used to produce a list of potentially
1024 # dead (ie. unused) functions in the code. (tridge)
1026 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
1027 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
1028 comm
-13 nmused.txt nmfns.txt
1031 # when configure.in is updated, reconfigure
1032 $(srcdir)/configure
: $(srcdir)/configure.in
1033 @echo
"WARNING: you need to rerun autoconf"
1035 config.status
: $(srcdir)/configure
1036 @echo
"WARNING: you need to run configure"
1038 Makefile
: $(srcdir)/Makefile.in config.status
1039 @echo
"WARNING: you need to run ./config.status"
1041 test_prefix
=/tmp
/test-samba
1042 # Run regression suite using the external "satyr" framework
1044 @echo
"** Sorry, samba self-test without installation does not work "
1045 @echo
"** yet. Please try specifying a scratch directory to"
1046 @echo
"** ./configure --prefix DIR"
1047 @echo
"** then run \"make install installcheck\""
1050 # -rm -rf $(test_prefix)/lib
1051 # mkdir $(test_prefix)/lib -p ./testdir
1052 # PATH=$(builddir)/bin:$(PATH) \
1053 # SATYR_SUITEDIR=../testsuite/build_farm/ prefix=$(test_prefix) \
1054 # testdir=./testdir $(SHELL) satyr
1056 # Run regression suite on the installed version.
1059 # Perform installation tests (if any). The user must build and
1060 # install the program before running the tests. You should not
1061 # assume that `$(bindir)' is in the search path.
1063 dangerous-installcheck
:
1064 mkdir
-p
$(BASEDIR
)/lib
1065 mkdir
-p
$(BASEDIR
)/var
1066 PATH
=$(BINDIR
):$(SBINDIR
):$(PATH
) \
1067 SATYR_DISCOURAGE
=1 \
1068 SATYR_SUITEDIR
=..
/testsuite
/satyr
/ prefix=$(BASEDIR
) \
1069 LIBSMB_PROG
=$(SBINDIR
)/smbd \
1070 testdir
=.
/testdir
$(SHELL
) satyr