home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / utility / wc.zoo / Makefile next >
Makefile  |  1991-03-07  |  925b  |  51 lines

  1. #################################################################
  2. #    Makefile for wc(1v) word count filter
  3. #################################################################
  4.  
  5. #    Flags for DEF
  6. #    -DBUFFER_SIZE=n        i/o buffer memory (default 50000)
  7. #    -DCHARSET_SIZE=n    character set size (default 256)
  8. #    -DSKIP_CR        try to handle CRLF
  9. DEF =
  10. OPT = -O -fcombine-regs -fstrength-reduce -fomit-frame-pointer
  11.  
  12. #
  13. #    Options for compiler and linker
  14. #
  15. CFLAGS = $(OPT) $(DEF)
  16. LDFLAGS = -s
  17. OBJ = wc.o
  18.  
  19. #
  20. #    Extra libraries to link with.
  21. #
  22. LIBES = -liio
  23.  
  24. #
  25. #    Target program name and directory for binary.
  26. #
  27. PROG = wc.ttp
  28. BINDIR = e:/bin
  29.  
  30. #
  31. #    Production rules
  32. #
  33. $(PROG): $(OBJ)
  34.     $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBES)
  35.  
  36. wc.zoo: $(PROG) Makefile README $(PROG)
  37.     rm -f $@
  38.     zoo a $@ README wc.c Makefile $(PROG)
  39.  
  40. wc.uue: wc.zoo
  41.     uue wc.zoo
  42.  
  43. install: $(PROG)
  44.     cp $(PROG) $(BINDIR)
  45.  
  46. clean:
  47.     rm -f $(OBJ) core
  48.  
  49. clobber: clean
  50.     rm -f $(PROG) wc.zoo wc.uue
  51.