home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / c-kermit / ckiker.mak < prev    next >
Makefile  |  2020-01-01  |  3KB  |  91 lines

  1. # CKIKER.MAK, Version 7.0, Wed Jan  6 13:32:23 1999
  2. #
  3. # This is a makefile for C Kermit using Amiga Aztec C V5.n.  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. # There is a bit of code now in which is specific to Version 2.0
  20. # of the AmigaOS, (Kickstart version 37.nnn), and more will undoubtedly
  21. # be added.  To use this code, add "-DV37=1" to the CFLAGS line.
  22. # Doing this WILL result in a version of Kermit which will CRASH YOUR
  23. # SYSTEM if run under 1.3 or earlier.
  24.  
  25. CC = cc
  26.  
  27. OPTS = -DAMIGA -DDYNAMIC -DCK_ANSILIBS -DCK_ANSIC -DNODIAL -DMYCURSES
  28.  
  29. CFLAGS = $(OPTS) -wo -so
  30.  
  31. LFLAGS = -t
  32.  
  33. #
  34. #  All the object files needed to compile C Kermit.
  35. #
  36.  
  37. OBJS = ckcmai.o ckclib.o ckucmd.o ckuusr.o ckuus2.o ckuus3.o ckuus4.o \
  38.                  ckuus5.o ckuus6.o ckuus7.o ckuusx.o ckuusy.o \
  39.          ckcpro.o ckcfns.o ckcfn2.o ckcfn3.o ckuxla.o ckicon.o \
  40.          ckitio.o ckifio.o ckistu.o ckiutl.o
  41.  
  42. #
  43. # The corresponding sources, used mainly to run lint.
  44. #
  45.  
  46. SRCS = ckcmai.c ckclib.c ckucmd.c ckuusr.c ckuus2.c ckuus3.c ckuus4.c \
  47.          ckuus5.c ckuus6.c ckuus7.c ckuusx.c ckuusy.c \
  48.          ckcpro.c ckcfns.c ckcfn2.c ckcfn3.c ckuxla.c ckicon.c \
  49.          ckitio.c ckifio.c ckistu.c ckiutl.c
  50.  
  51. #
  52. # These are prototype files.  You can generate them by saying "make ckipro.h"
  53. #
  54.  
  55. PROS = ckcmai.pro ckclib.pro ckiutl.pro \
  56.                  ckucmd.pro ckuusr.pro ckuus2.pro ckuus3.pro ckuus4.pro  \
  57.          ckuus5.pro ckcpro.pro ckcfns.pro ckcfn2.pro ckcfn3.pro  \
  58.          ckuxla.pro ckicon.pro ckitio.pro ckifio.pro ckistu.pro
  59.  
  60. #
  61. # Aztec C rule for generating a prototype file from a C source file.
  62. #
  63.  
  64. .c.pro:
  65.     cc $(CFLAGS) -qp $*.c
  66.  
  67.  
  68. kermit:    $(OBJS)
  69.     ln $(LFLAGS) -o kermit $(OBJS) -lm -lc
  70.  
  71. ckcpro.o: ckcpro.w wart
  72.     wart ckcpro.w ckcpro.c
  73.     cc $(CFLAGS) -o ckcpro.o ckcpro.c
  74.  
  75. wart: ckwart.o
  76.     ln -o wart ckwart.o -lc
  77.  
  78. lint: $(SRCS)
  79.     lint $(OPTS) $(SRCS)
  80.  
  81. ckipro.h: $(PROS)
  82.     join $(PROS) as ckipro.h
  83.  
  84.  
  85. TAGS: $(SRCS)
  86.     -delete TAGS
  87.     ctags $(SRCS)
  88.  
  89. clean:
  90.     -delete $(OBJS) kermit wermit wart
  91.