home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / protocol / kerberos / 1029 < prev    next >
Encoding:
Text File  |  1993-01-28  |  16.6 KB  |  607 lines

  1. Newsgroups: comp.protocols.kerberos
  2. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!stanford.edu!ksr.com!dean
  3. From: dean@ksr.com (Dean Anderson)
  4. Subject: Re: Help wanted: Kerberos' entries in config files
  5. Message-ID: <9301282159.AA10015@maryann.ksr.com>
  6. Sender: news@shelby.stanford.edu (USENET News System)
  7. Organization: Internet-USENET Gateway at Stanford University
  8. References: <1k9h5fINN936@OIT.PeachNet.EDU>
  9. Date: Thu, 28 Jan 1993 21:59:45 GMT
  10. Lines: 595
  11.  
  12. I have built both kerb4.9 and kerb4.10 under SunOS 4.1.2.  I also
  13. use hesiod (changed to use IN class records instead of HS class).
  14.  
  15.         --Dean
  16.  
  17. Dean Anderson                   dean@ksr.com  | Support the League for 
  18. KSR Computing Facilities                      | Programming Freedom! Email
  19. Kendall Square Research                       | lpf@uunet.uu.net for info.
  20.  
  21.  
  22. Here's what I have in my /etc/services for kerberos.  I think there
  23. are newer port numbers for some of these, though.  This works for
  24. me:
  25.  
  26. klogin          543/tcp                         # Kerberos authenticated rlogin
  27. kerberos        750/udp         kdc             # Kerberos authentication--udp
  28. kerberos        750/tcp         kdc             # Kerberos authentication--tcp
  29. kerberos_master 751/udp                         # Kerberos authentication
  30. kerberos_master 751/tcp                         # Kerberos authentication
  31. passwd_server   752/udp                         # Kerberos passwd server
  32. userreg_server  753/udp                         # Kerberos userreg server
  33. kpop            1109/tcp                        # Pop with Kerberos
  34. knetd           2053/tcp                        # Kerberos de-multiplexor
  35. kshell          544/tcp         cmd             # and remote shell
  36. eklogin         2105/tcp                        # Kerberos encrypted rlogin
  37. krb_prop        754/tcp                         # Kerberos slave propagation
  38. sample          906/tcp                         # Kerberos sample server
  39. erlogin         888/tcp                         # Login and environment passing
  40.  
  41. Here is what I have in /etc/inetd.conf
  42.  
  43. eklogin stream  tcp     nowait  root    /usr/local/etc/klogind  eklogind
  44. klogin  stream  tcp     nowait  root    /usr/local/etc/klogind  klogind
  45. kshell  stream  tcp     nowait  root    /usr/local/etc/kshd     kshd
  46.  
  47.  
  48.  
  49. I also chnaged my kerberized r commands (rlogin, rcp, and rsh) to
  50. be kr commands (krlogin, krcp, and krsh), to avoid confusion with
  51. the regular commands.
  52.  
  53. To disable access via the regular r commands, take the following entries
  54. out of /etc/inetd.conf:
  55.  
  56. shell   stream  tcp     nowait  root    /usr/etc/in.rshd        in.rshd
  57. #login  stream  tcp     nowait  root    /usr/etc/in.rlogind     in.rlogind
  58. login   stream  tcp     nowait  root    /usr/local/etc/klogind  rlogind
  59.  
  60. Here is my sunobj/util/imake.includes/config.Imakefile:
  61.  
  62. /**/#    $Source: /afs/net.mit.edu/project/krb4/src/util/imake.includes/RCS/config.Imakefile,v $
  63. /**/#    $Author: tytso $
  64. /**/#    $Id: config.Imakefile,v 4.42 92/12/08 19:13:29 tytso Exp $
  65. /**/#
  66.  
  67. /* 
  68.  * Configuration options.
  69.  */
  70.  
  71. /* GLOBAL_CDEFS are passed to every C compile statement */
  72. /* Here are some of the common definitions which you might add to GLOBAL_CDEFS:
  73.  *    BSD42 - needed for compiling on BSD-type systems (selects
  74.  *        hostname retrieval method)
  75.  *    ATHENA_COMPAT - compatibility with old Athena software
  76.  *    ATHENA - Athena-local modifications to r-commands (rlogin, rsh, rcp)
  77.  *    ATHENA_CONF_FALLBACK - compatibility location of krb config files
  78.  *    ATHENA_OLD_SRVTAB - compatibility with srvtabs w/o proper realm names
  79.  *    ATHENA_OLD_KLOGIN - compatibility with old-style klogin files
  80.  *    KERBEROS - should ALWAYS be turned on
  81.  *    VFS - Virtual File System (for most Sun NFS machines)
  82.  *    OQUOTA - if defined, use the quota system call
  83.  *    SYSLOG42 - if defined, use 4.2BSD-style syslog routines
  84.  *    POSIX - if defined, conform to POSIX library calls and data structures.
  85.  *    ULTRIX022 - if you are running on pre-3.0 Ultrix.
  86.  *    SunOS=xx - if you are running SunOS.  Set xx to 10 times the release
  87.  *        number (e.g. SunOS 3.5 => -DSunOS=35, SunOS 4.0 => -DSunOS=40)
  88.  *    NO_GETUSERSHELL - if your system doesn't have getusershell() in libc
  89.  *        (type 'nm /lib/libc.a | grep getusershell', if something
  90.  *         shows up, you should NOT turn this flag on)
  91.  *    NOTTYENT - if your system doesn't have ttyent.h (4.3-style /etc/ttys)
  92.  *    NO_WINSIZE - if your system doesn't have struct winsize, but
  93.  *        has struct ttysize (e.g. older Suns) (check <sys/ioctl.h>)
  94.  *    NO_UIDGID_T - if your system does not have uid_t's and gid_t's
  95.  *        (check <sys/types.h>)
  96.  *      HAS_DIRENT - if you've got struct dirent rather than struct direct
  97.  *              (was conditional on POSIX before)
  98.  *      NOSTBLKSIZE - if your struct stat doesn't have st_blksize
  99.  *      NOVFORK - if you don't have vfork at all, use fork instead
  100.  *      NOUTHOST - if your struct utmp doesn't have ut_host
  101.  */
  102.  
  103. INSTALLUCB=$(INSTALLPROG)
  104.  
  105. #define ATHENA_OLD_SRVTAB
  106. #define ATHENA_OLD_KLOGIN
  107. #define ATHENA_CONF_FALLBACK
  108.  
  109. #define NEED_SETENV
  110. #define HAVE_PUTENV
  111.  
  112. GLOBAL_CDEFS=   -DKERBEROS $(SITEDEFS) $(OSDEFS)
  113.  
  114. SITEDEFS=-DSunOS=42 -DATHENA $(HESIOD) $(AFS) $(NOENCFLAG) $(COMPAT) -I$(INCLDIR)
  115.  
  116. /*
  117.  * Operating specific definitions
  118.  */
  119. #if defined(_AIX)
  120. #if defined(_AIX) && (AIXV < 30)
  121. OSFLAGS= -q -DBSD42 -DVFS -D_BSD -DPOSIX
  122. #else
  123. OSFLAGS= -DBSD42 -DVFS -DNO_GETUSERSHELL -DNOTTYENT -D_BSD -D_BSD_INCLUDES -DPOSIX
  124. #endif /* AIXV */
  125. #endif /* _AIX */
  126. #if defined(vax) || defined(ibm032)
  127. OSFLAGS= -DBSD42 -DVFS -DUSE_BCOPY
  128. #endif
  129. #if defined(ultrix)
  130. OSFLAGS= -DBSD42 -DVFS -DNO_GETUSERSHELL -DPOSIX -DHAS_DIRENT
  131. #endif
  132. #if defined(_AUX_SOURCE)
  133. OSFLAGS= -DBSD42 -DNOTTYENT -DPOSIX -D_POSIX_SOURCE -Dvfork=fork
  134. #endif
  135. #if defined(sun)
  136. OSFLAGS= -DBSD42 -DVFS -DUSE_BCOPY 
  137. #endif
  138.  
  139. OSDEFS= $(OSFLAGS) $(DBMFLAG) $(SHMFLAG) $(TIMEHFLAG)
  140.  
  141. /* SRCTOP is the root of the Kerberos source tree */
  142. SRCTOP=/u1/src/misc/kerb4.10/src
  143.  
  144. /* DESTDIR is the root of the tree to install into.  
  145.  * If null, install into the running system.
  146.  *
  147.  * DESTDIR='/' is guaranteed to cause trouble for systems which don't
  148.  * like double slashes in pathnames.
  149.  *
  150.  * All the installed programs and files are put into ${DESTDIR}/wherever, e.g.
  151.  * kinit would get installed into ${DESTDIR}${PROGDIR}/kuser
  152.  */
  153.  
  154. DESTDIR= 
  155.  
  156. MKDIRS=    $(DESTDIR) $(DESTDIR)/etc \
  157.     $(DESTDIR)/usr $(DESTDIR)/usr/athena $(DESTDIR)/usr/lib
  158. /*
  159.  * These directories should be subdirectories of DESTDIR;
  160.  * they show up as absolute pathnames here.
  161.  */
  162. BASEDIR=/usr 
  163. USRDIR= /usr/local
  164. SVRDIR=/usr/local/etc
  165. DAEMDIR=/usr/local/etc
  166. PROGDIR=/usr/local/bin
  167. LIBDIR=/usr/local/lib
  168. LINTLIBDIR=/usr/lib/lint
  169. INCLDIR=/usr/local/include
  170. MANDIR=/usr/local/man
  171. ETCDIR=/usr/local/etc
  172. CONFDIR=/etc
  173. USRLIB= /usr/lib
  174. /* KDBDIR has the acl's and the key database */
  175. KDBDIR=/kerberos/database
  176. /* KLOGDIR has the security related logs */
  177. KLOGDIR=/kerberos/database
  178. /* Fill this in with your Kerberos Realm */
  179. SITE_KRB_REALM=KSR.COM
  180. /* This is where to find the srvtab file */
  181. SRVTAB_FILE= $(CONFDIR)/srvtab
  182.  
  183. #ifdef sgi
  184. UCBDIR=/usr/bsd
  185. SLASHBINDIR=/usr/bsd
  186. #else /* sgi */
  187. #ifdef ultrix
  188. SLASHBINDIR=/usr/ucb
  189. UCBDIR=/usr/ucb
  190. #else /* ultrix */
  191. SLASHBINDIR=/bin
  192. UCBDIR=/usr/ucb
  193. #endif /* ultrix */
  194. #endif /* sgi */
  195.  
  196. #ifdef notdef
  197. /*
  198.  * An alternate scheme of arranging things, in an non-Athena environment....
  199.  */
  200. BASEDIR=/usr 
  201. USRDIR= /usr/kerberos
  202. SVRDIR= /usr/kerberos/etc
  203. DAEMDIR= /usr/kerberos/etc
  204. PROGDIR=/usr/kerberos/bin
  205. LIBDIR= /usr/kerberos/lib
  206. USRLIB= /usr/lib
  207. LINTLIBDIR = /usr/lib/lint
  208. INCLDIR= /usr/kerberos/include
  209. MANDIR= /usr/kerberos/man
  210. /* KDBDIR has the acl's and the key database */
  211. KDBDIR=/usr/kerberos/database
  212. /* KLOGDIR has the security related logs */
  213. KLOGDIR=/usr/kerberos/database
  214. SITE_KRB_REALM=error-default-realm
  215. SRVTAB_FILE =/etc/krb-srvtab
  216. /* this is where krb.realms and krb.conf go. */
  217. CONFDIR=$(LIBDIR)
  218. #endif
  219.  
  220. /*
  221.  * Define LOCAL_LIBS if the libss and libcom_err libraries (and supporting
  222.  * include files) are not installed
  223.  * on your running system, and therefore should be built locally.
  224.  * [If you do not select this, the compile_et and mk_cmds programs
  225.  * are assumed to be in the standard command search path, and the
  226.  * com_err and ss libraries are assumed to be installed in the C library
  227.  * search path.  WARNING:  not selecting this assumes you have the new
  228.  * versions of the libss & libcom_err support on your system!]
  229.  */
  230. #define LOCAL_LIBS
  231.  
  232. /*
  233.  * Define LOCAL_makedepend if makedepend needs to be built before being
  234.  * used (e.g. if makedepend is not already installed on your system)
  235.  * [If you do not select this, the makedepend program is assumed to be
  236.  * in the standard command search path.]
  237.  */
  238. #define LOCAL_makedepend
  239.  
  240. /*
  241.  * COMPILE_ET    The name of a command which compiles error tables.
  242.  * COM_ERR    Loader argument to get the com_err library.
  243.  * COM_ERR_DEP    Dependency name for COM_ERR, if any.
  244.  * MAKE_COMMANDS The name of a command which compiles command tables.
  245.  * SS_LIB    Loader argument to get the ss library.
  246.  * SS_LIBDEP    Dependency name for SS_LIB, if any.
  247.  */
  248.  
  249. /*
  250.  * Define OLD_ET_COMPAT if you want the kerberos libraries to include
  251.  * the old et variables
  252.  */
  253.  
  254. #ifdef LOCAL_LIBS
  255.  
  256. COMPILE_ET= $(BUILDTOP)/util/et/compile_et
  257. COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
  258. COM_ERR_DEP = $(COM_ERR)
  259.  
  260. MAKE_COMMANDS = $(BUILDTOP)/util/ss/mk_cmds
  261. SS_LIB = $(BUILDTOP)/util/ss/libss.a
  262. SS_LIBDEP = $(SS_LIB)
  263.  
  264. #else
  265.  
  266. #define OLD_ET_COMPAT
  267.  
  268. COMPILE_ET= compile_et
  269. COM_ERR = -lcom_err
  270. COM_ERR_DEP =
  271.  
  272. MAKE_COMMANDS= mk_cmds
  273. SS_LIB = -lss
  274. SS_LIBDEP =
  275.  
  276. #endif
  277.  
  278.  
  279. /* The makedepend program */
  280. #ifdef LOCAL_makedepend
  281. DEPEND=$(BUILDTOP)/util/makedepend/makedepend
  282. #else
  283. DEPEND=makedepend
  284. #endif
  285.  
  286. /*
  287.  * The Imake command line
  288.  * If you need to build Imake, define LOCAL_IMAKE
  289.  */
  290. #ifdef LOCAL_IMAKE
  291. IMAKE=$(BUILDTOP)/util/imake/imake -I$(BUILDTOP)/util/imake.includes
  292. #else
  293. IMAKE=imake -I$(BUILDTOP)/util/imake.includes -TImake.template
  294. #endif
  295.  
  296. /*
  297.  * Set USE_HESIOD to be true if Kerberos should try to use Hesiod.
  298.  */
  299. #define USE_HESIOD
  300.  
  301. #ifdef USE_HESIOD
  302. HESIOD=-DHESIOD
  303. HESIOD_LIB= -L/usr/local/lib -lhesiod -lresolv
  304. HESIOD_LIBDEP=
  305. #endif
  306.  
  307. /*
  308.  * Set USE_AFS to be true if we login should try to use the AFS libraries to
  309.  * support AFS.
  310.  */
  311. /* #define USE_AFS */
  312.  
  313. #ifdef USE_AFS
  314. AFS=-DAFS
  315. AFS_LIB=/usr/local/lib/afs/libauth.a /usr/local/lib/afs/libsys.a
  316. #endif
  317.  
  318. /*
  319.  * Set ORGANIZATION to be the desired organization string printed
  320.  * by the 'kinit' program.  It may have spaces.
  321.  */
  322. ORGANIZATION=Kendall Square Research
  323.  
  324. /*
  325.  * Define NOENCRYPTION if you do not have the DES library.
  326.  */
  327. /* #define NOENCRYPTION */
  328.  
  329. /*
  330.  * Define NDBM if you are using the 4.3 ndbm library (which is part of
  331.  * libc).  If not defined, 4.2 dbm will be assumed.
  332.  */
  333. #if !defined(_AUX_SOURCE)
  334. #define NDBM 
  335. #endif
  336.  
  337. /*
  338.  * Define NEED_SETENV if you don't have setenv() in your libc.
  339.  * (likely for older 4.3 systems and pre-4.3 systems)
  340.  */
  341. #if defined(_AIX) || defined(_AUX_SOURCE)
  342. #define NEED_SETENV
  343. #endif
  344.  
  345. /*
  346.  * Define NEED_STRCASECMP if you don't have strcasecmp() in your libc.
  347.  * (likely for older 4.3 systems and pre-4.3 systems)
  348.  */
  349. #if defined(_AIX) && (AIXV < 30)
  350. #define NEED_STRCASECMP
  351. #endif
  352.  
  353. /*
  354.  * Define NEED_GETOPT if you don't have getopt() in your libc.
  355.  */
  356. /* #define NEED_GETOPT */
  357.  
  358. /*
  359.  * Define TKT_SHMEM if you want to use shared memory for the session
  360.  * keys in your ticket caches.
  361.  */
  362. #if defined(_AIX)
  363. #define TKT_SHMEM
  364. #endif
  365.  
  366. /*
  367.  * Define NEED_TIME_H if you need to include <time.h> before <sys/time.h>.
  368.  * Many SYS V derivatives require this, but BSD does not allow this multiple
  369.  * inclusion.
  370.  */
  371. #if defined(_AIX) || defined(_AUX_SOURCE)
  372. #define NEED_TIME_H
  373. #endif
  374.  
  375. /*
  376.  * LINTLIBFLAG should be the flag used to tell lint to create a lint
  377.  * library.  On most BSD systems, this is -C.
  378.  * Define NO_LINT, if you do not wish to build and install lint libraries.
  379.  */
  380. #if (defined(vax) && !defined(ultrix)) || (defined(ibm032)) || defined(sun)
  381. LINTLIBFLAG=-C
  382. #else
  383. LINTLIBFLAG=-o
  384. #endif
  385. #if defined(_AIX) && (AIXV > 30) || defined(_AUX_SOURCE)
  386. #define NO_LINT
  387. #endif
  388.  
  389. /*
  390.  * Define SHARED_LIBS if you want to use shared libraries on this system.
  391.  * All programs except "login" will be compiled with the shared version
  392.  * of the library.  Make sure the rules in Imake.rules are proper for your
  393.  * system.
  394.  *
  395.  * This does NOT yet work (tested on the RIOS) !!!
  396.  */
  397. #if defined(_AIX) && (AIXV > 30)
  398. /* #define SHARED_LIBS */
  399. SHEXT=
  400. SHDIR=shared/
  401. SHLIBDIR=$(LIBDIR).shared
  402. MKSHLIB=sh /mit/rios/src/util/scripts/mkshlib.rios
  403. #endif
  404.  
  405. #ifndef SHARED_LIBS
  406. SHEXT=
  407. SHDIR=
  408. SHLIBDIR=$(LIBDIR)
  409. #endif
  410.  
  411. KRB_LINTLIB=$(BUILDTOP)/lib/krb/llib-lkrb.ln
  412.  
  413. KRB_STLIBDEP=$(BUILDTOP)/lib/krb/libkrb$(SHEXT).a
  414. KRB_LIBDEP=$(BUILDTOP)/lib/krb/$(SHDIR)libkrb$(SHEXT).a
  415. KADM_LIBDEP=$(BUILDTOP)/lib/kadm/$(SHDIR)libkadm$(SHEXT).a
  416. KDB_LIBDEP=$(BUILDTOP)/lib/kdb/$(SHDIR)libkdb$(SHEXT).a
  417. ACL_LIBDEP=$(BUILDTOP)/lib/acl/$(SHDIR)libacl$(SHEXT).a
  418.  
  419. KRB_STLIB=$(KRB_STLIBDEP)
  420. KRB_LIB=$(KRB_LIBDEP)
  421. KADM_LIB=$(KADM_LIBDEP)
  422. ACL_LIB=$(ACL_LIBDEP)
  423.  
  424. KSTREAM_LIB=$(BUILDTOP)/lib/kstream/libkstream.a
  425. KSTREAM_LIBDEP=$(KSTREAM_LIB)
  426.  
  427. #ifdef NOENCRYPTION
  428. NOENCFLAG=-DNOENCRYPTION
  429. DES_STLIB=
  430. DES_STLIBDEP=
  431. DES_LIB=
  432. DES_LIBDEP=
  433. DES_LINTLIB=
  434. #else /* Do encryption */
  435. NOENCFLAG=
  436. DES_STLIB=$(DES_STLIBDEP)
  437. DES_STLIBDEP=$(BUILDTOP)/lib/des/libdes.a
  438. DES_LIB=$(DES_LIBDEP)
  439. DES_LIBDEP=$(BUILDTOP)/lib/des/$(SHDIR)libdes$(SHEXT).a
  440. DES_LINTLIB=$(BUILDTOP)/lib/des/llib-ldes.ln
  441. #endif /* NOENCRYPTION */
  442.  
  443. #ifdef NDBM
  444. DBMFLAG=-DNDBM
  445. KDB_LIB=$(KDB_LIBDEP)
  446. #else
  447. DBMFLAG=
  448. KDB_LIB=$(KDB_LIBDEP) -ldbm
  449. #endif
  450.  
  451. #ifdef TKT_SHMEM
  452. SHMFLAG=-DTKT_SHMEM
  453. #else
  454. SHMFLAG=
  455. #endif
  456.  
  457. #ifdef NEED_TIME_H
  458. TIMEHFLAG=-DNEED_TIME_H
  459. #else
  460. TIMEHFLAG=
  461. #endif
  462.  
  463. /* 
  464.  * Define OLD_COMPAT if you want to be able to link old binaries with
  465.  * the new library names
  466.  */ 
  467.  
  468. /* #define OLD_COMPAT */
  469.  
  470. /*
  471.  * Define DEBUG_LIBS if you want to create versions of the libraries
  472.  * that have useful debugging information (the default rules will strip
  473.  * out extra symbols, including debugging symbols, from the symbol
  474.  * table.)  NOTE:  This only works if you do NOT turn on PROFILED_LIBS
  475.  * below.
  476.  * NOTE:  this doesn't turn on the debugging flag for your compiler; do
  477.  * that with the DBG make variable, below.
  478.  */
  479. /* #define DEBUG_LIBS */
  480.  
  481. /*
  482.  * Define PROFILED_LIBS if you want to create profiled versions of the
  483.  * libraries used in Kerberos
  484.  */
  485. #define PROFILED_LIBS
  486.  
  487. /*
  488.  * Define PROF_FLAG to be the flag to be passed to your C compiler to
  489.  * turn on profiling.  For 4.3BSD on a VAX, this should probably be -pg.
  490.  * For most other systems, it should probably be -p
  491.  */
  492. #if (defined(vax) && !defined(ultrix)) || defined(ibm032)
  493. #define PROF_FLAG -pg
  494. #else
  495. #define PROF_FLAG -p
  496. #endif
  497.  
  498. /*
  499.  * The name of a command which builds an object library.
  500.  */
  501. ARCHIVE= ar cru
  502.  
  503. /*
  504.  * The name of another program needed to post-process the archive.
  505.  */
  506. #ifdef sgi
  507. RANLIB=true
  508. #else
  509. RANLIB= ranlib
  510. #endif
  511.  
  512.  
  513. /* 
  514.  * Install commands:  installs a file into the destination tree.
  515.  * These commands are called with two arguments: the source and the
  516.  * destination of the install.
  517.  */
  518. #ifndef NOINSTALL
  519. /* install a file */
  520. INSTALLFILE= install -c -m 444
  521. /* install a library */ 
  522. INSTALLLIB= install -c -m 444
  523. /* install a program */
  524. INSTALLPROG= install -c -s -m 555 
  525. /* invoke raw install program */
  526. INSTALLRAW= install
  527. /* install a program which should run as root */
  528. INSTALLSUID= install -c -s -m 4555 -o root
  529. #else
  530. /* install a file */
  531. INSTALLFILE= cp
  532. /* install a library */ 
  533. INSTALLLIB= cp 
  534. /* install a program */
  535. INSTALLPROG= cp 
  536. /* invoke raw install program */
  537. INSTALLRAW= cp 
  538. /* install a program which should run as root */
  539. INSTALLSUID= echo "FIX UID:"; cp
  540. #endif
  541.  
  542. LD=ld            /* The name of the target's linker */
  543.  
  544. AS=as            /* The name of the target's assembler */
  545.  
  546. LINT=lint        /* The name of `lint' */
  547.  
  548. #ifdef sgi
  549. CC=cc -cckr        /* The name of the C compiler for the target */
  550.  
  551. CCRO=$(CC)        /* Compile with initialized data read-only 
  552.                & shared (if possible) */
  553. #else
  554. CC=cc -L$(LIBDIR)    /* The name of the C compiler for the target */
  555.  
  556. CCRO=cc -R        /* Compile with initialized data read-only 
  557.                & shared (if possible) */
  558. #endif
  559.  
  560. HCC=$(CC)        /* The name of the C compiler on _this_
  561.              * machine
  562.              */
  563.  
  564. CPP=$(CC) -E        /* A command which invokes the C preprocessor */
  565.  
  566. DBG=-O            /* Debug or optimize? */
  567.  
  568. HCFLAGS=$(CFLAGS)
  569.  
  570. TAGGER=etags        /* Program to index source files */
  571.  
  572. MAKE=make        /* name of make program */
  573. RM=rm -f        /* delete one or more files/directories/links */
  574. MV=mv            /* rename/move a file */
  575. CP=cp            /* copy a file */
  576. LN=ln -s        /* create a link */
  577. LPR=lpr -p        /* print a file or files */
  578. CHMOD=chmod        /* change mode of a file */
  579.  
  580. /* turds */
  581. /* XXX default's uid on Athena (for tftp) */
  582. DEF_UID = nobody
  583.  
  584. #if defined(_AIX)
  585. #if AIXV > 30
  586. CC=cc -qro -L$(SHLIBDIR) -L$(LIBDIR)
  587. #else
  588. CC=cc -L$(LIBDIR)
  589. #endif
  590. CCRO=$(CC)
  591. OSLIBS=-lbsd
  592. #endif /* _AIX */
  593.  
  594. #if defined(_AUX_SOURCE)
  595. CC=cc -DPOSIX -D_POSIX_SOURCE -D_BSD_SOURCE -L$(LIBDIR)
  596. OSLIBS=-lposix
  597. RANLIB=\:
  598. #endif
  599.  
  600. #ifdef vax /*XXX*/
  601. #if 0
  602. #define VAXASM
  603. #endif
  604. #define BIG
  605. #endif
  606.  
  607.