home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume20 / compress / part02 / Makefile < prev    next >
Makefile  |  1991-06-26  |  2KB  |  89 lines

  1. #
  2. # Makefile for compress version 4.1
  3. #
  4. CC=cc
  5. #CC=gcc -traditional
  6. #
  7. # set your compile flags.
  8. # set -DVOIDSIG if your signal() function returns a pointer to
  9. # a function returning void.
  10. # set BSD4 if you have a generally BSDish system - SunOS, Ultrix, etc.
  11. # If you're saddled with a system that only allows 14-character
  12. # filenames, set -DSHORTNAMES
  13. # include -DDIRENT if your system wants you to #include <dirent.h>
  14. # instead of <sys/dir.h>
  15. # The README file describes other flags you may need.
  16. #
  17. # CFLAGS for SunOS4.1
  18. CFLAGS=-O -DVOIDSIG -DBSD4 -DDIRENT
  19. # CFLAGS for System V Rel 3.x
  20. #CFLAGS=-O -DSHORTNAMES -DDIRENT
  21. #
  22. # BIN is where the executables (compress, uncompress, zcat, zcmp, zdiff
  23. # and zmore) will be installed.
  24. #
  25. BIN=/usr/local/bin
  26. #
  27. # MAN says where to install the man page
  28. #
  29. MAN=/usr/man/manl
  30. #
  31. # MANSUF is the suffix the installed manual page should have
  32. #
  33. MANSUF=l
  34. #
  35. # LN is how to make links (hard or symbolic) on your system
  36. #
  37. LN=ln -s
  38. #
  39. # LIBS contains any additional libraries you may need to link.
  40. # In particular, you may need -lndir or equiv. to get the
  41. # public domain directory access routines if they aren't in your libc.
  42. #
  43. LIBS=
  44. #
  45. # END OF CONFIGURATION OPTIONS
  46. #
  47.  
  48. SHARSET1=README compress.c
  49. SHARSET2=Changes Acks Makefile usermem  compress.1 zcmp zcmp.1 \
  50.     zdiff zmore zmore.1 patchlevel.h
  51.  
  52. all: compress
  53.  
  54. compress: USERMEM compress.c
  55.     $(CC) $(CFLAGS) -DUSERMEM=`cat USERMEM` -o compress compress.c $(LIBS)
  56.  
  57. # USERMEM may have to be set by hand.  It should contain the amount of
  58. # available user memory in bytes.  See the README file for more info.
  59. USERMEM:
  60.     sh usermem > USERMEM
  61.  
  62. install: compress compress.1
  63.     -mv $(BIN)/compress $(BIN)/compress.old
  64.     cp compress $(BIN)
  65.     rm -f $(BIN)/uncompress $(BIN)/zcat
  66.     $(LN) $(BIN)/compress $(BIN)/uncompress
  67.     $(LN) $(BIN)/compress $(BIN)/zcat
  68.     cp compress.1 $(MAN)/compress.$(MANSUF)
  69.     rm -f $(MAN)/uncompress.$(MANSUF) $(MAN)/zcat.$(MANSUF)
  70.     $(LN) $(MAN)/compress.$(MANSUF) $(MAN)/uncompress.$(MANSUF)
  71.     $(LN) $(MAN)/compress.$(MANSUF) $(MAN)/zcat.$(MANSUF)
  72.     cp zmore zcmp zdiff $(BIN)
  73.     cp zmore.1 $(MAN)/zmore.$(MANSUF)
  74.     cp zcmp.1 $(MAN)/zcmp.$(MANSUF)
  75.     rm -f $(MAN)/zdiff.$(MANSUF)
  76.     $(LN) $(MAN)/zcmp.$(MANSUF) $(MAN)/zdiff.$(MANSUF)
  77.  
  78. clean:
  79.     rm -f compress uncompress zcat core
  80.  
  81. shar:
  82.     shar -o compress41.shar.1 -n01 -e02 $(SHARSET1)
  83.     shar -o compress41.shar.2 -n02 -e02 $(SHARSET2)
  84.  
  85.  
  86.  
  87.  
  88.  
  89.