1 ###########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 ###########################################################################
7 exec_prefix=@
exec_prefix@
17 LIBTOOL
=@LIBTOOL@
--quiet
18 LIBTOOL_DEPS
=@LIBTOOL_DEPS@
19 LINK
=$(LIBTOOL
) --mode
=link
$(CC
) $(FLAGS
) $(LDFLAGS
)
31 # we don't use sbindir because we want full compatibility with
32 # the previous releases of Samba
35 VARDIR
= @localstatedir@
38 # The permissions to give the executables
41 # set these to where to find various files
42 # These can be overridden by command line switches (see smbd(8))
43 # or in smb.conf (see smb.conf(5))
44 LOGFILEBASE
= $(VARDIR
)
45 CONFIGFILE
= $(LIBDIR
)/smb.conf
46 LMHOSTSFILE
= $(LIBDIR
)/lmhosts
47 DRIVERFILE
= $(LIBDIR
)/printers.def
48 NTDRIVERSDIR
= $(LIBDIR
)/ntprinters
49 FORMSFILE
= $(NTDRIVERSDIR
)/ntforms.def
50 PASSWD_PROGRAM
= /bin
/passwd
51 # This is where smbpasswd et al go
52 PRIVATEDIR
= @privatedir@
54 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
56 # This is where SWAT images and help files go
59 # the directory where lock files go
62 # The directory where code page definition files go
63 CODEPAGEDIR
= $(LIBDIR
)/codepages
65 # The current codepage definition list.
66 CODEPAGELIST
= 437 737 775 850 852 861 932 866 949 950 936 1251 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI-R
68 # where you are going to have the smbrun binary. This defaults to the
69 # install directory. This binary is needed for correct printing
70 # and magic script execution. This should be an absolute path!
71 # Also not that this should include the name "smbrun" on the end (the
72 # name of the executable)
73 SMBRUN
= $(BINDIR
)/smbrun
76 PASSWD_FLAGS
= -DPASSWD_PROGRAM
=\"$(PASSWD_PROGRAM
)\" -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\"
77 FLAGS1
= $(CFLAGS
) -Iinclude
-I
$(srcdir)/include -I
$(srcdir)/ubiqx
-I
$(srcdir)/smbwrapper
$(CPPFLAGS
) -DLOGFILEBASE
=\"$(LOGFILEBASE
)\"
78 FLAGS2
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
79 FLAGS3
= -DSWATDIR
=\"$(SWATDIR
)\" -DSBINDIR
=\"$(SBINDIR
)\" -DLOCKDIR
=\"$(LOCKDIR
)\" -DSMBRUN
=\"$(SMBRUN
)\" -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\"
80 FLAGS4
= -DDRIVERFILE
=\"$(DRIVERFILE
)\" -DBINDIR
=\"$(BINDIR
)\" -DFORMSFILE
=\"$(FORMSFILE
)\" -DNTDRIVERSDIR
=\"$(NTDRIVERSDIR
)\"
81 FLAGS5
= $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
) -DHAVE_INCLUDES_H
82 FLAGS
= $(ISA
) $(FLAGS5
) $(PASSWD_FLAGS
)
83 FLAGS32
= $(ISA32
) $(FLAGS5
) $(PASSWD_FLAGS
)
85 SPROGS
= bin
/smbd bin
/nmbd bin
/swat
86 PROGS1
= bin
/smbclient bin
/smbspool bin
/testparm bin
/testprns bin
/smbstatus @RUNPROG@
87 PROGS2
= bin
/smbpasswd bin
/make_smbcodepage bin
/make_unicodemap @WRAP@ @WRAP32@
89 PROGS
= $(PROGS1
) $(PROGS2
) $(MPROGS
) bin
/nmblookup bin
/make_printerdef
91 SCRIPTS
= $(srcdir)/script
/smbtar
$(srcdir)/script
/addtosmbpass
$(srcdir)/script
/convert_smbpasswd
95 ######################################################################
97 ######################################################################
99 TDB_OBJ
= tdb
/tdb.o tdb
/tdbutil.o
101 LIB_OBJ
= lib
/charcnv.o lib
/charset.o lib
/debug.o lib
/fault.o \
102 lib
/getsmbpass.o lib
/interface.o lib
/kanji.o lib
/md4.o \
103 lib
/interfaces.o lib
/pidfile.o lib
/replace.o \
104 lib
/signal.o lib
/slprintf.o lib
/system.o lib
/doscalls.o lib
/time.o \
105 lib
/ufc.o lib
/genrand.o lib
/username.o lib
/access.o lib
/smbrun.o \
106 lib
/bitmap.o lib
/crc32.o lib
/snprintf.o lib
/wins_srv.o \
107 lib
/util_array.o lib
/util_str.o lib
/util_sid.o \
108 lib
/util_unistr.o lib
/util_file.o \
109 lib
/util.o lib
/util_sock.o lib
/util_sec.o smbd
/ssl.o \
110 lib
/talloc.o lib
/hash.o lib
/substitute.o lib
/fsusage.o \
111 lib
/ms_fnmatch.o lib
/select.o \
114 UBIQX_OBJ
= ubiqx
/ubi_BinTree.o ubiqx
/ubi_Cache.o ubiqx
/ubi_SplayTree.o \
115 ubiqx
/ubi_dLinkList.o ubiqx
/ubi_sLinkList.o ubiqx
/debugparse.o
117 PARAM_OBJ
= param
/loadparm.o param
/params.o
119 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
120 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
121 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
123 libsmb
/namequery.o libsmb
/nmblib.o \
124 libsmb
/nterr.o libsmb
/smbdes.o libsmb
/smbencrypt.o \
125 libsmb
/smberr.o libsmb
/credentials.o libsmb
/pwd_cache.o \
126 libsmb
/passchange.o libsmb
/unexpected.o
128 RPC_SERVER_OBJ
= rpc_server
/srv_lsa.o \
129 rpc_server
/srv_lsa_hnd.o rpc_server
/srv_netlog.o \
130 rpc_server
/srv_pipe_hnd.o rpc_server
/srv_reg.o \
131 rpc_server
/srv_samr.o rpc_server
/srv_srvsvc.o \
132 rpc_server
/srv_util.o rpc_server
/srv_wkssvc.o \
133 rpc_server
/srv_pipe.o rpc_server
/srv_dfs.o \
134 rpc_server
/srv_spoolss.o rpc_server
/srv_spoolss_nt.o
136 RPC_PARSE_OBJ
= rpc_parse
/parse_lsa.o rpc_parse
/parse_misc.o \
137 rpc_parse
/parse_net.o rpc_parse
/parse_prs.o \
138 rpc_parse
/parse_reg.o rpc_parse
/parse_rpc.o \
139 rpc_parse
/parse_samr.o rpc_parse
/parse_srv.o \
140 rpc_parse
/parse_wks.o rpc_parse
/parse_sec.o \
141 rpc_parse
/parse_spoolss.o rpc_parse
/parse_dfs.o \
142 rpc_parse
/parse_creds.o
145 rpc_client
/cli_login.o \
146 rpc_client
/cli_netlogon.o \
147 rpc_client
/cli_pipe.o \
148 rpc_client
/cli_lsarpc.o \
149 rpc_client
/cli_wkssvc.o \
150 rpc_client
/cli_srvsvc.o \
151 rpc_client
/cli_samr.o \
155 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
157 PASSDB_OBJ
= passdb
/passdb.o passdb
/smbpassfile.o passdb
/smbpass.o passdb
/secrets.o \
158 passdb
/pass_check.o passdb
/ldap.o passdb
/nispass.o passdb
/smbpasschange.o
160 PROFILE_OBJ
= profile
/profile.o
162 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o
164 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_hash.o smbd
/notify_kernel.o
166 SMBD_OBJ1
= smbd
/server.o smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
167 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o smbd
/fileio.o \
168 smbd
/ipc.o smbd
/lanman.o smbd
/mangle.o smbd
/negprot.o \
169 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
170 smbd
/reply.o smbd
/trans2.o smbd
/uid.o \
171 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
172 smbd
/blocking.o smbd
/sec_ctx.o \
173 smbd
/vfs.o smbd
/vfs-wrap.o smbd
/statcache.o \
174 smbd
/unix_acls.o lib
/msrpc-client.o lib
/msrpc_use.o \
175 smbd
/process.o smbd
/service.o smbd
/error.o \
176 printing
/printfsp.o nsswitch
/wb_common.o lib
/util_seaccess.o \
179 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_cups.o printing
/load.o
181 PRINTBACKEND_OBJ
= printing
/printing.o printing
/lpq_parse.o printing
/nt_printing.o
183 MSDFS_OBJ
= msdfs
/msdfs.o
185 SMBD_OBJ
= $(SMBD_OBJ1
) $(MSDFS_OBJ
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
186 $(RPC_SERVER_OBJ
) $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) \
187 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
) \
188 $(PRINTBACKEND_OBJ
) $(QUOTAOBJS
) $(OPLOCK_OBJ
) $(NOTIFY_OBJ
)
191 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
192 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
193 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
194 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
195 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
196 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
197 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
198 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
199 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
200 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
201 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
202 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
204 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) \
207 SWAT_OBJ
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
208 web
/swat.o lib
/msrpc-client.o
$(PRINTING_OBJ
) $(LIBSMB_OBJ
) $(LOCKING_OBJ
) \
209 $(PARAM_OBJ
) $(PASSDB_OBJ
) $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) \
210 $(UBIQX_OBJ
) $(LIB_OBJ
)
212 SMBRUN_OBJ
= utils
/smbrun.o lib
/util_sec.o
214 SMBSH_OBJ
= smbwrapper
/smbsh.o smbwrapper
/shared.o \
215 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
217 MAKE_SMBCODEPAGE_OBJ
= utils
/make_smbcodepage.o
$(PARAM_OBJ
) \
218 $(UBIQX_OBJ
) $(LIB_OBJ
)
220 MAKE_UNICODEMAP_OBJ
= utils
/make_unicodemap.o
$(PARAM_OBJ
) \
221 $(UBIQX_OBJ
) $(LIB_OBJ
)
223 MAKE_PRINTERDEF_OBJ
= utils
/make_printerdef.o
$(PARAM_OBJ
) \
224 $(UBIQX_OBJ
) $(LIB_OBJ
)
226 STATUS_OBJ
= utils
/status.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
227 $(UBIQX_OBJ
) $(PROFILE_OBJ
) $(LIB_OBJ
)
229 TESTPARM_OBJ
= utils
/testparm.o \
230 $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
232 TESTPRNS_OBJ
= utils
/testprns.o
$(PARAM_OBJ
) $(PRINTING_OBJ
) $(UBIQX_OBJ
) \
235 SMBPASSWD_OBJ
= utils
/smbpasswd.o lib
/msrpc-client.o
$(PARAM_OBJ
) \
236 $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
237 $(UBIQX_OBJ
) $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(LIB_OBJ
)
239 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o \
240 lib
/cmd_interp.o lib
/util_list.o \
242 rpc_client
/cli_connect.o \
243 rpc_client
/cli_use.o \
244 rpc_client
/ncacn_np_use.o \
245 rpcclient
/spoolss_cmds.o rpcclient
/cmd_spoolss.o \
246 rpcclient
/display_spool.o rpcclient
/display_sec.o \
247 rpc_client
/msrpc_spoolss.o rpc_client
/cli_spoolss.o
249 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
250 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
251 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
)
253 PAM_WINBIND_OBJ
= nsswitch
/pam_winbind.po nsswitch
/wb_common.po
255 SMBW_OBJ
= smbwrapper
/smbw.o \
256 smbwrapper
/smbw_dir.o smbwrapper
/smbw_stat.o \
257 smbwrapper
/realcalls.o smbwrapper
/shared.o \
258 $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
259 $(UBIQX_OBJ
) $(LIB_OBJ
)
261 SMBWRAPPER_OBJ
= $(SMBW_OBJ
) smbwrapper
/wrapped.o
263 CLIENT_OBJ
= client
/client.o client
/clitar.o \
264 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
266 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
268 MOUNT_OBJ
= client
/smbmount.o \
269 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
271 MNT_OBJ
= client
/smbmnt.o \
272 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
274 UMOUNT_OBJ
= client
/smbumount.o \
275 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
)
277 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) \
278 $(LIBSMB_OBJ
) $(LIB_OBJ
)
280 SMBTORTURE_OBJ
= utils
/torture.o utils
/nbio.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
281 $(UBIQX_OBJ
) $(LIB_OBJ
)
283 MASKTEST_OBJ
= utils
/masktest.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
284 $(UBIQX_OBJ
) $(LIB_OBJ
)
286 LOCKTEST_OBJ
= utils
/locktest.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
287 $(UBIQX_OBJ
) $(LIB_OBJ
)
290 LOCKTEST2_OBJ
= utils
/locktest2.o
$(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(PARAM_OBJ
) \
291 $(UBIQX_OBJ
) $(LIB_OBJ
)
293 RPCTORTURE_OBJ
= utils
/rpctorture.o \
294 rpcclient
/display.o \
295 rpcclient
/cmd_lsarpc.o \
296 rpcclient
/cmd_wkssvc.o \
297 rpcclient
/cmd_samr.o \
298 rpcclient
/cmd_srvsvc.o \
299 rpcclient
/cmd_netlogon.o \
300 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
301 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
)
303 DEBUG2HTML_OBJ
= utils
/debug2html.o ubiqx
/debugparse.o
305 SMBFILTER_OBJ
= utils
/smbfilter.o
$(LIBSMB_OBJ
) $(PARAM_OBJ
) \
306 $(UBIQX_OBJ
) $(LIB_OBJ
)
308 PROTO_OBJ
= $(SMBD_OBJ
) $(NMBD_OBJ
) $(SWAT_OBJ
) $(CLIENT_OBJ
) \
309 $(SMBWRAPPER_OBJ
) $(SMBTORTURE_OBJ
) $(RPCCLIENT_OBJ1
)
311 NSS_OBJ_0
= nsswitch
/wins.o
$(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIBSMB_OBJ
) $(LIB_OBJ
) $(NSSWINS_OBJ
)
312 NSS_OBJ
= $(NSS_OBJ_0
:.o
=.po
)
314 PICOBJS
= $(SMBWRAPPER_OBJ
:.o
=.po
)
315 PICOBJS32
= $(SMBWRAPPER_OBJ
:.o
=.po32
)
318 nsswitch
/winbindd.o \
319 nsswitch
/winbindd_user.o \
320 nsswitch
/winbindd_group.o \
321 nsswitch
/winbindd_idmap.o \
322 nsswitch
/winbindd_util.o \
323 nsswitch
/winbindd_cache.o \
324 nsswitch
/winbindd_pam.o
328 $(RPC_CLIENT_OBJ
) $(RPC_PARSE_OBJ
) $(STUB_UID_OBJ
) \
329 $(LIBNMB_OBJ
) $(PARAM_OBJ
) $(UBIQX_OBJ
) $(LIB_OBJ
) \
330 $(NSSWINS_OBJ
) $(SIDDB_OBJ
) $(LIBSMB_OBJ
)
332 WBINFO_OBJ
= nsswitch
/wbinfo.o nsswitch
/wb_common.o
334 WINBIND_NSS_OBJ
= nsswitch
/winbind.o nsswitch
/wb_common.o
336 WINBIND_NSS_PICOBJS
= $(WINBIND_NSS_OBJ
:.o
=.po
)
339 ######################################################################
341 ######################################################################
343 all : CHECK
$(SPROGS
) $(PROGS
)
345 smbwrapper
: CHECK bin
/smbsh bin
/smbwrapper.@SHLIBEXT@ @WRAP32@
347 smbtorture
: CHECK bin
/smbtorture
349 masktest
: CHECK bin
/masktest
351 locktest
: CHECK bin
/locktest
353 locktest2
: CHECK bin
/locktest2
355 rpctorture
: CHECK bin
/rpctorture
357 debug2html
: CHECK bin
/debug2html
359 smbfilter
: CHECK bin
/smbfilter
362 .SUFFIXES
: .c .o .po .po32 .lo
365 @echo
"Using FLAGS = $(FLAGS)"
366 @echo
"Using FLAGS32 = $(FLAGS32)"
367 @echo
"Using LIBS = $(LIBS)"
369 MAKEDIR
= || exec false
; \
370 if
test -d
"$$dir"; then
:; else \
371 echo mkdir
"$$dir"; \
372 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
375 exec false
; fi || exec false
378 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
379 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
381 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
383 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
385 # This is for libtool
387 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
388 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
389 @echo Compiling
$< with libtool
390 @
$(LIBTOOL
) --mode
=compile \
391 $(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
395 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
396 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
397 @echo Compiling
$*.c with @PICFLAG@
398 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) @PICFLAG@
-c
$< \
400 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@.o
405 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
406 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
407 @echo Compiling
$*.c with @PICFLAG@ and
-32
408 @
$(CC
) -32 -I.
-I
$(srcdir) $(FLAGS32
) @PICFLAG@
-c
$< \
410 @BROKEN_CC@
-mv
`echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
414 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
:; else \
415 dir=bin
$(MAKEDIR
); fi
416 @
: >> $@ ||
: > $@
# what a fancy emoticon!
418 bin
/smbd
: $(SMBD_OBJ
) bin
/.dummy
420 @
$(CC
) $(FLAGS
) -o
$@
$(SMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
422 bin
/nmbd
: $(NMBD_OBJ
) bin
/.dummy
424 @
$(CC
) $(FLAGS
) -o
$@
$(NMBD_OBJ
) $(LDFLAGS
) $(LIBS
)
426 bin
/swat
: $(SWAT_OBJ
) bin
/.dummy
428 @
$(CC
) $(FLAGS
) -o
$@
$(SWAT_OBJ
) $(LDFLAGS
) $(LIBS
)
430 bin
/smbrun
: $(SMBRUN_OBJ
) bin
/.dummy
432 @
$(CC
) $(FLAGS
) -o
$@
$(SMBRUN_OBJ
) $(LDFLAGS
) $(LIBS
)
434 bin
/rpcclient
: $(RPCCLIENT_OBJ
) bin
/.dummy
436 @
$(CC
) $(FLAGS
) -o
$@
$(RPCCLIENT_OBJ
) $(LDFLAGS
) $(LIBS
)
438 bin
/smbclient
: $(CLIENT_OBJ
) bin
/.dummy
440 @
$(CC
) $(FLAGS
) -o
$@
$(CLIENT_OBJ
) $(LDFLAGS
) $(LIBS
)
442 bin
/smbspool
: $(CUPS_OBJ
) bin
/.dummy
444 @
$(CC
) $(FLAGS
) -o
$@
$(CUPS_OBJ
) $(LDFLAGS
) $(LIBS
)
446 bin
/smbmount
: $(MOUNT_OBJ
) bin
/.dummy
448 @
$(CC
) $(FLAGS
) -o
$@
$(MOUNT_OBJ
) $(LIBS
)
450 bin
/smbmnt
: $(MNT_OBJ
) bin
/.dummy
452 @
$(CC
) $(FLAGS
) -o
$@
$(MNT_OBJ
) $(LIBS
)
454 bin
/smbumount
: $(UMOUNT_OBJ
) bin
/.dummy
456 @
$(CC
) $(FLAGS
) -o
$@
$(UMOUNT_OBJ
) $(LIBS
)
458 bin
/testparm
: $(TESTPARM_OBJ
) bin
/.dummy
460 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPARM_OBJ
) $(LDFLAGS
) $(LIBS
)
462 bin
/testprns
: $(TESTPRNS_OBJ
) bin
/.dummy
464 @
$(CC
) $(FLAGS
) -o
$@
$(TESTPRNS_OBJ
) $(LDFLAGS
) $(LIBS
)
466 bin
/smbstatus
: $(STATUS_OBJ
) bin
/.dummy
468 @
$(CC
) $(FLAGS
) -o
$@
$(STATUS_OBJ
) $(LDFLAGS
) $(LIBS
)
470 bin
/smbpasswd
: $(SMBPASSWD_OBJ
) bin
/.dummy
472 @
$(CC
) $(FLAGS
) -o
$@
$(SMBPASSWD_OBJ
) $(LDFLAGS
) $(LIBS
)
474 bin
/make_smbcodepage
: $(MAKE_SMBCODEPAGE_OBJ
) bin
/.dummy
476 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_SMBCODEPAGE_OBJ
) $(LDFLAGS
) $(LIBS
)
478 bin
/make_unicodemap
: $(MAKE_UNICODEMAP_OBJ
) bin
/.dummy
480 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_UNICODEMAP_OBJ
) $(LDFLAGS
) $(LIBS
)
482 bin
/nmblookup
: $(NMBLOOKUP_OBJ
) bin
/.dummy
484 @
$(CC
) $(FLAGS
) -o
$@
$(NMBLOOKUP_OBJ
) $(LDFLAGS
) $(LIBS
)
486 bin
/make_printerdef
: $(MAKE_PRINTERDEF_OBJ
) bin
/.dummy
488 @
$(CC
) $(FLAGS
) -o
$@
$(MAKE_PRINTERDEF_OBJ
) $(LDFLAGS
) $(LIBS
)
490 bin
/smbtorture
: $(SMBTORTURE_OBJ
) bin
/.dummy
492 @
$(CC
) $(FLAGS
) -o
$@
$(SMBTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
494 bin
/masktest
: $(MASKTEST_OBJ
) bin
/.dummy
496 @
$(CC
) $(FLAGS
) -o
$@
$(MASKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
498 bin
/locktest
: $(LOCKTEST_OBJ
) bin
/.dummy
500 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST_OBJ
) $(LDFLAGS
) $(LIBS
)
502 bin
/locktest2
: $(LOCKTEST2_OBJ
) bin
/.dummy
504 @
$(CC
) $(FLAGS
) -o
$@
$(LOCKTEST2_OBJ
) $(LDFLAGS
) $(LIBS
)
506 bin
/rpctorture
: $(RPCTORTURE_OBJ
) bin
/.dummy
508 @
$(CC
) $(FLAGS
) -o
$@
$(RPCTORTURE_OBJ
) $(LDFLAGS
) $(LIBS
)
510 bin
/debug2html
: $(DEBUG2HTML_OBJ
) bin
/.dummy
512 @
$(CC
) $(FLAGS
) -o
$@
$(DEBUG2HTML_OBJ
) $(LDFLAGS
) $(LIBS
)
514 bin
/smbfilter
: $(SMBFILTER_OBJ
) bin
/.dummy
516 @
$(CC
) $(FLAGS
) -o
$@
$(SMBFILTER_OBJ
) $(LDFLAGS
) $(LIBS
)
519 bin
/smbw_sample
: $(SMBW_OBJ
) utils
/smbw_sample.o bin
/.dummy
521 @
$(CC
) $(FLAGS
) -o
$@
$(SMBW_OBJ
) utils
/smbw_sample.o
$(LDFLAGS
) $(LIBS
)
523 bin
/smbwrapper.@SHLIBEXT@
: $(PICOBJS
)
524 @echo Linking shared library
$@
525 @
$(LD
) @LDSHFLAGS@
-o
$@
$(PICOBJS
) $(LIBS
)
527 bin
/smbwrapper
.32.@SHLIBEXT@
: $(PICOBJS32
)
528 @echo Linking shared library
$@
529 @
$(LD
) -32 @LDSHFLAGS@
-o
$@
$(PICOBJS32
) $(LIBS
)
531 bin
/smbsh
: $(SMBSH_OBJ
) bin
/.dummy
533 @
$(CC
) $(FLAGS
) -o
$@
$(SMBSH_OBJ
) $(LDFLAGS
) $(LIBS
)
535 nsswitch
/libnss_wins.so
: $(NSS_OBJ
)
537 @
$(LD
) @LDSHFLAGS@
-o
$@
$(NSS_OBJ
) -lc
539 bin
/winbindd
: $(WINBINDD_OBJ
) bin
/.dummy
541 @
$(LINK
) -o
$@
$(WINBINDD_OBJ
) $(LIBS
)
543 nsswitch
/libnss_winbind.so
: $(WINBIND_NSS_PICOBJS
)
545 @
$(LINK
) -shared
-o
$@
$(WINBIND_NSS_PICOBJS
)
547 nsswitch
/pam_winbind.so
: $(PAM_WINBIND_OBJ
) bin
/.dummy
549 @
$(LINK
) -shared
-o
$@
$(PAM_WINBIND_OBJ
)
551 bin
/wbinfo
: $(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) $(NOPROTO_OBJ
) $(UBIQX_OBJ
) bin
/.dummy
553 @
$(LINK
) -o
$@
$(WBINFO_OBJ
) $(PARAM_OBJ
) $(LIB_OBJ
) $(NOPROTO_OBJ
) \
556 nsswitch
: nsswitch
/libnss_wins.so nsswitch
/pam_winbind.so \
557 nsswitch
/libnss_winbind.so bin
/wbinfo
559 install: installbin installman installscripts installcp installswat
562 $(SHELL
) $(srcdir)/install-sh
-d
-m
$(INSTALLPERMS
) \
563 $(BASEDIR
) $(SBINDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(CODEPAGEDIR
)
565 installservers
: all installdirs
566 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
568 installbin
: all installdirs
569 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
570 @
$(SHELL
) $(srcdir)/script
/installbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
572 installscripts
: installdirs
573 @
$(SHELL
) $(srcdir)/script
/installscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
575 installcp
: installdirs
576 @
$(SHELL
) $(srcdir)/script
/installcp.sh
$(srcdir) $(LIBDIR
) $(CODEPAGEDIR
) $(BINDIR
) $(CODEPAGELIST
)
578 installswat
: installdirs
579 @
$(SHELL
) $(srcdir)/script
/installswat.sh
$(SWATDIR
) $(srcdir)
581 # revert to the previously installed version
583 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(SBINDIR
) $(SPROGS
)
584 @
$(SHELL
) $(srcdir)/script
/revert.sh
$(BINDIR
) $(PROGS
) $(SCRIPTS
)
587 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(MANDIR
) $(srcdir) "@ROFF@"
589 uninstall: uninstallman uninstallbin uninstallscripts uninstallcp
592 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(MANDIR
) $(srcdir)
595 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(SBINDIR
) $(LIBDIR
) $(VARDIR
) $(SPROGS
)
596 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(BASEDIR
) $(BINDIR
) $(LIBDIR
) $(VARDIR
) $(PROGS
)
599 @
$(SHELL
) $(srcdir)/script
/uninstallscripts.sh
$(INSTALLPERMS
) $(BINDIR
) $(SCRIPTS
)
602 @
$(SHELL
) $(srcdir)/script
/uninstallcp.sh
$(CODEPAGEDIR
) $(CODEPAGELIST
)
605 -rm -f core
*/*~
*~
*/*.o
*/*.po
*/*.po32
*/*.@SHLIBEXT@
607 proto
: rpc_client_proto
608 @echo rebuilding
include/proto.h
609 @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
612 @cd
$(srcdir) && $(SHELL
) script
/mkproto.sh
$(AWK
) \
613 -h _RPC_CLIENT_PROTO_H_
include/rpc_client_proto.h \
617 etags
`find . -name "*.[ch]" | grep -v /CVS/`
620 ctags
`find . -name "*.[ch]" | grep -v /CVS/`
623 -rm -f config.log
$(PROGS
) $(SPROGS
) bin
/.dummy
627 -rm -f
include/config.h Makefile
628 -rm -f config.status config.cache so_locations
632 # This target is for documenation updators. It regenerates
633 # the man pages and HTML docs from the YODL source files.
634 # In order for this target to work YODL must be installed
635 # and working on your system. JRA.
637 @
$(SHELL
) $(srcdir)/script
/makeyodldocs.sh
$(srcdir)
639 # this target is really just for my use. It only works on a limited
640 # range of machines and is used to produce a list of potentially
641 # dead (ie. unused) functions in the code. (tridge)
643 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
644 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
645 comm
-13 nmused.txt nmfns.txt
648 # when configure.in is updated, reconfigure
649 $(srcdir)/configure
: $(srcdir)/configure.in
650 @echo
"WARNING: you need to rerun autoconf"
652 config.status
: $(srcdir)/configure
653 @echo
"WARNING: you need to run configure"
655 Makefile
: $(srcdir)/Makefile.in config.status
656 @echo
"WARNING: you need to run ./config.status"