xref: /titanic_50/usr/src/cmd/lp/Makefile.lp (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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
5e2738c5eSjacobs# Common Development and Distribution License (the "License").
6e2738c5eSjacobs# 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#
21e2738c5eSjacobs
227c478bd9Sstevel@tonic-gate#
2324fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
26e2738c5eSjacobs
27e2738c5eSjacobs#
287c478bd9Sstevel@tonic-gate# cmd/lp/Makefile.lp
297c478bd9Sstevel@tonic-gate# Common makefile definitions (should be) used by all 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-gateROOTVAR=	$(ROOT)/var
367c478bd9Sstevel@tonic-gateROOTVARSP=	$(ROOT)/var/spool
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateROOTETCLP=	$(ROOTETC)/lp
397c478bd9Sstevel@tonic-gateROOTLIBLP=	$(ROOTLIB)/lp
407c478bd9Sstevel@tonic-gateROOTBINLP=	$(ROOTBIN)/lp
417c478bd9Sstevel@tonic-gateROOTLIBLPPOST =	$(ROOTLIBLP)/postscript
427c478bd9Sstevel@tonic-gateROOTLIBLPLOCL =	$(ROOTLIBLP)/local
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gateROOTUSRUCB=	$(ROOT)/usr/ucb
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate#
487c478bd9Sstevel@tonic-gate# $(EMODES): Modes for executables
497c478bd9Sstevel@tonic-gate# $(SMODES): Modes for setuid executables
507c478bd9Sstevel@tonic-gate# $(DMODES): Modes for directories
517c478bd9Sstevel@tonic-gate#
527c478bd9Sstevel@tonic-gateEMODES	=	0555
537c478bd9Sstevel@tonic-gateSMODES	=	04555
547c478bd9Sstevel@tonic-gateDMODES	=	0775
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gateINC	=	$(ROOT)/usr/include
587c478bd9Sstevel@tonic-gateINCSYS  =       $(INC)/sys
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gateLPINC	=	$(SRC)/cmd/lp/include
617c478bd9Sstevel@tonic-gateLPLIB	=	$(SRC)/cmd/lp/lib
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateLIBACC	=	$(LPLIB)/access/liblpacc.a
647c478bd9Sstevel@tonic-gateLIBCLS	=	$(LPLIB)/class/liblpcls.a
657c478bd9Sstevel@tonic-gateLIBFLT	=	$(LPLIB)/filters/liblpflt.a
667c478bd9Sstevel@tonic-gateLIBFRM	=	$(LPLIB)/forms/liblpfrm.a
677c478bd9Sstevel@tonic-gateLIBLP	=	$(LPLIB)/lp/liblp.a
687c478bd9Sstevel@tonic-gateLIBMSG	=	$(LPLIB)/msgs/liblpmsg.a
697c478bd9Sstevel@tonic-gateLIBOAM	=	$(LPLIB)/oam/liblpoam.a
707c478bd9Sstevel@tonic-gateLIBPRT	=	$(LPLIB)/printers/liblpprt.a
717c478bd9Sstevel@tonic-gateLIBREQ	=	$(LPLIB)/requests/liblpreq.a
727c478bd9Sstevel@tonic-gateLIBSEC	=	$(LPLIB)/secure/liblpsec.a
737c478bd9Sstevel@tonic-gateLIBUSR	=	$(LPLIB)/users/liblpusr.a
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateLINTACC	=	$(LPLIB)/access/llib-llpacc.ln
767c478bd9Sstevel@tonic-gateLINTCLS	=	$(LPLIB)/class/llib-llpcls.ln
777c478bd9Sstevel@tonic-gateLINTFLT	=	$(LPLIB)/filters/llib-llpflt.ln
787c478bd9Sstevel@tonic-gateLINTFRM	=	$(LPLIB)/forms/llib-llpfrm.ln
797c478bd9Sstevel@tonic-gateLINTLP	=	$(LPLIB)/lp/llib-llp.ln
807c478bd9Sstevel@tonic-gateLINTMSG	=	$(LPLIB)/msgs/llib-llpmsg.ln
817c478bd9Sstevel@tonic-gateLINTOAM	=	$(LPLIB)/oam/llib-llpoam.ln
827c478bd9Sstevel@tonic-gateLINTPRT	=	$(LPLIB)/printers/llib-llpprt.ln
837c478bd9Sstevel@tonic-gateLINTREQ	=	$(LPLIB)/requests/llib-llpreq.ln
847c478bd9Sstevel@tonic-gateLINTSEC	=	$(LPLIB)/secure/llib-llpsec.ln
857c478bd9Sstevel@tonic-gateLINTUSR	=	$(LPLIB)/users/llib-llpusr.ln
867c478bd9Sstevel@tonic-gate
871a5ea532SRichard LoweCERRWARN +=	-_gcc=-Wno-sequence-point
88*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-implicit-function-declaration
89*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
90*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
91*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
92*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-value
93*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-label
94*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-function
95*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-clobbered
96*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-empty-body
97*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-extra
98*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-address
99f928ce67Sceastha
1007c478bd9Sstevel@tonic-gateall:=		TARGET= all
1017c478bd9Sstevel@tonic-gateinstall:=	TARGET= install
1027c478bd9Sstevel@tonic-gateclean:=		TARGET= clean
1037c478bd9Sstevel@tonic-gateclobber:=	TARGET= clobber
1047c478bd9Sstevel@tonic-gatelint:=		TARGET= lint
1057c478bd9Sstevel@tonic-gatestrip:=		TARGET= strip
1067c478bd9Sstevel@tonic-gatecatalog:=	TARGET= catalog
1077c478bd9Sstevel@tonic-gate_msg:=		TARGET= catalog
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-gateROOTLIBLPPOSTPROG=	$(PROG:%=$(ROOTLIBLPPOST)/%)
1147c478bd9Sstevel@tonic-gateROOTLIBLPLOCLPROG=	$(PROG:%=$(ROOTLIBLPLOCL)/%)
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gate$(ROOTLIBLP)/%	\
1177c478bd9Sstevel@tonic-gate$(ROOTBINLP)/%	\
1187c478bd9Sstevel@tonic-gate$(ROOTETCLP)/%	\
1197c478bd9Sstevel@tonic-gate$(ROOTUSRUCB)/%	\
1207c478bd9Sstevel@tonic-gate$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%:	%
1217c478bd9Sstevel@tonic-gate		$(INS.file)
122