home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc095.zip / ckuker.mak < prev    next >
Text File  |  1989-08-31  |  18KB  |  472 lines

  1. # CKUKER.MAK, Version 2.21, 28 Jul 89
  2. #
  3. # -- Makefile to build C-Kermit for Unix and Unix-like systems --
  4. #
  5. # Before proceeding, read the instructions below, and also read the file
  6. # ckuker.bwr (the "beware file"), and then rename this file to "makefile"
  7. # or "Makefile" if necessary, and then:
  8. #
  9. # for Alliant FX/8 with Concentrix 4.1, "make bsdlck"
  10. # for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  11. # for Amdahl UTSV IBM 370 series & compatible mainframes, "make sys3"
  12. # for Apollo DOMAIN/IX, "make bsd" or "make sys3", for desired environment
  13. # for Apollo with SR10.0 BSD or later, "make sr10-bsd"
  14. # for Apple Macintosh II with A/UX, "make aux"
  15. # for AT&T 6300 PLUS, "make att6300"
  16. # for AT&T 3B2, 3B20 systems, "make att3bx"
  17. # for AT&T 3B1, 7300 Unix PC, "make sys3upc"
  18. # for AT&T generic System III/System V, "make sys3" or "make sys3nid"
  19. # for AT&T System V R3, use "make sys5r3".  This is different from the above.
  20. # for BBN C/70 with IOS 2.0, "make c70"
  21. # for Bell Unix Version 7 (aka 7th Edition), "make v7" (but see below)
  22. # for Berkeley Unix 4.1, "make bsd41"
  23. # for Berkeley Unix 4.2, "make bsd" (tested with 4.2 and 4.3)
  24. # for Berkeley Unix 4.3, "make bsd43" (uses acucntrl program)
  25. # for Berkeley Unix 4.3 without acucntrl program, "make bsdlck" or "make bsd"
  26. # for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  27. # for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  28. # for Berkeley Unix 2.10, "make bsd210"
  29. # for CDC VX/VE 5.2.1 Sys V emulation, "make vxve"
  30. # for Charles River Data Systems 680x0 systems with Unos, "make sys3nid"
  31. # for CIE Systems 680/20 with Regulus, "make cie"
  32. # for Convex C1, "make convex"
  33. # for DEC Ultrix on VAX or DECstation, "make bsd"
  34. # for DEC Pro-350 with Pro/Venix V1.x, "make provx1"
  35. # for DEC Pro-350 with Pro/Venix V2.0 (Sys V), "make sys3nid" 
  36. # for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  37. # for Encore Multimax 310, 510 with UMAX 4.2, "make bsd"
  38. # for Encore Multimax 310, 510 with UMAX V 2.2, use Berkeley cc, "make bsd"
  39. # for Fortune 32:16, For:Pro 1.8, "make ft18"
  40. # for HP-9000 Series with HP-UX, "make hpux"
  41. # for IBM 370 Series with IX/370, "make ix370"
  42. # for IBM PS/2 with PS/2 AIX, "make ps2aix"
  43. # for IBM RT PC with AIX 2.1, "make sys3"
  44. # for IBM RT PC with AIX 2.2, "make rtaix" (is one of these extraneous?)
  45. # for IBM RT PC with ACIS, "make bsd"
  46. # for Intel Xenix, "make sco286"
  47. # for Interactive System III (PC/IX) on PC/XT, "make pcix"
  48. # for Interactive Sys III on other systems, "make is3"
  49. # for Masscomp variation on Sys III, "make rtu"
  50. # for Masscomp/Concurrent with RTU 4.0 or later Berkeley, "make rtubsd"
  51. # for Microport Sys V, "make mpsysv"
  52. # for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  53. # for NCR Tower 1632, OS 1.02, "make tower1"
  54. # for NCR Tower 1632 with System V, "make sys3"
  55. # for NeXT, "make next"
  56. # for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  57. # for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  58. # for SCO Xenix/386 2.2.2, "make sco386"
  59. # for Sequent Balance 8000 or B8 with DYNIX 3.0.14, "make bsdlck"
  60. # for Sequent Symmetry S81 running DYNIX 3.0.12, "make bsdlck"
  61. # for SUN with SUNOS 4.0 or later, "make sunos4" (uses BSD environment)
  62. # for SUN with SUNOS 4.0 or later, "make sys5r3" (uses AT&T environment)
  63. # for Tandy 16/6000 with Xenix 3.0, "make trs16"
  64. # for Valid Scaldstar, "make valid"
  65. # for Zilog ZEUS 3.21, "make zilog"
  66. #
  67. # The result should be a runnable program called "wermit" in the current 
  68. # directory.  After satisfactory testing, you can rename wermit to "kermit" 
  69. # and put it where users can find it.
  70. #
  71. # To remove intermediate and object files, "make clean".
  72. # To run lint on the source files, "make lint".
  73. #
  74. ##############################################################################
  75. #
  76. # Notes:
  77. #
  78. #  In many cases, the -O (optimize) compiler switch is omitted.  Feel free
  79. #  to add it if you trust your optimizer.  The ckuus2.c module, in particular,
  80. #  tends to make optimizers blow up.
  81. #
  82. #  "make bsd" should produce a working C-Kermit for 4.1, 4.2, and 4.3bsd on
  83. #  VAX, SUN-3, SUN-4, Pyramid, and other 4.x systems, and also VAX/Ultrix.
  84. #
  85. #  Either "make sys3" or "make sys3nid" tends to produce a working version on
  86. #  any ATT System III or System V R2 or earlier system, including Motorola Four
  87. #  Phase, Callan, Unistar, Cadmus, NCR Tower, HP9836 Series 200, Plexus,
  88. #  Heurikon, etc etc (for exceptions, see below; some AT&T 3Bx systems have 
  89. #  their own entry).  As far as C-Kermit goes, there is no functional 
  90. #  difference between ATT System III and System V R2, so there is no need for 
  91. #  a separate "make sys5" entry (but there is one anyway; it merely invokes
  92. #  "make sys3"). But for ATT System V R3, use "make sys5r3".  This is 
  93. #  different from the above because of the redefinition of signal().
  94. #
  95. #  "make sys3nid" is equivalent to "make sys3" but leaves out the -i option,
  96. #  which is used indicate that separate instruction and data (text) spaces are
  97. #  to be used, as on a PDP-11.  Some systems don't support this option, others
  98. #  may require it.  If one of these options doesn't work on your System III
  99. #  or System V system, try the other.
  100. #
  101. #  For Xenix...  What's Xenix?  There are so many different products & versions
  102. #  sold under this name, the name "xenix" is almost meaningless.  IBM, SCO,
  103. #  Microsoft, etc, IBM Xenix 1.0 =(?) Microsoft Xenix 3.0 = ???  Nevertheless,
  104. #  try "make xenix" for IBM or Microsoft, or "make sco286" or "make sco86" for
  105. #  for SCO Xenix.  If these don't work, try the following modifications to
  106. #  this Makefile:
  107. #    Change "CC= cc" to "CC = cc -LARGE"
  108. #    In the "xenix:" make entry, add "-M2m -UM_I86" to the compiler switches
  109. #    (for the IBM PC family), and "-Mm -lx" to the link switches.
  110. #
  111. #  For Unix Version 7, several variables must be defined to the values
  112. #  associated with your system.  BOOTNAME=/edition7 is the kernel image on
  113. #  okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  114. #  is the name of the structure assigned to each process on okstate's system.
  115. #  This may be "_proc" or some other variation.  See <sys/proc.h> for more info
  116. #  on your systems name conventions.  NPROCNAME=nproc is the name of a
  117. #  Kernal variable that tells how many "proc" structures there are.  Again
  118. #  this may be different on your system, but nproc will probably be somewhere.
  119. #  The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  120. #  which can probably be gleaned from <sys/param.h>.
  121. #  The definition of DIRECT is a little more complicated.  If nlist() returns,
  122. #  for "proc" only, the address of the array, then you should define DIRECT
  123. #  as it is below.  If however, nlist() returns the address of a pointer to
  124. #  the array, then you should give DIRECT a null definition (DIRECT= ).  The
  125. #  extern declaration in <sys/proc.h> should clarify this for you.  If it
  126. #  is "extern struct proc *proc", then you should NOT define DIRECT.  If it
  127. #  is "extern struct proc proc[]", then you should probably define DIRECT as
  128. #  it is below.  See ckuv7.hlp for further information.
  129. #
  130. #  For 2.9bsd, the makefile may use pcc rather than cc for compiles;
  131. #  that's what the CC and CC2 definitions are for (the current version
  132. #  of the makefile uses cc for both; this was tested and seems to work on
  133. #  the DEC Pro 380).  2.9 support basically follows the 4.1 path.
  134. #  Some 2.9 systems use "dir.h" for the directory header file, others
  135. #  will need to change this to "ndir.h".
  136. #
  137. #  The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  138. #  C-Kermit for v7 on a PDP-11, you should probably add the -i option to
  139. #  the link flags.  Without I&D space, overlays would probably have to be
  140. #  used (or code mapping a`la Pro/Venix if that's available).
  141. #
  142. #  Other systems require some special treatment:
  143. #
  144. #  For Ridge32 (ROS3.2), use "make sys3", but
  145. #  1. Use "CFLAGS = -DUXIII -i -O" "LNKFLAGS = -i"
  146. #  2. Don't #include <sys/file.h> in cku[tf]io.c.
  147. #
  148. #  For Whitechapel MG-1 Genix 1.3, use "make bsd", but
  149. #  1. In ckufio.c, have zkself() return 0 or call getpid, rather than getppid,
  150. #     or simply do "return(kill(0,9))" rather than "return(kill getppid(),1)".
  151. #  2. Wart reportedly can't process ckcpro.w; just work directly from ckcpro.c.
  152. #
  153. #  For Pixel 1000, use "make bsd", do step 1 for Whitechapel MG-1, above.
  154. #
  155. #  For Altos 986 with Xenix 3.0, use "make sys3", but
  156. #  1. Get rid of any "(void)"'s (they're only there for Lint anyway)
  157. #  2. In ckcdeb.h, define CHAR to be "char" rather than "unsigned char".
  158. #
  159. #  For Tandy 6000 running Sys III based Xenix (Xenix 3.xxx), use "make sys3"
  160. #  but insert "#include <sys/types.h>" in any file that that uses the "void"
  161. #  data type.
  162. #
  163. #  Other systems that are close to, but not quite, like Sys III or V, or
  164. #  4.x BSD or V7 -- look at some of the tricks used below and see if you
  165. #  can find a combination that works for you.
  166. #
  167. ##############################################################################
  168. #
  169. #  V7-specific variables.
  170. #  These are set up for Perkin-Elmer 3230 V7 Unix:
  171. PROC=proc
  172. DIRECT=
  173. NPROC=nproc
  174. NPTYPE=int
  175. BOOTFILE=/edition7
  176. #
  177. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  178. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  179. #
  180. ###########################################################################
  181. #
  182. #  Compile and Link variables:
  183. #
  184. LNKFLAGS=
  185. SHAREDLIB=
  186. CC= cc
  187. CC2= cc
  188. #
  189. ###########################################################################
  190. #
  191. # Dependencies Section:
  192. #
  193. make:
  194.     @echo 'Make what?  You must tell which system to make C-Kermit for.'
  195.  
  196. wermit: ckcmai.o ckucmd.o ckuusr.o ckuus2.o ckuus3.o ckcpro.o ckcfns.o \
  197.          ckcfn2.o ckucon.o ckutio.o ckufio.o ckudia.o ckuscr.o
  198.     $(CC2) $(LNKFLAGS) -o wermit ckcmai.o ckutio.o ckufio.o ckcfns.o \
  199.          ckcfn2.o ckcpro.o ckucmd.o ckuus2.o ckuus3.o ckuusr.o \
  200.          ckucon.o ckudia.o ckuscr.o $(LIBS)
  201.  
  202. ckcmai.o: ckcmai.c ckcker.h ckcdeb.h ckcsym.h
  203.  
  204. ckuusr.o: ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h
  205.  
  206. ckuus2.o: ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h
  207.  
  208. ckuus3.o: ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h
  209.  
  210. ckucmd.o: ckucmd.c ckucmd.h ckcdeb.h
  211.  
  212. ckcpro.o: ckcpro.c ckcker.h ckcdeb.h
  213.  
  214. ckcpro.c: ckcpro.w wart
  215.     ./wart ckcpro.w ckcpro.c
  216.  
  217. ckcfns.o: ckcfns.c ckcker.h ckcdeb.h ckcsym.h
  218.  
  219. ckcfn2.o: ckcfn2.c ckcker.h ckcdeb.h ckcsym.h
  220.  
  221. ckufio.o: ckufio.c ckcker.h ckcdeb.h
  222.  
  223. ckutio.o: ckutio.c ckcdeb.h
  224.  
  225. ckucon.o: ckucon.c ckcker.h ckcdeb.h
  226.  
  227. wart: ckwart.o
  228.     $(CC) $(LNKFLAGS) -o wart ckwart.o
  229.  
  230. ckwart.o: ckwart.c
  231.  
  232. ckudia.o: ckudia.c ckcker.h ckcdeb.h ckucmd.h
  233.  
  234. ckuscr.o: ckuscr.c ckcker.h ckcdeb.h
  235. #
  236. ###########################################################################
  237. #
  238. # Make commands for specific systems:
  239. #
  240. #
  241. #Apple Mac II, A/UX
  242. aux:
  243.     make wermit "CFLAGS = -DAUX -DUXIII -DDEBUG -DTLOG -i -O" \
  244.         "LNKFLAGS = -i"
  245.  
  246. #Berkeley Unix 4.1
  247. bsd41:
  248.     make wermit "CFLAGS= -DBSD4 -DBSD41 -DDEBUG -DTLOG" "LIBS = -ljobs"
  249.  
  250. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.0, maybe 3.0, many others
  251. bsd:
  252.     make wermit "CFLAGS= -DBSD4 -DDEBUG -DTLOG"
  253.  
  254. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..tty??,
  255. #but without acucntrl program
  256. bsdlck:
  257.     make wermit "CFLAGS= -DLCKDIR -DBSD4 -DDEBUG -DTLOG"
  258.  
  259. #Berkeley Unix with HoneyDanBer UUCP
  260. bsdhdb:
  261.     make wermit "CFLAGS= -DHDBUUCP -DBSD4 -DDEBUG -DTLOG"
  262.  
  263. #Berkeley Unix 4.3 with acucntrl program
  264. bsd43:
  265.     make wermit "CFLAGS= -DBSD43 -DNEWUUCP -DBSD4 -DDEBUG -DTLOG -O"
  266.  
  267. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  268. #If you have trouble with this, try removing "-l ndir".  If you still have
  269. #trouble, remove "-DDEBUG -DTLOG".  Or try defining CC and/or CC2 as "pcc"
  270. #instead of "cc".
  271. bsd29:
  272.     make wermit "CFLAGS= -DBSD29 -DDEBUG -DTLOG" \
  273.         "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  274.  
  275. #Berkeley Unix 2.10 (Stan Barber, sob@bcm.tmc.edu)
  276. bsd210:
  277.     make wermit "CFLAGS= -DBSD29 -DDEBUG -DTLOG" -DLCKDIR \
  278.         "LNKFLAGS= -i " "CC= cc " "CC2= cc"
  279.  
  280. #Convex C1 with Berkeley Unix
  281. convex:
  282.     make wermit "CFLAGS= -DBSD4 -Dmsleep=mnap -DDEBUG -DTLOG"
  283.  
  284. #NeXT
  285. next:
  286.     make wermit "CFLAGS= -fwritable-strings -DLCKDIR -DBSD4 -DDEBUG -DTLOG"
  287.  
  288. #SUN OS version 4.0 or later (like Berkeley, but different signal() type)
  289. sunos4:
  290.     make wermit "CFLAGS= -DBSD4 -DSUNOS4 -DDEBUG -DTLOG"
  291.  
  292. #Apollo with SR10.0 or later
  293. sr10-bsd:
  294.     make wermit "CFLAGS= -DBSD4 -DDEBUG -DTLOG -Uaegis"
  295.  
  296. #Version 7 Unix (see comments above)
  297. v7:
  298.     make wermit "CFLAGS=-DV7 -DDEBUG -DTLOG -DPROCNAME=\\\"$(PROC)\\\" \
  299.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  300.     -DNPTYPE=$(NPTYPE) $(DIRECT)"
  301.  
  302. #System V R3, some things changed since Sys V R2...
  303. sys5r3:
  304.     make wermit "CFLAGS = -DSVR3 -DUXIII -DDEBUG -DTLOG -i -O" \
  305.         "LNKFLAGS = -i"
  306.  
  307. #In case they type "make sys5"...
  308. sys5:
  309.     make sys3
  310.  
  311. #Generic ATT System III or System V (with I&D space)
  312. sys3:
  313.     make wermit "CFLAGS = -DUXIII -DDEBUG -DTLOG -i -O" "LNKFLAGS = -i"
  314.  
  315. #Generic ATT System III or System V (no I&D space)
  316. sys3nid:
  317.     make wermit "CFLAGS = -DUXIII -DDEBUG -DTLOG -O" "LNKFLAGS ="
  318.  
  319. #AT&T 6300 PLUS
  320. att6300:
  321.     make wermit "CFLAGS = -DUXIII -DDEBUG -DTLOG -DATT6300 \
  322.         -i -O -Ml" \
  323.         "LNKFLAGS = -i -Ml"
  324.  
  325. #AT&T 7300/Unix PC systems, sys3 but define symbol ATT7300
  326. sys3upc:
  327.     make wermit "CFLAGS = -DUXIII -DATT7300 -DDEBUG -DTLOG -i -O" \
  328.         "LNKFLAGS = -i"
  329.  
  330. #AT&T 3B2, 3B20-series computers running System V
  331. #  Only difference from sys3 is lock file stuff...
  332. att3bx:
  333.     make wermit "CFLAGS = -DUXIII -DATT3BX -DDEBUG -DTLOG -i -O" \
  334.         "LNKFLAGS = -i"
  335.  
  336. #IBM PS/2 with AIX 1.0 (currently in field test as F10A)
  337. #  Reports indicate that -O switch must be omitted.
  338. #  It is also possible that "made bsd" will work (reports welcome).
  339. ps2aix:
  340.     make wermit "CFLAGS = -DUXIII -DDEBUG -DTLOG -i" \
  341.         "LNKFLAGS = -i"
  342.  
  343. #HP 9000 series 300, 500, 800.
  344. hpux:
  345.     make wermit "CFLAGS = -DUXIII -DHPUX -DDEBUG -DTLOG -O" "LNKFLAGS ="
  346.  
  347. #Regulus on CIE Systems 680/20
  348. cie:
  349.     make wermit "CFLAGS = -DUXIII -DCIE -DDEBUG -DTLOG -O" "LNKFLAGS ="
  350.  
  351. #Microport Sys V for IBM PC/AT and clones
  352. mpsysv:
  353.     make wermit "CFLAGS= -O -DXENIX -Dunix -DUXIII -DTLOG -Ml -i" \
  354.         "LNKFLAGS = -Ml -i"
  355.  
  356. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  357. xenix:
  358.     make wermit "CFLAGS= -DXENIX -Dunix -DUXIII -DDEBUG -DTLOG \
  359.     -F 3000 -i" \
  360.         "LNKFLAGS = -F 3000 -i"
  361.  
  362. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  363. sco286:
  364.     make wermit "CFLAGS= -DXENIX  -Dunix -DUXIII -DDEBUG -DTLOG \
  365.     -F 3000 -i -M2le" \
  366.         "LNKFLAGS = -F 3000 -i -M2le"
  367.  
  368. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  369. sco86:
  370.     make wermit "CFLAGS= -DXENIX  -Dunix -DUXIII -DDEBUG -DTLOG \
  371.     -F 3000 -i -M0me" \
  372.         "LNKFLAGS = -F 3000 -i -M0me"
  373.  
  374. #SCO Xenix/386 2.2.2
  375. sco386:
  376.     make wermit "CFLAGS= -DXENIX -Dunix -DUXIII -DDEBUG -DTLOG \
  377.     -Otcl  -i -M3e" \
  378.         "LNKFLAGS = -i"
  379.  
  380. #PC/IX, Interactive Corp System III for IBM PC/XT
  381. pcix:
  382.     make wermit \
  383.     "CFLAGS= -DPCIX -DUXIII -DISIII -DDEBUG -DTLOG -Dsdata=sdatax -O -i" \
  384.         "LNKFLAGS = -i"
  385.  
  386. #Interactive Corp System III port in general --
  387. is3:
  388.     make wermit \
  389.         "CFLAGS = -DISIII -DUXIII -DDEBUG -DTLOG -Ddata=datax -O -i" \
  390.         "LNKFLAGS = -i"
  391.  
  392.  
  393. #Masscomp System III
  394. rtu:
  395.     make wermit "CFLAGS= -UFIONREAD -DUXIII -DDEBUG -DTLOG -O" \
  396.         "LNKFLAGS =" "LIBS= -ljobs"
  397.  
  398. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment:
  399. rtubsd:
  400.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DDEBUG -DTLOG"
  401.  
  402. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  403. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  404. # fiddling to get interrupt targets into resident code section.
  405. provx1:
  406.     make wart "CFLAGS= -DPROVX1" "LNKFLAGS= "
  407.     make wermit "CFLAGS = -DPROVX1 -DDEBUG -DTLOG -md780" \
  408.         "LNKFLAGS= -u _sleep -lc -md780"
  409.  
  410. #NCR Tower 1632, OS 1.02
  411. tower1:
  412.     make wermit "CFLAGS= -DDEBUG -DTLOG -DTOWER1"
  413.  
  414. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  415. ft18:
  416.     make wermit "CFLAGS= -DTLOG -DBSD4 -DFT18"
  417.  
  418. #Valid Scaldstar
  419. #Berkeleyish, but need to change some variable names.
  420. valid:
  421.     make wermit "CFLAGS= -DBSD4 -Dcc=ccx -DFREAD=1"
  422.  
  423. #IBM IX/370 on IBM 370 Series mainframes
  424. #Mostly like sys3, but should buffer packets.
  425. ix370:
  426.     make wermit "CFLAGS = -DIX370 -DUXIII -DDEBUG -DTLOG -i -O" \
  427.     "LNKFLAGS = -i"
  428.  
  429. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  430. #Mostly like V7, but can't do initrawq() buffer peeking.
  431. uts24:
  432.     make wermit "CFLAGS=-DV7 -DDEBUG -DTLOG -DPROCNAME=\\\"$(PROC)\\\" \
  433.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  434.     -DNPTYPE=$(NPTYPE) $(DIRECT)"
  435.  
  436. #BBN C/70 with IOS 2.0
  437. #Mostly Berkeley-like, but with some ATTisms
  438. c70:
  439.     make wermit "CFLAGS= -DBSD4 -DC70 -DDEBUG -DTLOG"
  440.  
  441. #Zilog ZEUS 3.21
  442. zilog:
  443.     make wermit "CFLAGS = -DUXIII -DZILOG -DTLOG -i -O" \
  444.     "LNKFLAGS = -i -lpw"
  445.  
  446. #CDC VX/VE 5.2.1
  447. vxve:
  448.     make wermit "CFLAGS = -DUXIII -DVXVE -i -O" "LNKFLAGS = -i"
  449.  
  450. #IBM PC-RT with AIX
  451. rtaix:
  452.     make wermit "CFLAGS = -DUXIII -DRTAIX -DDEBUG -DTLOG -O -w" \
  453.     "LNKFLAGS = -i"
  454.    
  455. #Tandy 16/6000 with Xenix 3.0
  456. trs16:
  457.     make wermit "CFLAGS= -DTRS16 -DXENIX -Dunix -DUXIII -DDEBUG -DTLOG \
  458.     -DM_VOID -Dvoid=int -F 3000 -n" \
  459.         "LNKFLAGS = -F 3000 -n"
  460.  
  461. #Clean up intermediate and object files
  462. clean:
  463.     -rm -f ckcmai.o ckucmd.o ckuusr.o ckuus2.o ckuus3.o ckcpro.o \
  464.     ckcfns.o ckcfn2.o ckucon.o ckutio.o ckufio.o ckudia.o ckuscr.o \
  465.     ckwart.o ckcpro.c
  466.  
  467. #Run Lint on this mess for the BSD version.
  468. lint:
  469.     -lint -x -DBSD4 -DDEBUG -DTLOG ck[cu]*.[hc] > ck.lint.bsd4
  470.  
  471.