17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*355b4669Sjacobs# Common Development and Distribution License (the "License"). 6*355b4669Sjacobs# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21*355b4669Sjacobs 227c478bd9Sstevel@tonic-gate# 23*355b4669Sjacobs# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate# cmd/print/Makefile.sp 297c478bd9Sstevel@tonic-gate# Common makefile definitions (should be) used by all print(lp) makefiles 307c478bd9Sstevel@tonic-gate# 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateLPROOT= $(SRC)/cmd/lp 357c478bd9Sstevel@tonic-gateNPRTROOT= $(LPROOT) 367c478bd9Sstevel@tonic-gateROOTVAR= $(ROOT)/var 377c478bd9Sstevel@tonic-gateROOTVARSP= $(ROOT)/var/spool 387c478bd9Sstevel@tonic-gateROOTVARSPOOLPRINT= $(ROOTVARSP)/print 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateROOTINIT_D= $(ROOTETC)/init.d 417c478bd9Sstevel@tonic-gateROOTRC0_D= $(ROOTETC)/rc0.d 427c478bd9Sstevel@tonic-gateROOTRCS_D= $(ROOTETC)/rcS.d 437c478bd9Sstevel@tonic-gateROOTRC1_D= $(ROOTETC)/rc1.d 447c478bd9Sstevel@tonic-gateROOTRC2_D= $(ROOTETC)/rc2.d 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateROOTETCLP= $(ROOTETC)/lp 487c478bd9Sstevel@tonic-gateROOTLIBLP= $(ROOTLIB)/lp 497c478bd9Sstevel@tonic-gateROOTBINLP= $(ROOTBIN)/lp 507c478bd9Sstevel@tonic-gateROOTLIBLPPOST = $(ROOTLIBLP)/postscript 517c478bd9Sstevel@tonic-gateROOTLOCALLP= $(ROOTLIBLP)/local 527c478bd9Sstevel@tonic-gateROOTLIBPRINT= $(ROOTLIB)/print 537c478bd9Sstevel@tonic-gateROOTLIBPRINTBIN= $(ROOTLIBPRINT)/bin 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateROOTUSRUCB= $(ROOT)/usr/ucb 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gate# 607c478bd9Sstevel@tonic-gate# Typical owner and group for LP things. These can be overridden 617c478bd9Sstevel@tonic-gate# in the individual makefiles. 627c478bd9Sstevel@tonic-gate# 637c478bd9Sstevel@tonic-gateOWNER = root 647c478bd9Sstevel@tonic-gateGROUP = lp 657c478bd9Sstevel@tonic-gateSUPER = root 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate$(ROOTINIT_D) := GROUP = sys 687c478bd9Sstevel@tonic-gate$(ROOTRC0_D) := GROUP = sys 697c478bd9Sstevel@tonic-gate$(ROOTRCS_D) := GROUP = sys 707c478bd9Sstevel@tonic-gate$(ROOTRC1_D) := GROUP = sys 717c478bd9Sstevel@tonic-gate$(ROOTRC2_D) := GROUP = sys 727c478bd9Sstevel@tonic-gate$(ROOTUSRUCB) := GROUP = bin 737c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN) := GROUP = bin 747c478bd9Sstevel@tonic-gate$(ROOTBIN) := GROUP = bin 757c478bd9Sstevel@tonic-gate# 767c478bd9Sstevel@tonic-gate# $(EMODES): Modes for executables 777c478bd9Sstevel@tonic-gate# $(SMODES): Modes for setuid executables 787c478bd9Sstevel@tonic-gate# $(DMODES): Modes for directories 797c478bd9Sstevel@tonic-gate# 807c478bd9Sstevel@tonic-gateEMODES = 0555 817c478bd9Sstevel@tonic-gateSMODES = 04555 827c478bd9Sstevel@tonic-gateDMODES = 0755 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateINC = $(ROOT)/usr/include 867c478bd9Sstevel@tonic-gateINCSYS = $(INC)/sys 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gateLPINC = $(SRC)/include 897c478bd9Sstevel@tonic-gate#NPRTINC = $(NPRTROOT)/include 90*355b4669SjacobsNPRTINC = $(SRC)/lib/print/libprint/common 917c478bd9Sstevel@tonic-gateLPLIB = $(SRC)/lib 927c478bd9Sstevel@tonic-gateLDLIBS += -L$(LPLIB) 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gateLIBNPRT = -L$(ROOT)/usr/lib -lprint 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate# lint definitions 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gateLINTFLAGS += -L $(SRC)/lib/print -lprint -lnsl -lsocket 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gateall :=TARGET= all 1027c478bd9Sstevel@tonic-gateinstall :=TARGET= install 1037c478bd9Sstevel@tonic-gateclean :=TARGET= clean 1047c478bd9Sstevel@tonic-gateclobber :=TARGET= clobber 1057c478bd9Sstevel@tonic-gatelint :=TARGET= lint 1067c478bd9Sstevel@tonic-gatestrip :=TARGET= strip 1077c478bd9Sstevel@tonic-gate_msg :=TARGET= _msg 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gateROOTLIBLPPROG= $(PROG:%=$(ROOTLIBLP)/%) 1107c478bd9Sstevel@tonic-gateROOTBINLPPROG= $(PROG:%=$(ROOTBINLP)/%) 1117c478bd9Sstevel@tonic-gateROOTETCLPPROG= $(PROG:%=$(ROOTETCLP)/%) 1127c478bd9Sstevel@tonic-gateROOTUSRUCBPROG= $(PROG:%=$(ROOTUSRUCB)/%) 1137c478bd9Sstevel@tonic-gateROOTLOCALLPPROG= $(PROG:%=$(ROOTLOCALLP)/%) 1147c478bd9Sstevel@tonic-gateROOTLIBLPPOSTPROG= $(PROG:%=$(ROOTLIBLPPOST)/%) 1157c478bd9Sstevel@tonic-gateROOTLIBPRINTPROG= $(PROG:%=$(ROOTLIBPRINT)/%) 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate$(ROOTLIBLP)/% \ 1187c478bd9Sstevel@tonic-gate$(ROOTBINLP)/% \ 1197c478bd9Sstevel@tonic-gate$(ROOTETCLP)/% \ 1207c478bd9Sstevel@tonic-gate$(ROOTUSRUCB)/% \ 1217c478bd9Sstevel@tonic-gate$(ROOTLOCALLP)/% \ 1227c478bd9Sstevel@tonic-gate$(ROOTLIBLPPOST)/% \ 1237c478bd9Sstevel@tonic-gate$(ROOTLIBPRINT)/% : % 1247c478bd9Sstevel@tonic-gate $(INS.file) 125