home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / old / ckermit5a190 / ckisas.mak < prev    next >
Makefile  |  2020-01-01  |  3KB  |  119 lines

  1. # CKIKER.MAK, Version 5A(189), Fri Aug  6 17:00:58 1993
  2. #
  3. # This is a makefile for C Kermit using SAS C.  The lint
  4. # line is for Gimpel FlexeLint, a commercial product.
  5. #
  6. # -wo here makes pointer-int conversions a warning instead of an error,
  7. # and is needed if you use prototypes for the Kermit functions.  In
  8. # particular, the last argument of debug() is specified as an int, but
  9. # actual calls often put a pointer there.  (Is there an ANSI-approved
  10. # way to find the numerical equivalent of a pointer value?)
  11. #
  12. # The optimization is set to so, which turns on full optimization.
  13. # As of 5A(157), the data had finally become too big for the small
  14. # data model, so we are forced to large, but only if DYNAMIC is
  15. # not defined.  The DYNAMIC #define causes C Kermit's send and
  16. # receive values to be allocated at run time, and is recommended.
  17. # If DYNAMIC is used, small model can also be used.
  18.  
  19. CC = sc
  20. .c.o:
  21.     $(CC) $(CFLAGS) $<
  22.  
  23. # If NOHELP is not defined, you probably need DATA=F, because the amount
  24. # of string data in ckuus2.c gets too much for STRINGMERGE.
  25. # Do NOT define PARSENSE, as the required code is too ugly to copy
  26. # from ckutio.c to ckitio.c
  27.  
  28. CONFIG = DEF=NODEBUG DEF=NOHELP DEF=NOHEBREW DEF=NOCYRIL STRMER
  29.  
  30. # The following options are NOT meant to be changed!
  31.  
  32. OPTS = $(CONFIG) DEF=AMIGA DEF=DYNAMIC DEF=CK_ANSILIBS DEF=CK_ANSIC \
  33.        DEF=NODIAL DEF=MYCURSES DEF=SIG_V
  34.  
  35. CFLAGS = $(OPTS) DEBUG=L # OPT OPTTIME
  36.  
  37. LFLAGS =
  38.  
  39. #
  40. #  All the object files needed to compile C Kermit.
  41. #
  42.  
  43. OBJS = ckcmai.o ckucmd.o ckuusr.o ckuus2.o ckuus3.o ckuus4.o ckuus5.o \
  44.          ckuus6.o ckuus7.o ckuusx.o ckuusy.o \
  45.          ckcpro.o ckcfns.o ckcfn2.o ckcfn3.o ckuxla.o ckicon.o \
  46.          ckitio.o ckifio.o ckistu.o ckiutl.o \
  47.          ckcmdb.o
  48.  
  49. #
  50. # The corresponding sources, used mainly to run lint.
  51. #
  52.  
  53. SRCS = ckcmai.c ckucmd.c ckuusr.c ckuus2.c ckuus3.c ckuus4.c ckuus5.c \
  54.          ckuus6.c ckuus7.c ckuusx.c ckuusy.c \
  55.          ckcpro.c ckcfns.c ckcfn2.c ckcfn3.c ckuxla.c ckicon.c \
  56.          ckitio.c ckifio.c ckistu.c ckiutl.c
  57.  
  58. #
  59. # These are prototype files.  You can generate them by saying "make ckipro.h"
  60. #
  61.  
  62. PROS = ckcmai.pro ckucmd.pro ckuusr.pro ckuus2.pro ckuus3.pro ckuus4.pro ckuus5.pro \
  63.          ckuus6.pro ckuus7.pro ckuusx.pro ckuusy.pro \
  64.          ckcpro.pro ckcfns.pro ckcfn2.pro ckcfn3.pro ckuxla.pro ckicon.pro \
  65.          ckitio.pro ckifio.pro ckistu.pro ckiutl.pro
  66.  
  67.  
  68. #
  69. # SAS C rule for generating a prototype file from a C source file.
  70. #
  71.  
  72. .c.pro:
  73.     sc $(CFLAGS) GENPROTO $*.c GPFILE $*.pro
  74.  
  75.  
  76. kermit:    $(OBJS)
  77.     sc link $(LFLAGS) to kermit $(OBJS) MATH=S MAP
  78.  
  79. ckcpro.o: ckcpro.w wart
  80.     wart ckcpro.w ckcpro.c
  81.     sc $(CFLAGS) to ckcpro.o ckcpro.c
  82.  
  83. wart: ckwart.c
  84.     sc ckwart.c
  85.  
  86. lint: $(SRCS)
  87.     lint $(OPTS) $(SRCS)
  88.  
  89. ckipro.h: $(PROS)
  90.     join $(PROS) as ckipro.h
  91.  
  92.  
  93. TAGS: $(SRCS)
  94.     -delete TAGS
  95.     ctags $(SRCS)
  96.  
  97. clean:
  98.     -delete $(OBJS) kermit wermit wart
  99.  
  100. #
  101. # Special rules for the Amiga-specific files
  102. #
  103. ckifio.o:    ckifio.c
  104.     $(CC) $(CFLAGS) ckifio.c
  105.  
  106. ckitio.o:    ckitio.c
  107.     $(CC) $(CFLAGS) DEF=_STRICT_ANSI ckitio.c
  108.  
  109. ckiutl.o:    ckiutl.c
  110.     $(CC) $(CFLAGS) ckiutl.c
  111.  
  112. ckicon.o:    ckicon.c
  113.     $(CC) $(CFLAGS) ckicon.c
  114.  
  115. # Special rules for some other files, uncomment as needed
  116.  
  117. #ckuus2.o:     ckuus2.c
  118. #     $(CC) $(CFLAGS) DATA=F NOSTRMER ckuus2.c
  119.