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

  1. #################################################################
  2. #    Makefile for tr(1v) character translation 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 = tr.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 = tr.ttp
  28. BINDIR = e:/bin
  29.  
  30. #
  31. #    Production rules
  32. #
  33. $(PROG): $(OBJ)
  34.     $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBES)
  35.  
  36. tr.zoo: $(PROG) Makefile README $(PROG)
  37.     rm -f $@
  38.     zoo a $@ README tr.c Makefile $(PROG)
  39.  
  40. tr.uue: tr.zoo
  41.     rm -f $@
  42.     uue tr.zoo
  43.  
  44. install: $(PROG)
  45.     cp $(PROG) $(BINDIR)
  46.  
  47. clean:
  48.     rm -f $(OBJ) core
  49.  
  50. clobber: clean
  51.     rm -f $(PROG) tr.zoo tr.uue
  52.