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 >
Wrap
Makefile
|
1990-12-28
|
925b
|
40 lines
#
# Makefile to compile ofiles.c (Open Files)
# Port from BSD ofiles done by Mike -=]Ford[=- Ditto
# Port from UNIX PC ofiles done by John F. Haugh II (jfh@rpp386.cactus.org)
# Makefile contributed by Lenny Tropiano
#
# NOTE: If you don't want this program installed setuid, so anyone can use it,
# modify the "make install" dependency with the permission you want to
# grant. See the README for more information.
#
# SCO XENIX/386
DEBUG =
CFLAGS = -Ox $(DEBUG)
LDFLAGS = $(DEBUG)
#
DEST = /usr/local/bin
#
ofiles: ofiles.o
$(CC) $(LDFLAGS) -o ofiles ofiles.o $(LIBS)
#
# You need to be super-user to do this.
#
install: ofiles $(DEST)
cp ofiles $(DEST)/ofiles
chown root $(DEST)/ofiles
chgrp bin $(DEST)/ofiles
chmod 4111 $(DEST)/ofiles
clean:
rm -f core a.out ofiles.o
clobber: clean
rm -f ofiles
ofiles.shar: README Makefile ofiles.c
shar README Makefile ofiles.c > ofiles.shar
shar: ofiles.shar