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 57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate# with the License. 87c478bd9Sstevel@tonic-gate# 97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate# and limitations under the License. 137c478bd9Sstevel@tonic-gate# 147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gate# CDDL HEADER END 217c478bd9Sstevel@tonic-gate# 227c478bd9Sstevel@tonic-gate# 23*f928ce67Sceastha# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 277c478bd9Sstevel@tonic-gate# All Rights Reserved 287c478bd9Sstevel@tonic-gate# 29*f928ce67Sceastha# ident "%Z%%M% %I% %E% SMI" 30*f928ce67Sceastha# 317c478bd9Sstevel@tonic-gate# cmd/lp/Makefile.lp 327c478bd9Sstevel@tonic-gate# Common makefile definitions (should be) used by all lp makefiles 337c478bd9Sstevel@tonic-gate# 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateLPROOT= $(SRC)/cmd/lp 387c478bd9Sstevel@tonic-gateROOTVAR= $(ROOT)/var 397c478bd9Sstevel@tonic-gateROOTVARSP= $(ROOT)/var/spool 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateROOTETCLP= $(ROOTETC)/lp 427c478bd9Sstevel@tonic-gateROOTLIBLP= $(ROOTLIB)/lp 437c478bd9Sstevel@tonic-gateROOTBINLP= $(ROOTBIN)/lp 447c478bd9Sstevel@tonic-gateROOTLIBLPPOST = $(ROOTLIBLP)/postscript 457c478bd9Sstevel@tonic-gateROOTLIBLPLOCL = $(ROOTLIBLP)/local 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateROOTUSRUCB= $(ROOT)/usr/ucb 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate# 507c478bd9Sstevel@tonic-gate# Typical owner and group for LP things. These can be overridden 517c478bd9Sstevel@tonic-gate# in the individual makefiles. 527c478bd9Sstevel@tonic-gate# 537c478bd9Sstevel@tonic-gateOWNER = root 547c478bd9Sstevel@tonic-gateGROUP = lp 557c478bd9Sstevel@tonic-gateSUPER = root 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate# 587c478bd9Sstevel@tonic-gate# $(EMODES): Modes for executables 597c478bd9Sstevel@tonic-gate# $(SMODES): Modes for setuid executables 607c478bd9Sstevel@tonic-gate# $(DMODES): Modes for directories 617c478bd9Sstevel@tonic-gate# 627c478bd9Sstevel@tonic-gateEMODES = 0555 637c478bd9Sstevel@tonic-gateSMODES = 04555 647c478bd9Sstevel@tonic-gateDMODES = 0775 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gateINC = $(ROOT)/usr/include 687c478bd9Sstevel@tonic-gateINCSYS = $(INC)/sys 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateLPINC = $(SRC)/cmd/lp/include 717c478bd9Sstevel@tonic-gateLPLIB = $(SRC)/cmd/lp/lib 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateLIBACC = $(LPLIB)/access/liblpacc.a 747c478bd9Sstevel@tonic-gateLIBCLS = $(LPLIB)/class/liblpcls.a 757c478bd9Sstevel@tonic-gateLIBFLT = $(LPLIB)/filters/liblpflt.a 767c478bd9Sstevel@tonic-gateLIBFRM = $(LPLIB)/forms/liblpfrm.a 777c478bd9Sstevel@tonic-gateLIBLP = $(LPLIB)/lp/liblp.a 787c478bd9Sstevel@tonic-gateLIBMSG = $(LPLIB)/msgs/liblpmsg.a 797c478bd9Sstevel@tonic-gateLIBOAM = $(LPLIB)/oam/liblpoam.a 807c478bd9Sstevel@tonic-gateLIBPRT = $(LPLIB)/printers/liblpprt.a 817c478bd9Sstevel@tonic-gateLIBREQ = $(LPLIB)/requests/liblpreq.a 827c478bd9Sstevel@tonic-gateLIBSEC = $(LPLIB)/secure/liblpsec.a 837c478bd9Sstevel@tonic-gateLIBSYS = $(LPLIB)/systems/liblpsys.a 847c478bd9Sstevel@tonic-gateLIBUSR = $(LPLIB)/users/liblpusr.a 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gateLINTACC = $(LPLIB)/access/llib-llpacc.ln 877c478bd9Sstevel@tonic-gateLINTCLS = $(LPLIB)/class/llib-llpcls.ln 887c478bd9Sstevel@tonic-gateLINTFLT = $(LPLIB)/filters/llib-llpflt.ln 897c478bd9Sstevel@tonic-gateLINTFRM = $(LPLIB)/forms/llib-llpfrm.ln 907c478bd9Sstevel@tonic-gateLINTLP = $(LPLIB)/lp/llib-llp.ln 917c478bd9Sstevel@tonic-gateLINTMSG = $(LPLIB)/msgs/llib-llpmsg.ln 927c478bd9Sstevel@tonic-gateLINTOAM = $(LPLIB)/oam/llib-llpoam.ln 937c478bd9Sstevel@tonic-gateLINTPRT = $(LPLIB)/printers/llib-llpprt.ln 947c478bd9Sstevel@tonic-gateLINTREQ = $(LPLIB)/requests/llib-llpreq.ln 957c478bd9Sstevel@tonic-gateLINTSEC = $(LPLIB)/secure/llib-llpsec.ln 967c478bd9Sstevel@tonic-gateLINTSYS = $(LPLIB)/systems/llib-llpsys.ln 977c478bd9Sstevel@tonic-gateLINTUSR = $(LPLIB)/users/llib-llpusr.ln 987c478bd9Sstevel@tonic-gate 99*f928ce67Sceastha$(__GNUC)CFLAGS += -_gcc=-Wno-sequence-points 100*f928ce67Sceastha 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-gatecatalog:= TARGET= catalog 1087c478bd9Sstevel@tonic-gate_msg:= TARGET= catalog 1097c478bd9Sstevel@tonic-gate 1107c478bd9Sstevel@tonic-gateROOTLIBLPPROG= $(PROG:%=$(ROOTLIBLP)/%) 1117c478bd9Sstevel@tonic-gateROOTBINLPPROG= $(PROG:%=$(ROOTBINLP)/%) 1127c478bd9Sstevel@tonic-gateROOTETCLPPROG= $(PROG:%=$(ROOTETCLP)/%) 1137c478bd9Sstevel@tonic-gateROOTUSRUCBPROG= $(PROG:%=$(ROOTUSRUCB)/%) 1147c478bd9Sstevel@tonic-gateROOTLIBLPPOSTPROG= $(PROG:%=$(ROOTLIBLPPOST)/%) 1157c478bd9Sstevel@tonic-gateROOTLIBLPLOCLPROG= $(PROG:%=$(ROOTLIBLPLOCL)/%) 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate$(ROOTLIBLP)/% \ 1187c478bd9Sstevel@tonic-gate$(ROOTBINLP)/% \ 1197c478bd9Sstevel@tonic-gate$(ROOTETCLP)/% \ 1207c478bd9Sstevel@tonic-gate$(ROOTUSRUCB)/% \ 1217c478bd9Sstevel@tonic-gate$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%: % 1227c478bd9Sstevel@tonic-gate $(INS.file) 123