home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / macutils.lzh / MACUTILS / makefile.unix < prev    next >
Makefile  |  1995-09-18  |  2KB  |  79 lines

  1. SHELL =    /bin/sh
  2. BINDIR =    /ufs/dik/tmpbin
  3. # Use the following flags on the CF macro definition as needed.
  4. #
  5. # -DBSD if you are on a BSD system
  6. #
  7. # -DTYPES_H if your system has /usr/include/sys/types.h
  8. #
  9. # -DDIRENT_H if your system has /usr/include/dirent.h
  10. #
  11. # -DTERMIOS_H if your system has /usr/include/sys/termios.h
  12. #
  13. # -DNODOT if you do not want to create files with an initial period
  14. #
  15. # -DLATIN1 if your system supports LATIN-1 and you want to use it
  16. #
  17. # Note you can use at most one of the following four!
  18. #
  19. # -DNOMKDIR if your system does not have the mkdir system call
  20. #
  21. # -DAUFS if you want to use an AUFS file system
  22. #
  23. # -DAUFSPLUS if you use CAP 6.0 and want to use times on files
  24. #
  25. # -DAPPLEDOUBLE if you want to be able to use an AppleDouble file system
  26. #
  27. CF =    -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DNODOT -DAPPLEDOUBLE
  28.  
  29. all:
  30.     (cd crc; make CF='$(CF)')
  31.     (cd util; make CF='$(CF)')
  32.     (cd fileio; make CF='$(CF)')
  33.     (cd macunpack; make CF='$(CF)')
  34.     (cd hexbin; make CF='$(CF)')
  35.     (cd mixed; make CF='$(CF)')
  36.     (cd binhex; make CF='$(CF)')
  37.     (cd comm; make CF='$(CF)')
  38.  
  39. clean:
  40.     (cd crc; make clean)
  41.     (cd util; make clean)
  42.     (cd fileio; make clean)
  43.     (cd macunpack; make clean)
  44.     (cd hexbin; make clean)
  45.     (cd mixed; make clean)
  46.     (cd binhex; make clean)
  47.     (cd comm; make clean)
  48.  
  49. clobber:
  50.     (cd crc; make clean)
  51.     (cd util; make clean)
  52.     (cd fileio; make clean)
  53.     (cd macunpack; make clobber)
  54.     (cd hexbin; make clobber)
  55.     (cd mixed; make clobber)
  56.     (cd binhex; make clobber)
  57.     (cd comm; make clobber)
  58.  
  59. lint:
  60.     (cd macunpack; make CF='$(CF)' lint)
  61.     (cd hexbin; make CF='$(CF)' lint)
  62.     (cd mixed; make CF='$(CF)' lint)
  63.     (cd binhex; make CF='$(CF)' lint)
  64.     (cd comm; make CF='$(CF)' lint)
  65.  
  66. install:
  67.     cp macunpack/macunpack $(BINDIR)/.
  68.     cp hexbin/hexbin $(BINDIR)/.
  69.     cp mixed/macsave $(BINDIR)/.
  70.     cp mixed/macstream $(BINDIR)/.
  71.     cp binhex/binhex $(BINDIR)/.
  72.     cp comm/tomac $(BINDIR)/.
  73.     cp comm/frommac $(BINDIR)/.
  74.  
  75. distr:
  76.     shar -a README makefile crc util fileio macunpack hexbin mixed binhex  \
  77.         comm doc man >macutil.shar
  78.  
  79.