1 | /* |
---|
2 | * $Id: Imakefile,v 1.8 1993-10-09 21:16:51 probe Exp $ |
---|
3 | * |
---|
4 | * Copyright (c) 1983 Regents of the University of California. |
---|
5 | * All rights reserved. The Berkeley software License Agreement |
---|
6 | * specifies the terms and conditions for redistribution. |
---|
7 | * |
---|
8 | * @(#)Makefile 5.3 (Berkeley) 5/7/86 |
---|
9 | * |
---|
10 | * Copyright (c) 1990, 19910 MIT Project Athena. |
---|
11 | */ |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | # |
---|
16 | # makefile for line printer spooling system |
---|
17 | # |
---|
18 | # Ownerships {see note at the top of lpd.c} |
---|
19 | # ROOT a user that can access any and all files |
---|
20 | # DAEMON someone special |
---|
21 | # SPGRP the group id of the spooling programs |
---|
22 | # |
---|
23 | #if (defined(_AIX) && defined(i386)) || defined(_IBMR2) |
---|
24 | MACHL=-lbsd |
---|
25 | #endif |
---|
26 | |
---|
27 | DEFINES= -DVFS -DHESIOD -DKERBEROS -DZEPHYR -DPQUOTA -DLACL -Iquota $(MACHD) |
---|
28 | LIBS= -L/usr/athena/lib -lhesiod -lzephyr -lcom_err -lkrb -ldes $(MACHL) |
---|
29 | |
---|
30 | |
---|
31 | CXREF=ctags -x |
---|
32 | ROOT=root |
---|
33 | DAEMON=daemon |
---|
34 | |
---|
35 | #if defined(_IBMR2) |
---|
36 | SPGRP=printq |
---|
37 | #else |
---|
38 | SPGRP=daemon |
---|
39 | #endif |
---|
40 | |
---|
41 | #if defined(ibm032) || defined(vax) || defined(ultrix) |
---|
42 | LPDDIR=/usr/lib |
---|
43 | BINDIR=/usr/ucb |
---|
44 | USRETCDIR=/usr/etc |
---|
45 | #else |
---|
46 | LPDDIR=$(ATHETCDIR) |
---|
47 | BINDIR=$(ATHBINDIR) |
---|
48 | USRETCDIR=$(ATHETCDIR) |
---|
49 | #endif |
---|
50 | |
---|
51 | SRCS= lpd.c lpr.c lpq.c lprm.c pac.c lpd.c cmds.c cmdtab.c \ |
---|
52 | printjob.c recvjob.c displayq.c rmjob.c \ |
---|
53 | startdaemon.c common.c printcap.c lpdchar.c tcp_conn.c |
---|
54 | |
---|
55 | #include "Ilpr.rules" |
---|
56 | |
---|
57 | #define ISUBDIRS filters quota transcript-v2.1 man |
---|
58 | |
---|
59 | |
---|
60 | LPRGSimpleProgram(lpd,lpd.o lpdchar.o printjob.o recvjob.o tcp_conn.o \ |
---|
61 | displayq.o rmjob.o common.o printcap.o, $(LIBS),$(LPDDIR)) |
---|
62 | LPRGSimpleProgram(lpc,lpc.o cmds.o cmdtab.o printcap.o common.o startdaemon.o,\ |
---|
63 | $(LIBS),$(USRETCDIR)) |
---|
64 | |
---|
65 | LPRSimpleProgram(lpr,lpr.o netsend.o printcap.o common.o startdaemon.o,\ |
---|
66 | $(LIBS),$(BINDIR)) |
---|
67 | LPRSimpleProgram(lpq,lpq.o displayq.o printcap.o common.o startdaemon.o,\ |
---|
68 | $(LIBS) -ltermcap,$(BINDIR)) |
---|
69 | LPRSimpleProgram(lprm,lprm.o rmjob.o printcap.o common.o startdaemon.o,\ |
---|
70 | $(LIBS),$(BINDIR)) |
---|
71 | |
---|
72 | saber_lpr: |
---|
73 | /**/#load lpr.c printcap.c netsend.c common.c $(LIBS) |
---|
74 | |
---|
75 | #ifndef _IBMR2 |
---|
76 | SimpleProgram(lptest,lptest.c,,$(BINDIR)) |
---|
77 | SimpleProgram(pac,pac.o printcap.o,$(LIBS),$(USRETCDIR)) |
---|
78 | |
---|
79 | install_script(print.sh,,/usr/ucb/print) |
---|
80 | install_script(makespools,,/etc/makespools) |
---|
81 | |
---|
82 | install:: |
---|
83 | -rm -f ${DESTDIR}${BINDIR}/lpr.ucb |
---|
84 | -ln -s lpr ${DESTDIR}${BINDIR}/lpr.ucb |
---|
85 | @echo To build spooling directories: |
---|
86 | @echo makespools ${DESTDIR} 775 ${DAEMON} ${SPGRP} |
---|
87 | #endif |
---|
88 | |
---|
89 | /* Specify that should trust all hosts on 18.xx.xx.xx */ |
---|
90 | SpecialObject(lpd.o,lpd.c,-DWS) |
---|
91 | |
---|
92 | /* Dependencies */ |
---|
93 | lpd.o lpr.o lpq.o lprm.o pac.o: lp.h lp.local.h |
---|
94 | recvjob.o printjob.o displayq.o rmjob.o common.o cmds.o: lp.h lp.local.h |
---|
95 | startdaemon.o: lp.local.h |
---|
96 | lpc.o cmdtab.o: lpc.h |
---|