Makefile for spooler
chris at eneevax
chris at eneevax
Mon Apr 23 11:54:48 AEST 1984
I inadvertantly left out the Makefile for the spooler. Here it is.
Note that the "install" entries change the file ownership to "root"
and the mode to rwsr-xr-x; i.e., setuid to root. I don't *think*
there are any security holes left in it, but... ``caveat empty'',
as they never said in the first place.
(This belongs in the same directory as the spooler sources.)
------------------------the dashed line------------------------
: Run this shell script with "sh" not "csh"
PATH=:/bin:/usr/bin:/usr/ucb
export PATH
all=FALSE
if [ $1x = -ax ]; then
all=TRUE
fi
/bin/echo 'Extracting Makefile'
sed 's/^X//' <<'//go.sysin dd *' >Makefile
# Makefile for 4.1BSD
CFLAGS= -DVMUNIX -DBSD41 -O
LIBES= -ljobs
SRCS= spool.c despool.c header.c readdev.c
HDRS= spool.h
all: spool header despool
install: inst-spool inst-header inst-despool
inst-spool:
mv spool /usr/bin
/etc/chown root /usr/bin/spool
chmod 4755 /usr/bin/spool
inst-header:
mv header /usr/lib/std_header
inst-despool:
mv despool /usr/lib
/etc/chown root /usr/lib/despool
chmod 4755 /usr/lib/despool
spool: spool.o readdev.o
cc -o spool spool.o readdev.o $(LIBES)
header: header.o readdev.o
cc -o header header.o readdev.o
despool: despool.o readdev.o
cc -o despool despool.o readdev.o -lndir
readdev.o: readdev.c spool.h
spool.o: spool.c spool.h
header.o: header.c spool.h
despool.o: despool.c spool.h
# the "script" entry is purely for making distributions
script: $(SRCS) $(HDRS)
makescript /tmp/spoolscript $(SRCS) $(HDRS) spool.1l spool.5l\
spool_devices Makefile
//go.sysin dd *
made=TRUE
if [ $made = TRUE ]; then
/bin/chmod 644 Makefile
/bin/echo -n ' '; /bin/ls -ld Makefile
fi
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690
UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at maryland
More information about the Comp.sources.unix
mailing list