preparing for release of alpha.0.2
[Samba.git] / source / Makefile.in
blob7b7483ab60363dd861b50a7fbf6eee748e939a7b
1 ###########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 ###########################################################################
6 prefix=@prefix@
7 exec_prefix=@exec_prefix@
8 mandir=@mandir@
9 DESTDIR=
11 LIBS=@LIBS@
12 CC=@CC@
13 CFLAGS=@CFLAGS@
14 CPPFLAGS=@CPPFLAGS@
15 LDFLAGS=@LDFLAGS@
16 AWK=@AWK@
17 LIBTOOL=@LIBTOOL@ --quiet
18 LIBTOOL_DEPS=@LIBTOOL_DEPS@
19 LINK=$(LIBTOOL) --mode=link $(CC) $(FLAGS) $(LDFLAGS)
21 INSTALL = @INSTALL@
22 INSTALLCMD=@INSTALL@
23 INSTALL_PROGRAM = @INSTALL_PROGRAM@
25 VPATH=@srcdir@
26 srcdir=@srcdir@
27 builddir=@builddir@
28 top_builddir=.
29 SHELL=/bin/sh
31 BASEDIR= @prefix@
32 BINDIR = @bindir@
33 # we don't use sbindir because we want full compatibility with
34 # the previous releases of Samba
35 SBINDIR = @bindir@
36 LIBDIR = @libdir@
37 VARDIR = $(BASEDIR)/var
38 MANDIR = @mandir@
39 SYSCONFDIR = @sysconfdir@
40 PRIVATEDIR = $(BASEDIR)/private
42 # The permissions to give the executables
43 INSTALLPERMS = 0755
45 # set these to where to find various files
46 # These can be overridden by command line switches (see smbd(8))
47 # or in smb.conf (see smb.conf(5))
48 LOGFILEBASE = $(VARDIR)
49 SMBLOGFILE = $(LOGFILEBASE)/log.smb
50 NMBLOGFILE = $(LOGFILEBASE)/log.nmb
51 CONFIGFILE = $(LIBDIR)/smb.conf
52 LMHOSTSFILE = $(LIBDIR)/lmhosts
53 DRIVERFILE = $(LIBDIR)/printers.def
54 FORMSFILE = $(LIBDIR)/ntforms.def
55 NTDRIVERSDIR = $(LIBDIR)
56 PASSWD_PROGRAM = /bin/passwd
57 SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
58 SAM_DIR = $(BASEDIR)/sam
59 SMB_PASSGRP_FILE = $(BASEDIR)/private/smbpassgrp
60 SMB_GROUP_FILE = $(BASEDIR)/private/smbgroup
61 SMB_ALIAS_FILE = $(BASEDIR)/private/smbalias
62 SMB_PASSWD_PROGRAM = $(BINDIR)/smbpasswd
64 # This is where SWAT images and help files go
65 SWATDIR = $(BASEDIR)/swat
67 # the directory where lock files go
68 LOCKDIR = $(VARDIR)/locks
70 # The directory where code page definition files go
71 CODEPAGEDIR = $(LIBDIR)/codepages
73 # The current codepage definition list.
74 CODEPAGELIST= 437 737 850 852 861 932 866 949 950 936
76 # where you are going to have the smbrun binary. This defaults to the
77 # install directory. This binary is needed for correct printing
78 # and magic script execution. This should be an absolute path!
79 # Also not that this should include the name "smbrun" on the end (the
80 # name of the executable)
81 SMBRUN = $(BINDIR)/smbrun
84 PASSWD_FLAGS = \
85 -DPASSWD_PROGRAM=\"$(PASSWD_PROGRAM)\" \
86 -DSMB_PASSWD_PROGRAM=\"$(SMB_PASSWD_PROGRAM)\" \
87 -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
88 -DSAM_DIR=\"$(SAM_DIR)\" \
89 -DSMB_PASSGRP_FILE=\"$(SMB_PASSGRP_FILE)\" \
90 -DSMB_GROUP_FILE=\"$(SMB_GROUP_FILE)\" \
91 -DSMB_ALIAS_FILE=\"$(SMB_ALIAS_FILE)\"
93 FLAGS1 = $(CFLAGS) \
94 -Iinclude -I$(srcdir)/include \
95 -I$(srcdir)/ubiqx \
96 -I$(srcdir)/smbwrapper \
97 $(CPPFLAGS) \
98 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
99 -DSMBLOGFILE=\"$(SMBLOGFILE)\" \
100 -DNMBLOGFILE=\"$(NMBLOGFILE)\"
102 FLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
103 FLAGS3 = -DSWATDIR=\"$(SWATDIR)\" -DSBINDIR=\"$(SBINDIR)\" -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\"
104 FLAGS4 = -DDRIVERFILE=\"$(DRIVERFILE)\" -DBINDIR=\"$(BINDIR)\" -DFORMSFILE=\"$(FORMSFILE)\" -DNTDRIVERSDIR=\"$(NTDRIVERSDIR)\"
105 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4) -DHAVE_INCLUDES_H
106 FLAGS = $(FLAGS5) $(PASSWD_FLAGS)
108 SPROGS = bin/smbd bin/lsarpcd bin/svcctld bin/spoolssd bin/samrd \
109 bin/srvsvcd bin/wkssvcd bin/browserd bin/netlogond bin/winregd \
110 bin/nmbd bin/swat
111 PROGS1 = bin/smbclient bin/testparm bin/testprns bin/smbrun bin/smbstatus
112 PROGS2 = bin/rpcclient bin/smbpasswd bin/make_smbcodepage bin/debug2html
113 PROGS3 = bin/regedit bin/samedit bin/svccontrol bin/cmdat
114 PROGS4 = @WRAP@ @WRAP32@
115 #MPROGS = @MPROGS@
116 PROGS = $(PROGS1) $(PROGS2) $(PROGS3) $(PROGS4) $(MPROGS) bin/nmblookup bin/make_printerdef
118 SCRIPTS = script/smbtar script/addtosmbpass script/convert_smbpasswd
120 QUOTAOBJS=@QUOTAOBJS@
122 ######################################################################
123 # object file lists
124 ######################################################################
126 SAMBALIB = bin/libsamba.la
127 UBIQXLIB = bin/libubiqx.la
128 SMBLIB = bin/libsmb.la
129 NMBLIB = bin/libnmb.la
130 MSRPCLIB = bin/libmsrpc.la
131 SMBPWLIB = bin/libsmbpw.la
132 SAMRPASSLIB = bin/libsamrpass.la
133 SAMRTDBLIB = bin/libsamrtdb.la
134 SAMRNT5LDAPLIB = bin/libsamrnt5ldap.la
136 SAM_PWDB_LIB = @SAM_PWDB_LIB@
138 SAMBA_LIBS = $(MSRPCLIB) $(SMBLIB) $(NMBLIB) $(SAMBALIB)
140 SHARED_LIBS = $(SAMBA_LIBS) $(SMBPWLIB) $(UBIQXLIB) \
141 $(SAM_PWDB_LIB)
143 LIBSTATUS_OBJ = lib/util_status.o
145 LIB_OBJ = lib/charcnv.o lib/charset.o lib/debug.o lib/fault.o \
146 lib/getsmbpass.o lib/interface.o lib/kanji.o \
147 lib/md4.o \
148 lib/netmask.o lib/pidfile.o lib/replace.o \
149 lib/signal.o lib/slprintf.o lib/system.o lib/doscalls.o \
150 lib/time.o lib/ufc.o lib/util.o lib/genrand.o \
151 lib/username.o \
152 lib/access.o lib/smbrun.o \
153 lib/bitmap.o lib/util_sid.o lib/snprintf.o \
154 lib/util_str.o lib/util_unistr.o \
155 lib/util_file.o \
156 lib/util_sock.o lib/util_sec.o lib/util_array.o \
157 lib/vagent.o \
158 tdb/tdb.o
160 STUB_UID_OBJ = lib/stub_uid.o
162 UBIQX_OBJ = ubiqx/ubi_BinTree.o ubiqx/ubi_Cache.o ubiqx/ubi_SplayTree.o \
163 ubiqx/ubi_dLinkList.o ubiqx/ubi_sLinkList.o
165 PARAM_OBJ = param/loadparm.o param/params.o
167 LIBSAMBA_OBJ = $(PARAM_OBJ) $(LIB_OBJ)
169 LIBNMB_OBJ = libsmb/namequery.o libsmb/nmblib.o
171 LIBSMB_OBJ = libsmb/clientgen.o \
172 libsmb/nterr.o libsmb/smbdes.o libsmb/smbencrypt.o \
173 libsmb/smberr.o libsmb/credentials.o \
174 libsmb/pwd_cache.o \
175 lib/crc32.o lib/md5.o lib/hmacmd5.o \
176 lib/util_hnd.o passdb/smbpassfile.o \
177 rpc_parse/parse_creds.o \
178 rpc_parse/parse_net.o \
179 rpc_parse/parse_ntlmssp.o rpc_parse/parse_prs.o \
180 rpc_parse/parse_vuid.o \
181 lib/vuser.o lib/vuser_db.o \
182 rpc_parse/parse_misc.o
184 RPC_SRVUTIL_OBJ = rpc_server/srv_pipe_srv.o \
185 rpc_server/srv_pipe_noauth.o
187 RPC_SERVER_OBJ = \
188 rpc_server/srv_pipe_hnd.o \
189 rpc_server/srv_pipe.o
191 RPC_PARSE_OBJ1 = rpc_parse/parse_lsa.o \
192 rpc_parse/parse_reg.o \
193 rpc_parse/parse_samr.o \
194 rpc_parse/parse_srv.o \
195 rpc_parse/parse_wks.o \
196 rpc_parse/parse_svc.o \
197 rpc_parse/parse_at.o \
198 rpc_parse/parse_spoolss.o \
199 rpc_parse/parse_eventlog.o \
200 rpc_parse/parse_brs.o
202 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
203 rpc_parse/parse_netsec.o \
204 rpc_parse/parse_sec.o \
205 lib/msrpc-agent.o \
206 lib/msrpc-client.o \
207 lib/msrpc_use.o
209 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ1) $(RPC_PARSE_OBJ2)
211 RPC_CLIENT_OBJ = \
212 rpc_client/cli_login.o \
213 rpc_client/cli_netlogon.o \
214 rpc_client/cli_reg.o \
215 rpc_client/cli_pipe.o \
216 rpc_client/cli_pipe_ntlmssp.o \
217 rpc_client/cli_pipe_netsec.o \
218 rpc_client/cli_pipe_noauth.o \
219 rpc_client/cli_connect.o \
220 rpc_client/cli_use.o \
221 rpc_client/cli_spoolss.o \
222 rpc_client/cli_lsarpc.o \
223 rpc_client/cli_wkssvc.o \
224 rpc_client/cli_brs.o \
225 rpc_client/cli_srvsvc.o \
226 rpc_client/cli_svcctl.o \
227 rpc_client/cli_samr.o \
228 rpc_client/msrpc_samr.o \
229 rpc_client/msrpc_netlogon.o \
230 rpc_client/msrpc_lsarpc.o \
231 rpc_client/cli_atsvc.o \
232 rpc_client/cli_eventlog.o
234 LOCKING_OBJ = locking/locking.o
236 GROUPDB_OBJ = groupdb/groupdb.o groupdb/aliasdb.o groupdb/builtindb.o \
237 groupdb/groupfile.o groupdb/aliasfile.o \
238 groupdb/groupunix.o groupdb/aliasunix.o groupdb/builtinunix.o \
239 groupdb/groupldap.o groupdb/aliasldap.o groupdb/builtinldap.o \
240 groupdb/groupnt5ldap.o groupdb/aliasnt5ldap.o groupdb/builtinnt5ldap.o \
241 passdb/passgrp.o passdb/smbpassgroup.o \
242 passdb/smbpassgroupunix.o passdb/passgrpldap.o passdb/passgrpnt5ldap.o
244 SAMPASSDB_OBJ = passdb/sampassdb.o passdb/sampass.o passdb/sampassldap.o passdb/mysqlsampass.o passdb/sampassnt5ldap.o
246 UNIXPASSDB_OBJ = passdb/pass_check.o
248 PASSDB_OBJ = passdb/passdb.o passdb/smbpass.o \
249 passdb/ldap.o passdb/ldapdb.o passdb/nt5ldap.o passdb/nispass.o \
250 passdb/smbpasschange.o passdb/mysqlpass.o passdb/smbpassnt5ldap.o \
251 lib/util_pwdb.o lib/domain_namemap.o
253 SIDDB_OBJ = lib/sids.o
255 PROFILE_OBJ = profile/profile.o
257 SMBD_OBJ1 = smbd/server.o smbd/files.o smbd/connection.o \
258 lib/set_uid.o \
259 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/fileio.o \
260 smbd/ipc.o smbd/lanman.o smbd/mangle.o smbd/negprot.o \
261 smbd/message.o smbd/nttrans.o smbd/pipes.o smbd/predict.o \
262 smbd/$(QUOTAOBJS) smbd/reply.o smbd/ssl.o smbd/trans2.o \
263 smbd/uid.o \
264 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o smbd/blocking.o \
265 smbd/process.o smbd/oplock.o smbd/service.o smbd/error.o smbd/vfs.o \
266 smbd/vfs-wrap.o smbd/dfs.o \
267 smbd/challenge.o \
268 lib/util_pwdb.o
270 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/printing.o
272 MSRPCD_OBJ = msrpc/msrpcd.o \
273 msrpc/msrpcd_process.o \
274 lib/set_vuid.o \
275 lib/set_uid.o
277 BROWSERD_OBJ1 = browserd/browserd.o \
278 rpc_server/srv_brs.o
280 WKSSVCD_OBJ1 = wkssvcd/wkssvcd.o \
281 rpc_server/srv_wkssvc.o \
282 wkssvcd/srv_wkssvc_nt.o
284 SRVSVCD_OBJ1 = srvsvcd/srvsvcd.o \
285 srvsvcd/srv_srvsvc_nt.o \
286 rpc_server/srv_srvsvc.o
288 WINREGD_OBJ1 = winregd/winregd.o \
289 winregd/srv_reg_nt.o \
290 rpc_server/srv_reg.o
292 NETLOGOND_OBJ1 = netlogond/netlogond.o \
293 netlogond/creds_db.o \
294 netlogond/srv_netlogon_nt.o \
295 rpc_server/srv_netlog.o \
296 rpc_server/srv_pipe_netsec.o \
297 lib/passcheck.o
299 SAMRTDBLIB_OBJ = lib/sursalgdomonly.o \
300 lib/util_pwdb.o lib/domain_namemap.o \
301 samrd/srv_samr_tdb_init.o \
302 samrd/srv_samr_dom_tdb.o \
303 samrd/srv_samr_sam_tdb.o \
304 samrd/srv_samr_usr_tdb.o \
305 samrd/srv_samr_grp_tdb.o \
306 samrd/srv_samr_als_tdb.o \
307 samrd/srv_samr_tdb.o
309 SAMRNT5LDAPLIB_OBJ = lib/sursalgdomonly.o \
310 lib/sursalgnt5ldap.o \
311 lib/util_pwdb.o lib/domain_namemap.o \
312 samrd/srv_samr_usr_nt5ldap.o \
313 samrd/srv_samr_dom_nt5ldap.o \
314 samrd/srv_samr_nt5ldap.o
315 # samrd/srv_samr_sam_nt5ldap.o \
316 # samrd/srv_samr_grp_nt5ldap.o \
317 # samrd/srv_samr_als_nt5ldap.o \
319 SAMRPASSLIB_OBJ = rpc_server/srv_lookup.o \
320 samrd/srv_samr_passdb.o \
321 smbd/chgpasswd.o
323 SAMRD_OBJ1 = samrd/samrd.o \
324 rpc_server/srv_pipe_ntlmssp.o \
325 rpc_server/srv_samr.o
327 SVCCTLD_OBJ1 = svcctld/svcctld.o \
328 svcctld/srv_svcctl_nt.o \
329 rpc_server/srv_svcctl.o
331 LSARPCD_OBJ1 = lsarpcd/lsarpcd.o \
332 lsarpcd/srv_lsa.o \
333 lsarpcd/secret_db.o \
334 lsarpcd/srv_lsa_samdb.o
336 SPOOLSSD_OBJ1 = spoolssd/spoolssd.o \
337 rpc_server/srv_spoolss.o \
338 spoolssd/srv_spoolss_nt.o \
339 printing/nt_printing.o
341 SMBD_OBJ = $(SMBD_OBJ1) $(UNIXPASSDB_OBJ) \
342 $(RPC_SERVER_OBJ) \
343 libsmb/clienttrust.o \
344 lib/domain_namemap.o \
345 $(LOCKING_OBJ) \
346 $(SIDDB_OBJ) \
347 $(LIBSTATUS_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ)
349 SMBD_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
351 SRVSVCD_OBJ = $(MSRPCD_OBJ) $(SRVSVCD_OBJ1) \
352 $(RPC_SRVUTIL_OBJ) \
353 $(LOCKING_OBJ) $(PROFILE_OBJ) \
354 $(LIBSTATUS_OBJ)
356 WKSSVCD_OBJ = $(MSRPCD_OBJ) $(WKSSVCD_OBJ1) \
357 $(RPC_SRVUTIL_OBJ) \
358 $(LOCKING_OBJ) $(PROFILE_OBJ)
360 BROWSERD_OBJ = $(MSRPCD_OBJ) $(BROWSERD_OBJ1) \
361 $(RPC_SRVUTIL_OBJ) \
362 $(LOCKING_OBJ) $(PROFILE_OBJ)
364 WINREGD_OBJ = $(MSRPCD_OBJ) $(WINREGD_OBJ1) \
365 $(RPC_SRVUTIL_OBJ) \
366 $(LOCKING_OBJ) $(PROFILE_OBJ)
368 SVCCTLD_OBJ = $(MSRPCD_OBJ) $(SVCCTLD_OBJ1) \
369 $(RPC_SRVUTIL_OBJ) \
370 $(LOCKING_OBJ) $(PROFILE_OBJ)
372 LSARPCD_OBJ = $(MSRPCD_OBJ) $(LSARPCD_OBJ1) \
373 $(RPC_SRVUTIL_OBJ) \
374 $(SIDDB_OBJ) $(LOCKING_OBJ) \
375 $(PROFILE_OBJ)
376 LSARPCD_LIBS = $(SAMBA_LIBS)
378 SPOOLSSD_OBJ = $(MSRPCD_OBJ) $(SPOOLSSD_OBJ1) \
379 $(PRINTING_OBJ) \
380 $(RPC_SRVUTIL_OBJ) \
381 $(LOCKING_OBJ) $(PROFILE_OBJ)
383 NETLOGOND_OBJ = $(MSRPCD_OBJ) $(NETLOGOND_OBJ1) \
384 $(RPC_SRVUTIL_OBJ) \
385 $(LOCKING_OBJ) \
386 $(SIDDB_OBJ) \
387 $(UNIXPASSDB_OBJ) $(LIBSTATUS_OBJ) $(PROFILE_OBJ)
389 NETLOGOND_LIBS = $(SAMBA_LIBS) $(UBIQXLIB) $(SMBPWLIB) $(SAM_PWDB_LIB)
391 NETLOGONPASSD_LIBS = $(SAMBA_LIBS) $(UBIQXLIB) $(SAMRPASSLIB)
393 NETLOGONTDBD_LIBS = $(SAMBA_LIBS) $(UBIQXLIB) $(SAMRTDBLIB)
395 NETLOGONNT5LDAPD_LIBS = $(SAMBA_LIBS) $(UBIQXLIB) $(SAMRNT5LDAPLIB)
397 SAMRD_OBJ = $(MSRPCD_OBJ) $(SAMRD_OBJ1) \
398 $(RPC_SRVUTIL_OBJ) \
399 $(LOCKING_OBJ) \
400 $(SIDDB_OBJ) \
401 $(PROFILE_OBJ)
403 SAMRD_LIBS = $(SAMBA_LIBS) $(UBIQXLIB) $(SMBPWLIB) $(SAM_PWDB_LIB)
405 SAMRPASSD_LIBS = $(SAMBA_LIBS) $(UBIQXLIB) $(SAMRPASSLIB)
407 SAMRTDBD_LIBS = $(SAMBA_LIBS) $(UBIQXLIB) $(SAMRTDBLIB)
409 SAMRNT5LDAPD_LIBS = $(SAMBA_LIBS) $(UBIQXLIB) $(SAMRNT5LDAPLIB)
411 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
412 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
413 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
414 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
415 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
416 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
417 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
418 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
419 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
420 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
421 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
422 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
424 NMBD_OBJ = $(NMBD_OBJ1)
425 NMBD_LIBS = $(SMBLIB) $(NMBLIB) $(SAMBALIB) $(UBIQXLIB)
427 SWAT_OBJ = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
428 web/swat.o libsmb/passchange.o $(LOCKING_OBJ) \
429 rpc_server/srv_lookup.o \
430 $(SIDDB_OBJ) \
431 $(UNIXPASSDB_OBJ) \
432 $(STUB_UID_OBJ)
433 SWAT_LIBS = $(SAMBA_LIBS) $(SMBPWLIB) $(UBIQXLIB)
435 SMBRUN_OBJ = utils/smbrun.o
437 SMBSH_OBJ = smbwrapper/smbsh.o smbwrapper/shared.o
439 MAKE_SMBCODEPAGE_OBJ = utils/make_smbcodepage.o
441 MAKE_PRINTERDEF_OBJ = utils/make_printerdef.o
443 STATUS_OBJ = utils/status.o $(LIBSTATUS_OBJ) $(LOCKING_OBJ) \
444 $(PROFILE_OBJ) $(STUB_UID_OBJ)
446 TESTPARM_OBJ = utils/testparm.o
448 TESTPRNS_OBJ = utils/testprns.o printing/pcap.o printing/print_svid.o
450 SMBPASSWD_OBJ = utils/smbpasswd.o libsmb/passchange.o \
451 libsmb/clienttrust.o \
452 rpc_server/srv_lookup.o \
453 rpc_client/cli_netlogon_sync.o \
454 $(SIDDB_OBJ) $(STUB_UID_OBJ)
455 SMBPASSWD_LIBS = $(SAMBA_LIBS) $(SMBPWLIB) $(UBIQXLIB)
457 REGEDIT_OBJ = lib/cmd_interp.o \
458 rpcclient/regedit.o \
459 rpcclient/regedit_cmds.o \
460 rpcclient/display_reg.o \
461 rpcclient/display_sec.o \
462 rpcclient/cmd_reg.o \
463 $(STUB_UID_OBJ)
464 REGEDIT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
466 SVCCLIENT_OBJ = lib/cmd_interp.o \
467 rpcclient/svcctrl.o \
468 rpcclient/svcctrl_cmds.o \
469 rpcclient/display_svc.o \
470 rpcclient/cmd_svcctl.o \
471 $(SIDDB_OBJ) \
472 $(STUB_UID_OBJ)
473 SVCCLIENT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
475 SAMCLIENT_OBJ = lib/cmd_interp.o \
476 rpcclient/samedit.o \
477 rpcclient/samedit_cmds.o \
478 rpcclient/netlogon_cmds.o \
479 rpcclient/display_sam.o \
480 rpcclient/display_sec.o \
481 rpcclient/display_sync.o \
482 rpcclient/cmd_samr.o \
483 rpcclient/cmd_netlogon.o \
484 $(SIDDB_OBJ) \
485 $(STUB_UID_OBJ)
486 SAMCLIENT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
488 CMDCLIENT_OBJ = lib/cmd_interp.o \
489 rpcclient/cmdat.o \
490 rpcclient/cmdat_cmds.o \
491 rpcclient/display_at.o \
492 rpcclient/cmd_atsvc.o \
493 $(SIDDB_OBJ) \
494 $(STUB_UID_OBJ)
495 CMDCLIENT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
497 NETCLIENT_OBJ = lib/cmd_interp.o \
498 rpcclient/net.o \
499 rpcclient/net_cmds.o \
500 rpcclient/display_srv.o \
501 rpcclient/cmd_wkssvc.o \
502 rpcclient/cmd_brs.o \
503 rpcclient/cmd_srvsvc.o \
504 $(SIDDB_OBJ) \
505 $(STUB_UID_OBJ)
506 NETCLIENT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
508 EVTCLIENT_OBJ = lib/cmd_interp.o \
509 rpcclient/eventlog.o \
510 rpcclient/eventlog_cmds.o \
511 rpcclient/display_event.o \
512 rpcclient/cmd_eventlog.o \
513 $(SIDDB_OBJ) \
514 $(STUB_UID_OBJ)
515 EVTCLIENT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
517 LSACLIENT_OBJ = lib/cmd_interp.o \
518 rpcclient/lsa.o \
519 rpcclient/lsa_cmds.o \
520 rpcclient/cmd_lsarpc.o \
521 $(SIDDB_OBJ) \
522 $(STUB_UID_OBJ)
523 LSACLIENT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
525 RPCCLIENT_OBJ = lib/cmd_interp.o \
526 rpcclient/rpcclient.o \
527 rpcclient/svcctrl_cmds.o \
528 rpcclient/samedit_cmds.o \
529 rpcclient/regedit_cmds.o \
530 rpcclient/lsa_cmds.o \
531 rpcclient/net_cmds.o \
532 rpcclient/eventlog_cmds.o \
533 rpcclient/netlogon_cmds.o \
534 rpcclient/display_at.o \
535 rpcclient/display_event.o \
536 rpcclient/display_reg.o \
537 rpcclient/display_sam.o \
538 rpcclient/display_sec.o \
539 rpcclient/display_spool.o \
540 rpcclient/display_srv.o \
541 rpcclient/display_svc.o \
542 rpcclient/display_sync.o \
543 rpcclient/cmd_lsarpc.o \
544 rpcclient/cmd_wkssvc.o \
545 rpcclient/cmd_brs.o \
546 rpcclient/cmd_samr.o \
547 rpcclient/cmd_reg.o \
548 rpcclient/cmd_srvsvc.o \
549 rpcclient/cmd_svcctl.o \
550 rpcclient/cmd_netlogon.o \
551 rpcclient/cmd_atsvc.o \
552 rpcclient/cmd_spoolss.o \
553 rpcclient/cmd_eventlog.o \
554 $(SIDDB_OBJ) \
555 $(STUB_UID_OBJ)
556 RPCCLIENT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
558 SMBWRAPPER_OBJ = smbwrapper/smbw.o smbwrapper/wrapped.o \
559 smbwrapper/smbw_dir.o smbwrapper/smbw_stat.o \
560 smbwrapper/realcalls.o smbwrapper/shared.o
562 CLIENT_OBJ = client/client.o client/clitar.o
563 CLIENT_LIBS = $(SMBLIB) $(NMBLIB) $(SAMBALIB)
565 MOUNT_OBJ = client/smbmount.o client/clientutil.o \
566 $(RPC_PARSE_OBJ2)
568 MNT_OBJ = client/smbmnt.o \
569 $(RPC_PARSE_OBJ2)
571 UMOUNT_OBJ = client/smbumount.o \
572 $(RPC_PARSE_OBJ2)
574 NMB_AGENT_OBJ = utils/nmb-agent.o \
575 $(RPC_PARSE_OBJ2)
577 NMBLOOKUP_OBJ = utils/nmblookup.o
579 #$(RPC_PARSE_OBJ2)
581 DEBUG2HTML_OBJ = utils/debug2html.o
583 SMB_AGENT_OBJ = utils/smb-agent.o \
584 $(RPC_PARSE_OBJ2) rpc_client/cli_use.o
586 SMB_CLIENT_OBJ = smb-client.o
588 SMBTORTURE_OBJ = utils/torture.o \
590 SMBFILTER_OBJ = utils/smbfilter.o \
591 rpc_parse/parse_creds.o \
592 rpc_parse/parse_ntlmssp.o rpc_parse/parse_prs.o \
593 rpc_parse/parse_misc.o
595 RPCTORTURE_OBJ = utils/rpctorture.o \
596 rpcclient/display.o \
597 rpcclient/cmd_lsarpc.o \
598 rpcclient/cmd_wkssvc.o \
599 rpcclient/cmd_samr.o \
600 rpcclient/cmd_srvsvc.o \
601 rpcclient/cmd_netlogon.o \
602 $(SIDDB_OBJ)
604 PROTO_OBJ = $(LIB_OBJ) $(LIBNMB_OBJ) $(PARAM_OBJ) \
605 $(MSRPCD_OBJ) $(SVCCTLD_OBJ1) $(WINREGD_OBJ1) \
606 $(SAMRD_OBJ1) \
607 $(SAMRTDBLIB_OBJ) \
608 $(SAMRNT5LDAPLIB_OBJ) \
609 $(SAMRPASSLIB_OBJ) \
610 $(SAMRTDBD_OBJ1) \
611 $(SAMRNT5LDAPD_OBJ1) \
612 $(SRVSVCD_OBJ1) $(WKSSVCD_OBJ1) $(BROWSERD_OBJ1) \
613 $(SPOOLSSD_OBJ1) $(NETLOGOND_OBJ1) \
614 $(LSARPCD_OBJ1) $(SMBD_OBJ) $(NMBD_OBJ) \
615 $(SWAT_OBJ) $(CLIENT_OBJ) \
616 $(REGEDIT_OBJ) $(SVCCLIENT_OBJ) \
617 $(SAMCLIENT_OBJ) $(RPCCLIENT_OBJ) \
618 $(CMDCLIENT_OBJ) $(LSACLIENT_OBJ) \
619 $(EVTCLIENT_OBJ) $(NETCLIENT_OBJ) \
620 $(LIBSMB_OBJ) $(SMBWRAPPER_OBJ) \
621 $(GROUPDB_OBJ) $(PASSDB_OBJ) $(SAMPASSDB_OBJ) \
622 $(SMBPASSWD_OBJ) $(SIDDB_OBJ) \
623 $(RPC_SRVUTIL_OBJ) \
624 $(RPC_CLIENT_OBJ) $(RPC_PARSE_OBJ2)
626 SMBWRAPPERPICOBJS = $(SMBWRAPPER_OBJ:.o=.po)
627 SMBWRAPPERPICOBJS32 = $(SMBWRAPPER_OBJ:.o=.po32)
629 LIBSAMRTDB_LTOBJS = $(SAMRTDBLIB_OBJ:.o=.lo)
631 LIBSAMRPASS_LTOBJS = $(SAMRPASSLIB_OBJ:.o=.lo)
633 LIBSAMRNT5LDAP_LTOBJS = $(SAMRNT5LDAPLIB_OBJ:.o=.lo)
635 LIBSMBPW_LTOBJS = $(GROUPDB_OBJ:.o=.lo) $(SAMPASSDB_OBJ:.o=.lo) \
636 $(PASSDB_OBJ:.o=.lo)
638 LIBUBIQX_LTOBJS = $(UBIQX_OBJ:.o=.lo)
640 LIBSAMBA_LTOBJS = $(LIBSAMBA_OBJ:.o=.lo)
642 LIBNMB_LTOBJS = $(LIBNMB_OBJ:.o=.lo)
644 LIBSMB_LTOBJS = $(LIBSMB_OBJ:.o=.lo)
646 LIBMSRPC_LTOBJS = $(RPC_CLIENT_OBJ:.o=.lo) $(RPC_PARSE_OBJ:.o=.lo)
648 WINBINDD_OBJ = nsswitch/winbindd.o \
649 rpc_client/cli_lsarpc.o rpc_parse/parse_lsa.o \
650 rpc_client/cli_connect.o rpc_client/cli_use.o rpc_client/cli_samr.o \
651 rpc_parse/parse_samr.o rpc_client/cli_pipe.o rpc_parse/parse_rpc.o \
652 lib/msrpc-client.o rpc_client/cli_pipe_noauth.o lib/set_uid.o \
653 rpc_client/cli_netlogon.o rpc_client/msrpc_samr.o \
654 rpc_client/cli_pipe_ntlmssp.o lib/msrpc_use.o \
655 rpc_parse/parse_sec.o lib/set_vuid.o \
656 $(LIBNMB_OBJ) $(PARAM_OBJ) $(UBIQX_OBJ) $(LIBSMB_OBJ) $(LIB_OBJ) \
657 $(NSSWINS_OBJ)
659 #msrpc/msrpcd.o browserd/browserd.o \
660 #locking/locking.o msrpc/msrpcd_process.o rpc_server/srv_brs.o \
661 #rpc_server/srv_pipe_srv.o rpc_parse/parse_brs.o rpc_server/srv_pipe_noauth.o \
663 NSS_OBJ_O = nsswitch/ntdom.o
665 NSS_OBJ = $(NSS_OBJ_O:.o=.po)
667 ######################################################################
668 # now the rules...
669 ######################################################################
671 all : CHECK $(SPROGS) $(PROGS)
673 libsamrpass : CHECK $(SAMRPASSLIB)
675 libsamrtdb : CHECK $(SAMRTDBLIB)
677 libsamrnt5ldap : CHECK $(SAMRNT5LDAPLIB)
679 libnmb : CHECK $(NMBLIB)
681 libsmb : CHECK $(SMBLIB)
683 libsmbpw : CHECK $(SMBPWLIB)
685 libmsrpc : CHECK $(MSRPCLIB)
687 libsamba : CHECK $(SAMBALIB)
689 libubiqx : CHECK $(UBIQXLIB)
691 smbwrapper : CHECK bin/smbsh bin/smbwrapper.so @WRAP32@
693 smbtorture : CHECK bin/smbtorture
695 rpctorture : CHECK bin/rpctorture
697 smbfilter : CHECK bin/smbfilter
699 winbindd: CHECK bin/winbindd
701 nsswitch: CHECK nsswitch/ntdom.so
703 .SUFFIXES:
704 .SUFFIXES: .c .o .lo .po .po32
706 CHECK:
707 @echo "Using FLAGS = $(FLAGS)"
708 @echo "Using LIBS = $(LIBS)"
710 MAKEDIR = || exec false; \
711 if test -d "$$dir"; then :; else \
712 echo mkdir "$$dir"; \
713 mkdir -p "$$dir" >/dev/null 2>&1 || \
714 test -d "$$dir" || \
715 mkdir "$$dir" || \
716 exec false; fi || exec false
718 # the lines below containing `@MAINT@' are for atomatic dependency tracking
719 # they will only work with GNU make, gcc and --enable-maintainer-mode
720 # without --enable-maintainer-mode, they do nothing
721 .c.o: @MAINT@ .deps/.dummy
722 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
723 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
724 @MAINT@ @if (: >> .deps/$@ || : > .deps/$@) >/dev/null 2>&1; then :; \
725 @MAINT@ else dir=.deps/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
726 @MAINT@ $(MAKEDIR); fi; rm -f .deps/$@ .deps/$@d
727 @echo Compiling $*.c
728 @$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
729 -o $@ @MAINT@ -Wp,-MD,.deps/$@
730 @MAINT@ @sed 's|^'`echo $@ | sed 's,.*/,,'`':|$@:|' \
731 @MAINT@ <.deps/$@ >.deps/$@d && \
732 @MAINT@ rm -f .deps/$@ && : >.deps/.stamp
734 # This is for libtool
735 .c.lo: @MAINT@ .deps/.dummy
736 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
737 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
738 @MAINT@ @if (: >> .deps/$@ || : > .deps/$@) >/dev/null 2>&1; then :; \
739 @MAINT@ else dir=.deps/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
740 @MAINT@ $(MAKEDIR); fi; rm -f .deps/$@ .deps/$@d
741 @echo Compiling $< with libtool
742 @$(LIBTOOL) --mode=compile \
743 $(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
744 -o $@ @MAINT@ -Wp,-MD,.deps/$@
745 @MAINT@ @sed 's|^.*'`echo $* | sed 's,.*/,,'`'.*:|$@:|' \
746 @MAINT@ <.deps/$@ >.deps/$@d && \
747 @MAINT@ rm -f .deps/$@ && : >.deps/.stamp
749 .c.po: @MAINT@ .deps/.dummy
750 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
751 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
752 @MAINT@ @if (: >> .deps/$@ || : > .deps/$@) >/dev/null 2>&1; then :; \
753 @MAINT@ else dir=.deps/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
754 @MAINT@ $(MAKEDIR); fi; rm -f .deps/$@ .deps/$@d
755 @echo Compiling $*.c with @PICFLAG@
756 @$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< \
757 -o $*.po.o @MAINT@ -Wp,-MD,.deps/$@
758 @MAINT@ @sed 's|^'`echo $*\.po\.o | sed 's,.*/,,'`':|$@:|' \
759 @MAINT@ <.deps/$@ >.deps/$@d && \
760 @MAINT@ rm -f .deps/$@ && : >.deps/.stamp
761 @mv $*.po.o $@
763 # this is for IRIX
764 .c.po32: @MAINT@ .deps/.dummy
765 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
766 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
767 @MAINT@ @if (: >> .deps/$@ || : > .deps/$@) >/dev/null 2>&1; then :; \
768 @MAINT@ else dir=.deps/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
769 @MAINT@ $(MAKEDIR); fi; rm -f .deps/$@ .deps/$@d
770 @echo Compiling $*.c with @PICFLAG@ and -32
771 @$(CC) -32 -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< \
772 -o $*.po32.o @MAINT@ -Wp,-MD,.deps/$@
773 @MAINT@ @sed 's|^'`echo $*.po32.o | sed 's,.*/,,'`':|$@:|' \
774 @MAINT@ <.deps/$@ >.deps/$@d && \
775 @MAINT@ rm -f .deps/$@ && : >.deps/.stamp
776 @mv $*.po32.o $@
778 bin/.dummy:
779 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
780 dir=bin $(MAKEDIR); fi
781 @: >> $@ || : > $@ # what a fancy emoticon!
783 bin/libmsrpc.la: $(LIBMSRPC_LTOBJS) bin/.dummy
784 @echo Linking shared library $@
785 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
786 $(LIBMSRPC_LTOBJS)
788 bin/libnmb.la: $(LIBNMB_LTOBJS) bin/.dummy
789 @echo Linking shared library $@
790 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
791 $(LIBNMB_LTOBJS)
793 bin/libsmbpw.la: $(LIBSMBPW_LTOBJS) bin/.dummy
794 @echo Linking shared library $@
795 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
796 $(LIBSMBPW_LTOBJS)
798 bin/libsmb.la: $(LIBSMB_LTOBJS) bin/.dummy
799 @echo Linking shared library $@
800 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
801 $(LIBSMB_LTOBJS)
803 bin/libubiqx.la: $(LIBUBIQX_LTOBJS) bin/.dummy
804 @echo Linking shared library $@
805 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
806 $(LIBUBIQX_LTOBJS)
808 bin/libsamba.la: $(LIBSAMBA_LTOBJS) bin/.dummy
809 @echo Linking shared library $@
810 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
811 $(LIBSAMBA_LTOBJS)
813 bin/libsamrpass.la: $(LIBSAMRPASS_LTOBJS) bin/.dummy
814 @echo Linking shared library $@
815 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
816 $(LIBSAMRPASS_LTOBJS)
818 bin/libsamrnt5ldap.la: $(LIBSAMRNT5LDAP_LTOBJS) bin/.dummy
819 @echo Linking shared library $@
820 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
821 $(LIBSAMRNT5LDAP_LTOBJS)
823 bin/libsamrtdb.la: $(LIBSAMRTDB_LTOBJS) bin/.dummy
824 @echo Linking shared library $@
825 @$(LINK) -o $@ -rpath $(LIBDIR) -version-info 0:1:0 \
826 $(LIBSAMRTDB_LTOBJS)
828 bin/smbd: $(SMBD_LIBS) $(SMBD_OBJ) bin/.dummy
829 @echo Linking $@
830 @$(LINK) -o $@ $(SMBD_OBJ) $(SMBD_LIBS) $(LIBS)
832 bin/svcctld: $(SAMBA_LIBS) $(SVCCTLD_OBJ) bin/.dummy
833 @echo Linking $@
834 @$(LINK) -o $@ $(SVCCTLD_OBJ) $(SAMBA_LIBS) $(LIBS)
836 bin/lsarpcd: $(LSARPCD_LIBS) $(LSARPCD_OBJ) bin/.dummy
837 @echo Linking $@
838 @$(LINK) -o $@ $(LSARPCD_OBJ) $(LSARPCD_LIBS) $(LIBS)
840 bin/spoolssd: $(SAMBA_LIBS) $(SPOOLSSD_OBJ) bin/.dummy
841 @echo Linking $@
842 @$(LINK) -o $@ $(SPOOLSSD_OBJ) $(SAMBA_LIBS) $(LIBS)
844 bin/srvsvcd: $(SAMBA_LIBS) $(SRVSVCD_OBJ) bin/.dummy
845 @echo Linking $@
846 @$(LINK) -o $@ $(SRVSVCD_OBJ) $(SAMBA_LIBS) $(LIBS)
848 bin/wkssvcd: $(SAMBA_LIBS) $(WKSSVCD_OBJ) bin/.dummy
849 @echo Linking $@
850 @$(LINK) -o $@ $(WKSSVCD_OBJ) $(SAMBA_LIBS) $(LIBS)
852 bin/browserd: $(SAMBA_LIBS) $(BROWSERD_OBJ) bin/.dummy
853 @echo Linking $@
854 @$(LINK) -o $@ $(BROWSERD_OBJ) $(SAMBA_LIBS) $(LIBS)
856 bin/winregd: $(SAMBA_LIBS) $(WINREGD_OBJ) bin/.dummy
857 @echo Linking $@
858 @$(LINK) -o $@ $(WINREGD_OBJ) $(SAMBA_LIBS) $(LIBS)
860 bin/netlogond: $(NETLOGOND_LIBS) $(NETLOGOND_OBJ) bin/.dummy
861 @echo Linking $@
862 @$(LINK) -o $@ $(NETLOGOND_OBJ) $(NETLOGOND_LIBS) $(LIBS)
864 bin/netlogonpassd: $(NETLOGONPASSD_LIBS) $(NETLOGOND_OBJ) bin/.dummy
865 @echo Linking $@
866 @$(LINK) -o $@ $(NETLOGOND_OBJ) $(NETLOGONPASSD_LIBS) $(LIBS)
868 bin/netlogontdbd: $(NETLOGONTDBD_LIBS) $(NETLOGOND_OBJ) bin/.dummy
869 @echo Linking $@
870 @$(LINK) -o $@ $(NETLOGOND_OBJ) $(NETLOGONTDBD_LIBS) $(LIBS)
872 bin/netlogonnt5ldapd: $(NETLOGONNT5LDAPD_LIBS) $(NETLOGOND_OBJ) bin/.dummy
873 @echo Linking $@
874 @$(LINK) -o $@ $(NETLOGOND_OBJ) $(NETLOGONNT5LDAPD_LIBS) $(LIBS)
876 bin/samrd: $(SAMRD_LIBS) $(SAMRD_OBJ) bin/.dummy
877 @echo Linking $@
878 @$(LINK) -o $@ $(SAMRD_OBJ) $(SAMRD_LIBS) $(LIBS)
880 bin/samrpassd: $(SAMRPASSD_LIBS) $(SAMRD_OBJ) bin/.dummy
881 @echo Linking $@
882 @$(LINK) -o $@ $(SAMRD_OBJ) $(SAMRPASSD_LIBS) $(LIBS)
884 bin/samrtdbd: $(SAMRTDBD_LIBS) $(SAMRD_OBJ) bin/.dummy
885 @echo Linking $@
886 @$(LINK) -o $@ $(SAMRD_OBJ) $(SAMRTDBD_LIBS) $(LIBS)
888 bin/samrnt5ldapd: $(SAMRNT5LDAPD_LIBS) $(SAMRD_OBJ) bin/.dummy
889 @echo Linking $@
890 @$(LINK) -o $@ $(SAMRD_OBJ) $(SAMRNT5LDAPD_LIBS) $(LIBS)
892 bin/nmbd: $(NMBD_LIBS) $(NMBD_OBJ) bin/.dummy
893 @echo Linking $@
894 @$(LINK) -o $@ $(NMBD_OBJ) $(NMBD_LIBS) $(LIBS)
896 bin/swat: $(SWAT_LIBS) $(SWAT_OBJ) bin/.dummy
897 @echo Linking $@
898 @$(LINK) -o $@ $(SWAT_OBJ) $(SWAT_LIBS) $(LIBS)
900 bin/smbrun: $(SMBRUN_OBJ) bin/.dummy
901 @echo Linking $@
902 @$(LINK) -o $@ $(SMBRUN_OBJ) $(LIBS)
904 bin/regedit: $(REGEDIT_LIBS) $(REGEDIT_OBJ) bin/.dummy
905 @echo Linking $@
906 @$(LINK) -o $@ $(REGEDIT_OBJ) $(REGEDIT_LIBS) $(LIBS)
908 bin/svccontrol: $(SVCCLIENT_LIBS) $(SVCCLIENT_OBJ) bin/.dummy
909 @echo Linking $@
910 @$(LINK) -o $@ $(SVCCLIENT_OBJ) $(SVCCLIENT_LIBS) $(LIBS)
912 bin/samedit: $(SAMCLIENT_LIBS) $(SAMCLIENT_OBJ) bin/.dummy
913 @echo Linking $@
914 @$(LINK) -o $@ $(SAMCLIENT_OBJ) $(SAMCLIENT_LIBS) $(LIBS)
916 bin/cmdat: $(CMDCLIENT_LIBS) $(CMDCLIENT_OBJ) bin/.dummy
917 @echo Linking $@
918 @$(LINK) -o $@ $(CMDCLIENT_OBJ) $(CMDCLIENT_LIBS) $(LIBS)
920 bin/eventlog: $(EVTCLIENT_LIBS) $(EVTCLIENT_OBJ) bin/.dummy
921 @echo Linking $@
922 @$(LINK) -o $@ $(EVTCLIENT_OBJ) $(EVTCLIENT_LIBS) $(LIBS)
924 bin/net: $(NETCLIENT_LIBS) $(NETCLIENT_OBJ) bin/.dummy
925 @echo Linking $@
926 @$(LINK) -o $@ $(NETCLIENT_OBJ) $(NETCLIENT_LIBS) $(LIBS)
928 bin/lsa: $(LSACLIENT_LIBS) $(LSACLIENT_OBJ) bin/.dummy
929 @echo Linking $@
930 @$(LINK) -o $@ $(LSACLIENT_OBJ) $(LSACLIENT_LIBS) $(LIBS)
932 bin/rpcclient: $(RPCCLIENT_LIBS) $(RPCCLIENT_OBJ) bin/.dummy
933 @echo Linking $@
934 @$(LINK) -o $@ $(RPCCLIENT_OBJ) $(RPCCLIENT_LIBS) $(LIBS)
936 bin/smbclient: $(CLIENT_LIBS) $(CLIENT_OBJ) bin/.dummy
937 @echo Linking $@
938 @$(LINK) -o $@ $(CLIENT_OBJ) $(CLIENT_LIBS) $(LIBS)
940 #bin/smbmount: $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(MOUNT_OBJ) bin/.dummy
941 # @echo Linking $@
942 # @$(LINK) -o $@ $(MOUNT_OBJ) $(SAMBALIB) $(SMBLIB) $(NMBLIB) $(LIBS)
944 #bin/smbmnt: $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(MNT_OBJ) bin/.dummy
945 # @echo Linking $@
946 # @$(LINK) -o $@ $(MNT_OBJ) $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(LIBS)
948 #bin/smbumount: $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(UMOUNT_OBJ) bin/.dummy
949 # @echo Linking $@
950 # @$(LINK) -o $@ $(UMOUNT_OBJ) $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(LIBS)
952 bin/testparm: $(SAMBALIB) $(TESTPARM_OBJ) bin/.dummy
953 @echo Linking $@
954 @$(LINK) -o $@ $(TESTPARM_OBJ) $(SAMBALIB) $(LIBS)
956 bin/testprns: $(SAMBALIB) $(TESTPRNS_OBJ) bin/.dummy
957 @echo Linking $@
958 @$(LINK) -o $@ $(TESTPRNS_OBJ) $(SAMBALIB) $(LIBS)
960 bin/smbstatus: $(SAMBALIB) $(STATUS_OBJ) bin/.dummy
961 @echo Linking $@
962 @$(LINK) -o $@ $(STATUS_OBJ) $(SAMBALIB) $(LIBS)
964 bin/smbpasswd: $(SMBPASSWD_LIBS) $(SMBPASSWD_OBJ) bin/.dummy
965 @echo Linking $@
966 @$(LINK) -o $@ $(SMBPASSWD_OBJ) $(SMBPASSWD_LIBS) $(LIBS)
968 bin/make_smbcodepage: $(SAMBALIB) $(MAKE_SMBCODEPAGE_OBJ) bin/.dummy
969 @echo Linking $@
970 @$(LINK) -o $@ $(MAKE_SMBCODEPAGE_OBJ) $(SAMBALIB) $(LIBS)
972 bin/nmblookup: $(SAMBALIB) $(NMBLIB) $(NMBLOOKUP_OBJ) bin/.dummy
973 @echo Linking $@
974 @$(LINK) -o $@ $(NMBLOOKUP_OBJ) $(NMBLIB) $(SAMBALIB) $(LIBS)
976 bin/make_printerdef: $(SAMBALIB) $(MAKE_PRINTERDEF_OBJ) bin/.dummy
977 @echo Linking $@
978 @$(LINK) -o $@ $(MAKE_PRINTERDEF_OBJ) $(SAMBALIB) $(LIBS)
980 bin/smbtorture: $(SAMBA_LIBS) $(SMBTORTURE_OBJ) bin/.dummy
981 @echo Linking $@
982 @$(LINK) -o $@ $(SMBTORTURE_OBJ) $(SAMBA_LIBS) $(LIBS)
984 bin/rpctorture: $(SAMBA_LIBS) $(RPCTORTURE_OBJ) bin/.dummy
985 @echo Linking $@
986 @$(LINK) -o $@ $(RPCTORTURE_OBJ) $(SAMBA_LIBS) $(LIBS)
988 bin/smb-client: $(SMB_CLIENT_OBJ) bin/.dummy
989 @echo Linking $@
990 @$(LINK) -o $@ $(SMB_CLIENT_OBJ) $(LIBS)
992 bin/nmb-agent: $(SAMBALIB) $(SMBLIB) $(NMBLIB) $(NMB_AGENT_OBJ) bin/.dummy
993 @echo Linking $@
994 @$(LINK) -o $@ $(NMB_AGENT_OBJ) $(SAMBALIB) $(SMBLIB) $(NMBLIB) $(LIBS)
996 bin/smb-agent: $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(SMB_AGENT_OBJ) bin/.dummy
997 @echo Linking $@
998 @$(LINK) -o $@ $(SMB_AGENT_OBJ) $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(LIBS)
1000 bin/smbfilter: $(SAMBA_LIBS) $(SMBFILTER_OBJ) bin/.dummy
1001 @echo Linking $@
1002 @$(LINK) -o $@ $(SMBFILTER_OBJ) $(SAMBA_LIBS) $(LIBS)
1004 bin/debug2html: $(SAMBALIB) $(DEBUG2HTML_OBJ) bin/.dummy
1005 @echo Linking $@
1006 @$(LINK) -o $@ $(DEBUG2HTML_OBJ) $(SAMBALIB) $(LIBS)
1008 bin/smbwrapper.so: $(SMBWRAPPERPICOBJS)
1009 @echo Linking smbwrapper shared library $@
1010 @$(LD) @LDSHFLAGS@ -o $@ $(SMBWRAPPERPICOBJS) $(LIBS)
1012 bin/smbwrapper.32.so: $(SMBWRAPPERPICOBJS32)
1013 @echo Linking smbwrapper shared library $@
1014 @$(LD) -32 @LDSHFLAGS@ -o $@ $(SMBWRAPPERPICOBJS32) $(LIBS)
1016 bin/smbsh: $(SAMBALIB) $(SMBSH_OBJ) bin/.dummy
1017 @echo Linking $@
1018 @$(LINK) -o $@ $(SMBSH_OBJ) $(SAMBALIB) $(LIBS)
1020 bin/winbindd: $(WINBINDD_OBJ) bin/.dummy
1021 @echo Linking $@
1022 @$(LINK) -o $@ $(WINBINDD_OBJ) $(LIBS)
1024 nsswitch/ntdom.so: $(NSS_OBJ)
1025 @echo "Linking $@"
1026 @$(LD) @LDSHFLAGS@ -o $@ $(NSS_OBJ) -lc
1028 install: installdirs \
1029 install-libs installbin install-sbin \
1030 installman installscripts installcp installswat
1032 installdirs:
1033 @for p in $(BASEDIR) $(SBINDIR) $(BINDIR) $(LIBDIR) $(VARDIR) \
1034 $(CODEPAGEDIR); do \
1035 $(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) $(DESTDIR)$$p; \
1036 done
1038 install-libs: $(SHARED_LIBS) installdirs
1039 @list='$(SHARED_LIBS)'; for p in $$list; do \
1040 echo Installing $$p in $(LIBDIR) using libtool; \
1041 $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(LIBDIR); \
1042 done
1044 installbin: all installdirs
1045 @list='$(PROGS)'; for p in $$list; do \
1046 echo Installing $$p in $(BINDIR) using libtool; \
1047 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(BINDIR); \
1048 done
1050 install-sbin: all installdirs
1051 @list='$(SPROGS)'; for p in $$list; do \
1052 echo Installing $$p in $(SBINDIR) using libtool; \
1053 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(SBINDIR); \
1054 done
1056 installscripts: installdirs
1057 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS) $(BINDIR) $(patsubst %,$(srcdir)/%,$(SCRIPTS))
1059 installcp: installdirs
1060 @$(SHELL) $(srcdir)/script/installcp.sh $(srcdir) $(LIBDIR) $(CODEPAGEDIR) $(BINDIR) $(CODEPAGELIST)
1062 installswat: installdirs
1063 @$(SHELL) $(srcdir)/script/installswat.sh $(SWATDIR) $(srcdir)
1065 # revert to the previously installed version
1066 revert:
1067 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SPROGS)
1068 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(PROGS) $(SCRIPTS)
1070 installman:
1071 @$(SHELL) $(srcdir)/script/installman.sh $(MANDIR) $(srcdir) "@ROFF@"
1073 uninstall: uninstallman uninstallbin uninstallscripts uninstallcp
1075 uninstallman:
1076 @$(SHELL) $(srcdir)/script/uninstallman.sh $(MANDIR) $(srcdir)
1078 uninstallbin:
1079 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
1080 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS)
1082 uninstallscripts:
1083 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
1085 uninstallcp:
1086 @$(SHELL) $(srcdir)/script/uninstallcp.sh $(CODEPAGEDIR) $(CODEPAGELIST)
1088 clean:
1089 -rm -f core */*~ *~ */*.o */*.po */*.po32 */*.lo */*.so
1091 proto: libsmb_proto rpc_client_proto rpc_parse_proto \
1092 all_other_proto_for_now
1094 all_other_proto_for_now:
1095 @echo rebuilding include/proto.h
1096 @cd $(srcdir) && $(AWK) -f script/mkproto.awk `echo $(PROTO_OBJ) | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort -u | egrep -v 'ubiqx/|wrapped'` > include/proto.h
1098 libsmb_proto:
1099 @echo rebuilding include/libsmb_proto.h
1100 @cd $(srcdir) && $(AWK) -v headername=_LIB_SMB_PROTO_H_ \
1101 -f script/mkproto.awk `echo $(LIBSMB_OBJ) | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort -u | egrep -v 'ubiqx/|wrapped'` > include/lib_smb_proto.h
1103 rpc_parse_proto:
1104 @echo rebuilding include/rpc_parse_proto.h
1105 @cd $(srcdir) && $(AWK) -v headername=_RPC_PARSE_PROTO_H_ \
1106 -f script/mkproto.awk `echo $(RPC_PARSE_OBJ) | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort -u | egrep -v 'ubiqx/|wrapped'` > include/rpc_parse_proto.h
1108 rpc_client_proto:
1109 @echo rebuilding include/rpc_client_proto.h
1110 @cd $(srcdir) && $(AWK) -v headername=_RPC_CLIENT_PROTO_H_ \
1111 -f script/mkproto.awk `echo $(RPC_CLIENT_OBJ) | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort -u | egrep -v 'ubiqx/|wrapped'` > include/rpc_client_proto.h
1113 etags:
1114 etags `find . -name "*.[ch]"`
1116 ctags:
1117 ctags `find . -name "*.[ch]"`
1119 realclean: clean
1120 -rm -f config.log $(PROGS) $(SPROGS) bin/.dummy
1121 -rm -rf bin
1123 distclean: realclean
1124 -rm -f include/config.h include/stamp-h Makefile
1125 -rm -f config.status config.cache so_locations
1126 -rm -f libtool
1127 -rm -rf .deps
1130 # This target is for documentation updaters. It regenerates
1131 # the man pages and HTML docs from the YODL source files.
1132 # In order for this target to work YODL must be installed
1133 # and working on your system. JRA.
1134 yodldocs:
1135 @$(SHELL) $(srcdir)/script/makeyodldocs.sh $(srcdir)
1137 # this target is really just for my use. It only works on a limited
1138 # range of machines and is used to produce a list of potentially
1139 # dead (ie. unused) functions in the code. (tridge)
1140 finddead:
1141 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
1142 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
1143 comm -13 nmused.txt nmfns.txt
1145 finddeadsmbd:
1146 nm $(SMBD_OBJ) |grep 'U ' | awk '{print $$2}' | sort -u > nmusedsmbd.txt
1147 nm $(SMBD_OBJ) |grep 'T ' | awk '{print $$3}' | sort -u > nmfnssmbd.txt
1148 comm -13 nmusedsmbd.txt nmfnssmbd.txt
1150 # Rules for maintainers (--enable-maintainer-mode)
1151 AUTOCONF=@AUTOCONF@
1152 AUTOHEADER=@AUTOHEADER@
1154 # when configure.in is updated, reconfigure
1155 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/aclocal.m4
1156 cd $(srcdir) && $(AUTOCONF)
1158 config.status: $(srcdir)/configure
1159 $(SHELL) ./config.status --recheck
1161 Makefile: $(srcdir)/Makefile.in config.status \
1162 include/stamp-h # just to ensure that config.h is up-to-date
1163 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
1165 libtool: $(LIBTOOL_DEPS)
1166 $(SHELL) ./config.status --recheck
1167 # So something depends on libtool, so it gets rebuild, if needed
1168 $(SHARED_LIBS): libtool
1170 # note that nothing depends on config.h, so will probably be rebuilt
1171 # only when explicitly requested, unless dependency tracking is enabled
1172 include/config.h: include/stamp-h
1175 include/stamp-h: $(srcdir)/include/config.h.in config.status
1176 CONFIG_FILES= CONFIG_HEADERS=include/config.h $(SHELL) ./config.status
1177 @echo > include/stamp-h
1179 $(srcdir)/include/config.h.in: $(srcdir)/include/stamp-h.in
1182 $(srcdir)/include/stamp-h.in: @MAINT@ $(srcdir)/acconfig.h $(srcdir)/configure.in
1183 cd $(srcdir) && $(AUTOHEADER)
1184 @date -u > $@
1186 # automatic dependency tracking rules
1187 .deps/.dummy:
1188 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1189 dir=.deps $(MAKEDIR); fi
1190 @: >> $@ || : > $@ # what a fancy emoticon!
1192 .deps/.stamp: .deps/.dummy
1193 @: >> $@ || : > $@
1195 .deps/depend: .deps/.stamp
1196 @echo Updating dependencies
1197 @: | cat `find .deps -type f -name \*d` >$@ 2>/dev/null || true
1199 @MAINT@-include .deps/depend