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

  1. # MAKEFILE FOR XENIX systems on 80x86 machines
  2. #    @(#) 2.0 JPRadley 26 May 90
  3. # other platforms will have to modify CFLAGS.
  4. # add -DALLOC if your system uses alloc() instead of malloc()
  5. # add -DNOSIGNAL for faster processing on a unix pc
  6. # add -DMAXSEG_64K if your compiler does NOT predefine M_I286 and you need
  7. #                to allow for segmented addressing
  8. SHELL=/bin/sh
  9.  
  10. #for 286 machines
  11. #CFLAGS=-c -DXENIX -DNDEBUG -Ml2e
  12. #OFLAGS=-Ml
  13.  
  14. #for 386 machines
  15. CFLAGS=-O -DXENIX -DNDEBUG
  16. OFLAGS=-s
  17.  
  18. LIB=
  19. OBJ=compress.o compusi.o compapi.o
  20. HFILES=compress.h compress.fns
  21.  
  22. # where things go
  23. BINDIR=/pub/bin
  24. SEC=L
  25. MANDIR=/usr/man/man.$(SEC)
  26. MAN=compress.$(SEC) zcmp.$(SEC) btoa.$(SEC) compressdir.$(SEC) zmore.$(SEC)
  27.  
  28. all:    compress btoa atob
  29.  
  30. install: all
  31.     chmod 755 compress btoa atob compressdir uncompressdir tarmail untarmail
  32.     chgrp bin compress btoa atob compressdir uncompressdir tarmail untarmail
  33.     chown bin compress btoa atob compressdir uncompressdir tarmail untarmail
  34.     copy -mo  compress btoa atob compressdir \
  35.         uncompressdir tarmail untarmail $(BINDIR)
  36.     -ln $(BINDIR)/compress $(BINDIR)/uncompress
  37.     -ln $(BINDIR)/compress $(BINDIR)/zcat
  38.  
  39. uninstall:
  40.     cd $(BINDIR)
  41.     -rm compress uncompress zcat atob btoa compressdir \
  42.         uncompressdir tarmail untarmail
  43.  
  44. man: $(MAN)
  45.     
  46. clean:
  47.      rm -f *.o compress atob btoa
  48.  
  49. shark:
  50.     shark README3.0 README4.0 README4.3 compress.h \
  51.         >Comp4.3d.SHK1
  52.     shark compapi.c compress.man compress.fns compressdir compressdir.1 \
  53.         compress.1 compusi.dos uncompressdir untarmail zcmp.1 os2.lnk \
  54.         atob.c btoa.1 btoa.c >Comp4.3d.SHK2
  55.     shark compress.c compusi.uni rev.hst dos.lnk makefile.isc \
  56.         makefile.mnx makefile.mrw makefile.msc makefile.os2 \
  57.         makefile.tan makefile.tc makefile.uni makefile.xen tarmail \
  58.         zcmp zdiff zmore zmore.1 >Comp4.3d.SHK3
  59.     l *SHK*
  60.  
  61. compress: $(OBJ)
  62.     cc -o compress $(CFLAGS) $(OFLAGS) $(OBJ) $(LIB)
  63.  
  64. atob: atob.c
  65.     $(CC) -o atob $(CFLAGS) $(OFLAGS) atob.c $(LIB)
  66.  
  67. btoa: btoa.c
  68.     $(CC) -o btoa $(CFLAGS) $(OFLAGS) btoa.c $(LIB)
  69.  
  70.     
  71. $(OBJ):    $(HFILES)
  72.  
  73. .1.$(SEC):
  74.     cp $*.1 $(MANDIR)/$*.$(SEC)
  75.  
  76. .SUFFIXES: .1 .$(SEC)
  77.