home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume5 / mapmem / Makefile next >
Makefile  |  1989-02-03  |  733b  |  31 lines

  1. ## @(#)$Id: Makefile, V1.1.1.3 88/11/30 16:03:44 $
  2. ##
  3. ## MAPMEM makefile
  4. ## Version  : 1.1.1.3 - 88/11/30 16:03:44
  5. ##
  6.  
  7. ## edit as appropriate...
  8. CFLAGS = -g -O
  9. LDFLAGS =
  10. LIBFLAGS = -lcurses
  11.  
  12. ## Directory in which executable should be placed:
  13. DESTDIR = /usr/local/bin
  14.  
  15. ## Directory in which man page should be placed:
  16. MANDIR = /usr/man/l_man/man8
  17.  
  18. ## MAPMEM must have read access to /dev/kmem.  Therefore, it must be
  19. ## setgid to some group with the appropriate privilege.
  20. GRPID = sys
  21.  
  22. mapmem : mapmem.c
  23.     $(CC) $(LDFLAGS) $(CFLAGS) -o mapmem mapmem.c $(LIBFLAGS)
  24.  
  25. install: mapmem
  26.     cp mapmem $(DESTDIR)/mapmem
  27.     chgrp $(GRPID) $(DESTDIR)/mapmem
  28.     chmod g+s $(DESTDIR)/mapmem
  29.     cp mapmem.8 $(MANDIR)/mapmem.8
  30.     chmod 444 $(MANDIR)/mapmem.8
  31.