home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-02-03 | 917 b | 42 lines |
- SHELL=/bin/sh
- LBIN=/usr/local/bin
- INSTALL=cp
-
- # Set this to version of .c file you want. fuser.c.sco is for SCO Xenix
- # for a 386. fuser.c.u-pc is for Unix System V on an Unix PC.
- FUSER=fuser.c.sco
- # FUSER=fuser.c.u-pc
-
- # Set this to group which owns /dev/swap, /dev/mem and /dev/kmem. Those
- # files MUST be readable by that group. Otherwise, the program must be
- # SUID root to be used by anyone other than root, or other special
- # arrangements must be made, all of which could compromise the system.
- # ADMIN=root
- ADMIN=sysinfo
-
- # Debugging flags
- # CFLAGS=-DDEBUG -g
- # LDFLAGS=-g
-
- # Production flags
- CFLAGS=-O
- LDFLAGS=-s
-
- fuser: fuser.o
- $(CC) $(LDFLAGS) -o fuser fuser.o
-
- install: fuser
- $(INSTALL) fuser $(LBIN)
- chown root $(LBIN)/fuser
- chgrp $(ADMIN) $(LBIN)/fuser
- chmod 2711 $(LBIN)/fuser
-
- clean:
- -rm -f *.o core
-
- clobber: clean
- -rm -f fuser.c fuser $(LBIN)/fuser
-
- fuser.c: $(FUSER)
- cp $(FUSER) fuser.c
-