home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / samba-1.9.18p7.tar.gz / samba-1.9.18p7.tar / samba-1.9.18p7 / source / Makefile.OS2 < prev    next >
Makefile  |  1996-05-04  |  18KB  |  536 lines

  1. ###########################################################################
  2. # Makefile for Samba SMB client/server for unix
  3. # Copyright Andrew Tridgell 1992,1993,1994
  4. ###########################################################################
  5.  
  6. # The base manpages directory to put the man pages in
  7. # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
  8. MANDIR = /usr/local/man
  9.  
  10. # The directories to put things in. If you use multiple
  11. # architectures or share the samba binaries across NFS then
  12. # you will probably want to change this layout.
  13. BASEDIR = .
  14. BINDIR = $(BASEDIR)
  15. LIBDIR = $(BASEDIR)
  16. VARDIR = $(BASEDIR)
  17.  
  18. # WARNING: If you are upgrading, make sure you put all the files
  19. # in the right spot! The default positions have changed!
  20.  
  21.  
  22. # The permissions to give the executables
  23. INSTALLPERMS = 0755
  24.  
  25. # Add any optimisation or debugging flags here
  26. # add -DSYSLOG for syslog support
  27. FLAGS1 = -O
  28. LIBS1 = 
  29.  
  30. # You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
  31. # use cc, instead you will have to use gcc. 
  32. CC = gcc
  33.  
  34. # This may help with some versions of make
  35. # SHELL = /bin/sh
  36.  
  37. # The following can be useful for compiling on multiple architectures
  38. srcdir=.
  39. VPATH=$(srcdir)
  40.  
  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. SMBLOGFILE = $(VARDIR)/log.smb
  45. NMBLOGFILE = $(VARDIR)/log.nmb
  46. CONFIGFILE = $(LIBDIR)/smb.cfg
  47. LMHOSTSFILE = $(LIBDIR)/lmhosts
  48.  
  49. # the directory where lock files go
  50. LOCKDIR = /tmp/samba
  51.  
  52. # set this to the default group you want your machine to appear in
  53. # for browsing. This can also be set in nmbd (see nmbd(8))
  54. # NOTE: If you set it to * then nmbd will try to find a workgroup on
  55. # the local net
  56. WORKGROUP = WORKGROUP
  57.  
  58. # set this to the name of the default account, which is the one
  59. # to use when no username or password is specified.  This can be overridden
  60. # in the runtime configuration file (see smb.conf(5))
  61. # NOTE: The account "nobody" may not be a good one as
  62. # on many unixes it may not be able to print. Thus you
  63. # might have to create a separate guest account that can print.
  64. GUESTACCOUNT = nobody
  65.  
  66. # where you are going to have the smbrun binary. This defaults to the 
  67. # install directory. This binary is needed for correct printing
  68. # and magic script execution. This should be an absolute path!
  69. # Also not that this should include the name "smbrun" on the end (the
  70. # name of the executable)
  71. SMBRUN = $(BINDIR)/smbrun.exe
  72.  
  73. # This is for AFS authentication.  If you use AFS then set AFS_BASE 
  74. # according to your system layout, and uncomment the other lines as well.
  75. # AFS_BASE = /usr/afsws
  76. # AFS_FLAGS = -DAFS_AUTH -I$(AFS_BASE)/include
  77. # AFS_LIBDIR = $(AFS_BASE)/lib
  78. # NOTE: You may need to add -laudit in the line below
  79. # AFS_LIBS = -L$(AFS_LIBDIR) -L$(AFS_LIBDIR)/afs -lkauth -lprot -lubik \
  80. #                -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err \
  81. #                $(AFS_LIBDIR)/afs/util.a
  82.  
  83. # This is for DCE/DFS enablement. Uncomment this so that smbd can
  84. # operate as an authenticated user identity to operate on files that
  85. # live in the DCE Distributed Filesystem.
  86. # DCE_BASE = /opt/dcelocal
  87. # DCE_FLAGS = -I$(DCE_BASE)/include
  88. # DCE_LIBDIR = -L$(DCE_BASE)/lib
  89. # DCE_LIBS =
  90.  
  91. # This is for SMB encrypted (lanman) passwords.
  92. # you may wish to add -DREPLACE_GETPASS if your getpass() is limited
  93. # to 8 chars
  94. # DES_BASE=/usr/local/libdes
  95. # DES_FLAGS= -I$(DES_BASE)
  96. # DES_LIB= -L$(DES_BASE) -ldes
  97. # PASSWD_FLAGS=-DSMB_PASSWD=\"$(BINDIR)/smbpasswd\" -DSMB_PASSWD_FILE=\"$(BASEDIR)/private/smbpasswd\"
  98.  
  99. ######################################
  100. # VTP-Support
  101. #
  102. # uncomment the following two lines to enable VTP-Support
  103. #VTP_FLAGS = -DWITH_VTP
  104. #VTP_OBJ = vt_mode.o
  105. ######################################
  106.  
  107.  
  108. #####################################
  109. # WHICH OPERATING SYSTEM?
  110. # UNCOMMENT ONE OF THE SECTIONS BELOW
  111. # MAKE SURE ONLY *ONE* IS UNCOMMENTED
  112. #
  113. # The following are additional flags that may apply
  114. #   -DNETGROUP if your machine supports yp netgroups
  115. #   -DSHADOW_PWD if you are using shadow passwords
  116. #   -DGETPWANAM if you wish to use getpwanam() call
  117. #   -DPWDAUTH if you have and want to use the pwdauth() call
  118. #   -DUFC_CRYPT if you want the fast crypt routine
  119. #   -DALLOW_CHANGE_PASSWORD if you want users to be able to set their password
  120. #                           remotely (only works on some systems)
  121. #   -DQUOTAS for quota support in disk_free(). This probably only works 
  122. #            on some systems.
  123. #
  124. #    NOTE: GETPWANAM & PWDAUTH are mutually exclusive, if you
  125. #          Define one, you should NOT define the other.
  126. #####################################
  127.  
  128. #####################################
  129. # for the JAPANESE EXTENSION
  130. # select filename's code set for KANJI/KANA in UNIX,
  131. # apply the following flag
  132. #   -DKANJI=\"<code>\"
  133. #        <code> is select character code set for JAPAN.
  134. #             sjis:   if your machine support SJIS
  135. #             euc:      if your machine support EUC
  136. #             jis7:     if your machine support JIS7
  137. #             jis8:     if your machine support JIS8
  138. #             junet:    if your machine support jis7 + junet rule
  139. #             hex:      if your machine only support 7 bits ascii filename only
  140. #                       convert to hexdecimal code preseeding ':'.
  141. # see also README.jis
  142. ######################################
  143.  
  144.  
  145. # This is for SUNOS 4. Use the SUNOS5 entry for Solaris 2.
  146. # Note that you cannot use Suns "cc" compiler
  147. # as it's not an Ansi-C compiler. Get gcc or acc. 
  148. # Note that if you have adjunct passwords you may need the GETPWANAM 
  149. # or PWDAUTH option. There have been reports that using PWDAUTH may crash
  150. # your pwdauthd server so GETPWANAM is preferable (and probably faster)
  151. # contributed by Andrew.Tridgell@anu.edu.au
  152. # FLAGSM = -DSUNOS4
  153. # LIBSM =   
  154.  
  155.  
  156. # Use this for Linux with shadow passwords
  157. # contributed by Andrew.Tridgell@anu.edu.au
  158. # add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
  159. # right libraries and includes
  160. # FLAGSM = -DLINUX -DSHADOW_PWD
  161. # LIBSM = -lshadow
  162.  
  163. # Use this for Linux without shadow passwords
  164. # contributed by Andrew.Tridgell@anu.edu.au
  165. # FLAGSM = -DLINUX
  166. # LIBSM = 
  167.  
  168.  
  169. # This is for SUNOS5 (also known as Solaris 2)
  170. # contributed by Andrew.Tridgell@anu.edu.au
  171. # FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP 
  172. # LIBSM = -lsocket -lnsl
  173.  
  174.  
  175. # This is for SVR4
  176. # Contributed by mark@scot1.ucsalf.ac.uk
  177. # FLAGSM = -DSVR4 -DSHADOW_PWD -DALLOW_CHANGE_PASSWORD
  178. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  179.  
  180.  
  181. # This is for the Motorola 88xxx/9xx range of machines
  182. # Contributed by RPE@monnet.com
  183. # FLAGSM = -DSVR4 -DSHADOW_PWD -DGETTIMEOFDAY1
  184. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  185.  
  186.  
  187. # This is for UNIXWARE
  188. # FLAGSM = -Xa -DSVR4 -DSHADOW_PWD
  189. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  190.  
  191.  
  192. # This is for ULTRIX. Add -DULTRIX_AUTH for Ultrix enhanced security.
  193. # contributed by iversen@dsfys1.fi.uib.no
  194. # FLAGSM = -DULTRIX
  195. # LIBSM =   
  196.  
  197.  
  198. # This is for OSF1 (Alpha)
  199. # contributed by errath@balu.kfunigraz.ac.at
  200. # NOTE: You may need -warning_unresolved if you get unresolved symbols
  201. # FLAGSM = -DOSF1
  202. # LIBSM =
  203.  
  204. # This is for OSF1 with DCE/DFS
  205. # contributed by Jim Doyle <doyle@oec.com>
  206. # FLAGSM = -DOSF1 -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
  207. # LIBSM = -ldce -lpthreads -lmach -lc_r
  208.  
  209. # This is for OSF1 (Alpha) with NIS and Fast Crypt
  210. # contributed by David Gardiner <dgardine@cssip.edu.au>
  211. # FLAGSM = -DOSF1 -DNETGROUP -DUFC_CRYPT
  212. # LIBSM =
  213.  
  214.  
  215. # This is for OSF1 (Alpha) V2.0 Enhanced Security 
  216. # contributed by Udo Linauer <ul@eacpc4.tuwien.ac.at>
  217. # FLAGSM = -DOSF1 -DOSF1_ENH_SEC
  218. # LIBSM = -lsecurity
  219.  
  220.  
  221. # This is for AIX
  222. # contributed by tomc@osi.curtin.edu.au
  223. # FLAGSM = -DAIX
  224. # LIBSM =   
  225.  
  226. # This is for AIX 3.2.5 with DCE/DFS
  227. # contributed by Jim Doyle <doyle@oec.com>
  228. # FLAGSM = -DAIX -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
  229. # LIBSM = -lc_r -ldce -lpthreads
  230. # CC = cc_r
  231.  
  232. # This is for BSDI 
  233. # contributed by tomh@metrics.com
  234. # versions of BSDI prior to 2.0 may need to add -DUSE_F_FSIZE for 
  235. # disk usage stats to be correct
  236. # FLAGSM = -DBSDI
  237. # LIBSM =   
  238.  
  239.  
  240. # This is for NetBSD. Add -DNETBSD_1_0 if you are using 1.0
  241. # contributed by noses@oink.rhein.de
  242. # FLAGSM = -DNETBSD -DSHADOW_PWD
  243. # LIBSM = -lcrypt 
  244.  
  245.  
  246. # This is for SEQUENT. 
  247. # Contributed by fwk@ix.netcom.com (Frank Keeney) and 
  248. # rpwillia@Pentagon-EMH6.army.mil (Ray Williams)
  249. # tested on DYNIX/ptx(R) V2.1.0
  250. # FLAGSM = -DSEQUENT -DSHADOW_PWD -DHAVE_TIMEZONE
  251. # LIBSM = -lrpc -lsocket -lPW -linet -lnsl -lseq -lsec
  252.  
  253.  
  254. # This is for HP-UX. Note that some systems don't like the -Aa switch.
  255. # contributed by Pasi.Kaara@atk.tpo.fi
  256. # FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE
  257. # LIBSM = 
  258.  
  259. # This is for HP-UX with DCE/DFS
  260. # contributed by Jim Doyle <doyle@oec.com>
  261. # FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE -DDFS_AUTH -D_REENTRANT -I/usr/include/reentrant
  262. # LIBSM = -ldce -lM -lc_r
  263.  
  264.  
  265. # This is for SGI.
  266. # contributed by lpc@solomon.technet.sg (Michael Chua)
  267. # FOR SGI IRIX 4.x.x, use the following line
  268. # FLAGSM = -DSGI -DHAVE_TIMEZONE
  269. # LIBSM = -lsun
  270.  
  271. # FOR SGI IRIX 5.x.x, use this line instead
  272. # FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE
  273. # LIBSM =
  274.  
  275.  
  276. # This is for FreeBSD
  277. # contributed by kuku@acds.physik.rwth-aachen.de
  278. # NOTE: You may need to add -DBSD44 if you have password problems
  279. # FLAGSM = -DFreeBSD
  280. # LIBSM = -lcrypt 
  281.  
  282.  
  283. # This is for NEXTSTEP Release 2.X
  284. # No Posix.
  285. # contributed by brad@cac.washington.edu (Brad Greer)
  286. # FLAGSM = -DNEXT2 
  287. # LIBSM = 
  288.  
  289. # This is for NEXTSTEP Release 3.0 and greater (including OPENSTEP for Mach).
  290. # contributed by brad@cac.washington.edu (Brad Greer)
  291. # additional configuration by pmarcos@next.com (Paul Marcos)
  292. # For compiling n-way fat executables, you should append the appropriat -arch 
  293. # flags to the FLAGSM variable.  Valid flags are:
  294. #    -arch m68k
  295. #    -arch i386
  296. #    -arch hppa
  297. #    -arch sparc
  298. # To compile 4-way fat, you would append
  299. #    -arch m68k -arch i386 -arch hppa -arch sparc
  300. # FLAGSM = -DNEXT3_0
  301. # LIBSM = 
  302.  
  303.  
  304. # NOTE: ISC is also known as "INTERACTIVE"
  305. # This is for Sunsoft ISC SVR3V4 running in POSIX mode
  306. # contributed by pim@cti-software.nl (Pim Zandbergen)
  307. # FLAGSM = -posix -D_SYSV3 -DISC -DSHADOW_PWD
  308. # LIBSM = -lsec -lcrypt -linet
  309.  
  310. # This is for Sunsoft ISC SVR3V4 running in iBCS2 mode
  311. # contributed by pim@cti-software.nl (Pim Zandbergen)
  312. # FLAGSM = -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_SYSV3\
  313. #          -DISC -DSHADOW_PWD -DREPLACE_GETWD -DREPLACE_RENAME
  314. # LIBSM = -lsec -lcrypt -linet -lcposix
  315.  
  316.  
  317. # This is for A/UX 3.0
  318. # Contributed by root@dolphin.csudh.edu (Jon S. Stevens)
  319. # FLAGSM = -DAUX
  320. # LIBSM =
  321.  
  322. # This is for Altos Series 386/1000
  323. # Contributed by cal@zls.com
  324. # FLAGSM = -DALTOS -DHAS_RDCHK
  325. # LIBSM = -lsocket -lxenix
  326.  
  327.  
  328. #Note: The SCO entries require the libcrypt library. You can get it via
  329. #anonymous ftp from ftp.sco.com:/SLS/lng225b.* or ftp.uu.net:/vendors/sco
  330. #
  331. # Use this for SCO with shadow passwords. Tested on "Open enterprise 3.0"
  332. # SCO changes from Heinz Mauelshagen (mauelsha@ez.da.telekom.de)
  333. # FLAGSM = -DSCO -DSHADOW_PWD -DNETGROUP
  334. # LIBSM = -lyp -lrpc -lyp -lsec -lsocket -lcrypt_i -lintl
  335.  
  336. # Use this for SCO with shadow passwords, without YP.
  337. # Tested on "Open Enterprise Server 3.0" (John Owens john@micros.com)
  338. # Also, use "CC = cc" above.
  339. # FLAGSM = -DSCO -DSHADOW_PWD
  340. # LIBSM = -lsec -lsocket -lcrypt_i
  341.  
  342. # Use this for SCO with TCB passwords (default).
  343. # Tested on "Open enterprise 3.0". Contributed by lance@fox.com.
  344. # CC     = cc
  345. # FLAGSM = -DSCO -DSecureWare
  346. # LIBSM  = -lprot_s -lcrypt -lsocket -lm -lc_s
  347.  
  348. # Use this for SCO Unix 3.2v2 (ODT 1.1) with TCB passwords (default).
  349. # Contributed by Stephen.Rothwell@pd.necisa.oz.au
  350. # N.B. this needs gcc
  351. # FLAGSM = -DSCO -DSecureWare -DSCO3_2_2
  352. # LIBSM  = -lprot -lcrypt_i -lsocket -lm -lintl
  353.  
  354. # This is for the european distribution of SCO. 
  355. # Contributed by Urmet.Janes@gwhite.goodwin.ee
  356. # FLAGSM = -DSCO -DSHADOW_PWD 
  357. # LIBSM = -lsec -lsocket /usr/lib/libcrypt_i.a -lintl
  358.  
  359. # Use this for SCO OpenServer 5 with TCB passwords (default).
  360. # contributed by Scott Michel <scottm@intime.intime.com>
  361. # CC     = cc -Xc
  362. # FLAGSM = -DSCO -DSecureWare -DEVEREST -DUSE_MMAP
  363. # LIBSM  = -lprot -lcurses -lcrypt -lsocket -lPW -lm -lx -lc_s -lc
  364.  
  365.  
  366. # This is for intergraph. 
  367. # contributed by cjkiick@flinx.b11.ingr.com
  368. # modified by ttj@sknsws61.sjo.statkart.no
  369. # FLAGSM = -DCLIX -D_INGR_EXTENSIONS=1
  370. # LIBSM = -lbsd -lc_s
  371.  
  372. # This is for DGUX. 
  373. # Contributed by ross@augie.insci.com (Ross Andrus)
  374. # FLAGSM = -DDGUX 
  375. # LIBSM  = 
  376.  
  377. # This is for Apollo Domain/OS sr10.3 (systype = BSD4.3)
  378. # Added 1994-07-08 Stephen C. Steel <steve@qv3donald.LeidenUniv.nl>
  379. # additional patches by jmi@csd.cri.dk (John Mills)
  380. # you may need the "-A ansi" switch to cc
  381. # FLAGSM = -DAPOLLO -D_INCLUDE_BSD_SOURCE -D_INCLUDE_XOPEN_SOURCE
  382. # LIBSM =
  383.  
  384.  
  385. # RiscIX. 
  386. # contributed by Jim Barry <jim@ilp.com> and 
  387. # Charles Gay-Jones <charlie@ilp.com>
  388. # FLAGSM = -DRiscIX -DNOSTRDUP
  389. # LIBSM =
  390.  
  391.  
  392. # This is for System V with some berkely extensions (Motorola 88k R32V3.2).
  393. # contributed by tonyb@plaza.ds.adp.com (Tony D. Birnseth)
  394. # FLAGSM = -DM88K_R3
  395. # LIBSM = -lgen -lbsd -lnsl
  396.  
  397.  
  398. # This is for DNIX.
  399. # contributed by Peter Olsson <pol@leissner.se>
  400. # NOTE: You may need an updated libc.a from your vendor as older
  401. # versions have broken mktime calls and no initgroups() call
  402. # NOTE2: You may need -lpasswd if you use shadow passwords
  403. # NOTE3: Please read the file DNIX.txt in the docs directory. It
  404. # contains important information about uid handling under DNIX, you may
  405. # need to patch your C library.
  406. # FLAGSM = -DDNIX -I/usr/include/bsd
  407. # LIBSM = -ln
  408.  
  409.  
  410. # This is for Cray, Unicos 8.0
  411. # contributed by velo@sesun3.epfl.ch (Martin Ouwehand)
  412. # FLAGSM = -DCRAY -U__STDC__ -DQUOTAS
  413. # LIBSM =
  414.  
  415. # This is for Convex
  416. # contributed by Victor Balashov <balashov@cv.jinr.dubna.su>
  417. # and Ulrich Hahn <ulrich.hahn@zdv.uni-tuebingen.de>
  418. # FLAGSM= -DCONVEX -DSHADOW_PWD
  419. # LIBSM= 
  420.  
  421. # This is for SMP_DC.OSx v1.1-94c079 on Pyramid S series
  422. # contributed by jeffrey@itm.org
  423. # FLAGSM = -DSOLARIS -DSHADOW_PWD -DBSD_COMP
  424. # LIBSM = -lsocket -lnsl
  425.  
  426. # This is for QNX 4.22
  427. # Contributed by eldo@invisa.satlink.net (Eldo Loguzzo)
  428. # FLAGSM = -DQNX -DGUEST_SESSSETUP=1
  429. # LIBSM =
  430.  
  431.  
  432. # This is for SONY NEWS, NEWS-OS 4.2.x
  433. # contributed by sky@sm.sony.co.jp (Katushi Sato)
  434. # FLAGSM = -DNEWS42 -DKANJI=\"sjis\"
  435. # LIBSM =
  436.  
  437. # This is for OS/2 using EMX 0.9b
  438. # Contributed by jasonr@pec.co.nz (Jason Rumney)
  439. FLAGSM = -DOS2
  440. LIBSM = -Zexe -Zbin-files -lsocket
  441.  
  442.  
  443. ######################################################################
  444. # DON'T EDIT BELOW THIS LINE
  445. ######################################################################
  446.  
  447. CFLAGS1 = $(FLAGS1) -DSMBLOGFILE=\"$(SMBLOGFILE)\" -DNMBLOGFILE=\"$(NMBLOGFILE)\"
  448. CFLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" 
  449. CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\"
  450. CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" 
  451. CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) 
  452. CFLAGS  = $(CFLAGS5) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
  453. LIBS = $(LIBS1) $(LIBSM) $(DCE_LIBS) $(DES_LIB)
  454.  
  455. PROGS1 = smbd smbclnt nmbd testparm testprns smbrun smbstat smbpass 
  456. PROGS = $(PROGS1) nmblook
  457. SCRIPTS = smbtar addtosmbpass
  458.  
  459. all : $(PROGS)
  460.  
  461. #CHECK :
  462. #    @$(SHELL) $(srcdir)/checkos.sh $(FLAGSM)
  463. #    @echo "Using CFLAGS = $(CFLAGS)"
  464. #    @echo "Using LIBS = $(LIBS)"
  465.  
  466. INCLUDES1 = version.h local.h includes.h smb.h loadparm.h params.h smbpass.h
  467. INCLUDES2 = pcap.h trans2.h reply.h
  468. INCLUDES = $(INCLUDES1) $(INCLUDES2)
  469.  
  470. UTILOBJ1 = util.o system.o charset.o kanji.o fault.o smbencrypt.o charcnv.o
  471. UTILOBJ = $(UTILOBJ1) md4.o loadparm.o params.o pcap.o username.o
  472. PARAMOBJ = $(UTILOBJ) ufc.o smbpass.o access.o 
  473. SMBDOBJ1 = $(PARAMOBJ) trans2.o message.o dir.o printing.o locking.o
  474. SMBDOBJ2 = ipc.o reply.o mangle.o chgpasswd.o password.o
  475. SMBDOBJ = $(SMBDOBJ1) $(SMBDOBJ2) $(VTP_OBJ)
  476.  
  477. .SUFFIXES:
  478. .SUFFIXES: .c .o .h
  479.  
  480. .c.o: $(INCLUDES)
  481.     @echo Compiling $*.c
  482.     @$(CC) $(CFLAGS) -c $(srcdir)/$*.c
  483.  
  484. smbd: server.o $(SMBDOBJ)
  485.     @echo Linking smbd
  486.     @$(CC) $(CFLAGS) -o smbd server.o $(SMBDOBJ) $(LIBS) $(AFS_LIBS)
  487.  
  488. smbrun: smbrun.o
  489.     @echo Linking smbrun
  490.     @$(CC) $(CFLAGS) -o smbrun smbrun.o $(LIBS)
  491.  
  492. nmblook: nmblookup.o nmblib.o $(UTILOBJ)  
  493.     @echo Linking nmblookup
  494.     @$(CC) $(CFLAGS) -o nmblook nmblookup.o nmblib.o $(UTILOBJ) $(LIBS)
  495.  
  496. nmbd: nameserv.o nmblib.o nmbsync.o $(PARAMOBJ) 
  497.     @echo Linking nmbd
  498.     @$(CC) $(CFLAGS) -o nmbd nameserv.o nmblib.o nmbsync.o $(PARAMOBJ) $(LIBS)
  499.  
  500. smbclnt: client.o clitar.o getsmbpass.o $(UTILOBJ) 
  501.     @echo Linking smbclient
  502.     @$(CC) $(CFLAGS) -o smbclnt client.o clitar.o getsmbpass.o $(UTILOBJ) $(LIBS)
  503.  
  504. smbstat: status.o $(PARAMOBJ) 
  505.     @echo Linking smbstatus
  506.     @$(CC) $(CFLAGS) -o smbstat status.o $(PARAMOBJ) $(LIBS)
  507.  
  508. testparm: testparm.o $(PARAMOBJ)
  509.     @echo Linking testparm
  510.     @$(CC) $(CFLAGS) -o testparm testparm.o $(PARAMOBJ) $(LIBS)
  511.  
  512. testprns: testprns.o $(PARAMOBJ)
  513.     @echo Linking testprns
  514.     @$(CC) $(CFLAGS) -o testprns testprns.o $(PARAMOBJ) $(LIBS)
  515.  
  516. smbpass: smbpasswd.o getsmbpass.o $(PARAMOBJ)
  517.     @echo Linking smbpasswd
  518.     @$(CC) $(CFLAGS) -o smbpass smbpasswd.o getsmbpass.o $(PARAMOBJ) $(LIBS)
  519.  
  520. install: installbin installman
  521.  
  522. installbin: all
  523.     @$(SHELL) $(srcdir)/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS) $(SCRIPTS)
  524.  
  525. # revert to the previously installed version
  526. revert:
  527.     @$(SHELL) $(srcdir)/revert.sh $(BINDIR) $(PROGS) $(SCRIPTS)
  528.  
  529. installman:
  530.     @$(SHELL) $(srcdir)/installman.sh $(MANDIR)
  531.  
  532. clean:
  533.     rm -f core *.o *~ $(PROGS)
  534.  
  535. realclean: clean
  536.