# Copyright (c) 1987 Regents of the University of California.
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley. The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
# @(#)Makefile 5.11 (Berkeley) %G%
# Ownerships {see note at the top of lpd.c}
# ROOT a user that can access any and all files
# SPGRP the group id of the spooling programs
L1SRCS
= lpd.c printjob.c recvjob.c displayq.c rmjob.c startdaemon.c \
lpdchar.c common.c printcap.c
L1OBJS
= lpd.o printjob.o recvjob.o displayq.o rmjob.o startdaemon.o \
lpdchar.o common.o printcap.o
L2SRCS
= lpr.c startdaemon.c printcap.c
L2OBJS
= lpr.o startdaemon.o printcap.o
L3SRCS
= lpq.c displayq.c common.c printcap.c
L3OBJS
= lpq.o displayq.o common.o printcap.o
L4SRCS
= lprm.c rmjob.c startdaemon.c common.c printcap.c
L4OBJS
= lprm.o rmjob.o startdaemon.o common.o printcap.o
L5SRCS
= lpc.c cmds.c cmdtab.c startdaemon.c common.c printcap.c
L5OBJS
= lpc.o cmds.o cmdtab.o startdaemon.o common.o printcap.o
SRCS
= lpd.c lpr.c lpq.c lprm.c pac.c lpd.c cmds.c cmdtab.c printjob.c \
recvjob.c displayq.c rmjob.c startdaemon.c common.c printcap.c \
OBJS
= ${L1OBJS} ${L2OBJS} ${L3OBJS} ${L4OBJS} ${L5OBJS} ${L6OBJS} ${L7OBJS}
MAN1
= lpq
.0 lpr
.0 lprm
.0 lptest
.0
ALL
= lpd lpr lpq lprm lpc lptest pac
all: ${ALL} FILTERS VFILTERS
lptest
: ${L6OBJS} ${LIBC}
${CC} ${CFLAGS} -o
$@
${L6OBJS}
cd filters
; make
${MFLAGS}
cd vfilters
; make
${MFLAGS}
rm -f
${OBJS} core
${ALL}
cd filters
; make
${MFLAGS} clean
cd vfilters
; make
${MFLAGS} clean
rm -f
${MAN} tags .depend
cd filters
; make
${MFLAGS} clean
cd vfilters
; make
${MFLAGS} clean
cd filters
; make
${MFLAGS} depend
cd vfilters
; make
${MFLAGS} depend
install -s
-o root
-g
${SPGRP} -m
6711 lpd
${DESTDIR}/usr
/sbin
install -s
-o root
-g
${SPGRP} -m
6711 lpr lpq lprm \
install -s
-o bin
-g
${SPGRP} -m
2711 lpc
${DESTDIR}/usr
/sbin
install -s
-o bin
-g bin
-m
755 lptest pac
${DESTDIR}/usr
/sbin
chown
${DAEMON} ${DESTDIR}/${SPLDIR}
chgrp
${SPGRP} ${DESTDIR}/${SPLDIR}
chmod
775 ${DESTDIR}/${SPLDIR}
install -c
-o bin
-g bin
-m
444 ${MAN1} ${DESTDIR}/usr
/man
/cat1
install -c
-o bin
-g bin
-m
444 ${MAN8} ${DESTDIR}/usr
/man
/cat8
cd filters
; make
${MFLAGS} DESTDIR
=${DESTDIR} install
cd vfilters
; make
${MFLAGS} DESTDIR
=${DESTDIR} install