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 < prev    next >
Makefile  |  1998-05-11  |  31KB  |  874 lines

  1. ###########################################################################
  2. # Makefile for Samba SMB client/server for unix
  3. # Copyright Andrew Tridgell 1992-1998
  4. # Copyright John H Terpstra 1995-1998
  5. ###########################################################################
  6.  
  7. # The base directory for all samba files
  8. BASEDIR = /usr/local/samba
  9.  
  10. # The base manpages directory to put the man pages in
  11. # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
  12. MANDIR = /usr/local/man
  13.  
  14. # The directories to put things in. If you use multiple
  15. # architectures or share the samba binaries across NFS then
  16. # you will probably want to change this layout.
  17. # Note: The SBINDIR is for files you do not want users to access
  18. #       normally only applies to nmbd and smbd
  19. #       SBINDIR implies a secure binary directory
  20. BINDIR = $(BASEDIR)/bin
  21. SBINDIR = $(BASEDIR)/bin
  22. LIBDIR = $(BASEDIR)/lib
  23. VARDIR = $(BASEDIR)/var
  24.  
  25. # The permissions to give the executables
  26. INSTALLPERMS = 0755
  27.  
  28. # Add any optimisation or debugging flags here
  29. # add -DSYSLOG for syslog support
  30. FLAGS1 = -O
  31. LIBS1 = 
  32.  
  33. # You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
  34. # use cc, instead you will have to use gcc. 
  35. # CC = gcc
  36.  
  37. # This may help with some versions of make
  38. SHELL = /bin/sh
  39.  
  40. # The following can be useful for compiling on multiple architectures
  41. # just uncommment them putting the right directory in.
  42. # srcdir=./
  43. # VPATH=$(srcdir)
  44.  
  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. SMBLOGFILE = $(VARDIR)/log.smb
  49. NMBLOGFILE = $(VARDIR)/log.nmb
  50. CONFIGFILE = $(LIBDIR)/smb.conf
  51. LMHOSTSFILE = $(LIBDIR)/lmhosts
  52. DRIVERFILE = $(LIBDIR)/printers.def
  53. SMB_PASSWD = $(BINDIR)/smbpasswd
  54. SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
  55. WEB_ROOT = $(BASEDIR)
  56.  
  57. # the directory where lock files go
  58. LOCKDIR = $(VARDIR)/locks
  59.  
  60. # The directory where code page definition files go
  61. CODEPAGEDIR = $(LIBDIR)/codepages
  62. # The current codepage definition list.
  63. CODEPAGELIST= 437 850 852 932 866 949 950 936
  64.  
  65. # set this to the default group you want your machine to appear in
  66. # for browsing. This can also be set in nmbd (see nmbd(8))
  67. WORKGROUP = WORKGROUP
  68.  
  69. # set this to the name of the default account, which is the one
  70. # to use when no username or password is specified.  This can be overridden
  71. # in the runtime configuration file (see smb.conf(5))
  72. # NOTE: The account "nobody" may not be a good one as
  73. # on many unixes it may not be able to print. Thus you
  74. # might have to create a separate guest account that can print.
  75. GUESTACCOUNT = nobody
  76.  
  77. # where you are going to have the smbrun binary. This defaults to the 
  78. # install directory. This binary is needed for correct printing
  79. # and magic script execution. This should be an absolute path!
  80. # Also not that this should include the name "smbrun" on the end (the
  81. # name of the executable)
  82. SMBRUN = $(BINDIR)/smbrun
  83.  
  84. #
  85. # The following (PAM, AFS, DCE/DFS, Kerberos5, SMB) are the
  86. # alternate choices for Samba authentication. If you are using
  87. # the UNIX password database to authenticate users you do not
  88. # need to uncomment any of them. If you wish to use one of these
  89. # alternate methods then only uncomment one of them.
  90.  
  91. # This is for PAM authentication. RedHat Linux uses PAM.
  92. # If you use PAM, then uncomment the following lines:
  93. # PAM_FLAGS = -DUSE_PAM
  94. # PAM_LIBS = -ldl -lpam
  95.  
  96. # This is for AFS authentication.  If you use AFS then set AFS_BASE 
  97. # according to your system layout, and uncomment the other lines as well.
  98. # AFS_BASE = /usr/afsws
  99. # AFS_FLAGS = -DAFS_AUTH -I$(AFS_BASE)/include
  100. # AFS_LIBDIR = $(AFS_BASE)/lib
  101. # NOTE: You may need to add -laudit in the line below
  102. # AFS_LIBS = -L$(AFS_LIBDIR) -L$(AFS_LIBDIR)/afs -lkauth -lprot -lubik \
  103. #                -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err \
  104. #                $(AFS_LIBDIR)/afs/util.a
  105.  
  106. # This is for DCE/DFS enablement. Uncomment this so that smbd can
  107. # operate as an authenticated user identity to operate on files that
  108. # live in the DCE Distributed Filesystem.
  109. # DCE_BASE = /opt/dcelocal
  110. # DCE_FLAGS = -DDFS_AUTH -I$(DCE_BASE)/include
  111. # DCE_LIBDIR = -L$(DCE_BASE)/lib
  112. # DCE_LIBS =
  113.  
  114. # This is for Kerberos 5 authentication. Contributed by Nathan Neulinger
  115. # Univ. of Missouri - Rolla <nneul@umr.edu>
  116. # KRB5_BASE = /usr/local/krb5
  117. # KRB5_FLAGS = -DKRB5_AUTH -I$(KRB5_BASE)/include
  118. # KRB5_LIBS = -L$(KRB5_BASE)/lib -ldes425 -lkrb5 -lcrypto -lcom_err
  119.  
  120. # This is for Kerberos 4 authentication. Contributed by Johan Hedin
  121. # Royal Institute of Technology, <johanh@fusion.kth.se>
  122. # KRB4_BASE = /usr/athena
  123. # KRB4_FLAGS = -DKRB4_AUTH -I$(KRB4_BASE)/include
  124. # KRB4_LIBS = -L$(KRB4_BASE)/lib -lkrb -ldes -lresolv
  125.  
  126. ######################################
  127. # VTP-Support
  128. #
  129. # uncomment the following two lines to enable VTP-Support
  130. #VTP_FLAGS = -DWITH_VTP
  131. #VTP_OBJ = vt_mode.o
  132. ######################################
  133.  
  134. ######################################
  135. # WHICH AWK? awk is used for automatic prototype generation. GNU awk works
  136. # where inferior awks don't. Sun is one manufacturer who supplies both
  137. # a broken awk called 'awk' and a fixed one called 'nawk'. mkproto.awk will
  138. # only work with the latter, and even that isn't as good as free GNU awk.
  139. #
  140. # Leave this uncommented; the OS-specific stuff will override it if required
  141. AWK = awk
  142. ######################################
  143.  
  144. #####################################
  145. # WHICH OPERATING SYSTEM?
  146. # UNCOMMENT ONE OF THE SECTIONS BELOW
  147. # MAKE SURE ONLY *ONE* IS UNCOMMENTED
  148. #
  149. # The following are additional flags that may apply
  150. #   -DNETGROUP if your machine supports yp netgroups
  151. #   -DAUTOMOUNT to ask for yp auto.home for users' home directories
  152. #   -DNISPLUS add this to ask nis+ instead of yp for users' home directories
  153. #   -DSHADOW_PWD if you are using shadow passwords
  154. #   -DGETPWANAM if you wish to use getpwanam() call
  155. #   -DPWDAUTH if you have and want to use the pwdauth() call
  156. #   -DUFC_CRYPT if you want the fast crypt routine
  157. #   -DALLOW_CHANGE_PASSWORD if you want users to be able to set their password
  158. #                           remotely (only works on some systems)
  159. #   -DQUOTAS for quota support in disk_free(). This probably only works 
  160. #            on some systems.
  161. #   -DFAST_SHARE_MODES if you want the fast shared memory instead of the
  162. #                      slow description files for share mode locking. This
  163. #                      requires the mmap() and fcntl() system calls.
  164. #
  165. #    NOTE: GETPWANAM & PWDAUTH are mutually exclusive, if you
  166. #          Define one, you should NOT define the other.
  167. #####################################
  168.  
  169. #####################################
  170. # for the JAPANESE EXTENSION
  171. # select filename's code set for KANJI/KANA in UNIX,
  172. # apply the following flag
  173. #   -DKANJI=\"<code>\"
  174. #        <code> is select character code set for JAPAN.
  175. #             sjis:   if your machine support SJIS
  176. #             euc:      if your machine support EUC
  177. #             jis7:     if your machine support JIS7
  178. #             jis8:     if your machine support JIS8
  179. #             junet:    if your machine support jis7 + junet rule
  180. #             hex:      if your machine only support 7 bits ascii filename only
  181. #                       convert to hexdecimal code preseeding ':'.
  182. # see also README.jis
  183. ######################################
  184.  
  185.  
  186. # This is for SUNOS 4. Use the SUNOS5 entry for Solaris 2.
  187. # Note that you cannot use Suns "cc" compiler
  188. # as it's not an Ansi-C compiler. Get gcc or acc. 
  189. # Note that if you have adjunct passwords you may need the GETPWANAM 
  190. # or PWDAUTH option. There have been reports that using PWDAUTH may crash
  191. # your pwdauthd server so GETPWANAM is preferable (and probably faster)
  192. # contributed by Andrew.Tridgell@anu.edu.au
  193. # FLAGSM = -DSUNOS4 -DFAST_SHARE_MODES
  194. # LIBSM =   
  195. # AWK = nawk 
  196.  
  197. # If you are using Linux kernel version 2.1.70 and later, you should
  198. # uncomment the following line to compile the smbmount utilities
  199. # together with Samba. If you are using Linux kernel version 2.0.x
  200. # you must use the smbfs utilities from
  201. # ftp://ftp.gwdg.de/pub/linux/misc/smbfs
  202.  
  203. # MOUNT_PROGS = smbmount smbmnt smbumount
  204.  
  205. # Use this for Linux with shadow passwords - but not using PAM!
  206. # contributed by Andrew.Tridgell@anu.edu.au
  207. # add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
  208. # right libraries and includes
  209. # FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
  210. # LIBSM = -lshadow
  211.  
  212. # Use this for Linux without shadow passwords or for any Linux
  213. # system that uses PAM (eg: RedHat) in which case it handles ALL
  214. # authentication methods that are supported by the version of
  215. # PAM that is available on your system.
  216. # contributed by Andrew.Tridgell@anu.edu.au & John.Terpstra@aquasoft.com.au
  217. # AXPROC defines DEC Alpha Processor
  218. # FLAGSM = -DLINUX -DAXPROC -DFAST_SHARE_MODES
  219. # FLAGSM = -DLINUX -DFAST_SHARE_MODES
  220. # LIBSM = 
  221.  
  222. # Use this for Linux with shadow passwords and quota - but not using PAM!
  223. # contributed by xeno@mix.hive.no
  224. # Tested on the 1.3.57 kernel and ext2fs filesystem.
  225. # Notes:
  226. # /usr/include/sys/quota.h must be a symlink to /usr/include/linux/quota.h
  227. # The directory quota here must be a symlink to your quota package.
  228. # I just do 'ln -sf /usr/src/quota-1.50 quota' in this directory to get it to work.
  229. # FLAGSM = -O3 -m486 -DLINUX -DSHADOW_PWD -DQUOTAS -DFAST_SHARE_MODES
  230. # LIBSM = -lshadow
  231.  
  232. # Use this for Linux with quota and glibc2 - not using PAM!
  233. # contributed by Thorvald Natvig <slicer@bimbo.hive.no>
  234. # Tested on the 2.0.30 kernel and ext2fs filesystem.
  235. # FLAGSM = -DLINUX -DQUOTAS -DNO_ASMSIGNALH -DGLIBC2 -DFAST_SHARE_MODES
  236. # LIBSM = -L/lib/libc5-compat -lcrypt
  237.  
  238. # Use this for Linux with glibc2 (libc6)
  239. # contributed by Eloy Paris <peloy@ven.ra.rockwell.com>
  240. # FLAGSM = -DLINUX -DNETGROUP -DSHADOW_PWD -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES -DNO_ASMSIGNALH -DGLIBC2
  241. # LIBSM = -lnsl -lcrypt
  242.  
  243. # Use this for Linux with glibc2 (libc6) - RedHat Linux v5.0 with PAM
  244. # contributed by John H Terpstra <jht@aquasoft.com.au>
  245. # FLAGSM = -DLINUX -DNETGROUP -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES -DNO_ASMSIGNALH -DGLIBC2
  246. # LIBSM = -lnsl -lcrypt
  247.  
  248. # This is for SUNOS5.4 and later (also known as Solaris 2.4 and later)
  249. # contributed by Andrew.Tridgell@anu.edu.au
  250. # FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES
  251. # LIBSM = -lsocket -lnsl
  252. # AWK = nawk 
  253.  
  254. # This is for SUNOS 5.2 and 5.3 (also known as Solaris 2.2 and 2.3)
  255. # contributed by hdsi@newtech.net
  256. # FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DNO_STRFTIME -DFAST_SHARE_MODES
  257. # LIBSM = -lsocket -lnsl
  258. # AWK = nawk 
  259.  
  260. # This is for UXP/DS
  261. # contributed by dsfrost@oai6.yk.fujitsu.co.jp
  262. # FLAGSM = -DSVR4 -DSHADOW_PWD
  263. # LIBSM = -lsocket -lnsl
  264.  
  265. # This is for SVR4
  266. # Contributed by mark@scot1.ucsalf.ac.uk
  267. # FLAGSM = -DSVR4 -DSHADOW_PWD -DALLOW_CHANGE_PASSWORD
  268. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  269.  
  270.  
  271. # This is for the Motorola 88xxx/9xx range of machines
  272. # Contributed by RPE@monnet.com
  273. # FLAGSM = -DSVR4 -DSHADOW_PWD -DGETTIMEOFDAY1
  274. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  275.  
  276.  
  277. # This is for UnixWare 1.x.
  278. # Contributed by Warren Young <tkennedy@cyberport.com>
  279. #FLAGSM = -Xa -DSVR4 -DSHADOW_PWD
  280. #LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  281.  
  282. # This is for UnixWare 2.x WITH libdes support.
  283. # Contributed by tangent@cyberport.com
  284. #FLAGSM = -Xa -DSVR4
  285. #LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  286.  
  287. # This is for UnixWare 2.x WITHOUT libdes support.
  288. # Contributed by tangent@cyberport.com
  289. #FLAGSM = -Xa -DSVR4 -DIA_UINFO
  290. #LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb -lcrypt -liaf
  291.  
  292. # This is for UNIXWARE 2.x with shadow passwords.
  293. # Contributed by fja@extratech.com
  294. #FLAGSM = -Xa -DSVR4 -DSHADOW_PWD
  295. #LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb -lcrypt -lgen
  296.  
  297. # This is for ULTRIX. Add -DULTRIX_AUTH for Ultrix enhanced security.
  298. # contributed by iversen@dsfys1.fi.uib.no
  299. # FLAGSM = -DULTRIX
  300. # LIBSM =   
  301.  
  302.  
  303. # This is for OSF1 (Alpha)
  304. # contributed by errath@balu.kfunigraz.ac.at
  305. # NOTE: You may need -warning_unresolved if you get unresolved symbols
  306. # FLAGSM = -DOSF1 -DFAST_SHARE_MODES 
  307. # LIBSM =
  308.  
  309. # This is for OSF1 with DCE/DFS
  310. # contributed by Jim Doyle <doyle@oec.com>
  311. # FLAGSM = -DOSF1 -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
  312. # LIBSM = -ldce -lpthreads -lmach -lc_r
  313.  
  314. # This is for OSF1 (Alpha) with NIS and Fast Crypt
  315. # contributed by David Gardiner <dgardine@cssip.edu.au>
  316. # FLAGSM = -DOSF1 -DNETGROUP -DUFC_CRYPT
  317. # LIBSM =
  318.  
  319.  
  320. # This is for OSF1 (Alpha) V2.0/V4.0 Enhanced Security 
  321. # contributed by Udo Linauer <ul@eacpc4.tuwien.ac.at>
  322. # FLAGSM = -DOSF1 -DOSF1_ENH_SEC -DFAST_SHARE_MODES
  323. # LIBSM = -lsecurity
  324.  
  325.  
  326. # This is for AIX 3.2.5 (without DCE/DFS)
  327. # contributed by Miguel Angel Cruz <mcruz@maccsys.org>
  328. # FLAGSM = -DAIX
  329. # LIBSM =   
  330.  
  331. # This is for AIX 3.2.5 with DCE/DFS
  332. # contributed by Jim Doyle <doyle@oec.com>
  333. # FLAGSM = -DAIX -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
  334. # LIBSM = -lc_r -ldce -lpthreads
  335. # CC = cc_r
  336.  
  337. # This is for AIX 4.x
  338. # contributed by tomc@osi.curtin.edu.au
  339. # FLAGSM = -DAIX -DFAST_SHARE_MODES
  340. # LIBSM =   
  341.  
  342. # This is for AIX 4.x with quota support
  343. # contributed by tomc@osi.curtin.edu.au
  344. # FLAGSM = -DAIX -DFAST_SHARE_MODES -DQUOTAS
  345. # LIBSM =   
  346.  
  347. # This is for BSDI 
  348. # contributed by tomh@metrics.com
  349. # versions of BSDI prior to 2.0 may need to add -DUSE_F_FSIZE for 
  350. # disk usage stats to be correct
  351. # FLAGSM = -DBSDI -DFAST_SHARE_MODES
  352. # LIBSM =   
  353.  
  354.  
  355. # This is for NetBSD. Add -DNETBSD_1_0 if you are using 1.0
  356. # contributed by noses@oink.rhein.de
  357. # FLAGSM = -DNETBSD -DSHADOW_PWD
  358. # LIBSM = -lcrypt 
  359.  
  360. # This is for NetBSD 1.3  
  361. # contributed by sean@fuzzymagic.com  
  362. # FLAGSM = -DNETBSD -DSHADOW_PWD -DUFC_CRYPT -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES  
  363. # LIBSM = -lcrypt
  364.  
  365. # This is for SEQUENT. 
  366. # Contributed by fwk@ix.netcom.com (Frank Keeney) and 
  367. # rpwillia@Pentagon-EMH6.army.mil (Ray Williams)
  368. # tested on DYNIX/ptx(R) V2.1.0
  369. # FLAGSM = -DSEQUENT -DSHADOW_PWD -DHAVE_TIMEZONE
  370. # LIBSM = -lrpc -lsocket -lPW -linet -lnsl -lseq -lsec
  371.  
  372.  
  373. # This is for SEQUENT PTX 4.1.x
  374. # Contributed by bressler@iftccu.ca.boeing.com (Rick Bressler)
  375. # based on Keeny and Williams contribution.
  376. # tested on DYNIX/ptx(R) V4.1.3
  377. # FLAGSM = -DSEQUENT -DSHADOW_PWD -DHAVE_TIMEZONE -DPTX4
  378. # LIBSM = -lrpc -lsocket -lPW -lnsl -lseq -lsec
  379.  
  380.  
  381. # This is for HP-UX 9.x. Note that some systems don't like the -Aa switch.
  382. # contributed by Pasi.Kaara@atk.tpo.fi
  383. # You will need -DREPLACE_GETPASS if you use smb encryption
  384. # FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE
  385. # LIBSM = 
  386.  
  387. # This is for HP-UX 10.x. Note that some systems don't like the -Aa switch.
  388. # contributed by Pasi.Kaara@atk.tpo.fi
  389. # You will need -DREPLACE_GETPASS if you use smb encryption
  390. # FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE -DHPUX10 -DFAST_SHARE_MODES
  391. # LIBSM = 
  392.  
  393.  
  394. # This is for HP-UX with DCE/DFS
  395. # contributed by Jim Doyle <doyle@oec.com>
  396. # Add -DHPUX10 -DFAST_SHARE_MODES if compiling on HPUX 10.x
  397. # FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE -DDFS_AUTH -D_REENTRANT -I/usr/include/reentrant
  398. # LIBSM = -ldce -lM -lc_r
  399.  
  400. # HP-UX 10.x Trusted System
  401. # Contributed by David-Michael Lincke (dlincke@sgcl1.unisg.ch)
  402. # FLAGSM = +O3 -Ae -DHPUX -DHPUX10 -DHPUX_10_TRUSTED -DFAST_SHARE_MODES
  403. # LIBSM = -lsec
  404.  
  405.  
  406. # This is for SGI.
  407. # FOR SGI IRIX 4.x.x, use the following line
  408. # contributed by lpc@solomon.technet.sg (Michael Chua)
  409. # FLAGSM = -DSGI4 -DHAVE_TIMEZONE 
  410. # LIBSM = -lsun
  411. # FLAGS1 = -O -g3
  412.  
  413. # FOR SGI IRIX 5.x.x, use this line instead
  414. # Contributed by <unknown>
  415. # FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES
  416. # LIBSM =
  417. # FLAGS1 = -O -g3
  418.  
  419. # FOR SGI IRIX 6.2 using the system compiler (*NOT* gcc), use this line instead
  420. # Contributed by David.Billinghurst@restech.cra.com.au
  421. # FLAGSM = -DSGI6 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES
  422. # LIBSM = 
  423. # FLAGS1 = -O -n32 -g3
  424.  
  425. # This is for FreeBSD
  426. # contributed by kuku@acds.physik.rwth-aachen.de
  427. # NOTE: You may need to add -DBSD44 if you have password problems
  428. # FLAGSM = -DFreeBSD -DFAST_SHARE_MODES
  429. # LIBSM = -lcrypt 
  430.  
  431. # This is for OpenBSD
  432. # contributed by todd@openbsd.org
  433. # FLAGSM = -DFAST_SHARE_MODES -DBSD44
  434. # LIBSM =
  435.  
  436. # This is for NEXTSTEP Release 2.X
  437. # No Posix.
  438. # contributed by brad@cac.washington.edu (Brad Greer)
  439. # FLAGSM = -DNEXT2 
  440. # LIBSM = 
  441.  
  442. # This is for NEXTSTEP Release 3.0 and greater (including OPENSTEP for Mach).
  443. # contributed by brad@cac.washington.edu (Brad Greer)
  444. # additional configuration by pmarcos@next.com (Paul Marcos)
  445. # For compiling n-way fat executables, you should append the appropriat -arch 
  446. # flags to the FLAGSM variable.  Valid flags are:
  447. #    -arch m68k
  448. #    -arch i386
  449. #    -arch hppa
  450. #    -arch sparc
  451. # To compile 4-way fat, you would append
  452. #    -arch m68k -arch i386 -arch hppa -arch sparc
  453. # FLAGSM = -DNEXT3_0
  454. # LIBSM = 
  455.  
  456.  
  457. # NOTE: ISC is also known as "INTERACTIVE"
  458. # This is for Sunsoft ISC SVR3V4 running in POSIX mode
  459. # contributed by pim@cti-software.nl (Pim Zandbergen)
  460. # FLAGSM = -posix -D_SYSV3 -DISC -DSHADOW_PWD
  461. # LIBSM = -lsec -lcrypt -linet
  462.  
  463. # This is for Sunsoft ISC SVR3V4 running in iBCS2 mode
  464. # contributed by pim@cti-software.nl (Pim Zandbergen)
  465. # FLAGSM = -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_SYSV3\
  466. #          -DISC -DSHADOW_PWD -DREPLACE_GETWD -DREPLACE_RENAME
  467. # LIBSM = -lsec -lcrypt -linet -lcposix
  468.  
  469.  
  470. # This is for A/UX 3.0
  471. # Contributed by root@dolphin.csudh.edu (Jon S. Stevens)
  472. # FLAGSM = -DAUX
  473. # LIBSM =
  474.  
  475. # This is for Altos Series 386/1000
  476. # Contributed by cal@zls.com
  477. # FLAGSM = -DALTOS -DHAS_RDCHK
  478. # LIBSM = -lsocket -lxenix
  479.  
  480.  
  481. #Note: The SCO entries require the libcrypt library. You can get it via
  482. #anonymous ftp from ftp.sco.com:/SLS/lng225b.* or ftp.uu.net:/vendors/sco
  483. #
  484. # Use this for SCO with shadow passwords. Tested on "Open enterprise 3.0"
  485. # SCO changes from Heinz Mauelshagen (mauelsha@ez.da.telekom.de)
  486. # FLAGSM = -DSCO -DSHADOW_PWD -DNETGROUP
  487. # LIBSM = -lyp -lrpc -lyp -lsec -lsocket -lcrypt_i -lintl
  488.  
  489. # Use this for SCO with shadow passwords, without YP.
  490. # Tested on "Open Enterprise Server 3.0" (John Owens john@micros.com)
  491. # Also, use "CC = cc" above.
  492. # FLAGSM = -DSCO -DSHADOW_PWD
  493. # LIBSM = -lsec -lsocket -lcrypt_i
  494.  
  495. # Use this for SCO with TCB passwords (default).
  496. # Tested on "Open enterprise 3.0". Contributed by lance@fox.com.
  497. # CC     = cc
  498. # FLAGSM = -DSCO -DSecureWare
  499. # LIBSM  = -lprot_s -lcrypt -lsocket -lm -lc_s
  500.  
  501. # Use this for SCO Unix 3.2v2 (ODT 1.1) with TCB passwords (default).
  502. # Contributed by Stephen.Rothwell@pd.necisa.oz.au
  503. # N.B. this needs gcc
  504. # FLAGSM = -DSCO -DSecureWare -DSCO3_2_2
  505. # LIBSM  = -lprot -lcrypt_i -lsocket -lm -lintl
  506.  
  507. # This is for the european distribution of SCO. 
  508. # Contributed by Urmet.Janes@gwhite.goodwin.ee
  509. # FLAGSM = -DSCO -DSHADOW_PWD 
  510. # LIBSM = -lsec -lsocket /usr/lib/libcrypt_i.a -lintl
  511.  
  512. # Use this for SCO OpenServer 5 with TCB passwords (default).
  513. # contributed by Scott Michel <scottm@intime.intime.com>
  514. # you may also like to add the -dy switch (recommended by Marnus van 
  515. # Niekerk, mvn@pixie.co.za)
  516. # CC     = cc -Xc
  517. # FLAGSM = -DSCO -DSecureWare -DEVEREST -DUSE_MMAP
  518. # LIBSM  = -lprot -lcurses -lcrypt -lsocket -lPW -lm -lx -lc_s -lc
  519.  
  520.  
  521. # This is for intergraph. 
  522. # contributed by cjkiick@flinx.b11.ingr.com
  523. # modified by ttj@sknsws61.sjo.statkart.no
  524. # FLAGSM = -DCLIX -D_INGR_EXTENSIONS=1
  525. # LIBSM = -lbsd -lc_s
  526.  
  527. # This is for DGUX. 
  528. # Contributed by ross@augie.insci.com (Ross Andrus)
  529. # FLAGSM = -DDGUX 
  530. # LIBSM  = 
  531.  
  532. # This is for DGUX on Intel boxes.
  533. # Contributed by tim@denmantire.com
  534. # FLAGSM = -DDGUX 
  535. # LIBSM  = -lsocket -lnsl -lresolv
  536.  
  537. # This is for Apollo Domain/OS sr10.3 (systype = BSD4.3)
  538. # Added 1994-07-08 Stephen C. Steel <steve@qv3donald.LeidenUniv.nl>
  539. # additional patches by jmi@csd.cri.dk (John Mills)
  540. # you may need the "-A ansi" switch to cc
  541. # FLAGSM = -DAPOLLO -D_INCLUDE_BSD_SOURCE -D_INCLUDE_XOPEN_SOURCE
  542. # LIBSM =
  543.  
  544.  
  545. # RiscIX. 
  546. # contributed by Jim Barry <jim@ilp.com> and 
  547. # Charles Gay-Jones <charlie@ilp.com>
  548. # FLAGSM = -DRiscIX -DNOSTRDUP
  549. # LIBSM =
  550.  
  551.  
  552. # This is for System V with some berkely extensions (Motorola 88k R32V3.2).
  553. # contributed by tonyb@plaza.ds.adp.com (Tony D. Birnseth)
  554. # FLAGSM = -DM88K_R3
  555. # LIBSM = -lgen -lbsd -lnsl
  556.  
  557.  
  558. # This is for DNIX.
  559. # contributed by Peter Olsson <pol@leissner.se>
  560. # NOTE: You may need an updated libc.a from your vendor as older
  561. # versions have broken mktime calls and no initgroups() call
  562. # NOTE2: You may need -lpasswd if you use shadow passwords
  563. # NOTE3: Please read the file DNIX.txt in the docs directory. It
  564. # contains important information about uid handling under DNIX, you may
  565. # need to patch your C library.
  566. # FLAGSM = -DDNIX -I/usr/include/bsd
  567. # LIBSM = -ln
  568.  
  569.  
  570. # This is for Cray, Unicos 8.0
  571. # contributed by velo@sesun3.epfl.ch (Martin Ouwehand)
  572. # FLAGSM = -DCRAY -U__STDC__ -DQUOTAS
  573. # LIBSM =
  574.  
  575. # This is for Convex
  576. # contributed by Victor Balashov <balashov@cv.jinr.dubna.su>
  577. # and Ulrich Hahn <ulrich.hahn@zdv.uni-tuebingen.de>
  578. # FLAGSM= -DCONVEX -DSHADOW_PWD
  579. # LIBSM= 
  580.  
  581. # This is for SMP_DC.OSx v1.1-94c079 on Pyramid S series
  582. # contributed by jeffrey@itm.org
  583. # FLAGSM = -DSOLARIS -DSHADOW_PWD -DBSD_COMP
  584. # LIBSM = -lsocket -lnsl
  585.  
  586. # This is for QNX 4.22
  587. # Contributed by eldo@invisa.satlink.net (Eldo Loguzzo)
  588. # FLAGSM = -DQNX -DGUEST_SESSSETUP=1
  589. # LIBSM =
  590.  
  591.  
  592. # This is for SONY NEWS, NEWS-OS 4.2.x
  593. # contributed by sky@sm.sony.co.jp (Katushi Sato)
  594. # FLAGSM = -DNEWS42 -DKANJI=\"sjis\"
  595. # LIBSM =
  596.  
  597.  
  598. # This is for SONY NEWS, NEWS-OS 6.1.x
  599. # contributed by kobo@sm.sony.co.jp (Yoichi Kobori)
  600. # FLAGSM = -Xa -DSVR4 -DNEWS61 -DSHADOW_PWD -DNETGROUP -DGETTIMEOFDAY1 -DKANJI=\"euc\"\ -D_SONYILS_H
  601. # LIBSM = -lsocket -lnsl
  602.  
  603.  
  604. # This is for OS/2 using EMX 
  605. # Contributed by jasonr@pec.co.nz (Jason Rumney)
  606. # Now maintained by Jacco de Leeuw <leeuw@wins.uva.nl>
  607. # FLAGSM = -DOS2
  608. # LIBSM = -Zexe -lsocket
  609.  
  610.  
  611. # This is for LYNX 2.3.0 (gcc v2.6)
  612. # Contributed by woelfel@hpe.fzk.de (Manfred Woelfel)
  613. # FLAGSM = -DLYNX -DUFC_CRYPT -mposix
  614. # LIBSM = -lbsd
  615.  
  616.  
  617. # This is for MachTen (a unix like system for Macintoshes)
  618. # contributed by Trevor Strohman (trev@figment.tenon.com)
  619. # FLAGSM = -DMACHTEN
  620. # LIBSM =
  621.  
  622.  
  623. # RISCOs 5.0B
  624. # contributed by John Agnew <johna@bfs.Unibol.COM>
  625. # FLAGSM = -systype svr4 -std -DSVR4
  626. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  627.  
  628.  
  629. # This is for B.O.S. (Bull Operating System)
  630. # Contributed by koine@fileita.it
  631. # FLAGSM = -DBOS -DNO_RESOURCEH -DUSE_WAITPID
  632. # LIBSM = -linet
  633.  
  634.  
  635. # This for Amiga using GCC and ixemul.library 43.0 or later.
  636. # contributed by Rask Ingemann Lambertsen <rask@k4315.kampsax.dtu.dk>
  637. # The binaries will support both AmiTCP and AS225R2 compatible
  638. # protocol stacks because of the use of ixnet.library.
  639. # Other protocol stacks will be supported automatically if
  640. # support for them is added to ixnet.library.
  641. # The binaries will have automatic stack extension :-)
  642. # smbd must be run from inetd :-(
  643. # FLAGSM = -DAMIGA -Dfork=vfork -mstackextend
  644. # LIBSM =
  645.  
  646.  
  647.  
  648. ######################################################################
  649. # DON'T EDIT BELOW THIS LINE
  650. ######################################################################
  651.  
  652. PASSWD_FLAGS = -DSMB_PASSWD=\"$(SMB_PASSWD)\" -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\"
  653. CFLAGS1 = $(FLAGS1) -DSMBLOGFILE=\"$(SMBLOGFILE)\" -DNMBLOGFILE=\"$(NMBLOGFILE)\"
  654. CFLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" -DWEB_ROOT=\"$(WEB_ROOT)\"
  655. CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\"
  656. CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" -DDRIVERFILE=\"$(DRIVERFILE)\"
  657. CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) $(KRB5_FLAGS) $(KRB4_FLAGS) $(RPM_OPT_FLAGS)
  658. CFLAGS  = $(CFLAGS5) $(PAM_FLAGS) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
  659. LIBS = $(LIBS1) $(LIBSM) $(PAM_LIBS) $(DCE_LIBS) $(KRB5_LIBS) $(KRB4_LIBS) $(DES_LIB)
  660.  
  661. INCLUDES1 = $(srcdir)version.h $(srcdir)local.h $(srcdir)includes.h $(srcdir)smb.h 
  662. INCLUDES2 = $(srcdir)trans2.h 
  663. INCLUDES = $(INCLUDES1) $(INCLUDES2)
  664.  
  665. SPROGS = smbd nmbd
  666. PROGS1 = smbclient testparm testprns smbrun smbstatus smbpasswd make_smbcodepage
  667. PROGS = $(PROGS1) nmblookup make_printerdef $(MOUNT_PROGS)
  668.  
  669. SCRIPTS = smbtar addtosmbpass
  670.  
  671.  
  672. ######################################################################
  673. # object modules
  674. ######################################################################
  675.  
  676. # modules in the ubiqx library from Chris Hertel
  677. UBIOBJ = ubiqx/ubi_dLinkList.o
  678.  
  679. # client specific object code in the rpc_pipes directory
  680. RPC_CLI_OBJ = rpc_pipes/ntclientpipe.o rpc_pipes/ntclientlsa.o rpc_pipes/ntclientnet.o 
  681.  
  682. # server specific object code in the rpc_pipes directory
  683. RPC_SERV_OBJ = rpc_pipes/pipenetlog.o rpc_pipes/pipentlsa.o rpc_pipes/pipesrvsvc.o rpc_pipes/pipewkssvc.o rpc_pipes/pipesamr.o
  684.  
  685. # server object files in the rpc_pipes subdirectory
  686. RPC_OBJ1 = rpc_pipes/srvparse.o rpc_pipes/smbparse.o rpc_pipes/lsaparse.o rpc_pipes/pipeutil.o 
  687. RPC_OBJ2 = rpc_pipes/pipe_hnd.o rpc_pipes/samrparse.o rpc_pipes/wksparse.o rpc_pipes/lsa_hnd.o
  688. RPC_OBJ = $(RPC_OBJ1) $(RPC_OBJ2) 
  689.  
  690. # general utility object files
  691. UTILOBJ1 = util.o system.o charset.o kanji.o fault.o smbencrypt.o smbdes.o charcnv.o
  692. UTILOBJ2 = $(UTILOBJ1) md4.o loadparm.o params.o pcap.o username.o time.o namequery.o nmblib.o
  693. UTILOBJ = $(UTILOBJ2) interface.o replace.o print_svid.o smberr.o mem_man/mem_man.o slprintf.o
  694.  
  695. # object code for smbd
  696. SMBDOBJ1 = $(UTILOBJ) trans2.o message.o dir.o printing.o 
  697. SMBDOBJ2 = ipc.o reply.o mangle.o chgpasswd.o password.o quotas.o uid.o
  698. SMBDOBJ3 = predict.o credentials.o clientgen.o pipes.o server.o access.o 
  699. SMBDOBJ4 = ufc.o smbpass.o
  700. SMBDOBJ = $(SMBDOBJ1) $(SMBDOBJ2) $(SMBDOBJ3) $(SMBDOBJ4) $(UBIOBJ) $(RPC_OBJ) $(RPC_SERV_OBJ) $(VTP_OBJ) $(LOCKOBJ)
  701.  
  702. # object code needed for programs that handle the the locking files
  703. LOCKOBJ = locking_shm.o locking_slow.o locking.o shmem.o shmem_sysv.o
  704.  
  705. # object code for nmbd
  706. NMBDOBJ1 = nmbd.o nmbd_packets.o nmbd_lmhosts.o nmbd_become_dmb.o nmbd_logonnames.o
  707. NMBDOBJ2 = nmbd_browserdb.o nmbd_responserecordsdb.o nmbd_workgroupdb.o nmbd_serverlistdb.o
  708. NMBDOBJ3 = nmbd_subnetdb.o nmbd_browsesync.o nmbd_nodestatus.o nmbd_mynames.o nmbd_winsproxy.o
  709. NMBDOBJ4 = nmbd_sendannounce.o nmbd_processlogon.o nmbd_incomingdgrams.o clientgen.o
  710. NMBDOBJ5 = asyncdns.o smbpass.o nmbd_winsserver.o nmbd_incomingrequests.o nmbd_nameregister.o
  711. NMBDOBJ6 = nmbd_namerelease.o nmbd_namequery.o nmbd_become_lmb.o nmbd_elections.o nmbd_namelistdb.o
  712.  
  713. NMBDOBJ = $(UTILOBJ) $(NMBDOBJ1) $(NMBDOBJ2) $(NMBDOBJ3) $(NMBDOBJ4) $(NMBDOBJ5) $(NMBDOBJ6)
  714.  
  715. # object files for smbclient
  716. CLIENT_OBJ = client.o ntclient.o credentials.o clientutil.o clitar.o getsmbpass.o $(UTILOBJ) $(RPC_CLI_OBJ) $(RPC_OBJ)
  717.  
  718. # object files for smbmount
  719. MOUNT_OBJ = smbmount.o ntclient.o credentials.o clientutil.o getsmbpass.o $(UTILOBJ) $(RPC_CLI_OBJ) $(RPC_OBJ)
  720.  
  721. # object files for smbmnt
  722. MNT_OBJ = smbmnt.o
  723.  
  724. # object files for smbumount
  725. UMOUNT_OBJ = smbumount.o
  726.  
  727. # object files for smbstatus
  728. STATUS_OBJ = status.o $(UTILOBJ) $(LOCKOBJ) 
  729.  
  730. # object files for nmblookup
  731. LOOKUP_OBJ = nmblookup.o $(UTILOBJ) 
  732.  
  733.  
  734. # object files to be auto-prototyped
  735. PROTOOBJ = $(UTILOBJ) $(SMBDOBJ) $(NMBDOBJ) $(LOCKOBJ) $(CLIENT_OBJ) $(STATUS_OBJ) cgi.o namequery.o
  736.  
  737.  
  738. ######################################################################
  739. # now the rules...
  740. ######################################################################
  741.  
  742. all : CHECK $(SPROGS) $(PROGS) 
  743.  
  744. CHECK :
  745.     @$(SHELL) $(srcdir)checkos.sh $(FLAGSM)
  746.     @echo "Using CFLAGS = $(CFLAGS)"
  747.     @echo "Using LIBS = $(LIBS)"
  748.  
  749. .SUFFIXES:
  750. .SUFFIXES: .c .o .h
  751.  
  752. .c.o: $(INCLUDES)
  753.     @echo Compiling $*.c
  754.     @$(CC) $(CFLAGS) -c $(srcdir)$*.c -o $(srcdir)$*.o
  755.  
  756. smbd: $(SMBDOBJ) $(ARCFOUR_OBJ)
  757.     @echo Linking smbd
  758.     @$(CC) $(CFLAGS) -o smbd $(SMBDOBJ) $(ARCFOUR_OBJ) $(LIBS) $(AFS_LIBS)
  759.  
  760. smbrun: smbrun.o 
  761.     @echo Linking smbrun
  762.     @$(CC) $(CFLAGS) -o smbrun smbrun.o $(LIBS)
  763.  
  764. nmblookup: $(LOOKUP_OBJ)
  765.     @echo Linking nmblookup
  766.     @$(CC) $(CFLAGS) -o nmblookup $(LOOKUP_OBJ) $(LIBS)
  767.  
  768. nmbd: $(NMBDOBJ)
  769.     @echo Linking nmbd
  770.     @$(CC) $(CFLAGS) -o nmbd $(NMBDOBJ) $(LIBS)
  771.  
  772. smbclient: $(CLIENT_OBJ) $(ARCFOUR_OBJ)
  773.     @echo Linking smbclient
  774.     @$(CC) $(CFLAGS) -o smbclient $(CLIENT_OBJ) $(ARCFOUR_OBJ) $(LIBS)
  775.  
  776. smbmount: $(MOUNT_OBJ) $(ARCFOUR_OBJ)
  777.     @echo Linking smbmount
  778.     @$(CC) $(CFLAGS) -o smbmount $(MOUNT_OBJ) $(ARCFOUR_OBJ) $(LIBS)
  779.  
  780. smbmnt: $(MNT_OBJ)
  781.     @echo Linking smbmnt
  782.     @$(CC) $(CFLAGS) -o smbmnt $(MNT_OBJ)
  783.  
  784. smbumount: $(UMOUNT_OBJ)
  785.     @echo Linking smbumount
  786.     @$(CC) $(CFLAGS) -o smbumount $(UMOUNT_OBJ)
  787.  
  788. smbtorture: torture.o clientgen.o getsmbpass.o $(UTILOBJ)
  789.     @echo Linking smbtorture
  790.     @$(CC) $(CFLAGS) -o smbtorture torture.o clientgen.o getsmbpass.o $(UTILOBJ) $(LIBS)
  791.  
  792. smbstatus: $(STATUS_OBJ)
  793.     @echo Linking smbstatus
  794.     @$(CC) $(CFLAGS) -o smbstatus $(STATUS_OBJ) $(LIBS)
  795.  
  796. testparm: testparm.o access.o $(UTILOBJ)
  797.     @echo Linking testparm
  798.     @$(CC) $(CFLAGS) -o testparm testparm.o access.o $(UTILOBJ) $(LIBS)
  799.  
  800. testprns: testprns.o $(UTILOBJ)
  801.     @echo Linking testprns
  802.     @$(CC) $(CFLAGS) -o testprns testprns.o $(UTILOBJ) $(LIBS)
  803.  
  804. smbpasswd: smbpasswd.o getsmbpass.o smbpass.o clientgen.o $(UTILOBJ)
  805.     @echo Linking smbpasswd
  806.     @$(CC) $(CFLAGS) -o smbpasswd smbpasswd.o getsmbpass.o smbpass.o clientgen.o $(UTILOBJ) $(LIBS)
  807.  
  808. make_smbcodepage: make_smbcodepage.o $(UTILOBJ) 
  809.     @echo Linking make_smbcodepage
  810.     @$(CC) $(CFLAGS) -o make_smbcodepage make_smbcodepage.o $(UTILOBJ) $(LIBS)
  811.  
  812. make_printerdef: make_printerdef.o $(UTILOBJ) 
  813.     @echo Linking make_printerdef
  814.     @$(CC) $(CFLAGS) -o make_printerdef make_printerdef.o $(UTILOBJ) $(LIBS)
  815.  
  816. wsmbstatus: wsmbstatus.o $(UTILOBJ)  
  817.     @echo Linking wsmbstatus
  818.     @$(CC) $(CFLAGS) -o wsmbstatus wsmbstatus.o $(UTILOBJ) $(LIBS)
  819.  
  820. wsmbconf: wsmbconf.o $(UTILOBJ) cgi.o
  821.     @echo Linking wsmbconf
  822.     @$(CC) $(CFLAGS) -o wsmbconf wsmbconf.o $(UTILOBJ) cgi.o $(LIBS)
  823.  
  824. install: installbin installman installscripts installcp
  825.  
  826. installbin: all
  827.     @$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
  828.     @$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS)
  829.  
  830. installscripts:
  831.     @$(SHELL) $(srcdir)installscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
  832.  
  833. installcp:
  834.     @$(SHELL) $(srcdir)installcp.sh $(LIBDIR) $(CODEPAGEDIR) $(BINDIR) $(CODEPAGELIST)
  835.  
  836. # revert to the previously installed version
  837. revert:
  838.     @$(SHELL) $(srcdir)revert.sh $(SBINDIR) $(SPROGS) $(SCRIPTS)
  839.     @$(SHELL) $(srcdir)revert.sh $(BINDIR) $(PROGS) $(SCRIPTS)
  840.  
  841. installman:
  842.     @$(SHELL) $(srcdir)installman.sh $(MANDIR) $(srcdir)
  843.  
  844. uninstall: uninstallman uninstallbin uninstallscripts uninstallcp
  845.  
  846. uninstallman:
  847.     @$(SHELL) $(srcdir)uninstallman.sh $(MANDIR) $(srcdir)
  848.  
  849. uninstallbin:
  850.     @$(SHELL) $(srcdir)uninstallbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
  851.     @$(SHELL) $(srcdir)uninstallbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS)
  852.  
  853. uninstallscripts:
  854.     @$(SHELL) $(srcdir)uninstallscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
  855.  
  856. uninstallcp:
  857.     @$(SHELL) $(srcdir)uninstallcp.sh $(CODEPAGEDIR) $(CODEPAGELIST)
  858.  
  859. clean:
  860.     rm -f core *.o */*.o *~ $(PROGS) $(SPROGS)
  861.  
  862. cleandir:  clean
  863.     rm -f .depend tags
  864.  
  865. proto:
  866.     @$(SHELL) $(srcdir)checkos.sh $(FLAGSM)
  867.     $(AWK) -f mkproto.awk `echo $(PROTOOBJ) | sed -e 's/\.o/\.c/g' | tr ' ' '\n' | sort | uniq` > proto.h
  868.  
  869. tags:
  870.     etags `find . -name "*.[ch]"`
  871.  
  872. realclean: clean
  873.  
  874.