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@
27 LINK
=$(CC
) $(FLAGS
) $(LDFLAGS
)
36 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
37 # will search for a POSIX-compliant shell, and that might not be
38 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
40 # See the autoconf manual "Installation Directory Variables" for a
41 # discussion of thesubtle use of these variables.
45 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
48 VARDIR
= @localstatedir@
51 # The permissions to give the executables
54 # set these to where to find various files
55 # These can be overridden by command line switches (see smbd(8))
56 # or in smb.conf (see smb.conf(5))
57 LOGFILEBASE
= @logfilebase@
58 CONFIGFILE
= $(LIBDIR
)/smb.conf
59 LMHOSTSFILE
= $(LIBDIR
)/lmhosts
60 DRIVERFILE
= $(LIBDIR
)/printers.def
61 # This is where smbpasswd et al go
62 PRIVATEDIR
= @privatedir@
64 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
65 PRIVATE_DIR
= $(PRIVATEDIR
)
67 # This is where SWAT images and help files go
70 # the directory where lock files go
73 # the directorty where pid files go
75 # man pages language(s)
76 man_langs
= "@manlangs@"
82 FLAGS1
= $(CFLAGS
) @FLAGS1@
-Iinclude
-I
$(srcdir)/include -I
$(srcdir)/ubiqx
-I
$(srcdir)/smbwrapper
-I.
$(CPPFLAGS
) -I
$(srcdir)
86 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
)
87 FLAGS
= $(ISA
) $(FLAGS5
)
88 FLAGS32
= $(ISA32
) $(FLAGS5
)
90 PASSWD_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\"
91 PATH_FLAGS1
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DSBINDIR
=\"$(SBINDIR
)\"
92 PATH_FLAGS2
= $(PATH_FLAGS1
) -DBINDIR
=\"$(BINDIR
)\" -DDRIVERFILE
=\"$(DRIVERFILE
)\"
93 PATH_FLAGS3
= $(PATH_FLAGS2
) -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
94 PATH_FLAGS4
= $(PATH_FLAGS3
) -DSWATDIR
=\"$(SWATDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\" -DPIDDIR
=\"$(PIDDIR
)\"
95 PATH_FLAGS5
= $(PATH_FLAGS4
) -DLIBDIR
=\"$(LIBDIR
)\" -DLOGFILEBASE
=\"$(LOGFILEBASE
)\"
96 PATH_FLAGS
= $(PATH_FLAGS5
) $(PASSWD_FLAGS
)
98 WINBIND_PROGS
= @WINBIND_TARGETS@
99 WINBIND_SPROGS
= @WINBIND_STARGETS@
100 WINBIND_PAM_PROGS
= @WINBIND_PAM_TARGETS@
101 WINBIND_LPROGS
= @WINBIND_LTARGETS@
103 SPROGS
= bin
/smbd bin
/nmbd bin
/swat bin
/wrepld @WINBIND_STARGETS@
104 PROGS1
= bin
/smbclient bin
/net bin
/smbspool bin
/testparm bin
/testprns bin
/smbstatus bin
/smbcontrol bin
/smbtree bin
/tdbbackup @RUNPROG@ @WINBIND_TARGETS@
105 PROGS2
= bin
/smbpasswd bin
/rpcclient bin
/smbcacls @WRAPPROG@ @WRAP@ @WRAP32@ @PAM_MOD@
107 LPROGS
= $(WINBIND_PAM_PROGS
) $(WINBIND_LPROGS
)
109 PROGS
= $(PROGS1
) $(PROGS2
) $(MPROGS
) bin
/nmblookup bin
/pdbedit bin
/smbgroupedit
110 TORTURE_PROGS
= bin
/smbtorture bin
/msgtest bin
/masktest bin
/locktest \
111 bin
/locktest2 bin
/nsstest bin
/vfstest
112 SHLIBS
= @LIBSMBCLIENT@
114 SCRIPTS
= $(srcdir)/script
/smbtar
$(srcdir)/script
/addtosmbpass
$(srcdir)/script
/convert_smbpasswd \
115 $(builddir
)/script
/findsmb
117 QUOTAOBJS
=@QUOTAOBJS@
119 ######################################################################
121 ######################################################################
123 TDBBASE_OBJ
= tdb
/tdb.o tdb
/spinlock.o
124 TDB_OBJ
= $(TDBBASE_OBJ
) tdb
/tdbutil.o
126 LIB_OBJ
= lib
/charcnv.o lib
/debug.o lib
/fault.o \
127 lib
/getsmbpass.o lib
/interface.o lib
/md4.o \
128 lib
/interfaces.o lib
/pidfile.o lib
/replace.o \
129 lib
/signal.o lib
/system.o lib
/sendfile.o lib
/time.o \
130 lib
/ufc.o lib
/genrand.o lib
/username.o \
131 lib
/util_getent.o lib
/util_pw.o lib
/access.o lib
/smbrun.o \
132 lib
/bitmap.o lib
/crc32.o lib
/snprintf.o lib
/dprintf.o \
133 lib
/xfile.o lib
/wins_srv.o \
134 lib
/util_str.o lib
/util_sid.o lib
/util_uuid.o \
135 lib
/util_unistr.o lib
/util_file.o lib
/data_blob.o \
136 lib
/util.o lib
/util_sock.o lib
/util_sec.o \
137 lib
/talloc.o lib
/hash.o lib
/substitute.o lib
/fsusage.o \
138 lib
/ms_fnmatch.o lib
/select.o lib
/error.o lib
/messages.o \
139 lib
/tallocmsg.o lib
/dmallocmsg.o \
140 lib
/md5.o lib
/hmacmd5.o lib
/iconv.o lib
/smbpasswd.o \
141 nsswitch
/wb_client.o nsswitch
/wb_common.o \
142 lib
/pam_errors.o intl
/lang_tdb.o lib
/account_pol.o \
143 lib
/adt_tree.o lib
/popt_common.o lib
/gencache.o
$(TDB_OBJ
)
145 LIB_SMBD_OBJ
= lib
/system_smbd.o lib
/util_smbd.o
147 READLINE_OBJ
= lib
/readline.o
149 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
150 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o ubiqx
/debugparse.o
152 PARAM_OBJ
= param
/loadparm.o param
/params.o dynconfig.o
154 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o libads
/sasl.o \
155 libads
/krb5_setpw.o libads
/kerberos.o libads
/ldap_user.o \
156 libads
/ads_struct.o libads
/ads_status.o \
157 libads
/disp_sec.o libads
/ads_utils.o
159 LIBADS_SERVER_OBJ
= libads
/util.o libads
/kerberos_verify.o
161 SECRETS_OBJ
= passdb
/secrets.o
163 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
164 libsmb
/clikrb5.o libsmb
/clispnego.o libsmb
/asn1.o \
165 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
166 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
167 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
168 libsmb
/namequery.o libsmb
/nmblib.o libsmb
/clistr.o \
169 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
170 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
171 libsmb
/clioplock.o libsmb
/errormap.o libsmb
/clirap2.o \
172 libsmb
/passchange.o libsmb
/unexpected.o libsmb
/doserr.o \
173 libsmb
/namecache.o
$(RPC_PARSE_OBJ1
)
175 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
176 rpc_client
/cli_netlogon.o rpc_client
/cli_srvsvc.o \
177 rpc_client
/cli_wkssvc.o rpc_client
/cli_dfs.o \
178 rpc_client
/cli_reg.o rpc_client
/cli_pipe.o \
179 rpc_client
/cli_spoolss.o rpc_client
/cli_spoolss_notify.o
181 LIBMSRPC_SERVER_OBJ
= libsmb
/trust_passwd.o
183 LIBMSRPC_PICOBJ
= $(LIBMSRPC_OBJ
:.o
=.po
)
185 REGOBJS_OBJ
= registry
/reg_objects.o
186 REGISTRY_OBJ
= registry
/reg_frontend.o registry
/reg_cachehook.o registry
/reg_printing.o \
189 RPC_SERVER_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o \
190 rpc_server
/srv_lsa_hnd.o rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o \
191 rpc_server
/srv_pipe_hnd.o rpc_server
/srv_reg.o rpc_server
/srv_reg_nt.o \
192 rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o rpc_server
/srv_samr_util.o \
193 rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o \
194 rpc_server
/srv_util.o rpc_server
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o \
195 rpc_server
/srv_pipe.o rpc_server
/srv_dfs.o rpc_server
/srv_dfs_nt.o \
196 rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
198 # this includes only the low level parse code, not stuff
199 # that requires knowledge of security contexts
200 RPC_PARSE_OBJ1
= rpc_parse
/parse_prs.o rpc_parse
/parse_sec.o \
201 rpc_parse
/parse_misc.o
203 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_net.o \
204 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
205 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
206 rpc_parse
/parse_wks.o \
207 rpc_parse
/parse_spoolss.o rpc_parse
/parse_dfs.o \
211 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o
213 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
215 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
217 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
218 passdb
/machine_sid.o passdb
/pdb_smbpasswd.o \
219 passdb
/pdb_tdb.o passdb
/pdb_ldap.o passdb
/pdb_plugin.o \
220 passdb
/pdb_unix.o passdb
/util_sam_sid.o \
221 passdb
/pdb_compat.o passdb
/pdb_nisplus.o
223 SAM_STATIC_MODULES
= sam
/sam_plugin.o
225 SAM_OBJ
= sam
/account.o sam
/get_set_account.o sam
/get_set_group.o \
226 sam
/get_set_domain.o sam
/interface.o sam
/api.o
$(SAM_STATIC_MODULES
)
228 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
)
230 GROUPDB_OBJ
= groupdb
/mapping.o
232 # passdb/smbpass.o passdb/ldap.o passdb/nispass.o
234 PROFILE_OBJ
= profile
/profile.o
236 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
238 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o
240 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
242 UNIGRP_OBJ
= libsmb
/netlogon_unigrp.o
244 AUTH_OBJ
= auth
/auth.o auth
/auth_sam.o auth
/auth_server.o auth
/auth_domain.o \
245 auth
/auth_rhosts.o auth
/auth_unix.o auth
/auth_util.o auth
/auth_winbind.o \
246 auth
/auth_builtin.o auth
/auth_compat.o \
247 $(PLAINTEXT_AUTH_OBJ
) $(UNIGRP_OBJ
)
249 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_map.o smbd
/mangle_hash2.o
251 SMBD_OBJ_MAIN
= smbd
/server.o
253 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
254 smbd
/utmp.o smbd
/session.o \
255 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o smbd
/fileio.o \
256 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
257 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
258 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
259 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
260 smbd
/blocking.o smbd
/sec_ctx.o \
261 smbd
/vfs.o smbd
/vfs-wrap.o smbd
/statcache.o \
262 smbd
/posix_acls.o lib
/sysacls.o lib
/server_mutex.o \
263 smbd
/process.o smbd
/service.o smbd
/error.o \
264 printing
/printfsp.o lib
/util_seaccess.o smbd
/srvstr.o \
265 smbd
/build_options.o \
266 smbd
/change_trust_pw.o \
269 SMBD_OBJ_BASE
= $(SMBD_OBJ_SRV
) $(MSDFS_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
270 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(SECRETS_OBJ
) \
271 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
272 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(QUOTAOBJS
) $(OPLOCK_OBJ
) \
273 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
274 $(LIBMSRPC_OBJ
) $(LIBMSRPC_SERVER_OBJ
) \
275 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) \
276 $(LIB_SMBD_OBJ
) $(REGISTRY_OBJ
)
279 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o \
280 printing
/print_cups.o printing
/print_generic.o \
281 printing
/lpq_parse.o printing
/load.o
283 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o printing
/notify.o
285 MSDFS_OBJ
= msdfs
/msdfs.o
287 SMBD_OBJ
= $(SMBD_OBJ_MAIN
) $(SMBD_OBJ_BASE
)
289 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
290 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
291 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
292 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
293 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
294 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
295 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
296 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
297 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
298 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
299 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
300 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
302 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
303 $(PROFILE_OBJ
) $(LIB_OBJ
) $(SECRETS_OBJ
)
305 WREPL_OBJ1
= wrepld
/server.o wrepld
/process.o wrepld
/parser.o wrepld
/socket.o \
308 WREPL_OBJ
= $(WREPL_OBJ1
) $(PARAM_OBJ
) $(UBIQX_OBJ
) \
309 $(PROFILE_OBJ
) $(LIB_OBJ
)
311 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
312 web
/swat.o web
/neg_lang.o
314 SWAT_OBJ
= $(SWAT_OBJ1
) $(PRINTING_OBJ
) $(LIBSMB_OBJ
) $(LOCKING_OBJ
) \
315 $(PARAM_OBJ
) $(PASSDB_OBJ
) $(SECRETS_OBJ
) \
316 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
)
318 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o \
319 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
321 MAKE_PRINTERDEF_OBJ
= utils
/make_printerdef.o
$(PARAM_OBJ
) \
322 $(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
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.so
549 everything
: all libsmbclient debug2html smbfilter talloctort bin
/make_printerdef
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
) $(LIBS
)
622 bin
/nmbd
: $(NMBD_OBJ
) bin
/.dummy
624 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
626 bin
/wrepld
: $(WREPL_OBJ
) bin
/.dummy
628 @
$(CC
) $(FLAGS
) -o
$@
$(WREPL_OBJ
) $(LDFLAGS
) $(LIBS
)
630 bin
/swat
: $(SWAT_OBJ
) bin
/.dummy
632 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(PRINTLIBS
) $(LIBS
)
634 bin
/rpcclient
: $(RPCCLIENT_OBJ
) @BUILD_POPT@ bin
/.dummy
636 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCLIENT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
) @BUILD_POPT@
638 bin
/smbclient
: $(CLIENT_OBJ
) bin
/.dummy
640 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
)
642 bin
/net
: $(NET_OBJ
) @BUILD_POPT@ bin
/.dummy
644 @
$(CC
) $(FLAGS
) -o
$@
$(NET_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
646 bin
/smbspool
: $(CUPS_OBJ
) bin
/.dummy
648 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(LDFLAGS
) $(LIBS
)
650 bin
/smbmount
: $(MOUNT_OBJ
) bin
/.dummy
652 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
654 bin
/smbmnt
: $(MNT_OBJ
) bin
/.dummy
656 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(LDFLAGS
) $(LIBS
)
658 bin
/smbumount
: $(UMOUNT_OBJ
) bin
/.dummy
660 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
662 bin
/testparm
: $(TESTPARM_OBJ
) bin
/.dummy
664 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
666 bin
/testprns
: $(TESTPRNS_OBJ
) bin
/.dummy
668 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPRNS_OBJ
) $(LDFLAGS
) $(PRINTLIBS
) $(LIBS
)
670 bin
/smbstatus
: $(STATUS_OBJ
) @BUILD_POPT@ bin
/.dummy
672 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(LIBS
) @BUILD_POPT@
674 bin
/smbcontrol
: $(SMBCONTROL_OBJ
) bin
/.dummy
676 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCONTROL_OBJ
) $(LDFLAGS
) $(LIBS
)
678 bin
/smbtree
: $(SMBTREE_OBJ
) bin
/.dummy
680 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTREE_OBJ
) $(LDFLAGS
) $(LIBS
)
682 bin
/smbpasswd
: $(SMBPASSWD_OBJ
) bin
/.dummy
684 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
)
686 bin
/pdbedit
: $(PDBEDIT_OBJ
) bin
/.dummy
688 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(LIBS
) @BUILD_POPT@
690 bin
/samtest
: $(SAMTEST_OBJ
) bin
/.dummy
692 @
$(CC
) $(FLAGS
) -o
$@
$(SAMTEST_OBJ
) $(LDFLAGS
) $(DYNEXP
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(LIBS
) @BUILD_POPT@
694 bin
/smbgroupedit
: $(SMBGROUPEDIT_OBJ
) bin
/.dummy
696 @
$(CC
) $(FLAGS
) -o
$@
$(SMBGROUPEDIT_OBJ
) $(LDFLAGS
) $(LIBS
)
698 bin
/nmblookup
: $(NMBLOOKUP_OBJ
) bin
/.dummy
700 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(LIBS
)
702 bin
/make_printerdef
: $(MAKE_PRINTERDEF_OBJ
) bin
/.dummy
704 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_PRINTERDEF_OBJ
) $(LDFLAGS
) $(LIBS
)
706 bin
/smbtorture
: $(SMBTORTURE_OBJ
) bin
/.dummy
708 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
710 bin
/talloctort
: $(TALLOCTORT_OBJ
) bin
/.dummy
712 @
$(CC
) $(FLAGS
) -o
$@
$(TALLOCTORT_OBJ
) $(LDFLAGS
) $(LIBS
)
714 bin
/masktest
: $(MASKTEST_OBJ
) bin
/.dummy
716 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
718 bin
/msgtest
: $(MSGTEST_OBJ
) bin
/.dummy
720 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
722 bin
/smbcacls
: $(SMBCACLS_OBJ
) bin
/.dummy
724 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
726 bin
/locktest
: $(LOCKTEST_OBJ
) bin
/.dummy
728 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
730 bin
/nsstest
: $(NSSTEST_OBJ
) bin
/.dummy
732 @
$(CC
) $(FLAGS
) -o
$@
$(NSSTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
734 bin
/vfstest
: $(VFSTEST_OBJ
) bin
/.dummy
736 @
$(CC
) $(FLAGS
) -o
$@
$(VFSTEST_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(DYNEXP
) $(PRINTLIBS
) $(LIBS
) @BUILD_POPT@
738 bin
/locktest2
: $(LOCKTEST2_OBJ
) bin
/.dummy
740 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(LIBS
)
742 bin
/rpctorture
: $(RPCTORTURE_OBJ
) bin
/.dummy
744 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(DYNEXP
) $(LDFLAGS
) $(LIBS
)
746 bin
/debug2html
: $(DEBUG2HTML_OBJ
) bin
/.dummy
748 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(LIBS
)
750 bin
/smbfilter
: $(SMBFILTER_OBJ
) bin
/.dummy
752 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
)
754 bin
/smbw_sample
: $(SMBW_OBJ
) utils
/smbw_sample.o bin
/.dummy
756 @
$(CC
) $(FLAGS
) -o
$@
$(SMBW_OBJ
) utils
/smbw_sample.o
$(LDFLAGS
) $(LIBS
)
758 bin
/smbsh
: $(SMBSH_OBJ
) bin
/.dummy
760 @
$(CC
) $(FLAGS
) -o
$@
$(SMBSH_OBJ
) $(LDFLAGS
) $(LIBS
)
762 bin
/smbwrapper.@SHLIBEXT@
: $(PICOBJS
) bin
/.dummy
763 @echo Linking shared library
$@
764 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PICOBJS
) $(LIBS
) \
765 @SONAMEFLAG@
`basename $@`
767 bin
/smbwrapper
.32.@SHLIBEXT@
: $(PICOBJS32
)
768 @echo Linking shared library
$@
769 @
$(SHLD
) -32 $(LDSHFLAGS
) -o
$@
$(PICOBJS32
) $(LIBS
) \
770 @SONAMEFLAG@
`basename $@`
772 bin
/libsmbclient.@SHLIBEXT@
: $(LIBSMBCLIENT_PICOBJS
)
773 echo Linking libsmbclient shared library
$@
774 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(LIBSMBCLIENT_PICOBJS
) $(LIBS
) \
775 @SONAMEFLAG@
`basename $@`.
$(LIBSMBCLIENT_MAJOR
)
777 bin
/libsmbclient.a
: $(LIBSMBCLIENT_PICOBJS
)
778 @echo Linking libsmbclient non-shared library
$@
779 -$(AR
) -rc
$@
$(LIBSMBCLIENT_PICOBJS
)
781 libsmbclient
: bin
/libsmbclient.a bin
/libsmbclient.@SHLIBEXT@
784 nsswitch
/libnss_wins.so
: $(NSS_OBJ
)
786 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(NSS_OBJ
) -lc \
787 @SONAMEFLAG@
`basename $@`
789 bin
/winbindd
: $(WINBINDD_OBJ
) bin
/.dummy
791 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(DYNEXP
) $(LIBS
)
793 nsswitch
/libns_winbind.so
: $(WINBIND_NSS_PICOBJS
)
795 @
$(SHLD
) @LDSHFLAGS@
-o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@ \
796 @SONAMEFLAG@
`basename $@`
798 nsswitch
/libnss_winbind.so
: $(WINBIND_NSS_PICOBJS
)
800 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(WINBIND_NSS_PICOBJS
) @WINBIND_NSS_EXTRA_LIBS@ \
801 @SONAMEFLAG@
`basename $@`
803 nsswitch
/pam_winbind.so
: $(PAM_WINBIND_OBJ
) bin
/.dummy
805 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_WINBIND_OBJ
) \
806 @SONAMEFLAG@
`basename $@`
808 bin
/wbinfo
: $(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
809 $(UBIQX_OBJ
) $(SECRETS_OBJ
) @BUILD_POPT@ bin
/.dummy
811 @
$(LINK
) -o
$@
$(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) \
812 $(UBIQX_OBJ
) $(SECRETS_OBJ
) $(LIBS
) @BUILD_POPT@
814 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_PICOOBJ
)
815 @echo
"Linking shared library $@"
816 $(SHLD
) $(LDSHFLAGS
) -o
$@
$(PAM_SMBPASS_PICOOBJ
) -lpam
$(DYNEXP
) $(LIBS
) -lc
818 bin
/libmsrpc.a
: $(LIBMSRPC_PICOBJ
)
819 -$(AR
) -rc
$@
$(LIBMSRPC_PICOBJ
)
821 bin
/tdbbackup
: $(TDBBACKUP_OBJ
) bin
/.dummy
823 @
$(CC
) $(FLAGS
) -o
$@
$(TDBBACKUP_OBJ
)
825 install: installbin installman installscripts installdat installswat
828 @
$(SHELL
) $(srcdir)/script
/installdirs.sh
$(BASEDIR
) $(BINDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(PRIVATEDIR
)
830 installservers
: all installdirs
831 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
833 installbin
: all installdirs
834 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
835 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
837 installscripts
: installdirs
838 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
840 installdat
: installdirs
841 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(LIBDIR
) $(srcdir)
843 installswat
: installdirs
844 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(SWATDIR
) $(srcdir)
847 -$(INSTALLCMD
) bin
/libsmbclient.so
${prefix}/lib
848 -$(INSTALLCMD
) -d
${prefix}/include
849 -$(INSTALLCMD
) include/libsmbclient.h
${prefix}/include
853 PYTHON_OBJS
= $(LIB_OBJ
) $(LIBSMB_OBJ
) $(RPC_PARSE_OBJ
) $(UBIQX_OBJ
) \
854 $(PARAM_OBJ
) $(LIBMSRPC_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(SECRETS_OBJ
)
856 PY_SPOOLSS_PROTO_OBJ
= python
/py_spoolss.o \
857 python
/py_spoolss_printers.o python
/py_spoolss_printers_conv.o\
858 python
/py_spoolss_forms.o python
/py_spoolss_forms_conv.o \
859 python
/py_spoolss_ports.o python
/py_spoolss_ports_conv.o \
860 python
/py_spoolss_drivers.o python
/py_spoolss_drivers_conv.o \
861 python
/py_spoolss_jobs.o python
/py_spoolss_jobs_conv.o \
862 python
/py_spoolss_printerdata.o
864 PY_LSA_PROTO_OBJ
= python
/py_lsa.o
866 PY_COMMON_PROTO_OBJ
= python
/py_common.c python
/py_ntsec.c
868 python_proto
: python_spoolss_proto python_lsa_proto python_common_proto
870 python_spoolss_proto
:
871 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
872 -h _PY_SPOOLSS_PROTO_H python
/py_spoolss_proto.h \
873 $(PY_SPOOLSS_PROTO_OBJ
)
876 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
877 -h _PY_LSA_PROTO_H python
/py_lsa_proto.h \
881 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
882 -h _PY_COMMON_PROTO_H python
/py_common_proto.h \
883 $(PY_COMMON_PROTO_OBJ
)
885 python_ext
: $(PYTHON_OBJS
)
886 PYTHON_OBJS
="$(PYTHON_OBJS)" PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
888 $(PYTHON
) python
/setup.py build
890 python_install
: $(PYTHON_OBJS
)
891 PYTHON_OBJS
="$(PYTHON_OBJS)" PYTHON_CFLAGS
="$(CFLAGS) $(CPPFLAGS)" \
893 $(PYTHON
) python
/setup.py
install
896 @if
test -n
"$(PYTHON)"; then
$(PYTHON
) python
/setup.py
clean; fi
898 # revert to the previously installed version
900 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SPROGS
)
901 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(PROGS
) $(SCRIPTS
)
904 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(MANDIR
) $(srcdir) $(man_langs
) "@ROFF@"
909 @echo
"Samba will be installed into:"
910 @echo
" basedir: $(BASEDIR)"
911 @echo
" bindir: $(BINDIR)"
912 @echo
" sbindir: $(SBINDIR)"
913 @echo
" libdir: $(LIBDIR)"
914 @echo
" vardir: $(VARDIR)"
915 @echo
" mandir: $(MANDIR)"
918 uninstall: uninstallman uninstallbin uninstallscripts
921 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(MANDIR
) $(srcdir) $(man_langs
)
924 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
925 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
928 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
930 # Toplevel clean files
931 TOPFILES
=dynconfig.o dynconfig.po
933 clean: delheaders python_clean
934 -rm -f core
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.@SHLIBEXT@ \
935 $(TOPFILES
) $(PROGS
) $(SPROGS
) .headers.stamp
937 # Making this target will just make sure that the prototype files
938 # exist, not necessarily that they are up to date. Since they're
939 # removed by "make clean" this will always be run when you do anything
941 proto_exists
: include/proto.h
include/wrepld_proto.h
include/build_env.h \
942 nsswitch
/winbindd_proto.h web
/swat_proto.h \
943 client
/client_proto.h utils
/net_proto.h
946 @echo Removing prototype headers
947 @
/bin
/rm -f
$(srcdir)/include/proto.h
$(srcdir)/include/build_env.h
948 @
/bin
/rm -f
$(srcdir)/include/wrepld_proto.h
$(srcdir)/nsswitch
/winbindd_proto.h
949 @
/bin
/rm -f
$(srcdir)/web
/swat_proto.h
950 @
/bin
/rm -f
$(srcdir)/client
/client_proto.h
$(srcdir)/utils
/net_proto.h
952 @
/bin
/rm -f
include/proto.h
include/build_env.h
include/wrepld_proto.h \
953 nsswitch
/winbindd_proto.h web
/swat_proto.h \
954 client
/client_proto.h utils
/net_proto.h
957 @echo Building
include/proto.h
958 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
959 -h _PROTO_H_
$(builddir
)/include/proto.h \
963 @echo Building
include/build_env.h
964 @cd
$(srcdir) && $(SHELL
) script
/build_env.sh
$(srcdir) $(builddir
) $(CC
) > $(builddir
)/include/build_env.h
966 include/wrepld_proto.h
:
967 @echo Building
include/wrepld_proto.h
968 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
969 -h _WREPLD_PROTO_H_
$(builddir
)/include/wrepld_proto.h \
972 nsswitch
/winbindd_proto.h
:
973 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
974 -h _WINBINDD_PROTO_H_ nsswitch
/winbindd_proto.h \
978 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
979 -h _SWAT_PROTO_H_ web
/swat_proto.h \
982 client
/client_proto.h
:
983 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
984 -h _CLIENT_PROTO_H_ client
/client_proto.h \
988 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
989 -h _CLIENT_PROTO_H_ utils
/net_proto.h \
992 # "make headers" or "make proto" calls a subshell because we need to
993 # make sure these commands are executed in sequence even for a
996 $(MAKE
) delheaders
include/proto.h
include/build_env.h \
997 include/wrepld_proto.h nsswitch
/winbindd_proto.h \
998 web
/swat_proto.h client
/client_proto.h \
1003 .PHONY
: headers proto
1006 etags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1009 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
1011 realclean: clean delheaders
1012 -rm -f config.log
$(PROGS
) $(SPROGS
) bin
/.dummy
1015 distclean: realclean
1016 -rm -f
include/config.h Makefile
1017 -rm -f config.status config.cache so_locations
1020 # this target is really just for my use. It only works on a limited
1021 # range of machines and is used to produce a list of potentially
1022 # dead (ie. unused) functions in the code. (tridge)
1024 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
1025 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
1026 comm
-13 nmused.txt nmfns.txt
1029 # when configure.in is updated, reconfigure
1030 $(srcdir)/configure
: $(srcdir)/configure.in
1031 @echo
"WARNING: you need to rerun autoconf"
1033 config.status
: $(srcdir)/configure
1034 @echo
"WARNING: you need to run configure"
1036 Makefile
: $(srcdir)/Makefile.in config.status
1037 @echo
"WARNING: you need to run ./config.status"
1039 test_prefix
=/tmp
/test-samba
1040 # Run regression suite using the external "satyr" framework
1042 @echo
"** Sorry, samba self-test without installation does not work "
1043 @echo
"** yet. Please try specifying a scratch directory to"
1044 @echo
"** ./configure --prefix DIR"
1045 @echo
"** then run \"make install installcheck\""
1048 # -rm -rf $(test_prefix)/lib
1049 # mkdir $(test_prefix)/lib -p ./testdir
1050 # PATH=$(builddir)/bin:$(PATH) \
1051 # SATYR_SUITEDIR=../testsuite/build_farm/ prefix=$(test_prefix) \
1052 # testdir=./testdir $(SHELL) satyr
1054 # Run regression suite on the installed version.
1057 # Perform installation tests (if any). The user must build and
1058 # install the program before running the tests. You should not
1059 # assume that `$(bindir)' is in the search path.
1061 dangerous-installcheck
:
1062 mkdir
-p
$(BASEDIR
)/lib
1063 mkdir
-p
$(BASEDIR
)/var
1064 PATH
=$(BINDIR
):$(SBINDIR
):$(PATH
) \
1065 SATYR_DISCOURAGE
=1 \
1066 SATYR_SUITEDIR
=..
/testsuite
/satyr
/ prefix=$(BASEDIR
) \
1067 LIBSMB_PROG
=$(SBINDIR
)/smbd \
1068 testdir
=.
/testdir
$(SHELL
) satyr