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

  1. # CKIKER.SMK, Version 7A
  2. #
  3. # This is a makefile for C Kermit using SAS/C for AmigaDOS  V6.xx.
  4. # The lint line is for Gimpel Lint, a commercial product.
  5.  
  6. # Kermit is now big enough that both DATA=F and CODE=F are required.
  7. #
  8. # Do NOT define PARSENSE, as the required code is too ugly to copy
  9. # from ckutio.c to ckitio.c
  10.  
  11. CONFIG = DEF=NODEBUG DEF=NOHEBREW DEF=NOCYRIL STRMER \
  12.     STRSECT=FAR DEF=NOOLDMODEMS DATA=FAR CODE=FAR OPT MATH=STANDARD
  13.  
  14. # The following options are NOT meant to be changed!
  15.  
  16. OPTS = $(CONFIG) DEF=AMIGA DEF=DYNAMIC DEF=CK_ANSILIBS DEF=CK_ANSIC \
  17.        DEF=MYCURSES DEF=SIG_V DEF=_NUMSIG=_NSIG \
  18.        DEF=CK_TTGWSIZ DEF=CK_TMPDIR DEF=TMPDIRLEN=256 \
  19.        DEF=USE_MEMCPY
  20.  
  21. CFLAGS = $(OPTS) # OPT OPTTIME
  22.  
  23. # Since Gimpel Lint uses Unix style define command line options, we
  24. # need the below.  Make sure it stays in sync with the CONFIG and OPTS
  25. # lines above!
  26.  
  27. LINTFLAGS =  -DAMIGA -DDYNAMIC -DCK_ANSILIBS -DCK_ANSIC \
  28.     -DMYCURSES -D_NUMSIG=_NSIG -DSIG_V -DCK_TTGWSIZ \
  29.     -DCK_TMPDIR -DTMPDIRLEN=256 -DUSE_MEMCPY
  30.  
  31. #
  32. # Note the ckuxla.c in the lists belw.  I have not yet written an
  33. # Amiga-specific version of ckuxla.c.  Also, copy ckuxla.h onto a
  34. # new file, ckixla.h.
  35. #
  36.  
  37. #
  38. #  All the object files needed to compile C Kermit.
  39. #
  40.  
  41. OBJS = ckcmai.o ckucmd.o ckuusr.o ckuus2.o ckuus3.o ckuus4.o ckuus5.o \
  42.                  ckuus6.o ckuus7.o ckuusx.o ckuusy.o ckudia.o ckuscr.o \
  43.          ckcpro.o ckcfns.o ckcfn2.o ckcfn3.o ckclib.o ckctel.o \
  44.          ckcnet.o ckuxla.o ckicon.o \
  45.          ckitio.o ckifio.o ckiutl.o \
  46.          ckusig.o
  47.  
  48. #
  49. # The corresponding sources, used mainly to run lint.
  50. #
  51.  
  52. SRCS = ckcmai.c ckucmd.c ckuusr.c ckuus2.c ckuus3.c ckuus4.c ckuus5.c \
  53.                  ckuus6.c ckuus7.c ckuusx.c ckuusy.c ckudia.c ckuscr.c \
  54.          ckcpro.c ckcfns.c ckcfn2.c ckcfn3.c ckclib.c ckctel.c \
  55.          ckcnet.c ckuxla.c ckicon.c \
  56.          ckitio.c ckifio.c ckiutl.c \
  57.          ckusig.c
  58.  
  59. .c.o:
  60.     sc $(CFLAGS) NOLINK $<
  61.  
  62. kermit:    $(OBJS)
  63.     sc $(CFLAGS) $(OBJS) LINK programname=kermit
  64.  
  65. ckcpro.c: ckcpro.w wart
  66.     wart ckcpro.w ckcpro.c
  67.  
  68. ckcpro.o: ckcpro.c
  69.  
  70. wart: ckwart.o
  71.     sc ckwart.o link programname=wart
  72.  
  73. clean:
  74.     -delete $(OBJS) kermit wermit wart
  75.  
  76. lint: $(SRCS)
  77.     lint $(LINTFLAGS) $(SRCS)
  78.