home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume3 / xenix-fuser / Makefile < prev    next >
Encoding:
Makefile  |  1989-02-03  |  917 b   |  42 lines

  1. SHELL=/bin/sh
  2. LBIN=/usr/local/bin
  3. INSTALL=cp
  4.  
  5. # Set this to version of .c file you want.  fuser.c.sco is for SCO Xenix
  6. # for a 386.  fuser.c.u-pc is for Unix System V on an Unix PC.
  7. FUSER=fuser.c.sco
  8. # FUSER=fuser.c.u-pc
  9.  
  10. # Set this to group which owns /dev/swap, /dev/mem and /dev/kmem.  Those
  11. # files MUST be readable by that group.  Otherwise, the program must be
  12. # SUID root to be used by anyone other than root, or other special
  13. # arrangements must be made, all of which could compromise the system.
  14. # ADMIN=root
  15. ADMIN=sysinfo
  16.  
  17. # Debugging flags
  18. # CFLAGS=-DDEBUG -g
  19. # LDFLAGS=-g
  20.  
  21. # Production flags
  22. CFLAGS=-O
  23. LDFLAGS=-s
  24.  
  25. fuser: fuser.o
  26.     $(CC) $(LDFLAGS) -o fuser fuser.o
  27.  
  28. install: fuser
  29.     $(INSTALL) fuser $(LBIN)
  30.     chown root $(LBIN)/fuser
  31.     chgrp $(ADMIN) $(LBIN)/fuser
  32.     chmod 2711 $(LBIN)/fuser
  33.  
  34. clean:
  35.     -rm -f *.o core
  36.  
  37. clobber: clean
  38.     -rm -f fuser.c fuser $(LBIN)/fuser
  39.  
  40. fuser.c: $(FUSER)
  41.     cp $(FUSER) fuser.c
  42.