1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# ident "%Z%%M% %I% %E% SMI" 24# 25# Copyright 1989-2002 Sun Microsystems, Inc. All rights reserved. 26# Use is subject to license terms. 27# 28# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 29# All Rights Reserved 30# 31# cmd/lp/Makefile.lp 32# Common makefile definitions (should be) used by all lp makefiles 33# 34 35include $(SRC)/cmd/Makefile.cmd 36 37LPROOT= $(SRC)/cmd/lp 38ROOTVAR= $(ROOT)/var 39ROOTVARSP= $(ROOT)/var/spool 40 41ROOTETCLP= $(ROOTETC)/lp 42ROOTLIBLP= $(ROOTLIB)/lp 43ROOTBINLP= $(ROOTBIN)/lp 44ROOTLIBLPPOST = $(ROOTLIBLP)/postscript 45ROOTLIBLPLOCL = $(ROOTLIBLP)/local 46 47ROOTUSRUCB= $(ROOT)/usr/ucb 48 49# 50# Typical owner and group for LP things. These can be overridden 51# in the individual makefiles. 52# 53OWNER = root 54GROUP = lp 55SUPER = root 56 57# 58# $(EMODES): Modes for executables 59# $(SMODES): Modes for setuid executables 60# $(DMODES): Modes for directories 61# 62EMODES = 0555 63SMODES = 04555 64DMODES = 0775 65 66 67INC = $(ROOT)/usr/include 68INCSYS = $(INC)/sys 69 70LPINC = $(SRC)/cmd/lp/include 71LPLIB = $(SRC)/cmd/lp/lib 72 73LIBACC = $(LPLIB)/access/liblpacc.a 74LIBCLS = $(LPLIB)/class/liblpcls.a 75LIBFLT = $(LPLIB)/filters/liblpflt.a 76LIBFRM = $(LPLIB)/forms/liblpfrm.a 77LIBLP = $(LPLIB)/lp/liblp.a 78LIBMSG = $(LPLIB)/msgs/liblpmsg.a 79LIBOAM = $(LPLIB)/oam/liblpoam.a 80LIBPRT = $(LPLIB)/printers/liblpprt.a 81LIBREQ = $(LPLIB)/requests/liblpreq.a 82LIBSEC = $(LPLIB)/secure/liblpsec.a 83LIBSYS = $(LPLIB)/systems/liblpsys.a 84LIBUSR = $(LPLIB)/users/liblpusr.a 85 86LINTACC = $(LPLIB)/access/llib-llpacc.ln 87LINTCLS = $(LPLIB)/class/llib-llpcls.ln 88LINTFLT = $(LPLIB)/filters/llib-llpflt.ln 89LINTFRM = $(LPLIB)/forms/llib-llpfrm.ln 90LINTLP = $(LPLIB)/lp/llib-llp.ln 91LINTMSG = $(LPLIB)/msgs/llib-llpmsg.ln 92LINTOAM = $(LPLIB)/oam/llib-llpoam.ln 93LINTPRT = $(LPLIB)/printers/llib-llpprt.ln 94LINTREQ = $(LPLIB)/requests/llib-llpreq.ln 95LINTSEC = $(LPLIB)/secure/llib-llpsec.ln 96LINTSYS = $(LPLIB)/systems/llib-llpsys.ln 97LINTUSR = $(LPLIB)/users/llib-llpusr.ln 98 99all:= TARGET= all 100install:= TARGET= install 101clean:= TARGET= clean 102clobber:= TARGET= clobber 103lint:= TARGET= lint 104strip:= TARGET= strip 105catalog:= TARGET= catalog 106_msg:= TARGET= catalog 107 108ROOTLIBLPPROG= $(PROG:%=$(ROOTLIBLP)/%) 109ROOTBINLPPROG= $(PROG:%=$(ROOTBINLP)/%) 110ROOTETCLPPROG= $(PROG:%=$(ROOTETCLP)/%) 111ROOTUSRUCBPROG= $(PROG:%=$(ROOTUSRUCB)/%) 112ROOTLIBLPPOSTPROG= $(PROG:%=$(ROOTLIBLPPOST)/%) 113ROOTLIBLPLOCLPROG= $(PROG:%=$(ROOTLIBLPLOCL)/%) 114 115$(ROOTLIBLP)/% \ 116$(ROOTBINLP)/% \ 117$(ROOTETCLP)/% \ 118$(ROOTUSRUCB)/% \ 119$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%: % 120 $(INS.file) 121