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 5355b4669Sjacobs# Common Development and Distribution License (the "License"). 6355b4669Sjacobs# 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# 21355b4669Sjacobs 227c478bd9Sstevel@tonic-gate# 23*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# cmd/print/Makefile.sp 277c478bd9Sstevel@tonic-gate# Common makefile definitions (should be) used by all print(lp) makefiles 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateLPROOT= $(SRC)/cmd/lp 337c478bd9Sstevel@tonic-gateNPRTROOT= $(LPROOT) 347c478bd9Sstevel@tonic-gateROOTVAR= $(ROOT)/var 357c478bd9Sstevel@tonic-gateROOTVARSP= $(ROOT)/var/spool 367c478bd9Sstevel@tonic-gateROOTVARSPOOLPRINT= $(ROOTVARSP)/print 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateROOTINIT_D= $(ROOTETC)/init.d 397c478bd9Sstevel@tonic-gateROOTRC0_D= $(ROOTETC)/rc0.d 407c478bd9Sstevel@tonic-gateROOTRCS_D= $(ROOTETC)/rcS.d 417c478bd9Sstevel@tonic-gateROOTRC1_D= $(ROOTETC)/rc1.d 427c478bd9Sstevel@tonic-gateROOTRC2_D= $(ROOTETC)/rc2.d 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateROOTETCLP= $(ROOTETC)/lp 467c478bd9Sstevel@tonic-gateROOTLIBLP= $(ROOTLIB)/lp 477c478bd9Sstevel@tonic-gateROOTBINLP= $(ROOTBIN)/lp 487c478bd9Sstevel@tonic-gateROOTLIBLPPOST = $(ROOTLIBLP)/postscript 497c478bd9Sstevel@tonic-gateROOTLOCALLP= $(ROOTLIBLP)/local 507c478bd9Sstevel@tonic-gateROOTLIBPRINT= $(ROOTLIB)/print 517c478bd9Sstevel@tonic-gateROOTLIBPRINTBIN= $(ROOTLIBPRINT)/bin 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateROOTUSRUCB= $(ROOT)/usr/ucb 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate# 577c478bd9Sstevel@tonic-gate# $(EMODES): Modes for executables 587c478bd9Sstevel@tonic-gate# $(SMODES): Modes for setuid executables 597c478bd9Sstevel@tonic-gate# $(DMODES): Modes for directories 607c478bd9Sstevel@tonic-gate# 617c478bd9Sstevel@tonic-gateEMODES = 0555 627c478bd9Sstevel@tonic-gateSMODES = 04555 637c478bd9Sstevel@tonic-gateDMODES = 0755 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateINC = $(ROOT)/usr/include 677c478bd9Sstevel@tonic-gateINCSYS = $(INC)/sys 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gateLPINC = $(SRC)/include 707c478bd9Sstevel@tonic-gate#NPRTINC = $(NPRTROOT)/include 71355b4669SjacobsNPRTINC = $(SRC)/lib/print/libprint/common 727c478bd9Sstevel@tonic-gateLPLIB = $(SRC)/lib 737c478bd9Sstevel@tonic-gateLDLIBS += -L$(LPLIB) 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gateLIBNPRT = -L$(ROOT)/usr/lib -lprint 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate# lint definitions 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gateLINTFLAGS += -L $(SRC)/lib/print -lprint -lnsl -lsocket 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gateall :=TARGET= all 837c478bd9Sstevel@tonic-gateinstall :=TARGET= install 847c478bd9Sstevel@tonic-gateclean :=TARGET= clean 857c478bd9Sstevel@tonic-gateclobber :=TARGET= clobber 867c478bd9Sstevel@tonic-gatelint :=TARGET= lint 877c478bd9Sstevel@tonic-gatestrip :=TARGET= strip 887c478bd9Sstevel@tonic-gate_msg :=TARGET= _msg 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gateROOTLIBLPPROG= $(PROG:%=$(ROOTLIBLP)/%) 917c478bd9Sstevel@tonic-gateROOTBINLPPROG= $(PROG:%=$(ROOTBINLP)/%) 927c478bd9Sstevel@tonic-gateROOTETCLPPROG= $(PROG:%=$(ROOTETCLP)/%) 937c478bd9Sstevel@tonic-gateROOTUSRUCBPROG= $(PROG:%=$(ROOTUSRUCB)/%) 947c478bd9Sstevel@tonic-gateROOTLOCALLPPROG= $(PROG:%=$(ROOTLOCALLP)/%) 957c478bd9Sstevel@tonic-gateROOTLIBLPPOSTPROG= $(PROG:%=$(ROOTLIBLPPOST)/%) 967c478bd9Sstevel@tonic-gateROOTLIBPRINTPROG= $(PROG:%=$(ROOTLIBPRINT)/%) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate$(ROOTLIBLP)/% \ 997c478bd9Sstevel@tonic-gate$(ROOTBINLP)/% \ 1007c478bd9Sstevel@tonic-gate$(ROOTETCLP)/% \ 1017c478bd9Sstevel@tonic-gate$(ROOTUSRUCB)/% \ 1027c478bd9Sstevel@tonic-gate$(ROOTLOCALLP)/% \ 1037c478bd9Sstevel@tonic-gate$(ROOTLIBLPPOST)/% \ 1047c478bd9Sstevel@tonic-gate$(ROOTLIBPRINT)/% : % 1057c478bd9Sstevel@tonic-gate $(INS.file) 106