source: trunk/athena/bin/lpr/Imakefile @ 6944

Revision 6944, 2.5 KB checked in by probe, 31 years ago (diff)
Separate Athena programs on platforms other than BSD & Ultrix.
Line 
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)
24MACHL=-lbsd
25#endif
26
27DEFINES= -DVFS -DHESIOD -DKERBEROS -DZEPHYR -DPQUOTA -DLACL -Iquota $(MACHD)
28LIBS= -L/usr/athena/lib -lhesiod -lzephyr -lcom_err -lkrb -ldes $(MACHL)
29
30
31CXREF=ctags -x
32ROOT=root
33DAEMON=daemon
34
35#if defined(_IBMR2)
36SPGRP=printq
37#else
38SPGRP=daemon
39#endif
40
41#if defined(ibm032) || defined(vax) || defined(ultrix)
42LPDDIR=/usr/lib
43BINDIR=/usr/ucb
44USRETCDIR=/usr/etc
45#else
46LPDDIR=$(ATHETCDIR)
47BINDIR=$(ATHBINDIR)
48USRETCDIR=$(ATHETCDIR)
49#endif
50
51SRCS=   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
60LPRGSimpleProgram(lpd,lpd.o lpdchar.o printjob.o recvjob.o tcp_conn.o \
61        displayq.o rmjob.o common.o printcap.o, $(LIBS),$(LPDDIR))
62LPRGSimpleProgram(lpc,lpc.o cmds.o cmdtab.o printcap.o common.o startdaemon.o,\
63        $(LIBS),$(USRETCDIR))
64
65LPRSimpleProgram(lpr,lpr.o netsend.o printcap.o common.o startdaemon.o,\
66        $(LIBS),$(BINDIR))
67LPRSimpleProgram(lpq,lpq.o displayq.o printcap.o common.o startdaemon.o,\
68        $(LIBS) -ltermcap,$(BINDIR))
69LPRSimpleProgram(lprm,lprm.o rmjob.o printcap.o common.o startdaemon.o,\
70        $(LIBS),$(BINDIR))
71
72saber_lpr:
73        /**/#load lpr.c printcap.c netsend.c common.c $(LIBS)
74
75#ifndef _IBMR2
76SimpleProgram(lptest,lptest.c,,$(BINDIR))
77SimpleProgram(pac,pac.o printcap.o,$(LIBS),$(USRETCDIR))
78
79install_script(print.sh,,/usr/ucb/print)
80install_script(makespools,,/etc/makespools)
81
82install::
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 */
90SpecialObject(lpd.o,lpd.c,-DWS)
91
92/* Dependencies */
93lpd.o lpr.o lpq.o lprm.o pac.o: lp.h lp.local.h
94recvjob.o printjob.o displayq.o rmjob.o common.o cmds.o: lp.h lp.local.h
95startdaemon.o: lp.local.h
96lpc.o cmdtab.o: lpc.h
Note: See TracBrowser for help on using the repository browser.