1 ###########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 ###########################################################################
7 exec_prefix=@
exec_prefix@
18 LIBTOOL
=@LIBTOOL@
--quiet
19 LIBTOOL_DEPS
=@LIBTOOL_DEPS@
20 LINK
=$(LIBTOOL
) --mode
=link
$(CC
) $(FLAGS
) $(LDFLAGS
)
23 RUNTESTDEFAULTFLAGS
= --srcdir @
srcdir@
/..
/testsuite
27 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
37 # we don't use sbindir because we want full compatibility with
38 # the previous releases of Samba
41 VARDIR
= @localstatedir@
43 sysconfdir
= @sysconfdir@
44 sambaconfdir
= @sambaconfdir@
46 # The permissions to give the executables
49 # set these to where to find various files
50 # These can be overridden by command line switches (see smbd(8))
51 # or in smb.conf (see smb.conf(5))
52 LOGFILEBASE
= $(VARDIR
)
53 SMBLOGFILE
= $(LOGFILEBASE
)/log.smb
54 NMBLOGFILE
= $(LOGFILEBASE
)/log.nmb
55 CONFIGFILE
= $(sambaconfdir
)/smb.conf
56 LMHOSTSFILE
= $(sambaconfdir
)/lmhosts
57 DRIVERFILE
= $(LIBDIR
)/printers.def
58 NTDRIVERSDIR
= $(LIBDIR
)
59 FORMSFILE
= $(LIBDIR
)/ntforms.def
60 PASSWD_PROGRAM
= /bin
/passwd
61 # This is where smbpasswd et al go
62 PRIVATEDIR
= @privatedir@
64 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
65 SMB_PASSGRP_FILE
= $(PRIVATEDIR
)/smbpassgrp
66 SMB_GROUP_FILE
= $(PRIVATEDIR
)/smbgroup
67 SMB_ALIAS_FILE
= $(PRIVATEDIR
)/smbalias
68 SAM_DIR
= $(BASEDIR
)/sam
69 SMB_PASSWD_PROGRAM
= $(BINDIR
)/smbpasswd
71 # This is where SWAT images and help files go
74 # the directory where lock files go
77 # The directory where code page definition files go
78 CODEPAGEDIR
= $(LIBDIR
)/codepages
80 # The current codepage definition list.
81 CODEPAGELIST
= 437 737 775 850 852 861 932 866 949 950 936 1251 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 koi8-r
83 # where you are going to have the smbrun binary. This defaults to the
84 # install directory. This binary is needed for correct printing
85 # and magic script execution. This should be an absolute path!
86 # Also not that this should include the name "smbrun" on the end (the
87 # name of the executable)
88 SMBRUN
= $(BINDIR
)/smbrun
92 -DPASSWD_PROGRAM
=\"$(PASSWD_PROGRAM
)\" \
93 -DSMB_PASSWD_PROGRAM
=\"$(SMB_PASSWD_PROGRAM
)\" \
94 -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
95 -DSAM_DIR
=\"$(SAM_DIR
)\" \
96 -DSMB_PASSGRP_FILE
=\"$(SMB_PASSGRP_FILE
)\" \
97 -DSMB_GROUP_FILE
=\"$(SMB_GROUP_FILE
)\" \
98 -DSMB_ALIAS_FILE
=\"$(SMB_ALIAS_FILE
)\"
101 -Iinclude
-I
$(srcdir)/include \
103 -I
$(srcdir)/smbwrapper \
105 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
106 -DSMBLOGFILE
=\"$(SMBLOGFILE
)\" \
107 -DNMBLOGFILE
=\"$(NMBLOGFILE
)\"
109 FLAGS2
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
110 FLAGS3
= -DSWATDIR
=\"$(SWATDIR
)\" -DSBINDIR
=\"$(SBINDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\" -DSMBRUN
=\"$(SMBRUN
)\" -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\"
111 FLAGS4
= -DDRIVERFILE
=\"$(DRIVERFILE
)\" -DBINDIR
=\"$(BINDIR
)\" -DFORMSFILE
=\"$(FORMSFILE
)\" -DNTDRIVERSDIR
=\"$(NTDRIVERSDIR
)\"
112 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
) -DHAVE_INCLUDES_H
113 FLAGS
= $(FLAGS5
) $(PASSWD_FLAGS
)
115 SPROGS
= bin
/smbd bin
/lsarpcd bin
/svcctld bin
/spoolssd bin
/samrd \
116 bin
/srvsvcd bin
/wkssvcd bin
/browserd bin
/netlogond bin
/winregd \
118 PROGS1
= bin
/smbclient bin
/testparm bin
/testprns bin
/smbrun bin
/smbstatus
119 PROGS2
= bin
/rpcclient bin
/smbpasswd bin
/make_smbcodepage bin
/make_unicodemap
120 PROGS3
= bin
/regedit bin
/samedit bin
/net bin
/svccontrol bin
/cmdat bin
/ntspool
121 PROGS4
= @WRAP@ @WRAP32@
123 PROGS
= $(PROGS1
) $(PROGS2
) $(PROGS3
) $(PROGS4
) $(MPROGS
) bin
/nmblookup bin
/make_printerdef
125 SCRIPTS
= $(srcdir)/script
/smbtar
$(srcdir)/script
/addtosmbpass
$(srcdir)/script
/convert_smbpasswd
127 QUOTAOBJS
=@QUOTAOBJS@
129 ######################################################################
131 ######################################################################
133 SAMBALIB
= bin
/libsamba.la
134 UBIQXLIB
= bin
/libubiqx.la
135 SMBLIB
= bin
/libsmb.la
136 NMBLIB
= bin
/libnmb.la
137 MSRPCLIB
= bin
/libmsrpc.la
138 SMBPWLIB
= bin
/libsmbpw.la
139 SAMRPASSLIB
= bin
/libsamrpass.la
140 SAMRTDBLIB
= bin
/libsamrtdb.la
141 SAMRNT5LDAPLIB
= bin
/libsamrnt5ldap.la
142 LIBSURS
= bin
/libsurs.la
144 SAM_PWDB_LIB
= @SAM_PWDB_LIB@
146 SAMBA_LIBS
= $(MSRPCLIB
) $(SMBLIB
) $(NMBLIB
) $(SAMBALIB
)
148 SHARED_LIBS
= $(SAMBA_LIBS
) $(SMBPWLIB
) $(UBIQXLIB
) \
149 $(SAM_PWDB_LIB
) $(LIBSURS
)
151 LIBSTATUS_OBJ
= lib
/util_status.o
153 LIB_OBJ
= lib
/charcnv.o lib
/charset.o lib
/debug.o lib
/fault.o \
154 lib
/getsmbpass.o lib
/interface.o lib
/kanji.o lib
/md4.o \
155 lib
/pidfile.o lib
/replace.o \
156 lib
/signal.o lib
/getopt.o lib
/slprintf.o \
157 lib
/fsusage.o lib
/system.o lib
/doscalls.o \
158 lib
/time.o lib
/ufc.o lib
/util.o lib
/substitute.o \
159 lib
/genrand.o lib
/username.o \
160 lib
/access.o lib
/smbrun.o \
161 lib
/bitmap.o lib
/util_sid.o lib
/snprintf.o \
162 lib
/util_str.o lib
/util_unistr.o lib
/util_wunistr.o \
164 lib
/util_sock.o lib
/util_sec.o lib
/util_array.o \
168 tdb
/tdb.o tdb
/tdbutil.o
170 STUB_UID_OBJ
= lib
/stub_uid.o
172 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
173 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o
175 PARAM_OBJ
= param
/loadparm.o param
/params.o
177 LIBSAMBA_OBJ
= $(PARAM_OBJ
) $(LIB_OBJ
)
179 LIBNMB_OBJ
= libsmb
/namequery.o libsmb
/nmblib.o libsmb
/unexpected.o
182 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/clidomain.o \
183 libsmb
/clifile.o libsmb
/cliprint.o libsmb
/clierror.o \
184 libsmb
/climessage.o libsmb
/cliconnect.o \
185 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
186 libsmb
/smberr.o libsmb
/credentials.o \
187 libsmb
/pwd_cache.o lib
/util_hnd.o \
188 lib
/crc32.o lib
/md5.o lib
/hmacmd5.o \
189 rpc_parse
/parse_creds.o rpc_parse
/parse_net.o \
190 rpc_parse
/parse_rpc.o rpc_parse
/parse_misc.o \
191 rpc_parse
/parse_ntlmssp.o rpc_parse
/parse_prs.o \
192 rpc_parse
/parse_vuid.o \
193 lib
/vuser.o lib
/vuser_db.o
195 RPC_SRVUTIL_OBJ
= rpc_server
/srv_pipe_srv.o \
196 rpc_server
/srv_pipe_noauth.o
199 rpc_server
/srv_pipe_hnd.o \
200 rpc_server
/srv_pipe.o
202 RPC_PARSE_OBJ1
= rpc_parse
/parse_lsa.o \
203 rpc_parse
/parse_reg.o \
204 rpc_parse
/parse_samr.o \
205 rpc_parse
/parse_srv.o \
206 rpc_parse
/parse_wks.o \
207 rpc_parse
/parse_svc.o \
208 rpc_parse
/parse_at.o \
209 rpc_parse
/parse_spoolss.o \
210 rpc_parse
/parse_eventlog.o \
211 rpc_parse
/parse_brs.o \
212 rpc_parse
/parse_dfs.o
215 rpc_parse
/parse_netsec.o \
216 rpc_parse
/parse_sec.o \
219 RPC_PARSE_OBJ
= $(RPC_PARSE_OBJ1
) $(RPC_PARSE_OBJ2
)
222 rpc_client
/cli_login.o \
223 rpc_client
/cli_netlogon.o \
224 rpc_client
/cli_reg.o \
225 rpc_client
/cli_pipe.o \
226 rpc_client
/cli_pipe_ntlmssp.o \
227 rpc_client
/cli_pipe_netsec.o \
228 rpc_client
/cli_pipe_noauth.o \
229 rpc_client
/cli_connect.o \
230 rpc_client
/cli_use.o \
231 rpc_client
/ncalrpc_l_use.o \
232 rpc_client
/ncacn_np_use.o \
233 rpc_client
/cli_spoolss.o \
234 rpc_client
/cli_lsarpc.o \
235 rpc_client
/cli_wkssvc.o \
236 rpc_client
/cli_brs.o \
237 rpc_client
/cli_srvsvc.o \
238 rpc_client
/cli_svcctl.o \
239 rpc_client
/cli_samr.o \
240 rpc_client
/msrpc_samr.o \
241 rpc_client
/msrpc_spoolss.o \
242 rpc_client
/msrpc_netlogon.o \
243 rpc_client
/msrpc_lsarpc.o \
244 rpc_client
/cli_atsvc.o \
245 rpc_client
/cli_eventlog.o \
248 LOCKING_OBJ
= lib
/hash.o locking
/locking.o locking
/brlock.o locking
/posix.o
250 GROUPDB_OBJ
= groupdb
/groupdb.o groupdb
/aliasdb.o groupdb
/builtindb.o \
251 groupdb
/groupfile.o groupdb
/aliasfile.o \
252 groupdb
/groupunix.o groupdb
/aliasunix.o groupdb
/builtinunix.o \
253 groupdb
/groupldap.o groupdb
/aliasldap.o groupdb
/builtinldap.o \
254 groupdb
/groupnt5ldap.o groupdb
/aliasnt5ldap.o groupdb
/builtinnt5ldap.o \
255 passdb
/passgrp.o passdb
/smbpassgroup.o \
256 passdb
/smbpassgroupunix.o passdb
/passgrpldap.o passdb
/passgrpnt5ldap.o
258 SAMPASSDB_OBJ
= passdb
/sampassdb.o passdb
/sampass.o passdb
/sampassldap.o passdb
/mysqlsampass.o passdb
/sampassnt5ldap.o
260 UNIXPASSDB_OBJ
= passdb
/pass_check.o
262 PASSDB_OBJ
= passdb
/passdb.o passdb
/smbpass.o \
263 passdb
/ldap.o passdb
/ldapdb.o passdb
/nt5ldap.o passdb
/nispass.o \
264 passdb
/smbpasschange.o passdb
/mysqlpass.o passdb
/smbpassnt5ldap.o \
265 passdb
/smbpassfile.o lib
/util_pwdb.o lib
/domain_namemap.o
267 SIDDB_OBJ
= lib
/sids.o lib
/util_seaccess.o
269 PROFILE_OBJ
= profile
/profile.o
271 SMBD_OBJ1
= smbd
/server.o smbd
/files.o smbd
/connection.o \
272 lib
/set_uid.o smbd
/dfree.o smbd
/dir.o smbd
/password.o \
273 smbd
/conn.o smbd
/fileio.o \
274 smbd
/ipc.o smbd
/lanman.o smbd
/mangle.o smbd
/negprot.o \
275 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
276 smbd
/$(QUOTAOBJS
) smbd
/reply.o smbd
/ssl.o smbd
/trans2.o \
277 smbd
/uid.o smbd
/dosmode.o smbd
/filename.o smbd
/open.o \
278 smbd
/close.o smbd
/blocking.o smbd
/process.o smbd
/oplock.o \
279 smbd
/service.o smbd
/error.o smbd
/vfs.o smbd
/vfs-wrap.o \
280 smbd
/challenge.o lib
/util_pwdb.o smbd
/afsticket.o \
284 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o \
285 printing
/print_cups.o printing
/load.o
287 PRINTBACKEND_OBJ
= printing
/printing.o printing
/lpq_parse.o
289 MSDFS_OBJ
= msdfs
/msdfs.o msdfs
/msdfs_tdb.o msdfs
/parse_dfs_map.o
291 MSRPCD_OBJ
= msrpc
/msrpcd.o \
292 msrpc
/msrpcd_process.o \
296 BROWSERD_OBJ1
= browserd
/browserd.o \
299 WKSSVCD_OBJ1
= wkssvcd
/wkssvcd.o \
300 rpc_server
/srv_wkssvc.o \
301 wkssvcd
/srv_wkssvc_nt.o
303 SRVSVCD_OBJ1
= srvsvcd
/srvsvcd.o \
304 srvsvcd
/srv_srvsvc_nt.o \
305 rpc_server
/srv_srvsvc.o
307 WINREGD_OBJ1
= winregd
/winregd.o \
308 winregd
/srv_reg_nt.o \
311 NETLOGOND_OBJ1
= netlogond
/netlogond.o \
312 netlogond
/creds_db.o \
313 netlogond
/srv_netlogon_nt.o \
314 rpc_server
/srv_netlog.o \
315 rpc_server
/srv_pipe_netsec.o \
318 SAMRTDBLIB_OBJ
= lib
/util_pwdb.o lib
/domain_namemap.o \
319 samrd
/srv_samr_tdb_init.o \
320 samrd
/srv_samr_dom_tdb.o \
321 samrd
/srv_samr_sam_tdb.o \
322 samrd
/srv_samr_usr_tdb.o \
323 samrd
/srv_samr_grp_tdb.o \
324 samrd
/srv_samr_als_tdb.o \
325 samrd
/srv_samr_tdb.o \
328 SAMRNT5LDAPLIB_OBJ
= lib
/util_pwdb.o lib
/domain_namemap.o \
329 samrd
/srv_samr_usr_nt5ldap.o \
330 samrd
/srv_samr_dom_nt5ldap.o \
331 samrd
/srv_samr_nt5ldap.o \
333 # samrd/srv_samr_sam_nt5ldap.o \
334 # samrd/srv_samr_grp_nt5ldap.o \
335 # samrd/srv_samr_als_nt5ldap.o
337 SAMRPASSLIB_OBJ
= rpc_server
/srv_lookup.o \
338 samrd
/srv_samr_passdb.o \
342 SAMRD_OBJ1
= samrd
/samrd.o \
343 rpc_server
/srv_pipe_ntlmssp.o \
344 rpc_server
/srv_samr.o
346 SVCCTLD_OBJ1
= svcctld
/svcctld.o \
347 svcctld
/srv_svcctl_nt.o \
348 rpc_server
/srv_svcctl.o
350 LSARPCD_OBJ1
= lsarpcd
/lsarpcd.o \
352 lsarpcd
/secret_db.o \
353 lsarpcd
/srv_lsa_samdb.o
355 SPOOLSSD_OBJ1
= spoolssd
/spoolssd.o \
356 rpc_server
/srv_spoolss.o \
357 spoolssd
/srv_spoolss_nt.o \
358 printing
/nt_printing.o
360 SMBD_OBJ
= $(SMBD_OBJ1
) $(MSDFS_OBJ
) $(UNIXPASSDB_OBJ
) \
362 lib
/domain_namemap.o \
365 $(LIBSTATUS_OBJ
) $(PRINTING_OBJ
) $(PRINTBACKEND_OBJ
) \
368 SMBD_LIBS
= $(SAMBA_LIBS
) $(UBIQXLIB
) $(LIBSURS
)
370 SRVSVCD_OBJ
= $(MSRPCD_OBJ
) $(SRVSVCD_OBJ1
) \
376 WKSSVCD_OBJ
= $(MSRPCD_OBJ
) $(WKSSVCD_OBJ1
) \
381 BROWSERD_OBJ
= $(MSRPCD_OBJ
) $(BROWSERD_OBJ1
) \
386 WINREGD_OBJ
= $(MSRPCD_OBJ
) $(WINREGD_OBJ1
) \
391 SVCCTLD_OBJ
= $(MSRPCD_OBJ
) $(SVCCTLD_OBJ1
) \
396 LSARPCD_OBJ
= $(MSRPCD_OBJ
) $(LSARPCD_OBJ1
) \
400 LSARPCD_LIBS
= $(SAMBA_LIBS
)
402 SPOOLSSD_OBJ
= $(MSRPCD_OBJ
) $(SPOOLSSD_OBJ1
) \
404 $(PRINTBACKEND_OBJ
) \
408 SPOOLSSD_LIBS
= $(SAMBA_LIBS
) $(UBIQXLIB
)
410 NETLOGOND_OBJ
= $(MSRPCD_OBJ
) $(NETLOGOND_OBJ1
) \
413 $(UNIXPASSDB_OBJ
) $(LIBSTATUS_OBJ
) $(PROFILE_OBJ
)
415 NETLOGOND_LIBS
= $(SAMBA_LIBS
) $(SAM_PWDB_LIB
) \
416 $(LIBSURS
) $(UBIQXLIB
)
418 NETLOGONPASSD_LIBS
= $(SAMBA_LIBS
) $(SAMRPASSLIB
) $(SMBPWLIB
) \
419 $(LIBSURS
) $(UBIQXLIB
)
421 NETLOGONTDBD_LIBS
= $(SAMBA_LIBS
) $(SAMRTDBLIB
) \
422 $(LIBSURS
) $(UBIQXLIB
)
424 NETLOGONNT5LDAPD_LIBS
= $(SAMBA_LIBS
) $(SAMRNT5LDAPLIB
) \
425 $(LIBSURS
) $(UBIQXLIB
)
427 SAMRD_OBJ
= $(MSRPCD_OBJ
) $(SAMRD_OBJ1
) \
432 LIBSURS_OBJ
= lib
/surs.o lib
/sursalgdomonly.o \
433 lib
/sursalgnt5ldap.o \
436 SAMRD_LIBS
= $(SAMBA_LIBS
) $(SAM_PWDB_LIB
) \
437 $(LIBSURS
) $(UBIQXLIB
)
439 SAMRPASSD_LIBS
= $(SAMBA_LIBS
) $(SAMRPASSLIB
) $(SMBPWLIB
) \
440 $(LIBSURS
) $(UBIQXLIB
)
442 SAMRTDBD_LIBS
= $(SAMBA_LIBS
) $(SAMRTDBLIB
) \
443 $(LIBSURS
) $(UBIQXLIB
)
445 SAMRNT5LDAPD_LIBS
= $(SAMBA_LIBS
) $(SAMRNT5LDAPLIB
) \
446 $(LIBSURS
) $(UBIQXLIB
)
448 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
449 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
450 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
451 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
452 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
453 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
454 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
455 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
456 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
457 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
458 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
459 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
461 NMBD_OBJ
= $(NMBD_OBJ1
)
462 NMBD_LIBS
= $(SMBLIB
) $(NMBLIB
) $(SAMBALIB
) $(UBIQXLIB
)
464 SWAT_OBJ
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
465 web
/swat.o libsmb
/passchange.o
$(LOCKING_OBJ
) \
466 rpc_server
/srv_lookup.o \
472 SWAT_LIBS
= $(SAMBA_LIBS
) $(SMBPWLIB
) $(UBIQXLIB
) $(LIBSURS
)
474 SMBRUN_OBJ
= utils
/smbrun.o lib
/util_sec.o
476 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o
478 MAKE_SMBCODEPAGE_OBJ
= utils
/make_smbcodepage.o
480 MAKE_UNICODEMAP_OBJ
= utils
/make_unicodemap.o
482 MAKE_PRINTERDEF_OBJ
= utils
/make_printerdef.o
484 STATUS_OBJ
= utils
/status.o
$(LIBSTATUS_OBJ
) $(LOCKING_OBJ
) \
485 $(PROFILE_OBJ
) $(STUB_UID_OBJ
)
487 TESTPARM_OBJ
= utils
/testparm.o
489 TESTPRNS_OBJ
= utils
/testprns.o printing
/pcap.o printing
/print_svid.o \
490 printing
/print_cups.o
492 SMBPASSWD_OBJ
= utils
/smbpasswd.o libsmb
/passchange.o \
493 rpc_server
/srv_lookup.o \
494 rpc_client
/cli_netlogon_sync.o \
495 $(SIDDB_OBJ
) $(STUB_UID_OBJ
)
497 SMBPASSWD_LIBS
= $(SAMBA_LIBS
) $(SMBPWLIB
) $(UBIQXLIB
) $(LIBSURS
)
499 REGEDIT_OBJ
= lib
/cmd_interp.o \
500 rpcclient
/regedit.o \
501 rpcclient
/regedit_cmds.o \
502 rpcclient
/display_reg.o \
503 rpcclient
/display_sec.o \
504 rpcclient
/cmd_reg.o \
506 REGEDIT_LIBS
= $(SAMBA_LIBS
)
508 SVCCLIENT_OBJ
= lib
/cmd_interp.o \
509 rpcclient
/svcctrl.o \
510 rpcclient
/svcctrl_cmds.o \
511 rpcclient
/display_svc.o \
512 rpcclient
/cmd_svcctl.o \
515 SVCCLIENT_LIBS
= $(SAMBA_LIBS
)
517 SAMCLIENT_OBJ
= lib
/cmd_interp.o \
518 rpcclient
/samedit.o \
519 rpcclient
/samedit_cmds.o \
520 rpcclient
/netlogon_cmds.o \
521 rpcclient
/display_sam.o \
522 rpcclient
/display_sec.o \
523 rpcclient
/display_sync.o \
524 rpcclient
/cmd_samr.o \
525 rpcclient
/cmd_netlogon.o \
528 SAMCLIENT_LIBS
= $(SAMBA_LIBS
)
530 CMDCLIENT_OBJ
= lib
/cmd_interp.o \
532 rpcclient
/cmdat_cmds.o \
533 rpcclient
/display_at.o \
534 rpcclient
/cmd_atsvc.o \
537 CMDCLIENT_LIBS
= $(SAMBA_LIBS
)
539 NETCLIENT_OBJ
= lib
/cmd_interp.o \
541 rpcclient
/net_cmds.o \
542 rpcclient
/dfs_cmds.o \
543 rpcclient
/display_srv.o \
544 rpcclient
/display_dfs.o \
545 rpcclient
/cmd_wkssvc.o \
546 rpcclient
/cmd_brs.o \
547 rpcclient
/cmd_dfs.o \
548 rpcclient
/cmd_srvsvc.o \
551 NETCLIENT_LIBS
= $(SAMBA_LIBS
)
553 EVTCLIENT_OBJ
= lib
/cmd_interp.o \
554 rpcclient
/eventlog.o \
555 rpcclient
/eventlog_cmds.o \
556 rpcclient
/display_event.o \
557 rpcclient
/cmd_eventlog.o \
560 EVTCLIENT_LIBS
= $(SAMBA_LIBS
) $(UBIQXLIB
)
562 LSACLIENT_OBJ
= lib
/cmd_interp.o \
564 rpcclient
/lsa_cmds.o \
565 rpcclient
/cmd_lsarpc.o \
568 LSACLIENT_LIBS
= $(SAMBA_LIBS
) $(UBIQXLIB
)
570 RPCTORTURE_OBJ
= lib
/cmd_interp.o \
572 rpcclient
/net_cmds.o \
573 rpcclient
/display_event.o \
574 rpcclient
/display_srv.o \
575 rpcclient
/display_sync.o \
576 rpcclient
/cmd_wkssvc.o \
577 rpcclient
/cmd_brs.o \
578 rpcclient
/cmd_srvsvc.o \
579 rpcclient
/cmd_netlogon.o \
582 RPCTORTURE_LIBS
= $(SAMBA_LIBS
) $(UBIQXLIB
)
584 SPOOLCLIENT_OBJ
= lib
/cmd_interp.o \
585 rpcclient
/spoolss.o \
586 rpcclient
/spoolss_cmds.o \
587 rpcclient
/display_spool.o \
588 rpcclient
/cmd_spoolss.o \
591 SPOOLCLIENT_LIBS
= $(SAMBA_LIBS
)
593 RPCCLIENT_OBJ
= lib
/cmd_interp.o \
594 rpcclient
/rpcclient.o \
595 rpcclient
/svcctrl_cmds.o \
596 rpcclient
/samedit_cmds.o \
597 rpcclient
/regedit_cmds.o \
598 rpcclient
/lsa_cmds.o \
599 rpcclient
/net_cmds.o \
600 rpcclient
/eventlog_cmds.o \
601 rpcclient
/netlogon_cmds.o \
602 rpcclient
/cmdat_cmds.o \
603 rpcclient
/spoolss_cmds.o \
604 rpcclient
/dfs_cmds.o \
605 rpcclient
/display_at.o \
606 rpcclient
/display_event.o \
607 rpcclient
/display_reg.o \
608 rpcclient
/display_sam.o \
609 rpcclient
/display_sec.o \
610 rpcclient
/display_spool.o \
611 rpcclient
/display_srv.o \
612 rpcclient
/display_svc.o \
613 rpcclient
/display_sync.o \
614 rpcclient
/display_dfs.o \
615 rpcclient
/cmd_lsarpc.o \
616 rpcclient
/cmd_wkssvc.o \
617 rpcclient
/cmd_brs.o \
618 rpcclient
/cmd_samr.o \
619 rpcclient
/cmd_reg.o \
620 rpcclient
/cmd_srvsvc.o \
621 rpcclient
/cmd_svcctl.o \
622 rpcclient
/cmd_netlogon.o \
623 rpcclient
/cmd_atsvc.o \
624 rpcclient
/cmd_spoolss.o \
625 rpcclient
/cmd_eventlog.o \
626 rpcclient
/cmd_dfs.o \
629 RPCCLIENT_LIBS
= $(SAMBA_LIBS
)
631 PAM_NTDOM_OBJ
= pam_ntdom
/pam_ntdom_auth.o \
632 pam_ntdom
/rpc_validate.o \
633 pam_ntdom
/support.o \
636 PAM_NTDOM_LIBS
= $(SAMBA_LIBS
)
638 SMBWRAPPER_OBJ
= smbwrapper
/smbw.o smbwrapper
/wrapped.o \
639 smbwrapper
/smbw_dir.o smbwrapper
/smbw_stat.o \
640 smbwrapper
/realcalls.o smbwrapper
/shared.o
642 CLIENT_OBJ
= client
/client.o client
/clitar.o
643 CLIENT_LIBS
= $(SMBLIB
) $(NMBLIB
) $(SAMBALIB
)
645 MOUNT_OBJ
= client
/smbmount.o client
/clientutil.o \
648 MNT_OBJ
= client
/smbmnt.o \
651 UMOUNT_OBJ
= client
/smbumount.o \
654 NMB_AGENT_OBJ
= utils
/nmb-agent.o \
657 NMBLOOKUP_OBJ
= utils
/nmblookup.o
659 DEBUG2HTML_OBJ
= utils
/debug2html.o
661 SMB_AGENT_OBJ
= utils
/smb-agent.o \
662 $(RPC_PARSE_OBJ2
) rpc_client
/cli_use.o
664 SMB_CLIENT_OBJ
= smb-client.o
666 SMBTORTURE_OBJ
= utils
/torture.o
668 SMBFILTER_OBJ
= utils
/smbfilter.o \
669 rpc_parse
/parse_creds.o \
670 rpc_parse
/parse_ntlmssp.o rpc_parse
/parse_prs.o
672 PROTO_OBJ
= $(LIB_OBJ
) $(LIBNMB_OBJ
) $(PARAM_OBJ
) \
673 $(MSRPCD_OBJ
) $(SVCCTLD_OBJ1
) $(WINREGD_OBJ1
) \
676 $(SAMRNT5LDAPLIB_OBJ
) \
680 $(SAMRNT5LDAPD_OBJ1
) \
681 $(SRVSVCD_OBJ1
) $(WKSSVCD_OBJ1
) $(BROWSERD_OBJ1
) \
682 $(SPOOLSSD_OBJ1
) $(NETLOGOND_OBJ1
) \
683 $(LSARPCD_OBJ1
) $(SMBD_OBJ
) $(NMBD_OBJ
) \
684 $(SWAT_OBJ
) $(CLIENT_OBJ
) \
685 $(REGEDIT_OBJ
) $(SVCCLIENT_OBJ
) \
686 $(SAMCLIENT_OBJ
) $(RPCCLIENT_OBJ
) \
687 $(RPCTORTURE_OBJ
) $(SPOOLCLIENT_OBJ
) \
688 $(CMDCLIENT_OBJ
) $(LSACLIENT_OBJ
) \
689 $(EVTCLIENT_OBJ
) $(NETCLIENT_OBJ
) \
690 $(LIBSMB_OBJ
) $(SMBWRAPPER_OBJ
) \
691 $(GROUPDB_OBJ
) $(PASSDB_OBJ
) $(SAMPASSDB_OBJ
) \
692 $(SMBPASSWD_OBJ
) $(SIDDB_OBJ
) \
695 SMBWRAPPERPICOBJS
= $(SMBWRAPPER_OBJ
:.o
=.po
)
696 SMBWRAPPERPICOBJS32
= $(SMBWRAPPER_OBJ
:.o
=.po32
)
698 LIBSURS_LTOBJS
= $(LIBSURS_OBJ
:.o
=.lo
)
700 LIBSAMRTDB_LTOBJS
= $(SAMRTDBLIB_OBJ
:.o
=.lo
)
702 LIBSAMRPASS_LTOBJS
= $(SAMRPASSLIB_OBJ
:.o
=.lo
)
704 LIBSAMRNT5LDAP_LTOBJS
= $(SAMRNT5LDAPLIB_OBJ
:.o
=.lo
)
706 LIBSMBPW_LTOBJS
= $(GROUPDB_OBJ
:.o
=.lo
) $(SAMPASSDB_OBJ
:.o
=.lo
) \
709 LIBUBIQX_LTOBJS
= $(UBIQX_OBJ
:.o
=.lo
)
711 LIBSAMBA_LTOBJS
= $(LIBSAMBA_OBJ
:.o
=.lo
)
713 LIBNMB_LTOBJS
= $(LIBNMB_OBJ
:.o
=.lo
)
715 LIBSMB_LTOBJS
= $(LIBSMB_OBJ
:.o
=.lo
)
717 LIBMSRPC_LTOBJS
= $(RPC_CLIENT_OBJ
:.o
=.lo
) $(RPC_PARSE_OBJ
:.o
=.lo
)
720 nsswitch
/winbindd.o \
721 nsswitch
/winbindd_user.o \
722 nsswitch
/winbindd_group.o \
723 nsswitch
/winbindd_surs.o \
724 nsswitch
/winbindd_util.o
728 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(STUB_UID_OBJ
) \
729 $(LIBNMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
730 $(NSSWINS_OBJ
) $(SIDDB_OBJ
) $(LIBSMB_OBJ
)
732 NTDOM_OBJ
= nsswitch
/ntdom.o
734 NTDOM_ICOBJS
= $(NTDOM_OBJ
:.o
=.po
)
736 ######################################################################
738 ######################################################################
740 all : CHECK
$(SPROGS
) $(PROGS
)
742 libsurs
: CHECK
$(LIBSURS
)
744 libsamrpass
: CHECK
$(SAMRPASSLIB
)
746 libsamrtdb
: CHECK
$(SAMRTDBLIB
)
748 libsamrnt5ldap
: CHECK
$(SAMRNT5LDAPLIB
)
750 libnmb
: CHECK
$(NMBLIB
)
752 libsmb
: CHECK
$(SMBLIB
)
754 libsmbpw
: CHECK
$(SMBPWLIB
)
756 libmsrpc
: CHECK
$(MSRPCLIB
)
758 libsamba
: CHECK
$(SAMBALIB
)
760 libubiqx
: CHECK
$(UBIQXLIB
)
762 smbwrapper
: CHECK bin
/smbsh bin
/smbwrapper.so @WRAP32@
764 smbtorture
: CHECK bin
/smbtorture
766 rpctorture
: CHECK bin
/rpctorture
768 smbfilter
: CHECK bin
/smbfilter
770 nsswitch
: CHECK nsswitch
/libnss_ntdom.so bin
/winbindd
773 $(RUNTEST
) $(RUNTESTDEFAULTFLAGS
) $(RUNTESTFLAGS
)
776 .SUFFIXES
: .c .o .lo .po .po32
779 @echo
"Using FLAGS = $(FLAGS)"
780 @echo
"Using LIBS = $(LIBS)"
782 MAKEDIR
= || exec false
; \
783 if
test -d
"$$dir"; then
:; else \
784 echo mkdir
"$$dir"; \
785 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
788 exec false
; fi || exec false
790 # the lines below containing `@MAINT@' are for atomatic dependency tracking
791 # they will only work with GNU make, gcc and --enable-maintainer-mode
792 # without --enable-maintainer-mode, they do nothing
793 .c.o
: @MAINT@ .deps
/.dummy
794 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
795 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
796 @MAINT@ @if
(: >> .deps
/$@ ||
: > .deps
/$@
) >/dev
/null
2>&1; then
:; \
797 @MAINT@
else dir=.deps
/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
798 @MAINT@
$(MAKEDIR
); fi
; rm -f .deps
/$@ .deps
/$@d
800 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
801 -o
$@ @MAINT@
-Wp
,-MD
,.deps
/$@
802 @MAINT@ @sed
's|^'`echo $@ | sed 's,.*/,,'`':|$@:|' \
803 @MAINT@
<.deps
/$@
>.deps
/$@d
&& \
804 @MAINT@
rm -f .deps
/$@
&& : >.deps
/.stamp
806 # This is for libtool
807 .c.lo
: @MAINT@ .deps
/.dummy
808 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
809 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
810 @MAINT@ @if
(: >> .deps
/$@ ||
: > .deps
/$@
) >/dev
/null
2>&1; then
:; \
811 @MAINT@
else dir=.deps
/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
812 @MAINT@
$(MAKEDIR
); fi
; rm -f .deps
/$@ .deps
/$@d
813 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
814 @echo Compiling
$< with libtool
815 @
$(LIBTOOL
) --mode
=compile \
816 $(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
817 -o
$@ @MAINT@
-Wp
,-MD
,.deps
/$@
818 @MAINT@ @sed
's|^.*'`echo $* | sed 's,.*/,,'`'.*:|$@:|' \
819 @MAINT@
<.deps
/$@
>.deps
/$@d
&& \
820 @MAINT@
rm -f .deps
/$@
&& : >.deps
/.stamp
822 .c.po
: @MAINT@ .deps
/.dummy
823 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
824 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
825 @MAINT@ @if
(: >> .deps
/$@ ||
: > .deps
/$@
) >/dev
/null
2>&1; then
:; \
826 @MAINT@
else dir=.deps
/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
827 @MAINT@
$(MAKEDIR
); fi
; rm -f .deps
/$@ .deps
/$@d
828 @echo Compiling
$*.c with @PICFLAG@
829 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< \
830 -o
$*.po.o @MAINT@
-Wp
,-MD
,.deps
/$@
831 @MAINT@ @sed
's|^'`echo $*\.po\.o | sed 's,.*/,,'`':|$@:|' \
832 @MAINT@
<.deps
/$@
>.deps
/$@d
&& \
833 @MAINT@
rm -f .deps
/$@
&& : >.deps
/.stamp
837 .c.po32
: @MAINT@ .deps
/.dummy
838 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
839 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
840 @MAINT@ @if
(: >> .deps
/$@ ||
: > .deps
/$@
) >/dev
/null
2>&1; then
:; \
841 @MAINT@
else dir=.deps
/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
842 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@.o
843 @MAINT@
$(MAKEDIR
); fi
; rm -f .deps
/$@ .deps
/$@d
844 @echo Compiling
$*.c with @PICFLAG@ and
-32
845 @
$(CC
) -32 -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< \
846 -o
$*.po32.o @MAINT@
-Wp
,-MD
,.deps
/$@
847 @MAINT@ @sed
's|^'`echo $*.po32.o | sed 's,.*/,,'`':|$@:|' \
848 @MAINT@
<.deps
/$@
>.deps
/$@d
&& \
849 @MAINT@
rm -f .deps
/$@
&& : >.deps
/.stamp
853 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
854 dir=bin
$(MAKEDIR
); fi
855 @
: >> $@ ||
: > $@
# what a fancy emoticon!
857 bin
/libsurs.la
: $(LIBSURS_LTOBJS
) bin
/.dummy
858 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
859 @echo Linking shared library
$@
860 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
863 bin
/libmsrpc.la
: $(LIBMSRPC_LTOBJS
) bin
/.dummy
864 @echo Linking shared library
$@
865 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
868 bin
/libnmb.la
: $(LIBNMB_LTOBJS
) bin
/.dummy
869 @echo Linking shared library
$@
870 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
873 bin
/libsmbpw.la
: $(LIBSMBPW_LTOBJS
) bin
/.dummy
874 @echo Linking shared library
$@
875 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
878 bin
/libsmb.la
: $(LIBSMB_LTOBJS
) bin
/.dummy
879 @echo Linking shared library
$@
880 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
883 bin
/libubiqx.la
: $(LIBUBIQX_LTOBJS
) bin
/.dummy
884 @echo Linking shared library
$@
885 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
888 bin
/libsamba.la
: $(LIBSAMBA_LTOBJS
) bin
/.dummy
889 @echo Linking shared library
$@
890 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
893 bin
/libsamrpass.la
: $(LIBSAMRPASS_LTOBJS
) bin
/.dummy
894 @echo Linking shared library
$@
895 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
896 $(LIBSAMRPASS_LTOBJS
)
898 bin
/libsamrnt5ldap.la
: $(LIBSAMRNT5LDAP_LTOBJS
) bin
/.dummy
899 @echo Linking shared library
$@
900 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
901 $(LIBSAMRNT5LDAP_LTOBJS
)
903 bin
/libsamrtdb.la
: $(LIBSAMRTDB_LTOBJS
) bin
/.dummy
904 @echo Linking shared library
$@
905 @
$(LINK
) -o
$@
-rpath
$(LIBDIR
) -version-info
0:1:0 \
908 bin
/smbd
: $(SMBD_LIBS
) $(SMBD_OBJ
) bin
/.dummy
910 @
$(LINK
) -o
$@
$(SMBD_OBJ
) $(SMBD_LIBS
) $(LIBS
)
912 bin
/svcctld
: $(SAMBA_LIBS
) $(SVCCTLD_OBJ
) bin
/.dummy
914 @
$(LINK
) -o
$@
$(SVCCTLD_OBJ
) $(SAMBA_LIBS
) $(LIBS
)
916 bin
/lsarpcd
: $(LSARPCD_LIBS
) $(LSARPCD_OBJ
) bin
/.dummy
918 @
$(LINK
) -o
$@
$(LSARPCD_OBJ
) $(LSARPCD_LIBS
) $(LIBS
)
920 bin
/spoolssd
: $(SPOOLSSD_LIBS
) $(SPOOLSSD_OBJ
) bin
/.dummy
922 @
$(LINK
) -o
$@
$(SPOOLSSD_OBJ
) $(SPOOLSSD_LIBS
) $(LIBS
)
924 bin
/srvsvcd
: $(SAMBA_LIBS
) $(SRVSVCD_OBJ
) bin
/.dummy
926 @
$(LINK
) -o
$@
$(SRVSVCD_OBJ
) $(SAMBA_LIBS
) $(LIBS
)
928 bin
/wkssvcd
: $(SAMBA_LIBS
) $(WKSSVCD_OBJ
) bin
/.dummy
930 @
$(LINK
) -o
$@
$(WKSSVCD_OBJ
) $(SAMBA_LIBS
) $(LIBS
)
932 bin
/browserd
: $(SAMBA_LIBS
) $(BROWSERD_OBJ
) bin
/.dummy
934 @
$(LINK
) -o
$@
$(BROWSERD_OBJ
) $(SAMBA_LIBS
) $(LIBS
)
936 bin
/winregd
: $(SAMBA_LIBS
) $(WINREGD_OBJ
) bin
/.dummy
938 @
$(LINK
) -o
$@
$(WINREGD_OBJ
) $(SAMBA_LIBS
) $(LIBS
)
940 bin
/netlogond
: $(NETLOGOND_LIBS
) $(NETLOGOND_OBJ
) bin
/.dummy
942 @
$(LINK
) -o
$@
$(NETLOGOND_OBJ
) $(NETLOGOND_LIBS
) $(LIBS
)
944 bin
/netlogonpassd
: $(NETLOGONPASSD_LIBS
) $(NETLOGOND_OBJ
) bin
/.dummy
946 @
$(LINK
) -o
$@
$(NETLOGOND_OBJ
) $(NETLOGONPASSD_LIBS
) $(LIBS
)
948 bin
/netlogontdbd
: $(NETLOGONTDBD_LIBS
) $(NETLOGOND_OBJ
) bin
/.dummy
950 @
$(LINK
) -o
$@
$(NETLOGOND_OBJ
) $(NETLOGONTDBD_LIBS
) $(LIBS
)
952 bin
/netlogonnt5ldapd
: $(NETLOGONNT5LDAPD_LIBS
) $(NETLOGOND_OBJ
) bin
/.dummy
954 @
$(LINK
) -o
$@
$(NETLOGOND_OBJ
) $(NETLOGONNT5LDAPD_LIBS
) $(LIBS
)
956 bin
/samrd
: $(SAMRD_LIBS
) $(SAMRD_OBJ
) bin
/.dummy
958 @
$(LINK
) -o
$@
$(SAMRD_OBJ
) $(SAMRD_LIBS
) $(LIBS
)
960 bin
/samrpassd
: $(SAMRPASSD_LIBS
) $(SAMRD_OBJ
) bin
/.dummy
962 @
$(LINK
) -o
$@
$(SAMRD_OBJ
) $(SAMRPASSD_LIBS
) $(LIBS
)
964 bin
/samrtdbd
: $(SAMRTDBD_LIBS
) $(SAMRD_OBJ
) bin
/.dummy
966 @
$(LINK
) -o
$@
$(SAMRD_OBJ
) $(SAMRTDBD_LIBS
) $(LIBS
)
968 bin
/samrnt5ldapd
: $(SAMRNT5LDAPD_LIBS
) $(SAMRD_OBJ
) bin
/.dummy
970 @
$(LINK
) -o
$@
$(SAMRD_OBJ
) $(SAMRNT5LDAPD_LIBS
) $(LIBS
)
972 bin
/nmbd
: $(NMBD_LIBS
) $(NMBD_OBJ
) bin
/.dummy
974 @
$(LINK
) -o
$@
$(NMBD_OBJ
) $(NMBD_LIBS
) $(LIBS
)
976 bin
/swat
: $(SWAT_LIBS
) $(SWAT_OBJ
) bin
/.dummy
978 @
$(LINK
) -o
$@
$(SWAT_OBJ
) $(SWAT_LIBS
) $(LIBS
)
980 bin
/smbrun
: $(SMBRUN_OBJ
) bin
/.dummy
982 @
$(LINK
) -o
$@
$(SMBRUN_OBJ
) $(LIBS
)
984 bin
/regedit
: $(REGEDIT_LIBS
) $(REGEDIT_OBJ
) bin
/.dummy
986 @
$(LINK
) -o
$@
$(REGEDIT_OBJ
) $(REGEDIT_LIBS
) $(LIBS
)
988 bin
/svccontrol
: $(SVCCLIENT_LIBS
) $(SVCCLIENT_OBJ
) bin
/.dummy
990 @
$(LINK
) -o
$@
$(SVCCLIENT_OBJ
) $(SVCCLIENT_LIBS
) $(LIBS
)
992 bin
/samedit
: $(SAMCLIENT_LIBS
) $(SAMCLIENT_OBJ
) bin
/.dummy
994 @
$(LINK
) -o
$@
$(SAMCLIENT_OBJ
) $(SAMCLIENT_LIBS
) $(LIBS
)
996 bin
/cmdat
: $(CMDCLIENT_LIBS
) $(CMDCLIENT_OBJ
) bin
/.dummy
998 @
$(LINK
) -o
$@
$(CMDCLIENT_OBJ
) $(CMDCLIENT_LIBS
) $(LIBS
)
1000 bin
/eventlog
: $(EVTCLIENT_LIBS
) $(EVTCLIENT_OBJ
) bin
/.dummy
1002 @
$(LINK
) -o
$@
$(EVTCLIENT_OBJ
) $(EVTCLIENT_LIBS
) $(LIBS
)
1004 bin
/net
: $(NETCLIENT_LIBS
) $(NETCLIENT_OBJ
) bin
/.dummy
1006 @
$(LINK
) -o
$@
$(NETCLIENT_OBJ
) $(NETCLIENT_LIBS
) $(LIBS
)
1008 bin
/lsa
: $(LSACLIENT_LIBS
) $(LSACLIENT_OBJ
) bin
/.dummy
1010 @
$(LINK
) -o
$@
$(LSACLIENT_OBJ
) $(LSACLIENT_LIBS
) $(LIBS
)
1012 bin
/rpctorture
: $(RPCTORTURE_LIBS
) $(RPCTORTURE_OBJ
) bin
/.dummy
1014 @
$(LINK
) -o
$@
$(RPCTORTURE_OBJ
) $(RPCTORTURE_LIBS
) $(LIBS
)
1016 bin
/ntspool
: $(SPOOLCLIENT_LIBS
) $(SPOOLCLIENT_OBJ
) bin
/.dummy
1018 @
$(LINK
) -o
$@
$(SPOOLCLIENT_OBJ
) $(SPOOLCLIENT_LIBS
) $(LIBS
)
1020 bin
/rpcclient
: $(RPCCLIENT_LIBS
) $(RPCCLIENT_OBJ
) bin
/.dummy
1022 @
$(LINK
) -o
$@
$(RPCCLIENT_OBJ
) $(RPCCLIENT_LIBS
) $(LIBS
)
1024 bin
/smbclient
: $(CLIENT_LIBS
) $(CLIENT_OBJ
) bin
/.dummy
1026 @
$(LINK
) -o
$@
$(CLIENT_OBJ
) $(CLIENT_LIBS
) $(LIBS
)
1028 #bin/smbmount: $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(MOUNT_OBJ) bin/.dummy
1030 # @$(LINK) -o $@ $(MOUNT_OBJ) $(SAMBALIB) $(SMBLIB) $(NMBLIB) $(LIBS)
1032 #bin/smbmnt: $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(MNT_OBJ) bin/.dummy
1034 # @$(LINK) -o $@ $(MNT_OBJ) $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(LIBS)
1036 #bin/smbumount: $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(UMOUNT_OBJ) bin/.dummy
1038 # @$(LINK) -o $@ $(UMOUNT_OBJ) $(SMBLIB) $(SAMBALIB) $(NMBLIB) $(LIBS)
1040 bin
/testparm
: $(SAMBALIB
) $(TESTPARM_OBJ
) bin
/.dummy
1042 @
$(LINK
) -o
$@
$(TESTPARM_OBJ
) $(SAMBALIB
) $(LIBS
)
1044 bin
/testprns
: $(SAMBALIB
) $(TESTPRNS_OBJ
) bin
/.dummy
1046 @
$(LINK
) -o
$@
$(TESTPRNS_OBJ
) $(SAMBALIB
) $(LIBS
)
1048 bin
/smbstatus
: $(SAMBALIB
) $(UBIQXLIB
) $(STATUS_OBJ
) bin
/.dummy
1050 @
$(LINK
) -o
$@
$(STATUS_OBJ
) $(SAMBALIB
) $(UBIQXLIB
) $(LIBS
)
1052 bin
/smbpasswd
: $(SMBPASSWD_LIBS
) $(SMBPASSWD_OBJ
) bin
/.dummy
1054 @
$(LINK
) -o
$@
$(SMBPASSWD_OBJ
) $(SMBPASSWD_LIBS
) $(LIBS
)
1056 bin
/make_smbcodepage
: $(SAMBALIB
) $(MAKE_SMBCODEPAGE_OBJ
) bin
/.dummy
1058 @
$(LINK
) -o
$@
$(MAKE_SMBCODEPAGE_OBJ
) $(SAMBALIB
) $(LIBS
)
1060 bin
/make_unicodemap
: $(SAMBALIB
) $(MAKE_UNICODEMAP_OBJ
) bin
/.dummy
1062 @
$(LINK
) -o
$@
$(MAKE_UNICODEMAP_OBJ
) $(SAMBALIB
) $(LIBS
)
1064 bin
/nmblookup
: $(SAMBALIB
) $(NMBLIB
) $(NMBLOOKUP_OBJ
) bin
/.dummy
1066 @
$(LINK
) -o
$@
$(NMBLOOKUP_OBJ
) $(NMBLIB
) $(SAMBALIB
) $(LIBS
)
1068 bin
/make_printerdef
: $(SAMBALIB
) $(MAKE_PRINTERDEF_OBJ
) bin
/.dummy
1070 @
$(LINK
) -o
$@
$(MAKE_PRINTERDEF_OBJ
) $(SAMBALIB
) $(LIBS
)
1072 bin
/smbtorture
: $(SAMBA_LIBS
) $(SMBTORTURE_OBJ
) bin
/.dummy
1074 @
$(LINK
) -o
$@
$(SMBTORTURE_OBJ
) $(SAMBA_LIBS
) $(LIBS
)
1076 bin
/smb-client
: $(SMB_CLIENT_OBJ
) bin
/.dummy
1078 @
$(LINK
) -o
$@
$(SMB_CLIENT_OBJ
) $(LIBS
)
1080 bin
/nmb-agent
: $(SAMBALIB
) $(SMBLIB
) $(NMBLIB
) $(NMB_AGENT_OBJ
) bin
/.dummy
1082 @
$(LINK
) -o
$@
$(NMB_AGENT_OBJ
) $(SAMBALIB
) $(SMBLIB
) $(NMBLIB
) $(LIBS
)
1084 bin
/smb-agent
: $(SMBLIB
) $(SAMBALIB
) $(NMBLIB
) $(SMB_AGENT_OBJ
) bin
/.dummy
1086 @
$(LINK
) -o
$@
$(SMB_AGENT_OBJ
) $(SMBLIB
) $(SAMBALIB
) $(NMBLIB
) $(LIBS
)
1088 bin
/smbfilter
: $(SAMBA_LIBS
) $(SMBFILTER_OBJ
) bin
/.dummy
1090 @
$(LINK
) -o
$@
$(SMBFILTER_OBJ
) $(SAMBA_LIBS
) $(LIBS
)
1092 bin
/debug2html
: $(SAMBALIB
) $(DEBUG2HTML_OBJ
) bin
/.dummy
1094 @
$(LINK
) -o
$@
$(DEBUG2HTML_OBJ
) $(SAMBALIB
) $(LIBS
)
1096 bin
/smbwrapper.so
: $(SMBWRAPPERPICOBJS
)
1097 @echo Linking smbwrapper shared library
$@
1098 @
$(LD
) @LDSHFLAGS@
-o
$@
$(SMBWRAPPERPICOBJS
) $(LIBS
)
1100 bin
/smbwrapper
.32.so
: $(SMBWRAPPERPICOBJS32
)
1101 @echo Linking smbwrapper shared library
$@
1102 @
$(LD
) -32 @LDSHFLAGS@
-o
$@
$(SMBWRAPPERPICOBJS32
) $(LIBS
)
1104 bin
/smbsh
: $(SAMBALIB
) $(SMBSH_OBJ
) bin
/.dummy
1106 @
$(LINK
) -o
$@
$(SMBSH_OBJ
) $(SAMBALIB
) $(LIBS
)
1108 bin
/winbindd
: $(WINBINDD_OBJ
) bin
/.dummy
1110 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(LIBS
)
1112 nsswitch
/libnss_ntdom.so
: $(NTDOM_ICOBJS
)
1114 @
$(LINK
) -shared
-o
$@
$(NTDOM_ICOBJS
)
1116 bin
/pam_ntdom_auth.so
: $(PAM_NTDOM_LIBS
) $(PAM_NTDOM_OBJ
) bin
/.dummy
1118 @
$(LINK
) -shared
-Xlinker
-x
-o
$@
$(PAM_NTDOM_LIBS
) $(PAM_NTDOM_OBJ
)
1122 install-libs installbin install-sbin \
1123 installman installscripts installcp installswat
1126 @for p in
$(BASEDIR
) $(SBINDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) \
1127 $(CODEPAGEDIR
); do \
1128 $(SHELL
) $(srcdir)/install-sh
-d
-m
$(INSTALLPERMS
) $(DESTDIR
)$$p; \
1131 install-libs
: $(SHARED_LIBS
) installdirs
1132 @list
='$(SHARED_LIBS)'; for p in
$$list; do \
1133 echo Installing
$$p in
$(LIBDIR
) using libtool
; \
1134 $(LIBTOOL
) --mode
=install $(INSTALL
) $$p $(DESTDIR
)$(LIBDIR
); \
1137 installbin
: $(PROGS
) installdirs
1138 @list
='$(PROGS)'; for p in
$$list; do \
1139 echo Installing
$$p in
$(BINDIR
) using libtool
; \
1140 $(LIBTOOL
) --mode
=install $(INSTALL_PROGRAM
) $$p $(DESTDIR
)$(BINDIR
); \
1143 install-sbin
: $(SPROGS
) installdirs
1144 @list
='$(SPROGS)'; for p in
$$list; do \
1145 echo Installing
$$p in
$(SBINDIR
) using libtool
; \
1146 $(LIBTOOL
) --mode
=install $(INSTALL_PROGRAM
) $$p $(DESTDIR
)$(SBINDIR
); \
1149 installscripts
: installdirs
1150 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(patsubst %,$(srcdir)/%,$(SCRIPTS
))
1152 installcp
: installdirs
1153 @
$(SHELL
) $(srcdir)/script
/installcp.sh
$(srcdir) $(LIBDIR
) $(CODEPAGEDIR
) $(BINDIR
) $(CODEPAGELIST
)
1155 installswat
: installdirs
1156 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(SWATDIR
) $(srcdir)
1158 # revert to the previously installed version
1160 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SPROGS
)
1161 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(PROGS
) $(SCRIPTS
)
1164 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(MANDIR
) $(srcdir) "@ROFF@"
1166 uninstall: uninstallman uninstallbin uninstallscripts uninstallcp
1169 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(MANDIR
) $(srcdir)
1172 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
1173 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
1176 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
1179 @
$(SHELL
) $(srcdir)/script
/uninstallcp.sh
$(CODEPAGEDIR
) $(CODEPAGELIST
)
1182 -rm -f core
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.lo
*/*.so
1184 proto
: winbindd_proto lib_smb_proto rpc_client_proto rpc_parse_proto \
1185 all_other_proto_for_now
1187 all_other_proto_for_now
:
1188 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1193 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1194 -h _PAM_NTDOM_PROTO_H_ pam_ntdom
/pam_ntdom_proto.h \
1198 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1199 -h _LIB_SMB_PROTO_H_
include/lib_smb_proto.h \
1203 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1204 -h _RPC_PARSE_PROTO_H_
include/rpc_parse_proto.h \
1208 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1209 -h _RPC_CLIENT_PROTO_H_
include/rpc_client_proto.h \
1213 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
1214 -h _WINBINDD_PROTO_H_ nsswitch
/winbindd_proto.h \
1218 etags
`find . -name "*.[ch]" | grep -v /CVS/`
1221 ctags
`find . -name "*.[ch]" | grep -v /CVS/`
1224 -rm -f config.log
$(PROGS
) $(SPROGS
) bin
/.dummy
1227 distclean: realclean
1228 -rm -f
include/config.h
include/stamp-h Makefile
1229 -rm -f config.status config.cache so_locations
1234 # This target is for documentation updaters. It regenerates
1235 # the man pages and HTML docs from the YODL source files.
1236 # In order for this target to work YODL must be installed
1237 # and working on your system. JRA.
1239 @
$(SHELL
) $(srcdir)/script
/makeyodldocs.sh
$(srcdir)
1241 # this target is really just for my use. It only works on a limited
1242 # range of machines and is used to produce a list of potentially
1243 # dead (ie. unused) functions in the code. (tridge)
1245 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
1246 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
1247 comm
-13 nmused.txt nmfns.txt
1250 nm
$(SMBD_OBJ
) |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmusedsmbd.txt
1251 nm
$(SMBD_OBJ
) |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfnssmbd.txt
1252 comm
-13 nmusedsmbd.txt nmfnssmbd.txt
1254 # Rules for maintainers (--enable-maintainer-mode)
1256 AUTOHEADER
=@AUTOHEADER@
1258 # when configure.in is updated, reconfigure
1259 $(srcdir)/configure
: @MAINT@
$(srcdir)/configure.in
$(srcdir)/aclocal.m4
1260 echo
"WARNING: you need to rerun configure"
1262 config.status
: $(srcdir)/configure
1263 echo
"WARNING: you need to run ./config.status --recheck"
1265 Makefile
: $(srcdir)/Makefile.in config.status \
1266 include/stamp-h
# just to ensure that config.h is up-to-date
1267 CONFIG_FILES
=$@ CONFIG_HEADERS
= $(SHELL
) .
/config.status
1269 script
/samba-init.d
: $(srcdir)/script
/samba-init.d.in config.status
1270 CONFIG_FILES
=$@ CONFIG_HEADERS
= $(SHELL
) .
/config.status
1272 libtool
: $(LIBTOOL_DEPS
)
1273 $(SHELL
) .
/config.status
--recheck
1274 # So something depends on libtool, so it gets rebuild, if needed
1275 $(SHARED_LIBS
): libtool
1277 # note that nothing depends on config.h, so will probably be rebuilt
1278 # only when explicitly requested, unless dependency tracking is enabled
1279 include/config.h
: include/stamp-h
1282 include/stamp-h
: $(srcdir)/include/config.h.in config.status
1283 CONFIG_FILES
= CONFIG_HEADERS
=include/config.h
$(SHELL
) .
/config.status
1284 @echo
> include/stamp-h
1286 $(srcdir)/include/config.h.in
: $(srcdir)/include/stamp-h.in
1289 $(srcdir)/include/stamp-h.in
: @MAINT@
$(srcdir)/acconfig.h
$(srcdir)/configure.in
1290 cd
$(srcdir) && $(AUTOHEADER
)
1293 # automatic dependency tracking rules
1295 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
1296 dir=.deps
$(MAKEDIR
); fi
1297 @
: >> $@ ||
: > $@
# what a fancy emoticon!
1299 .deps
/.stamp
: .deps
/.dummy
1302 .deps
/depend
: .deps
/.stamp
1303 @echo Updating dependencies
1304 @
: | cat
`find .deps -type f -name \*d` >$@
2>/dev
/null || true
1306 @MAINT@
-include .deps
/depend