home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / c-kermit / ckmmak.txt < prev    next >
Text File  |  2020-01-01  |  2KB  |  76 lines

  1. How to build Mac Kermit under MPW C 3.2
  2. =======================================
  3. Use the ckmker.mak file.
  4.  
  5. How to build Mac Kermit under Think C 5.0 (5.0.4 or higher)
  6. ===========================================================
  7. Paul W. Placeway, October 1993 + Joe Bearly, December 1993.
  8.  
  9. ======= Preliminaries =======
  10.  
  11. You must build a version of the "ANSI-small" library with 4-byte ints.  I make
  12. this with full optimization also.  To do this, open your "Think C 5.0 Folder",
  13. and the "C Libraries" folder in that.  Duplicate the "ANSI-small" project,
  14. rename the copy "ANSI-small 4int", then drag it into the "sources" folder
  15. which is inside the "C Libraries" folder.
  16.  
  17. Open this folder and double-click "ANSI-small 4int".  Select Options... from
  18. the Edit menu, and set them to match the settings below.  Select Make...,
  19. click the Check All button, then the Make button.  When this finishes, quit
  20. Think C and drag the project back into the "C Libraries" folder.
  21.  
  22.  
  23. ======= Project Options =======
  24. Language Settings:
  25. ANSI conformance
  26.   X #define __STDC__
  27.   X Check Pointer Types
  28.  
  29. X Language Extensions
  30.   * Think C
  31.  
  32. X strict prototype enforcement
  33.   * Infer Prototypes
  34.  
  35. Compiler Settings:
  36.   X 4-byte ints
  37.   X 8-byte doubles
  38.   X "\p" is unsigned char
  39.   O Native floating point format
  40.  
  41. Code optimization:
  42. (everything on except "Honor 'register' first")
  43.  
  44. Debugging:
  45. (whatever.  I usually use short-format MacsBug names.)
  46.  
  47. Prefix:
  48. #include <MacHeaders>
  49. #define MAC
  50. #define TLOG
  51. #define DEBUG
  52. #define IFDEBUG
  53. #define DYNAMIC
  54. #define NOCMDL
  55. #define NOCCTRAP
  56. #define NOHELP
  57. #define NOCYRIL
  58. #define NOLATIN2
  59. #define NOHEBREW
  60. #define CK_ANSIC
  61.  
  62. Use "sarez" which is found inside folder "Rez Utilities" inside folder
  63. "Think C 5.0 Utilities", to compile the 4 .r files in the source
  64. distribution.  Name the output file of this to be the same as the Kermit
  65. project file, plus the extension .rsrc
  66.  
  67. To build Kermit itsself, use the same settings as above for the Kermit
  68. project file, and do the segmentation as specified below:
  69.  
  70. ======= Project segmentation =========
  71. "ANSI-small 4int" in it's own segment
  72. ckcmai.c with ckcnet.c
  73. ckmpri.c with PrGlue
  74. ckmtio.c with MacTraps
  75.  
  76.