1 ###########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 ###########################################################################
7 exec_prefix=@
exec_prefix@
9 sysconfdir
=@sysconfdir@
18 TERMLDFLAGS
=@TERMLDFLAGS@
21 LINK
=$(CC
) $(FLAGS
) $(LDFLAGS
)
34 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
37 VARDIR
= @localstatedir@
38 CONFIGDIR
= @configdir@
40 INCLUDEDIR
= @
includedir@
42 # The permissions to give the executables
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
= @logfilebase@
49 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
50 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
51 DRIVERFILE
= $(CONFIGDIR
)/printers.def
52 PASSWD_PROGRAM
= /bin
/passwd
53 # This is where smbpasswd et al go
54 PRIVATEDIR
= @privatedir@
56 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
57 TDB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd.tdb
59 # This is where SWAT images and help files go
62 # the directory where lock files go
65 # The directory where code page definition files go
66 CODEPAGEDIR
= @codepagedir@
68 # The current codepage definition list.
69 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 \
72 PASSWD_FLAGS
= -DPASSWD_PROGRAM
=\"$(PASSWD_PROGRAM
)\" -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" -DTDB_PASSWD_FILE
=\"$(TDB_PASSWD_FILE
)\"
73 FLAGS1
= $(CFLAGS
) -Iinclude
-I
$(srcdir)/include -I
$(srcdir)/ubiqx
-I
$(srcdir)/smbwrapper
$(CPPFLAGS
) -DLOGFILEBASE
=\"$(LOGFILEBASE
)\"
74 FLAGS2
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
75 FLAGS3
= -DSWATDIR
=\"$(SWATDIR
)\" -DSBINDIR
=\"$(SBINDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\" -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\"
76 FLAGS4
= -DDRIVERFILE
=\"$(DRIVERFILE
)\" -DBINDIR
=\"$(BINDIR
)\"
77 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
) -DHAVE_INCLUDES_H
78 FLAGS
= $(ISA
) $(FLAGS5
) $(PASSWD_FLAGS
)
79 FLAGS32
= $(ISA32
) $(FLAGS5
) $(PASSWD_FLAGS
)
81 WINBIND_PROGS
= bin
/wbinfo
82 WINBIND_SPROGS
= bin
/winbindd
83 WINBIND_PAM_PROGS
= nsswitch
/pam_winbind.so
84 WINBIND_LPROGS
= @WINBIND_PAM_PROGS@ nsswitch
/libnss_winbind.so
86 SPROGS
= bin
/smbd bin
/nmbd bin
/swat @WINBIND_STARGETS@
87 PROGS1
= bin
/smbclient bin
/smbspool bin
/testparm bin
/testprns bin
/smbstatus bin
/smbcontrol bin
/make_printerdef bin
/pdbedit @RUNPROG@ @WINBIND_TARGETS@
88 PROGS2
= bin
/smbpasswd bin
/make_smbcodepage bin
/rpcclient bin
/make_unicodemap bin
/smbcacls @WRAP@ @WRAP32@ @PAM_MOD@
90 LPROGS
= @WINBIND_LTARGETS@
91 PROGS
= $(PROGS1
) $(PROGS2
) $(MPROGS
) bin
/nmblookup
93 SCRIPTS
= $(srcdir)/script
/smbtar
97 ######################################################################
99 ######################################################################
101 TDB_OBJ
= tdb
/tdb.o tdb
/spinlock.o tdb
/tdbutil.o
103 LIB_OBJ
= lib
/charcnv.o lib
/charset.o lib
/debug.o lib
/fault.o \
104 lib
/getsmbpass.o lib
/interface.o lib
/kanji.o lib
/md4.o \
105 lib
/interfaces.o lib
/pidfile.o lib
/replace.o \
106 lib
/signal.o lib
/system.o lib
/doscalls.o lib
/time.o \
107 lib
/ufc.o lib
/genrand.o lib
/username.o lib
/access.o lib
/smbrun.o \
108 lib
/bitmap.o lib
/crc32.o lib
/snprintf.o lib
/wins_srv.o \
109 lib
/util_array.o lib
/util_str.o lib
/util_sid.o \
110 lib
/util_unistr.o lib
/util_file.o lib
/sysacls.o \
111 lib
/util.o lib
/util_sock.o lib
/util_sec.o smbd
/ssl.o \
112 lib
/talloc.o lib
/hash.o lib
/substitute.o lib
/fsusage.o \
113 lib
/ms_fnmatch.o lib
/select.o lib
/error.o lib
/messages.o \
114 nsswitch
/wb_client.o nsswitch
/wb_common.o
$(TDB_OBJ
)
116 READLINE_OBJ
= lib
/readline.o
118 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
119 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o ubiqx
/debugparse.o
121 PARAM_OBJ
= param
/loadparm.o param
/params.o
123 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
124 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
125 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
126 libsmb
/clitrans.o libsmb
/clisecdesc.o \
127 libsmb
/namequery.o libsmb
/nmblib.o libsmb
/clistr.o \
128 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
129 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
130 libsmb
/passchange.o libsmb
/unexpected.o
$(RPC_PARSE_OBJ1
)
132 LIBMSRPC_OBJ
= libsmb
/cli_lsarpc.o libsmb
/cli_samr.o libsmb
/cli_spoolss.o \
133 libsmb
/cli_netlogon.o libsmb
/cli_srvsvc.o \
134 rpc_client
/cli_pipe.o nsswitch
/winbindd_glue.o
136 RPC_SERVER_OBJ
= rpc_server
/srv_lsa.o rpc_server
/srv_lsa_nt.o \
137 rpc_server
/srv_lsa_hnd.o rpc_server
/srv_netlog.o rpc_server
/srv_netlog_nt.o \
138 rpc_server
/srv_pipe_hnd.o rpc_server
/srv_reg.o rpc_server
/srv_reg_nt.o \
139 rpc_server
/srv_samr.o rpc_server
/srv_samr_nt.o rpc_server
/srv_srvsvc.o rpc_server
/srv_srvsvc_nt.o \
140 rpc_server
/srv_util.o rpc_server
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o \
141 rpc_server
/srv_pipe.o rpc_server
/srv_dfs.o rpc_server
/srv_dfs_nt.o \
142 rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o \
145 # this includes only the low level parse code, not stuff
146 # that requires knowledge of security contexts
147 RPC_PARSE_OBJ1
= rpc_parse
/parse_prs.o rpc_parse
/parse_sec.o \
148 rpc_parse
/parse_misc.o
150 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_net.o \
151 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
152 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
153 rpc_parse
/parse_wks.o \
154 rpc_parse
/parse_spoolss.o rpc_parse
/parse_dfs.o \
155 rpc_parse
/parse_creds.o
157 RPC_CLIENT_OBJ
= rpc_client
/cli_netlogon.o rpc_client
/cli_pipe.o \
158 rpc_client
/cli_lsarpc.o rpc_client
/cli_connect.o \
159 rpc_client
/cli_use.o rpc_client
/cli_login.o \
160 rpc_client
/cli_spoolss_notify.o rpc_client
/ncacn_np_use.o \
161 lib
/util_list.o rpc_client
/cli_trust.o
163 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
165 PASSDB_OBJ
= passdb
/passdb.o passdb
/secrets.o \
166 passdb
/pass_check.o passdb
/smbpassfile.o \
167 passdb
/machine_sid.o passdb
/pdb_smbpasswd.o \
168 passdb
/pampass.o passdb
/pdb_tdb.o passdb
/pdb_ldap.o
170 PROFILE_OBJ
= profile
/profile.o
172 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
174 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o
176 SMBD_OBJ1
= smbd
/server.o smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
177 smbd
/utmp.o smbd
/session.o \
178 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o smbd
/fileio.o \
179 smbd
/ipc.o smbd
/lanman.o smbd
/mangle.o smbd
/negprot.o \
180 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
181 smbd
/reply.o smbd
/trans2.o smbd
/uid.o \
182 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
183 smbd
/blocking.o smbd
/sec_ctx.o \
184 smbd
/vfs.o smbd
/vfs-wrap.o smbd
/statcache.o \
186 smbd
/process.o smbd
/service.o smbd
/error.o \
187 printing
/printfsp.o lib
/util_seaccess.o
189 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o \
190 printing
/print_cups.o printing
/print_generic.o \
191 printing
/lpq_parse.o printing
/load.o
193 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
195 MSDFS_OBJ
= msdfs
/msdfs.o
197 SMBD_OBJ
= $(SMBD_OBJ1
) $(MSDFS_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
198 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) $(RPC_CLIENT_OBJ
) \
199 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) \
200 $(PRINTBACKEND_OBJ
) $(QUOTAOBJS
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
)
203 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
204 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
205 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
206 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
207 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
208 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
209 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
210 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
211 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
212 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
213 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
214 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
216 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
217 $(PROFILE_OBJ
) $(LIB_OBJ
)
219 SWAT_OBJ
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
220 web
/swat.o
$(PRINTING_OBJ
) $(LIBSMB_OBJ
) $(LOCKING_OBJ
) \
221 $(PARAM_OBJ
) $(PASSDB_OBJ
) $(RPC_PARSE_OBJ
) \
222 $(UBIQX_OBJ
) $(LIB_OBJ
)
224 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o \
225 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
227 MAKE_SMBCODEPAGE_OBJ
= utils
/make_smbcodepage.o
$(PARAM_OBJ
) \
228 $(UBIQX_OBJ
) $(LIB_OBJ
)
230 MAKE_UNICODEMAP_OBJ
= utils
/make_unicodemap.o
$(PARAM_OBJ
) \
231 $(UBIQX_OBJ
) $(LIB_OBJ
)
233 MAKE_PRINTERDEF_OBJ
= utils
/make_printerdef.o
$(PARAM_OBJ
) \
234 $(UBIQX_OBJ
) $(LIB_OBJ
)
236 STATUS_OBJ
= utils
/status.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
237 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
239 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
240 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
242 TESTPARM_OBJ
= utils
/testparm.o \
243 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
245 TESTPRNS_OBJ
= utils
/testprns.o
$(PARAM_OBJ
) $(PRINTING_OBJ
) $(UBIQX_OBJ
) \
248 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PARAM_OBJ
) \
249 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
250 $(UBIQX_OBJ
) $(RPC_PARSE_OBJ
) $(RPC_CLIENT_OBJ
) \
251 libsmb
/cli_lsarpc.o libsmb
/cli_samr.o
$(LIB_OBJ
)
253 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
254 $(UBIQX_OBJ
) $(LIB_OBJ
) $(GROUPDB_OBJ
)
256 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_spoolss.o \
257 rpcclient
/cmd_samr.o rpcclient
/cmd_lsarpc.o \
258 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o
260 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
261 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
262 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_OBJ
) \
265 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.po nsswitch
/wb_common.po
267 SMBW_OBJ
= smbwrapper
/smbw.o \
268 smbwrapper
/smbw_dir.o smbwrapper
/smbw_stat.o \
269 smbwrapper
/realcalls.o smbwrapper
/shared.o \
270 $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
271 $(UBIQX_OBJ
) $(LIB_OBJ
)
273 SMBWRAPPER_OBJ
= $(SMBW_OBJ
) smbwrapper
/wrapped.o
275 LIBSMBCLIENT_OBJ
= libsmb
/libsmbclient.o
$(LIB_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
)
277 CLIENT_OBJ
= client
/client.o client
/clitar.o \
278 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
281 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
283 MOUNT_OBJ
= client
/smbmount.o \
284 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
286 MNT_OBJ
= client
/smbmnt.o \
287 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
289 UMOUNT_OBJ
= client
/smbumount.o \
290 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
292 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) \
293 $(LIBSMB_OBJ
) $(LIB_OBJ
)
295 SMBTORTURE_OBJ
= utils
/torture.o utils
/nbio.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
296 $(UBIQX_OBJ
) $(LIB_OBJ
)
298 MASKTEST_OBJ
= utils
/masktest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
299 $(UBIQX_OBJ
) $(LIB_OBJ
)
301 MSGTEST_OBJ
= utils
/msgtest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
302 $(UBIQX_OBJ
) $(LIB_OBJ
)
304 LOCKTEST_OBJ
= utils
/locktest.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
305 $(UBIQX_OBJ
) $(LIB_OBJ
)
307 SMBCACLS_OBJ
= utils
/smbcacls.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
308 $(UBIQX_OBJ
) $(LIB_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
312 LOCKTEST2_OBJ
= utils
/locktest2.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
313 $(UBIQX_OBJ
) $(LIB_OBJ
)
315 RPCTORTURE_OBJ
= utils
/rpctorture.o \
316 rpcclient
/display.o \
317 rpcclient
/cmd_lsarpc.o \
318 rpcclient
/cmd_wkssvc.o \
319 rpcclient
/cmd_samr.o \
320 rpcclient
/cmd_srvsvc.o \
321 rpcclient
/cmd_netlogon.o \
322 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
323 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
)
325 RPCCHECK_OBJ
= utils
/rpccheck.o \
326 $(LIB_OBJ
) $(RPC_PARSE_OBJ
) \
327 $(UBIQX_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
)
329 DEBUG2HTML_OBJ
= utils
/debug2html.o ubiqx
/debugparse.o
331 SMBFILTER_OBJ
= utils
/smbfilter.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
332 $(UBIQX_OBJ
) $(LIB_OBJ
)
334 PROTO_OBJ
= $(SMBD_OBJ
) $(NMBD_OBJ
) $(SWAT_OBJ
) $(CLIENT_OBJ
) \
335 $(SMBWRAPPER_OBJ
) $(SMBTORTURE_OBJ
) $(RPCCLIENT_OBJ1
) \
336 $(RPC_CLIENT_OBJ
) $(LIBMSRPC_OBJ
)
338 NSS_OBJ_0
= nsswitch
/wins.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIBSMB_OBJ
) $(LIB_OBJ
) $(NSSWINS_OBJ
)
339 NSS_OBJ
= $(NSS_OBJ_0
:.o
=.po
)
341 PICOBJS
= $(SMBWRAPPER_OBJ
:.o
=.po
)
342 PICOBJS32
= $(SMBWRAPPER_OBJ
:.o
=.po32
)
344 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
345 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o \
346 lib
/debug.o lib
/util_sid.o lib
/messages.o lib
/util_str.o \
347 lib
/wins_srv.o lib
/substitute.o lib
/select.o lib
/util.o \
348 nsswitch
/wb_client.o nsswitch
/wb_common.o lib
/system.o \
349 lib
/charset.o lib
/util_file.o lib
/kanji.o lib
/genrand.o \
350 lib
/username.o lib
/charcnv.o lib
/time.o lib
/md4.o \
351 lib
/util_unistr.o lib
/signal.o lib
/talloc.o lib
/ms_fnmatch.o \
352 lib
/util_sock.o lib
/doscalls.o lib
/smbrun.o lib
/util_sec.o \
353 ubiqx
/ubi_sLinkList.o libsmb
/smbencrypt.o libsmb
/smbdes.o \
354 $(PARAM_OBJ
) $(TDB_OBJ
) $(PASSDB_OBJ
)
356 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
:.o
=.po
)
357 LIBSMBCLIENT_PICOBJS
= $(LIBSMBCLIENT_OBJ
:.o
=.po
)
360 nsswitch
/winbindd.o \
361 nsswitch
/winbindd_user.o \
362 nsswitch
/winbindd_group.o \
363 nsswitch
/winbindd_idmap.o \
364 nsswitch
/winbindd_util.o \
365 nsswitch
/winbindd_cache.o \
366 nsswitch
/winbindd_pam.o \
367 nsswitch
/winbindd_sid.o \
368 nsswitch
/winbindd_misc.o
370 NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
= \
371 smbd
/password.o smbd
/utmp.o smbd
/session.o smbd
/uid.o smbd
/sec_ctx.o \
372 rpc_client
/cli_netlogon.o rpc_client
/cli_login.o \
376 $(WINBINDD_OBJ1
) $(NOPROTO_OBJ
) $(PASSDB_OBJ
) \
377 $(LIBNMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
378 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(RPC_PARSE_OBJ
) \
379 $(GROUPDB_OBJ
) $(PROFILE_OBJ
) \
380 $(NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
)
382 WBINFO_OBJ
= nsswitch
/wbinfo.o
384 WINBIND_NSS_OBJ
= nsswitch
/winbind_nss.o nsswitch
/wb_common.o
386 WINBIND_NSS_PICOBJS
= $(WINBIND_NSS_OBJ
:.o
=.po
)
388 NSS_OBJ_0
= nsswitch
/wins.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIBSMB_OBJ
) $(LIB_OBJ
) $(NSSWINS_OBJ
)
389 NSS_OBJ
= $(NSS_OBJ_0
:.o
=.po
)
391 ######################################################################
393 ######################################################################
395 all : CHECK
$(SPROGS
) $(PROGS
) nsswitch
397 # The following "everything" is NOT needed except by Samba developers - so do not use this!
398 everything
: CHECK
$(SPROGS
) $(PROGS
) nsswitch smbwrapper smbtorture debug2html smbfilter nsswitch
/libnss_wins.so
400 pam_smbpass
: CHECK bin
/pam_smbpass.@SHLIBEXT@
402 smbwrapper
: CHECK bin
/smbsh bin
/smbwrapper.@SHLIBEXT@ @WRAP32@
404 smbtorture
: CHECK bin
/smbtorture
406 masktest
: CHECK bin
/masktest
408 msgtest
: CHECK bin
/msgtest
410 locktest
: CHECK bin
/locktest
412 smbcacls
: CHECK bin
/smbcacls
414 locktest2
: CHECK bin
/locktest2
416 rpctorture
: CHECK bin
/rpctorture
418 bin
/rpccheck
: $(RPCCHECK_OBJ
) bin
/.dummy
420 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCHECK_OBJ
) $(LDFLAGS
) $(LIBS
)
422 debug2html
: CHECK bin
/debug2html
424 smbfilter
: CHECK bin
/smbfilter
426 nsswitch
: CHECK @WINBIND_TARGETS@ @WINBIND_STARGETS@ @WINBIND_LTARGETS@
429 .SUFFIXES
: .c .o .po .po32 .lo
432 @echo
"Using FLAGS = $(FLAGS)"
433 @echo
"Using FLAGS32 = $(FLAGS32)"
434 @echo
"Using LIBS = $(LIBS)"
436 MAKEDIR
= || exec false
; \
437 if
test -d
"$$dir"; then
:; else \
438 echo mkdir
"$$dir"; \
439 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
442 exec false
; fi || exec false
445 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
446 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
448 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
450 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
453 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
454 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
455 @echo Compiling
$*.c with @PICFLAG@
456 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< \
458 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@.o
463 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
464 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
465 @echo Compiling
$*.c with @PICFLAG@ and
-32
466 @
$(CC
) -32 -I.
-I
$(srcdir) $(FLAGS32
) @PICFLAG@
-c
$< \
468 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
472 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
473 dir=bin
$(MAKEDIR
); fi
474 @
: >> $@ ||
: > $@
# what a fancy emoticon!
476 bin
/smbd
: $(SMBD_OBJ
) bin
/.dummy
478 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
480 bin
/nmbd
: $(NMBD_OBJ
) bin
/.dummy
482 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
484 bin
/swat
: $(SWAT_OBJ
) bin
/.dummy
486 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(LIBS
)
488 bin
/rpcclient
: $(RPCCLIENT_OBJ
) bin
/.dummy
490 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
)
492 bin
/smbclient
: $(CLIENT_OBJ
) bin
/.dummy
494 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(TERMLDFLAGS
) $(TERMLIBS
) $(LIBS
)
496 bin
/smbspool
: $(CUPS_OBJ
) bin
/.dummy
498 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(LDFLAGS
) $(LIBS
)
500 bin
/smbmount
: $(MOUNT_OBJ
) bin
/.dummy
502 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
504 bin
/smbmnt
: $(MNT_OBJ
) bin
/.dummy
506 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(LDFLAGS
) $(LIBS
)
508 bin
/smbumount
: $(UMOUNT_OBJ
) bin
/.dummy
510 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(LDFLAGS
) $(LIBS
)
512 bin
/testparm
: $(TESTPARM_OBJ
) bin
/.dummy
514 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(LIBS
)
516 bin
/testprns
: $(TESTPRNS_OBJ
) bin
/.dummy
518 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPRNS_OBJ
) $(LDFLAGS
) $(LIBS
)
520 bin
/smbstatus
: $(STATUS_OBJ
) bin
/.dummy
522 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(LIBS
)
524 bin
/smbcontrol
: $(SMBCONTROL_OBJ
) bin
/.dummy
526 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCONTROL_OBJ
) $(LDFLAGS
) $(LIBS
)
528 bin
/smbpasswd
: $(SMBPASSWD_OBJ
) bin
/.dummy
530 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(LIBS
)
532 bin
/pdbedit
: $(PDBEDIT_OBJ
) bin
/.dummy
534 @
$(CC
) $(FLAGS
) -o
$@
$(PDBEDIT_OBJ
) $(LDFLAGS
) $(LIBS
)
536 bin
/make_smbcodepage
: $(MAKE_SMBCODEPAGE_OBJ
) bin
/.dummy
538 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_SMBCODEPAGE_OBJ
) $(LDFLAGS
) $(LIBS
)
540 bin
/make_unicodemap
: $(MAKE_UNICODEMAP_OBJ
) bin
/.dummy
542 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_UNICODEMAP_OBJ
) $(LDFLAGS
) $(LIBS
)
544 bin
/nmblookup
: $(NMBLOOKUP_OBJ
) bin
/.dummy
546 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(LIBS
)
548 bin
/make_printerdef
: $(MAKE_PRINTERDEF_OBJ
) bin
/.dummy
550 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_PRINTERDEF_OBJ
) $(LDFLAGS
) $(LIBS
)
552 bin
/smbtorture
: $(SMBTORTURE_OBJ
) bin
/.dummy
554 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
556 bin
/masktest
: $(MASKTEST_OBJ
) bin
/.dummy
558 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
560 bin
/msgtest
: $(MSGTEST_OBJ
) bin
/.dummy
562 @
$(CC
) $(FLAGS
) -o
$@
$(MSGTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
564 bin
/smbcacls
: $(SMBCACLS_OBJ
) bin
/.dummy
566 @
$(CC
) $(FLAGS
) -o
$@
$(SMBCACLS_OBJ
) $(LDFLAGS
) $(LIBS
)
568 bin
/locktest
: $(LOCKTEST_OBJ
) bin
/.dummy
570 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
572 bin
/locktest2
: $(LOCKTEST2_OBJ
) bin
/.dummy
574 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(LIBS
)
576 bin
/rpctorture
: $(RPCTORTURE_OBJ
) bin
/.dummy
578 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
580 bin
/debug2html
: $(DEBUG2HTML_OBJ
) bin
/.dummy
582 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(LIBS
)
584 bin
/smbfilter
: $(SMBFILTER_OBJ
) bin
/.dummy
586 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
)
589 bin
/smbw_sample
: $(SMBW_OBJ
) utils
/smbw_sample.o bin
/.dummy
591 @
$(CC
) $(FLAGS
) -o
$@
$(SMBW_OBJ
) utils
/smbw_sample.o
$(LDFLAGS
) $(LIBS
)
593 bin
/smbwrapper.@SHLIBEXT@
: $(PICOBJS
)
594 @echo Linking shared library
$@
595 @
$(LD
) @LDSHFLAGS@
-o
$@
$(PICOBJS
) $(LIBS
)
597 bin
/smbwrapper
.32.@SHLIBEXT@
: $(PICOBJS32
)
598 @echo Linking shared library
$@
599 @
$(LD
) -32 @LDSHFLAGS@
-o
$@
$(PICOBJS32
) $(LIBS
)
601 bin
/libsmbclient.so
: $(LIBSMBCLIENT_PICOBJS
)
602 @echo Linking libsmbclient shared library
$@
603 @
$(LD
) -shared
-o
$@
$(LIBSMBCLIENT_PICOBJS
) $(LIBS
) # Anything else?
605 bin
/smbsh
: $(SMBSH_OBJ
) bin
/.dummy
607 @
$(CC
) $(FLAGS
) -o
$@
$(SMBSH_OBJ
) $(LDFLAGS
) $(LIBS
)
609 bin
/pam_smbpass.@SHLIBEXT@
: $(PAM_SMBPASS_OBJ
)
610 @echo Linking shared library
$@
611 $(LD
) @LDSHFLAGS@
-symbolic
-o
$@
$(PAM_SMBPASS_OBJ
) -lpam
$(LIBS
) -lc
613 nsswitch
/libnss_wins.so
: $(NSS_OBJ
)
615 @
$(LD
) @LDSHFLAGS@
-o
$@
$(NSS_OBJ
) -lc
617 bin
/winbindd
: $(WINBINDD_OBJ
) bin
/.dummy
619 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(LIBS
)
621 nsswitch
/libnss_winbind.so
: $(WINBIND_NSS_PICOBJS
)
623 @
$(LINK
) @LDSHFLAGS@
-o
$@
$(WINBIND_NSS_PICOBJS
)
625 nsswitch
/pam_winbind.so
: $(PAM_WINBIND_OBJ
) bin
/.dummy
627 @
$(LINK
) @LDSHFLAGS@
-o
$@
$(PAM_WINBIND_OBJ
)
629 bin
/wbinfo
: $(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) $(NOPROTO_OBJ
) $(UBIQX_OBJ
) bin
/.dummy
631 @
$(LINK
) -o
$@
$(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) $(NOPROTO_OBJ
) \
634 install: installbin installman installscripts installcp installswat
637 $(SHELL
) $(srcdir)/install-sh
-d
-m
$(INSTALLPERMS
) \
638 $(BASEDIR
) $(SBINDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(CODEPAGEDIR
)
640 installservers
: all installdirs
641 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
643 installbin
: all installdirs
644 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
645 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
647 installscripts
: installdirs
648 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
650 installcp
: installdirs
651 @
$(SHELL
) $(srcdir)/script
/installcp.sh
$(srcdir) $(LIBDIR
) $(CODEPAGEDIR
) $(BINDIR
) $(CODEPAGELIST
)
653 installswat
: installdirs
654 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(SWATDIR
) $(srcdir)
656 # revert to the previously installed version
658 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SPROGS
)
659 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(PROGS
) $(SCRIPTS
)
662 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(MANDIR
) $(srcdir) "@ROFF@"
664 uninstall: uninstallman uninstallbin uninstallscripts uninstallcp
667 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(MANDIR
) $(srcdir)
670 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
671 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
674 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
677 @
$(SHELL
) $(srcdir)/script
/uninstallcp.sh
$(CODEPAGEDIR
) $(CODEPAGELIST
)
680 -rm -f core
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.@SHLIBEXT@
682 #proto: rpc_client_proto
684 @echo rebuilding
include/proto.h
685 @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
688 # @cd $(srcdir) && $(SHELL) script/mkproto.sh $(AWK) \
689 # -h _RPC_CLIENT_PROTO_H_ include/rpc_client_proto.h \
693 etags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
696 ctags
`find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
699 -rm -f config.log
$(PROGS
) $(SPROGS
) bin
/.dummy
703 -rm -f
include/config.h Makefile
704 -rm -f config.status config.cache so_locations
708 # This target is for documenation updators. It regenerates
709 # the man pages and HTML docs from the YODL source files.
710 # In order for this target to work YODL must be installed
711 # and working on your system. JRA.
713 @
$(SHELL
) $(srcdir)/script
/makeyodldocs.sh
$(srcdir)
715 # this target is really just for my use. It only works on a limited
716 # range of machines and is used to produce a list of potentially
717 # dead (ie. unused) functions in the code. (tridge)
719 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
720 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
721 comm
-13 nmused.txt nmfns.txt
724 # when configure.in is updated, reconfigure
725 $(srcdir)/configure
: $(srcdir)/configure.in
726 @echo
"WARNING: you need to rerun autoconf"
728 config.status
: $(srcdir)/configure
729 @echo
"WARNING: you need to run configure"
731 Makefile
: $(srcdir)/Makefile.in config.status
732 @echo
"WARNING: you need to run ./config.status"