home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d9xx / d995 / xprkermit.lha / XprKermit / source.lha / ckxker.mak < prev    next >
Makefile  |  1994-02-13  |  2KB  |  92 lines

  1. # CKXKER.MAK, Version 5A(189), Tue Feb 12 23:30:00 1994
  2. #
  3. # This is a makefile for XPR C Kermit using Amiga Aztec C V5.n.  The lint
  4. # line is for Gimpel FlexeLint, a commercial product.
  5. #
  6. # Some general notes for anyone attempting a build from source.  First,
  7. # the required files are not all in this archive.  Any file whose name
  8. # begins with "ck[cuw]" comes from the Kermit archive at Columbia
  9. # University, reachable most easily by anonymous FTP to
  10. # ftp.cc.columbia.edu.  Second, I have a precompiled version of the
  11. # Manx "functions.h" file called "functions.pre", which gets included
  12. # by this Makefile.
  13. #
  14. # -wo in CFLAGS makes pointer-int conversions a warning instead of an error,
  15. # and is needed if you use prototypes for the Kermit functions.  In
  16. # particular, the last argument of debug() is specified as an int, but
  17. # actual calls often put a pointer there.
  18. # The optimization is set to so, which turns on full optimization.
  19.  
  20. # The DYNAMIC #define causes C Kermit's send and
  21. # receive buffers to be allocated at run time, and is recommended.
  22. # If DYNAMIC is used, small model can also be used.
  23. #
  24.  
  25. CC = cc
  26.  
  27. LFLAGS = -t
  28.  
  29. # For the first XPR release, turn off nearly everything
  30.  
  31. OPTS = -DAMIGA -DDYNAMIC -DCK_ANSILIBS -DCK_ANSIC -DNODIAL -DNODEBUG \
  32.    -DNOTLOG -DNOHELP -DNOXMT -DNOSCRIPT -DNOCMDL -DNOSPL -DNOICP \
  33.    -DNOCSETS -DNOSERVER -DNOMSEND
  34.  
  35. OTHER = -wo -so
  36.  
  37. CFLAGS = $(OPTS) $(OTHER) -hi ckcdeb.pre
  38.  
  39. LFLAGS =
  40.  
  41. #
  42. #  All the object files needed to compile C Kermit.
  43. #
  44.  
  45. OBJS = libstart.o libsup.o ckxmai.o \
  46.          ckcpro.o ckcfns.o ckcfn2.o ckcfn3.o \
  47.          ckxtio.o ckxfio.o ckxtim.o
  48.  
  49. #
  50. # The corresponding sources, used mainly to run lint.
  51. #
  52.  
  53. SRCS = ckxmai.c \
  54.          ckcpro.c ckcfns.c ckcfn2.c ckcfn3.c ckuusx.c \
  55.          ckxtio.c ckxfio.c ckxtim.c
  56.  
  57. xprkermit.library:    $(OBJS)
  58.     ln $(LFLAGS) -o xprkermit.library $(OBJS) -lm -lc
  59.  
  60. ckcpro.o: ckcpro.w wart
  61.     wart ckcpro.w ckcpro.c
  62.     cc $(CFLAGS) -o ckcpro.o ckcpro.c
  63.  
  64. wart: ckwart.o
  65.     ln -o wart ckwart.o -lc
  66.  
  67. lint: $(SRCS)
  68.     lint $(OPTS) $(SRCS)
  69.  
  70. $(OBJS): ckcdeb.pre
  71.  
  72. #
  73. # Special rules for the Amiga-specific files
  74. #
  75.  
  76. libsup.o:    libsup.c version.h
  77.     cc $(OPTS) $(OTHER) -hi functions.pre libsup.c
  78.  
  79. ckcdeb.pre:    ckcdeb.h
  80.     cc $(OPTS) -ho ckcdeb.pre ckcdeb.h
  81.  
  82. #
  83. # Create the distribution archive
  84. #
  85.  
  86. xprkermit.lzh:
  87.     lha -x -a -m a xprkermit ckxker.doc ckxmai.c ckxfio.c ckxtio.c \
  88.     ckxtim.c ckxker.h ckxker.mak libsup.c libstart.asm version.h \
  89.     xprkermit.library
  90.     
  91.