home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / shark.lzh / makefile.isc < prev    next >
Makefile  |  1990-11-12  |  2KB  |  65 lines

  1. # @(#)DjGloistein 89/08/20 to compile compress on ISC 386/ix
  2. # @(#)JPRadley 88/12/17 did the original, thanks for help
  3. # if you run csh, you'll need the next line; won't hurt in any case.
  4. # if you want the "real" unix compress with adaptive reset
  5. #    define it with the cflags. It only works on compress, so
  6. #    you still are able to uncompress files regardless of setting.
  7.  
  8. SHELL=/bin/sh
  9.  
  10. CFLAGS=-DISC386 -DNDEBUG -O
  11. BIN=/usr/bin
  12. OBJ=compress.o compusi.o compapi.o
  13. HFILES=compress.h compress.fns
  14.  
  15. compress: $(OBJ)
  16.      $(CC) -o compress $(CFLAGS) $(OBJ)
  17.  
  18. atob: atob.o
  19.     $(CC) -o atob $(CFLAGS) atob.o
  20.  
  21. btoa: btoa.o
  22.     $(CC) -o btoa $(CFLAGS) btoa.o
  23.  
  24. install: compress btoa atob
  25.      strip compress
  26.      strip btoa
  27.      strip atob
  28.      chmod 755 compress btoa atob compressdir\
  29.                      uncompressdir tarmail untarmail
  30.      chgrp bin compress btoa atob compressdir\
  31.                      uncompressdir tarmail untarmail
  32.      chown bin compress btoa atob compressdir\
  33.                      uncompressdir tarmail untarmail
  34.      copy -mo  compress btoa atob compressdir\
  35.                      uncompressdir tarmail untarmail $(BIN)
  36.      ln $(BIN)/compress $(BIN)/uncompress
  37.      ln $(BIN)/compress $(BIN)/zcat
  38.  
  39. uninstall:
  40.     rm $(BIN)/compress $(BIN)/uncompress $(BIN)/zcat \
  41.         $(BIN)/atob $(BIN)/btoa $(BIN)/compressdir \
  42.         $(BIN)/uncompressdir $(BIN)/tarmail $(BIN)/untarmail
  43.  
  44. help:
  45.     @echo "must be installed by system administrator"
  46. #    helpadmin
  47.  
  48. clean:
  49.      rm -f *.o compress atob btoa
  50.  
  51. #needs updating for my system
  52. shar:     clean
  53.     shar compress.fns compress.h compress.c compapi.c compusi.dos compusi.uni >cmpsrc.sh
  54.     shar makefile.* ?to?.* *.lnk compressdir* uncompressdir* tarmail* untarmail* zcmp* zdiff* zmore* > cmpmak.sh
  55.     shar compress.man compress.1 READ* rev.hst >cmpdoc.sh
  56.     zoo -freshen /u/bbs/arcers/comp16 *.sh
  57.  
  58. dodiff:
  59.     diffc ../compold/cmpsrc.sh cmpsrc.sh > compress.dif
  60.     diffc ../compold/cmpmak.sh cmpmak.sh >> compress.dif
  61.     diffc ../compold/cmpdoc.sh cmpdoc.sh >> compress.dif
  62.     compress compress.dif    
  63.  
  64. $(OBJ): $(HFILES)
  65.