home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1002 / Makefile next >
Makefile  |  1990-12-28  |  925b  |  40 lines

  1. #
  2. # Makefile to compile ofiles.c  (Open Files)
  3. # Port from BSD ofiles done by Mike -=]Ford[=- Ditto 
  4. # Port from UNIX PC ofiles done by John F. Haugh II (jfh@rpp386.cactus.org)
  5. # Makefile contributed by Lenny Tropiano
  6. #
  7. # NOTE: If you don't want this program installed setuid, so anyone can use it,
  8. #       modify the "make install" dependency with the permission you want to
  9. #    grant.  See the README for more information.
  10. #
  11. # SCO XENIX/386
  12. DEBUG = 
  13. CFLAGS = -Ox $(DEBUG)
  14. LDFLAGS = $(DEBUG)
  15. #
  16. DEST = /usr/local/bin
  17. #
  18. ofiles:  ofiles.o
  19.     $(CC) $(LDFLAGS) -o ofiles ofiles.o $(LIBS) 
  20. #
  21. # You need to be super-user to do this.
  22. #
  23. install: ofiles $(DEST)
  24.     cp ofiles $(DEST)/ofiles
  25.     chown root $(DEST)/ofiles
  26.     chgrp bin  $(DEST)/ofiles
  27.     chmod 4111 $(DEST)/ofiles
  28.  
  29. clean:
  30.     rm -f core a.out ofiles.o
  31.  
  32. clobber: clean
  33.     rm -f ofiles
  34.  
  35. ofiles.shar:    README Makefile ofiles.c
  36.     shar README Makefile ofiles.c > ofiles.shar
  37.  
  38. shar:    ofiles.shar
  39.  
  40.