home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / sgopher0.3 / Makefile < prev    next >
Encoding:
Makefile  |  1993-05-10  |  709 b   |  37 lines

  1. # if using GNU C change to CC=gcc
  2. CC=cc
  3. # Makefile for sgopher
  4. VERSION=0.3
  5.  
  6. # You may need to change the following
  7. # INSTDIR is the directory for installation
  8. # USERLIBS are extra libraries needed
  9. #    (for solaris2.x -lsocket -lucb -lelf -lnsl)
  10. INSTDIR=/usr/local/bin
  11. #USERLIBS=-lsocket -lucb -lelf -lnsl
  12. USERLIBS=
  13.  
  14. DISTRIB=README CHANGES THANKS INSTALL Makefile sgopher.c shar.c make.com \
  15.     woll.opt conf.h
  16.  
  17. sgopher: sgopher.c conf.h
  18.     $(CC) -o sgopher sgopher.c $(USERLIBS)
  19.     strip sgopher
  20.  
  21. shar: shar.c
  22.     $(CC) -o shar shar.c
  23.  
  24. sh: shar
  25.     shar $(DISTRIB) > sgopher$(VERSION).sh
  26.  
  27. install:
  28.     cp sgopher $(INSTDIR)
  29.  
  30. clean:
  31.     rm sgopher
  32.  
  33. dist:
  34.     tar cvf sgopher$(VERSION).tar $(DISTRIB)
  35.     compress sgopher$(VERSION).tar
  36.  
  37.