Debian packaging updates from Eloy
[Samba.git] / source / Makefile.in
blob7339742957c96c6f3d21b3dd56857439a49bfa00
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 sysconfdir=@sysconfdir@
11 LIBS=@LIBS@
12 LDAPLIBS=@LDAPLIBS@
13 CC=@CC@
14 SHLD=@SHLD@
15 CFLAGS=@CFLAGS@
16 CPPFLAGS=@CPPFLAGS@
17 LDFLAGS=@LDFLAGS@
18 AWK=@AWK@
19 DYNEXP=@DYNEXP@
21 TERMLDFLAGS=@TERMLDFLAGS@
22 TERMLIBS=@TERMLIBS@
24 LINK=$(CC) $(FLAGS) $(LDFLAGS)
26 INSTALLCMD=@INSTALL@
28 VPATH=@srcdir@
29 srcdir=@srcdir@
30 builddir=@builddir@
31 top_builddir=.
32 SHELL=/bin/sh
34 BASEDIR= @prefix@
35 BINDIR = @bindir@
36 DATADIR = @datadir@
37 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
38 SBINDIR = @sbindir@
39 LIBDIR = @libdir@
40 VARDIR = @localstatedir@
41 CONFIGDIR = @configdir@
42 MANDIR = @mandir@
43 INCLUDEDIR = @includedir@
45 # The permissions to give the executables
46 INSTALLPERMS = 0755
48 # set these to where to find various files
49 # These can be overridden by command line switches (see smbd(8))
50 # or in smb.conf (see smb.conf(5))
51 LOGFILEBASE = @logfilebase@
52 CONFIGFILE = $(CONFIGDIR)/smb.conf
53 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
54 DRIVERFILE = $(CONFIGDIR)/printers.def
55 PASSWD_PROGRAM = @passwd_program@
56 # This is where smbpasswd et al go
57 PRIVATEDIR = @privatedir@
59 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
60 TDB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd.tdb
62 # This is where SWAT images and help files go
63 SWATDIR = @swatdir@
65 # the directory where lock files go
66 LOCKDIR = @lockdir@
68 # the directorty where pid files go
69 PIDDIR = @piddir@
71 # libsmbclient support here
72 BLDSHARED = @BLDSHARED@
73 LIBSMBCLIENT_MAJOR=0
74 LIBSMBCLIENT_MINOR=1
76 # The directory where code page definition files go
77 CODEPAGEDIR = @codepagedir@
79 # The current codepage definition list.
80 CODEPAGELIST= 437 737 775 850 852 861 932 866 949 950 936 1251 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R 857 ISO8859-9 \
81 ISO8859-13 ISO8859-15 1125 KOI8-U
83 PASSWD_FLAGS = -DPASSWD_PROGRAM=\"$(PASSWD_PROGRAM)\" -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" -DTDB_PASSWD_FILE=\"$(TDB_PASSWD_FILE)\"
84 FLAGS1 = $(CFLAGS) @FLAGS1@ -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -I$(srcdir)/smbwrapper $(CPPFLAGS) -DLOGFILEBASE=\"$(LOGFILEBASE)\"
85 FLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
86 FLAGS3 = -DSWATDIR=\"$(SWATDIR)\" -DSBINDIR=\"$(SBINDIR)\" -DLOCKDIR=\"$(LOCKDIR)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\"
87 FLAGS4 = -DDRIVERFILE=\"$(DRIVERFILE)\" -DBINDIR=\"$(BINDIR)\" -DPIDDIR=\"$(PIDDIR)\" -DLIBDIR=\"$(LIBDIR)\"
88 FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4) -DHAVE_INCLUDES_H
89 FLAGS = $(ISA) $(FLAGS5) $(PASSWD_FLAGS)
90 FLAGS32 = $(ISA32) $(FLAGS5) $(PASSWD_FLAGS)
92 WINBIND_PROGS = @WINBIND_TARGETS@
93 WINBIND_SPROGS = @WINBIND_STARGETS@
94 WINBIND_PAM_PROGS = @WINBIND_PAM_TARGETS@
95 WINBIND_LPROGS = @WINBIND_LTARGETS@
97 SPROGS = bin/smbd bin/nmbd bin/swat
98 PROGS1 = bin/smbclient bin/smbspool bin/testparm bin/testprns bin/smbstatus bin/smbcontrol bin/tdbbackup bin/make_printerdef @RUNPROG@
99 PROGS2 = bin/smbpasswd bin/make_smbcodepage bin/rpcclient bin/make_unicodemap bin/smbcacls @WRAPPROG@ @WRAP@ @WRAP32@ @PAM_MOD@ @PDBEDIT@ @LIBSMBCLIENT@
100 MPROGS = @MPROGS@
101 LPROGS = $(WINBIND_PAM_PROGS) $(WINBIND_LPROGS)
102 PROGS = $(PROGS1) $(PROGS2) $(MPROGS) bin/nmblookup
103 TORTURE_PROGS = bin/smbtorture bin/msgtest bin/masktest bin/locktest bin/locktest2
104 SHLIBS = libsmbclient
106 SCRIPTS = $(srcdir)/script/smbtar $(srcdir)/script/findsmb
108 QUOTAOBJS=@QUOTAOBJS@
110 ######################################################################
111 # object file lists
112 ######################################################################
114 TDBBASE_OBJ = tdb/tdb.o tdb/spinlock.o
115 TDB_OBJ = $(TDBBASE_OBJ) tdb/tdbutil.o
117 LIB_OBJ = lib/charcnv.o lib/charset.o lib/debug.o lib/fault.o \
118 lib/getsmbpass.o lib/interface.o lib/kanji.o lib/md4.o \
119 lib/interfaces.o lib/pidfile.o lib/replace.o \
120 lib/signal.o lib/system.o lib/sendfile.o lib/time.o \
121 lib/ufc.o lib/genrand.o lib/username.o lib/util_getent.o lib/access.o lib/smbrun.o \
122 lib/bitmap.o lib/crc32.o lib/snprintf.o lib/wins_srv.o \
123 lib/util_str.o lib/util_sid.o \
124 lib/util_unistr.o lib/util_file.o \
125 lib/util.o lib/util_sock.o lib/util_sec.o smbd/ssl.o \
126 lib/talloc.o lib/hash.o lib/substitute.o lib/fsusage.o \
127 lib/ms_fnmatch.o lib/select.o lib/error.o lib/messages.o \
128 lib/pam_errors.o nsswitch/wb_client.o nsswitch/wb_common.o $(TDB_OBJ)
130 READLINE_OBJ = lib/readline.o
132 UBIQX_OBJ = ubiqx/ubi_BinTree.o ubiqx/ubi_Cache.o ubiqx/ubi_SplayTree.o \
133 ubiqx/ubi_dLinkList.o ubiqx/ubi_sLinkList.o ubiqx/debugparse.o
135 PARAM_OBJ = param/loadparm.o param/params.o
137 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
138 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
139 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
140 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
141 libsmb/namequery.o libsmb/nmblib.o libsmb/clistr.o \
142 libsmb/nterr.o libsmb/smbdes.o libsmb/smbencrypt.o \
143 libsmb/smberr.o libsmb/credentials.o libsmb/pwd_cache.o \
144 libsmb/clioplock.o libsmb/errormap.o libsmb/doserr.o \
145 libsmb/passchange.o libsmb/unexpected.o $(RPC_PARSE_OBJ1) \
146 libsmb/namecache.o
148 LIBMSRPC_OBJ = libsmb/cli_lsarpc.o libsmb/cli_samr.o libsmb/cli_spoolss.o \
149 libsmb/cli_netlogon.o libsmb/cli_srvsvc.o libsmb/cli_dfs.o \
150 libsmb/cli_reg.o \
151 rpc_client/cli_pipe.o libsmb/cli_pipe_util.o
153 RPC_SERVER_OBJ = rpc_server/srv_lsa.o rpc_server/srv_lsa_nt.o \
154 rpc_server/srv_lsa_hnd.o rpc_server/srv_netlog.o rpc_server/srv_netlog_nt.o \
155 rpc_server/srv_pipe_hnd.o rpc_server/srv_reg.o rpc_server/srv_reg_nt.o \
156 rpc_server/srv_samr.o rpc_server/srv_samr_nt.o rpc_server/srv_srvsvc.o rpc_server/srv_srvsvc_nt.o \
157 rpc_server/srv_util.o rpc_server/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o \
158 rpc_server/srv_pipe.o rpc_server/srv_dfs.o rpc_server/srv_dfs_nt.o \
159 rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o rpc_client/cli_spoolss_notify.o
161 # this includes only the low level parse code, not stuff
162 # that requires knowledge of security contexts
163 RPC_PARSE_OBJ1 = rpc_parse/parse_prs.o rpc_parse/parse_sec.o \
164 rpc_parse/parse_misc.o
166 RPC_PARSE_OBJ = rpc_parse/parse_lsa.o rpc_parse/parse_net.o \
167 rpc_parse/parse_reg.o rpc_parse/parse_rpc.o \
168 rpc_parse/parse_samr.o rpc_parse/parse_srv.o \
169 rpc_parse/parse_wks.o \
170 rpc_parse/parse_spoolss.o rpc_parse/parse_dfs.o
172 RPC_CLIENT_OBJ = rpc_client/cli_netlogon.o rpc_client/cli_pipe.o \
173 rpc_client/cli_login.o \
174 rpc_client/cli_trust.o
176 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
178 PASSDB_OBJ = passdb/passdb.o passdb/secrets.o \
179 passdb/pass_check.o passdb/smbpassfile.o \
180 passdb/machine_sid.o passdb/pdb_smbpasswd.o \
181 passdb/pampass.o passdb/pdb_tdb.o passdb/pdb_ldap.o \
182 passdb/pdb_nisplus.o
184 PROFILE_OBJ = profile/profile.o
186 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
188 NOTIFY_OBJ = smbd/notify.o smbd/notify_hash.o smbd/notify_kernel.o
190 SMBD_OBJ1 = smbd/server.o smbd/files.o smbd/chgpasswd.o smbd/connection.o \
191 smbd/utmp.o smbd/session.o \
192 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/fileio.o \
193 smbd/ipc.o smbd/lanman.o smbd/mangle.o smbd/mangle_hash2.o smbd/mangle_hash.o \
194 smbd/mangle_map.o smbd/negprot.o smbd/message.o smbd/nttrans.o smbd/pipes.o \
195 smbd/reply.o smbd/trans2.o smbd/uid.o \
196 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
197 smbd/blocking.o smbd/sec_ctx.o \
198 smbd/vfs.o smbd/vfs-wrap.o smbd/statcache.o \
199 smbd/posix_acls.o lib/sysacls.o \
200 smbd/process.o smbd/service.o smbd/error.o \
201 printing/printfsp.o lib/util_seaccess.o \
202 libsmb/cli_pipe_util.o
204 PRINTING_OBJ = printing/pcap.o printing/print_svid.o \
205 printing/print_cups.o printing/print_generic.o \
206 printing/lpq_parse.o printing/load.o
208 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o
210 MSDFS_OBJ = msdfs/msdfs.o
212 SMBD_OBJ = $(SMBD_OBJ1) $(MSDFS_OBJ) $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) \
213 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) $(RPC_CLIENT_OBJ) \
214 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) \
215 $(PRINTBACKEND_OBJ) $(QUOTAOBJS) $(OPLOCK_OBJ) $(NOTIFY_OBJ)
218 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
219 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
220 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
221 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
222 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
223 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
224 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
225 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
226 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
227 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
228 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
229 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
231 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) \
232 $(PROFILE_OBJ) $(LIB_OBJ)
234 SWAT_OBJ = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
235 web/swat.o $(PRINTING_OBJ) $(LIBSMB_OBJ) $(LOCKING_OBJ) \
236 $(PARAM_OBJ) $(PASSDB_OBJ) $(RPC_PARSE_OBJ) \
237 $(UBIQX_OBJ) $(LIB_OBJ)
239 SMBSH_OBJ = smbwrapper/smbsh.o smbwrapper/shared.o \
240 $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
242 MAKE_SMBCODEPAGE_OBJ = utils/make_smbcodepage.o $(PARAM_OBJ) \
243 $(UBIQX_OBJ) $(LIB_OBJ)
245 MAKE_UNICODEMAP_OBJ = utils/make_unicodemap.o $(PARAM_OBJ) \
246 $(UBIQX_OBJ) $(LIB_OBJ)
248 MAKE_PRINTERDEF_OBJ = utils/make_printerdef.o $(PARAM_OBJ) \
249 $(UBIQX_OBJ) $(LIB_OBJ)
251 STATUS_OBJ = utils/status.o $(LOCKING_OBJ) $(PARAM_OBJ) \
252 $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ)
254 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
255 $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ)
257 TESTPARM_OBJ = utils/testparm.o \
258 $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
260 TESTPRNS_OBJ = utils/testprns.o $(PARAM_OBJ) $(PRINTING_OBJ) $(UBIQX_OBJ) \
261 $(LIB_OBJ)
263 SMBPASSWD_OBJ = utils/smbpasswd.o $(PARAM_OBJ) \
264 $(LIBSMB_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ)\
265 $(UBIQX_OBJ) $(RPC_CLIENT_OBJ) $(RPC_PARSE_OBJ) $(LIB_OBJ) \
266 libsmb/cli_lsarpc.o libsmb/cli_samr.o libsmb/cli_pipe_util.o
268 PDBEDIT_OBJ = utils/pdbedit.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
269 $(UBIQX_OBJ) $(LIB_OBJ) $(GROUPDB_OBJ)
271 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
272 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
273 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
274 rpcclient/cmd_dfs.o rpcclient/cmd_reg.o \
275 rpc_client/cli_login.o rpc_client/cli_netlogon.o \
276 rpcclient/display_sec.o
278 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
279 $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
280 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(LIBMSRPC_OBJ) \
281 $(READLINE_OBJ)
283 PAM_WINBIND_OBJ = nsswitch/pam_winbind.po nsswitch/wb_common.po lib/snprintf.po
285 SMBW_OBJ = smbwrapper/smbw.o \
286 smbwrapper/smbw_dir.o smbwrapper/smbw_stat.o \
287 smbwrapper/realcalls.o smbwrapper/shared.o \
288 $(LIBSMB_OBJ) $(PARAM_OBJ) \
289 $(UBIQX_OBJ) $(LIB_OBJ)
291 SMBWRAPPER_OBJ = $(SMBW_OBJ) smbwrapper/wrapped.o
293 LIBSMBCLIENT_OBJ = libsmb/libsmbclient.o $(LIB_OBJ) $(LIBSMB_OBJ) \
294 $(PARAM_OBJ) $(UBIQX_OBJ)
296 CLIENT_OBJ = client/client.o client/clitar.o \
297 $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
298 $(READLINE_OBJ)
300 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
302 MOUNT_OBJ = client/smbmount.o \
303 $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
305 MNT_OBJ = client/smbmnt.o \
306 $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
308 UMOUNT_OBJ = client/smbumount.o \
309 $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
311 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(UBIQX_OBJ) \
312 $(LIBSMB_OBJ) $(LIB_OBJ)
314 SMBTORTURE_OBJ = utils/torture.o utils/nbio.o $(LIBSMB_OBJ) $(PARAM_OBJ) \
315 $(UBIQX_OBJ) $(LIB_OBJ)
317 MASKTEST_OBJ = utils/masktest.o $(LIBSMB_OBJ) $(PARAM_OBJ) \
318 $(UBIQX_OBJ) $(LIB_OBJ)
320 MSGTEST_OBJ = utils/msgtest.o $(LIBSMB_OBJ) $(PARAM_OBJ) \
321 $(UBIQX_OBJ) $(LIB_OBJ)
323 LOCKTEST_OBJ = utils/locktest.o $(LOCKING_OBJ) $(LIBSMB_OBJ) $(PARAM_OBJ) \
324 $(UBIQX_OBJ) $(LIB_OBJ)
326 NSSTEST_OBJ = utils/nsstest.o $(LIBSMB_OBJ) $(PARAM_OBJ) \
327 $(UBIQX_OBJ) $(LIB_OBJ)
329 SMBCACLS_OBJ = utils/smbcacls.o $(LOCKING_OBJ) $(LIBSMB_OBJ) $(PARAM_OBJ) \
330 $(UBIQX_OBJ) $(LIB_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) \
331 $(LIBMSRPC_OBJ)
334 LOCKTEST2_OBJ = utils/locktest2.o $(LOCKING_OBJ) $(LIBSMB_OBJ) $(PARAM_OBJ) \
335 $(UBIQX_OBJ) $(LIB_OBJ)
337 RPCTORTURE_OBJ = utils/rpctorture.o \
338 rpcclient/display.o \
339 rpcclient/cmd_lsarpc.o \
340 rpcclient/cmd_wkssvc.o \
341 rpcclient/cmd_samr.o \
342 rpcclient/cmd_srvsvc.o \
343 rpcclient/cmd_netlogon.o \
344 $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
345 $(RPC_PARSE_OBJ) $(PASSDB_OBJ)
347 RPCCHECK_OBJ = utils/rpccheck.o \
348 $(LIB_OBJ) $(RPC_PARSE_OBJ) \
349 $(UBIQX_OBJ) $(PARAM_OBJ) $(LIBSMB_OBJ)
351 DEBUG2HTML_OBJ = utils/debug2html.o ubiqx/debugparse.o
353 SMBFILTER_OBJ = utils/smbfilter.o $(LIBSMB_OBJ) $(PARAM_OBJ) \
354 $(UBIQX_OBJ) $(LIB_OBJ)
356 PROTO_OBJ = $(SMBD_OBJ) $(NMBD_OBJ) $(SWAT_OBJ) $(CLIENT_OBJ) \
357 $(SMBWRAPPER_OBJ) $(SMBTORTURE_OBJ) $(RPCCLIENT_OBJ1) \
358 $(RPC_CLIENT_OBJ) $(LIBMSRPC_OBJ)
360 NSS_OBJ_0 = nsswitch/wins.o $(PARAM_OBJ) $(UBIQX_OBJ) $(LIBSMB_OBJ) $(LIB_OBJ)
361 NSS_OBJ = $(NSS_OBJ_0:.o=.po)
363 PICOBJS = $(SMBWRAPPER_OBJ:.o=.po)
364 PICOBJS32 = $(SMBWRAPPER_OBJ:.o=.po32)
366 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
367 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
368 lib/debug.o lib/util_sid.o lib/messages.o lib/util_str.o \
369 lib/wins_srv.o lib/substitute.o lib/select.o lib/util.o \
370 nsswitch/wb_client.o nsswitch/wb_common.o lib/system.o \
371 lib/charset.o lib/util_file.o lib/kanji.o lib/genrand.o \
372 lib/username.o lib/util_getent.o lib/charcnv.o lib/time.o lib/md4.o \
373 lib/util_unistr.o lib/signal.o lib/talloc.o lib/ms_fnmatch.o \
374 lib/util_sock.o lib/smbrun.o lib/util_sec.o lib/snprintf.o \
375 ubiqx/ubi_sLinkList.o libsmb/smbencrypt.o libsmb/smbdes.o \
376 smbd/ssl.o lib/access.o \
377 lib/interfaces.o $(PARAM_OBJ) $(TDB_OBJ) $(PASSDB_OBJ)
379 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0:.o=.po)
380 LIBSMBCLIENT_PICOBJS = $(LIBSMBCLIENT_OBJ:.o=.po)
382 WINBINDD_OBJ1 = \
383 nsswitch/winbindd.o \
384 nsswitch/winbindd_user.o \
385 nsswitch/winbindd_group.o \
386 nsswitch/winbindd_idmap.o \
387 nsswitch/winbindd_util.o \
388 nsswitch/winbindd_cache.o \
389 nsswitch/winbindd_pam.o \
390 nsswitch/winbindd_sid.o \
391 nsswitch/winbindd_misc.o \
392 nsswitch/winbindd_cm.o \
393 nsswitch/winbindd_wins.o \
394 nsswitch/winbindd_rpc.o
396 NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ = \
397 smbd/password.o smbd/utmp.o smbd/session.o smbd/uid.o smbd/sec_ctx.o \
398 rpc_client/cli_netlogon.o rpc_client/cli_login.o \
399 smbd/chgpasswd.o
401 WINBINDD_OBJ = \
402 $(WINBINDD_OBJ1) $(NOPROTO_OBJ) $(PASSDB_OBJ) \
403 $(LIBNMB_OBJ) $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
404 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(RPC_PARSE_OBJ) \
405 $(GROUPDB_OBJ) $(PROFILE_OBJ) \
406 $(NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ)
408 WBINFO_OBJ = nsswitch/wbinfo.o libsmb/smbencrypt.o libsmb/smbdes.o \
409 passdb/secrets.o
411 WINBIND_NSS_OBJ = nsswitch/winbind_nss.o nsswitch/wb_common.o @WINBIND_NSS_EXTRA_OBJS@
413 WINBIND_NSS_PICOBJS = $(WINBIND_NSS_OBJ:.o=.po)
415 POPT_OBJS=popt/findme.o popt/popt.o popt/poptconfig.o \
416 popt/popthelp.o popt/poptparse.o
418 TDBBACKUP_OBJ = tdb/tdbbackup.o $(TDBBASE_OBJ)
420 TDBDUMP_OBJ = tdb/tdbdump.o $(TDBBASE_OBJ)
422 ######################################################################
423 # now the rules...
424 ######################################################################
426 all : CHECK $(SPROGS) $(PROGS) $(WINBIND_PROGS) $(WINBIND_SPROGS) $(LPROGS)
428 # The following "everything" is NOT needed except by Samba developers - so do not use this!
429 everything : CHECK $(SPROGS) $(PROGS) $(SHLIBS) nsswitch smbwrapper smbtorture debug2html smbfilter nsswitch/libnss_wins.so
431 pam_smbpass : CHECK bin/pam_smbpass.@SHLIBEXT@
433 smbwrapper : CHECK @WRAPPROG@ @WRAP@ @WRAP32@
435 libsmbclient : CHECK bin/libsmbclient.@SHLIBEXT@ bin/libsmbclient.a
437 torture : CHECK $(TORTURE_PROGS)
439 smbtorture : CHECK bin/smbtorture
441 masktest : CHECK bin/masktest
443 msgtest : CHECK bin/msgtest
445 locktest : CHECK bin/locktest
447 smbcacls : CHECK bin/smbcacls
449 locktest2 : CHECK bin/locktest2
451 rpctorture : CHECK bin/rpctorture
453 bin/rpccheck: $(RPCCHECK_OBJ) bin/.dummy
454 @echo Linking $@
455 @$(CC) $(FLAGS) -o $@ $(RPCCHECK_OBJ) $(LDFLAGS) $(LIBS)
457 debug2html : CHECK bin/debug2html
459 smbfilter : CHECK bin/smbfilter
461 nsswitch : CHECK $(WINBIND_PROGS) $(WINBIND_SPROGS) $(LPROGS)
463 .SUFFIXES:
464 .SUFFIXES: .c .o .po .po32 .lo
466 CHECK:
467 @echo "Using FLAGS = $(FLAGS)"
468 @echo "Using FLAGS32 = $(FLAGS32)"
469 @echo "Using LIBS = $(LIBS)"
471 MAKEDIR = || exec false; \
472 if test -d "$$dir"; then :; else \
473 echo mkdir "$$dir"; \
474 mkdir -p "$$dir" >/dev/null 2>&1 || \
475 test -d "$$dir" || \
476 mkdir "$$dir" || \
477 exec false; fi || exec false
479 .c.o:
480 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
481 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
482 @echo Compiling $*.c
483 @$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
484 -o $@
485 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
487 .c.po:
488 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
489 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
490 @echo Compiling $*.c with @PICFLAG@
491 @$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< \
492 -o $*.@PICSUFFIX@
493 @BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@.o
494 @mv $*.po.o $@
496 # this is for IRIX
497 .c.po32:
498 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
499 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
500 @echo Compiling $*.c with @PICFLAG@ and -32
501 @$(CC) -32 -I. -I$(srcdir) $(FLAGS32) @PICFLAG@ -c $< \
502 -o $*.po32.o
503 @BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
504 @mv $*.po32.o $@
506 bin/.dummy:
507 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
508 dir=bin $(MAKEDIR); fi
509 @: >> $@ || : > $@ # what a fancy emoticon!
511 bin/smbd: $(SMBD_OBJ) bin/.dummy
512 @echo Linking $@
513 @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAPLIBS)
515 bin/nmbd: $(NMBD_OBJ) bin/.dummy
516 @echo Linking $@
517 @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(LIBS)
519 bin/swat: $(SWAT_OBJ) bin/.dummy
520 @echo Linking $@
521 @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAPLIBS)
523 bin/rpcclient: $(RPCCLIENT_OBJ) bin/.dummy
524 @echo Linking $@
525 @$(CC) $(FLAGS) -o $@ $(RPCCLIENT_OBJ) $(LDFLAGS) $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(LDAPLIBS)
527 bin/smbclient: $(CLIENT_OBJ) bin/.dummy
528 @echo Linking $@
529 @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS)
531 bin/smbspool: $(CUPS_OBJ) bin/.dummy
532 @echo Linking $@
533 @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(LDFLAGS) $(LIBS)
535 bin/smbmount: $(MOUNT_OBJ) bin/.dummy
536 @echo Linking $@
537 @$(CC) $(FLAGS) -o $@ $(MOUNT_OBJ) $(LDFLAGS) $(LIBS)
539 bin/smbmnt: $(MNT_OBJ) bin/.dummy
540 @echo Linking $@
541 @$(CC) $(FLAGS) -o $@ $(MNT_OBJ) $(LDFLAGS) $(LIBS)
543 bin/smbumount: $(UMOUNT_OBJ) bin/.dummy
544 @echo Linking $@
545 @$(CC) $(FLAGS) -o $@ $(UMOUNT_OBJ) $(LDFLAGS) $(LIBS)
547 bin/testparm: $(TESTPARM_OBJ) bin/.dummy
548 @echo Linking $@
549 @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(LIBS)
551 bin/testprns: $(TESTPRNS_OBJ) bin/.dummy
552 @echo Linking $@
553 @$(CC) $(FLAGS) -o $@ $(TESTPRNS_OBJ) $(LDFLAGS) $(LIBS)
555 bin/smbstatus: $(STATUS_OBJ) bin/.dummy
556 @echo Linking $@
557 @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(LIBS)
559 bin/smbcontrol: $(SMBCONTROL_OBJ) bin/.dummy
560 @echo Linking $@
561 @$(CC) $(FLAGS) -o $@ $(SMBCONTROL_OBJ) $(LDFLAGS) $(LIBS)
563 bin/smbpasswd: $(SMBPASSWD_OBJ) bin/.dummy
564 @echo Linking $@
565 @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAPLIBS)
567 bin/pdbedit: $(PDBEDIT_OBJ) bin/.dummy
568 @echo Linking $@
569 @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAPLIBS)
571 bin/make_smbcodepage: $(MAKE_SMBCODEPAGE_OBJ) bin/.dummy
572 @echo Linking $@
573 @$(CC) $(FLAGS) -o $@ $(MAKE_SMBCODEPAGE_OBJ) $(LDFLAGS) $(LIBS)
575 bin/make_unicodemap: $(MAKE_UNICODEMAP_OBJ) bin/.dummy
576 @echo Linking $@
577 @$(CC) $(FLAGS) -o $@ $(MAKE_UNICODEMAP_OBJ) $(LDFLAGS) $(LIBS)
579 bin/nmblookup: $(NMBLOOKUP_OBJ) bin/.dummy
580 @echo Linking $@
581 @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(LIBS)
583 bin/make_printerdef: $(MAKE_PRINTERDEF_OBJ) bin/.dummy
584 @echo Linking $@
585 @$(CC) $(FLAGS) -o $@ $(MAKE_PRINTERDEF_OBJ) $(LDFLAGS) $(LIBS)
587 bin/smbtorture: $(SMBTORTURE_OBJ) bin/.dummy
588 @echo Linking $@
589 @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(LIBS)
591 bin/masktest: $(MASKTEST_OBJ) bin/.dummy
592 @echo Linking $@
593 @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(LIBS)
595 bin/msgtest: $(MSGTEST_OBJ) bin/.dummy
596 @echo Linking $@
597 @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(LIBS)
599 bin/smbcacls: $(SMBCACLS_OBJ) bin/.dummy
600 @echo Linking $@
601 @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAPLIBS)
603 bin/locktest: $(LOCKTEST_OBJ) bin/.dummy
604 @echo Linking $@
605 @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(LIBS)
607 bin/locktest2: $(LOCKTEST2_OBJ) bin/.dummy
608 @echo Linking $@
609 @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(LIBS)
611 bin/nsstest: $(NSSTEST_OBJ) bin/.dummy
612 @echo Linking $@
613 @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(LIBS)
615 bin/rpctorture: $(RPCTORTURE_OBJ) bin/.dummy
616 @echo Linking $@
617 @$(CC) $(FLAGS) -o $@ $(RPCTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
619 bin/debug2html: $(DEBUG2HTML_OBJ) bin/.dummy
620 @echo Linking $@
621 @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(LIBS)
623 bin/smbfilter: $(SMBFILTER_OBJ) bin/.dummy
624 @echo Linking $@
625 @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS)
628 bin/smbw_sample: $(SMBW_OBJ) utils/smbw_sample.o bin/.dummy
629 @echo Linking $@
630 @$(CC) $(FLAGS) -o $@ $(SMBW_OBJ) utils/smbw_sample.o $(LDFLAGS) $(LIBS)
632 bin/smbsh: $(SMBSH_OBJ) bin/.dummy
633 @echo Linking $@
634 @$(CC) $(FLAGS) -o $@ $(SMBSH_OBJ) $(LDFLAGS) $(LIBS)
636 bin/smbwrapper.@SHLIBEXT@: $(PICOBJS) bin/.dummy
637 @echo Linking shared library $@
638 @$(SHLD) @LDSHFLAGS@ -o $@ $(PICOBJS) $(LDFLAGS) $(LIBS) \
639 @SONAMEFLAG@`basename $@`
641 bin/smbwrapper.32.@SHLIBEXT@: $(PICOBJS32) bin/.dummy
642 @echo Linking shared library $@
643 @$(SHLD) -32 @LDSHFLAGS@ -o $@ $(PICOBJS32) $(LDFLAGS) $(LIBS) \
644 @SONAMEFLAG@`basename $@`
646 bin/libsmbclient.@SHLIBEXT@: $(LIBSMBCLIENT_PICOBJS) bin/.dummy
647 @echo Linking libsmbclient shared library $@
648 @$(SHLD) @LDSHFLAGS@ -o $@ $(LIBSMBCLIENT_PICOBJS) $(LIBS) \
649 @SONAMEFLAG@`basename $@`.$(LIBSMBCLIENT_MAJOR)
651 bin/libsmbclient.a: $(LIBSMBCLIENT_PICOBJS) bin/.dummy
652 @echo Linking libsmbclient non-shared library $@
653 @-$(AR) -rc $@ $(LIBSMBCLIENT_PICOBJS)
655 bin/pam_smbpass.@SHLIBEXT@: $(PAM_SMBPASS_OBJ) bin/.dummy
656 @echo Linking shared library $@
657 $(SHLD) @LDSHFLAGS@ -o $@ $(PAM_SMBPASS_OBJ) $(LDFLAGS) -lpam $(DYNEXP) $(LIBS) $(LDAPLIBS) -lc \
658 @SONAMEFLAG@`basename $@`
660 nsswitch/libnss_wins.so: $(NSS_OBJ)
661 @echo "Linking $@"
662 @$(SHLD) @LDSHFLAGS@ -o $@ $(NSS_OBJ) -lc \
663 @SONAMEFLAG@`basename $@`
665 bin/winbindd: $(WINBINDD_OBJ) bin/.dummy
666 @echo Linking $@
667 @$(LINK) -o $@ $(WINBINDD_OBJ) $(DYNEXP) $(LIBS) $(LDAPLIBS)
669 nsswitch/libns_winbind.so: $(WINBIND_NSS_PICOBJS)
670 @echo "Linking $@"
671 @$(SHLD) @LDSHFLAGS@ -o $@ $(WINBIND_NSS_PICOBJS) @WINBIND_NSS_EXTRA_LIBS@ \
672 @SONAMEFLAG@`basename $@`
674 nsswitch/libnss_winbind.so: $(WINBIND_NSS_PICOBJS)
675 @echo "Linking $@"
676 @$(SHLD) @LDSHFLAGS@ -o $@ $(WINBIND_NSS_PICOBJS) @WINBIND_NSS_EXTRA_LIBS@ \
677 @SONAMEFLAG@`basename $@`
679 nsswitch/pam_winbind.so: $(PAM_WINBIND_OBJ)
680 @echo Linking $@
681 @$(SHLD) @LDSHFLAGS@ -o $@ $(PAM_WINBIND_OBJ) \
682 @SONAMEFLAG@`basename $@`
684 bin/wbinfo: $(WBINFO_OBJ) $(PARAM_OBJ) $(LIB_OBJ) $(NOPROTO_OBJ) \
685 $(UBIQX_OBJ) @BUILD_POPT@ bin/.dummy
686 @echo Linking $@
687 @$(LINK) -o $@ $(WBINFO_OBJ) $(PARAM_OBJ) $(LIB_OBJ) $(NOPROTO_OBJ) \
688 $(UBIQX_OBJ) $(LIBS) @BUILD_POPT@
690 bin/tdbbackup: $(TDBBACKUP_OBJ) bin/.dummy
691 @echo Linking $@
692 @$(CC) $(FLAGS) -o $@ $(TDBBACKUP_OBJ)
694 bin/tdbdump: $(TDBDUMP_OBJ) bin/.dummy
695 @echo Linking $@
696 @$(CC) $(FLAGS) -o $@ $(TDBDUMP_OBJ)
698 install: installbin installman installscripts installcp installswat
700 installdirs:
701 $(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) $(BASEDIR)
702 $(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) $(SBINDIR)
703 $(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) $(BINDIR)
704 $(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) $(LIBDIR)
705 $(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) $(VARDIR)
706 $(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) $(PIDDIR)
707 $(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) $(CODEPAGEDIR)
709 installservers: all installdirs
710 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
712 installbin: all installdirs
713 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS) $(WINBIND_SPROGS)
714 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS) $(WINBIND_PROGS)
716 installscripts: installdirs
717 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
719 installcp: installdirs installbin
720 @$(SHELL) $(srcdir)/script/installcp.sh $(srcdir) $(LIBDIR) $(CODEPAGEDIR) $(BINDIR) $(CODEPAGELIST)
722 installswat: installdirs
723 @$(SHELL) $(srcdir)/script/installswat.sh $(SWATDIR) $(srcdir)
725 installclientlib:
726 -$(INSTALLCMD) bin/libsmbclient.so
727 -$(INSTALLCMD) -d ${prefix}/include
728 -$(INSTALLCMD) include/libsmbclient.h ${prefix}/include
730 # revert to the previously installed version
731 revert:
732 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SPROGS) ${WINBIND_SPROGS}
733 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(PROGS) $(SCRIPTS) ${WINBIND_PROGS}
735 installman:
736 @$(SHELL) $(srcdir)/script/installman.sh $(MANDIR) $(srcdir) "@ROFF@"
738 uninstall: uninstallman uninstallbin uninstallscripts uninstallcp
740 uninstallman:
741 @$(SHELL) $(srcdir)/script/uninstallman.sh $(MANDIR) $(srcdir)
743 uninstallbin:
744 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS) $(WINBIND_SPROGS)
745 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS) $(WINBIND_PROGS)
747 uninstallscripts:
748 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
750 uninstallcp:
751 @$(SHELL) $(srcdir)/script/uninstallcp.sh $(CODEPAGEDIR) $(CODEPAGELIST)
753 clean:
754 -rm -f core */*~ *~ */*.o */*.po */*.po32 */*.@SHLIBEXT@* */*.a
756 winbindd_proto:
757 @cd $(srcdir) && $(SHELL) script/mkproto.sh $(AWK) \
758 -h _WINBINDD_PROTO_H_ nsswitch/winbindd_proto.h \
759 $(WINBINDD_OBJ1)
761 proto:
762 @echo rebuilding include/proto.h
763 @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
765 etags:
766 etags `find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
768 ctags:
769 ctags `find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
771 realclean: clean
772 -rm -f config.log $(PROGS) $(SPROGS) $(WINBIND_PROGS) $(WINBIND_SPROGS) $(LPROGS) bin/.dummy
773 -rm -f bin/*
774 -rmdir bin
776 distclean: realclean
777 -rm -f include/config.h Makefile
778 -rm -f config.status config.cache so_locations
779 -rm -rf .deps
781 # this target is really just for my use. It only works on a limited
782 # range of machines and is used to produce a list of potentially
783 # dead (ie. unused) functions in the code. (tridge)
784 finddead:
785 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
786 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
787 comm -13 nmused.txt nmfns.txt
790 # when configure.in is updated, reconfigure
791 $(srcdir)/configure: $(srcdir)/configure.in
792 @echo "WARNING: you need to rerun autoconf"
794 config.status: $(srcdir)/configure
795 @echo "WARNING: you need to run configure"
797 Makefile: $(srcdir)/Makefile.in config.status
798 @echo "WARNING: you need to run ./config.status"