xref: /illumos-gate/usr/src/cmd/lp/Makefile.lp (revision d3b5f563)
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#
265661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
27e2738c5eSjacobs
28f928ce67Sceastha#
297c478bd9Sstevel@tonic-gate# cmd/lp/Makefile.lp
307c478bd9Sstevel@tonic-gate# Common makefile definitions (should be) used by all lp makefiles
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gateinclude		$(SRC)/cmd/Makefile.cmd
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gateLPROOT=		$(SRC)/cmd/lp
367c478bd9Sstevel@tonic-gateROOTVAR=	$(ROOT)/var
377c478bd9Sstevel@tonic-gateROOTVARSP=	$(ROOT)/var/spool
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateROOTETCLP=	$(ROOTETC)/lp
407c478bd9Sstevel@tonic-gateROOTLIBLP=	$(ROOTLIB)/lp
417c478bd9Sstevel@tonic-gateROOTBINLP=	$(ROOTBIN)/lp
427c478bd9Sstevel@tonic-gateROOTLIBLPPOST =	$(ROOTLIBLP)/postscript
437c478bd9Sstevel@tonic-gateROOTLIBLPLOCL =	$(ROOTLIBLP)/local
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gateROOTUSRUCB=	$(ROOT)/usr/ucb
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gate#
497c478bd9Sstevel@tonic-gate# $(EMODES): Modes for executables
507c478bd9Sstevel@tonic-gate# $(SMODES): Modes for setuid executables
517c478bd9Sstevel@tonic-gate# $(DMODES): Modes for directories
527c478bd9Sstevel@tonic-gate#
537c478bd9Sstevel@tonic-gateEMODES	=	0555
547c478bd9Sstevel@tonic-gateSMODES	=	04555
557c478bd9Sstevel@tonic-gateDMODES	=	0775
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gateINC	=	$(ROOT)/usr/include
597c478bd9Sstevel@tonic-gateINCSYS  =       $(INC)/sys
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateLPINC	=	$(SRC)/cmd/lp/include
627c478bd9Sstevel@tonic-gateLPLIB	=	$(SRC)/cmd/lp/lib
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateLIBACC	=	$(LPLIB)/access/liblpacc.a
657c478bd9Sstevel@tonic-gateLIBCLS	=	$(LPLIB)/class/liblpcls.a
667c478bd9Sstevel@tonic-gateLIBFLT	=	$(LPLIB)/filters/liblpflt.a
677c478bd9Sstevel@tonic-gateLIBFRM	=	$(LPLIB)/forms/liblpfrm.a
687c478bd9Sstevel@tonic-gateLIBLP	=	$(LPLIB)/lp/liblp.a
697c478bd9Sstevel@tonic-gateLIBMSG	=	$(LPLIB)/msgs/liblpmsg.a
707c478bd9Sstevel@tonic-gateLIBOAM	=	$(LPLIB)/oam/liblpoam.a
717c478bd9Sstevel@tonic-gateLIBPRT	=	$(LPLIB)/printers/liblpprt.a
727c478bd9Sstevel@tonic-gateLIBREQ	=	$(LPLIB)/requests/liblpreq.a
737c478bd9Sstevel@tonic-gateLIBSEC	=	$(LPLIB)/secure/liblpsec.a
747c478bd9Sstevel@tonic-gateLIBUSR	=	$(LPLIB)/users/liblpusr.a
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gateLINTACC	=	$(LPLIB)/access/llib-llpacc.ln
777c478bd9Sstevel@tonic-gateLINTCLS	=	$(LPLIB)/class/llib-llpcls.ln
787c478bd9Sstevel@tonic-gateLINTFLT	=	$(LPLIB)/filters/llib-llpflt.ln
797c478bd9Sstevel@tonic-gateLINTFRM	=	$(LPLIB)/forms/llib-llpfrm.ln
807c478bd9Sstevel@tonic-gateLINTLP	=	$(LPLIB)/lp/llib-llp.ln
817c478bd9Sstevel@tonic-gateLINTMSG	=	$(LPLIB)/msgs/llib-llpmsg.ln
827c478bd9Sstevel@tonic-gateLINTOAM	=	$(LPLIB)/oam/llib-llpoam.ln
837c478bd9Sstevel@tonic-gateLINTPRT	=	$(LPLIB)/printers/llib-llpprt.ln
847c478bd9Sstevel@tonic-gateLINTREQ	=	$(LPLIB)/requests/llib-llpreq.ln
857c478bd9Sstevel@tonic-gateLINTSEC	=	$(LPLIB)/secure/llib-llpsec.ln
867c478bd9Sstevel@tonic-gateLINTUSR	=	$(LPLIB)/users/llib-llpusr.ln
877c478bd9Sstevel@tonic-gate
881a5ea532SRichard LoweCERRWARN +=	-_gcc=-Wno-sequence-point
897014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-implicit-function-declaration
907014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
91*d3b5f563SJohn LevonCERRWARN +=	$(CNOWARN_UNINIT)
927014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
937014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-value
947014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-label
957014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-function
967014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-clobbered
977014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-empty-body
987014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-extra
997014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-address
1006a3e8e86SRichard Lowe
1015661bb76SJohn Levon# not linted
1025661bb76SJohn LevonSMATCH=off
1035661bb76SJohn Levon
1046a3e8e86SRichard Loweall:=		TARGET= all
1056a3e8e86SRichard Loweinstall:=	TARGET= install
1066a3e8e86SRichard Loweclean:=		TARGET= clean
1076a3e8e86SRichard Loweclobber:=	TARGET= clobber
1086a3e8e86SRichard Lowelint:=		TARGET= lint
1096a3e8e86SRichard Lowestrip:=		TARGET= strip
1107c478bd9Sstevel@tonic-gatecatalog:=	TARGET= catalog
1117c478bd9Sstevel@tonic-gate_msg:=		TARGET= catalog
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gateROOTLIBLPPROG=	$(PROG:%=$(ROOTLIBLP)/%)
1147c478bd9Sstevel@tonic-gateROOTBINLPPROG=	$(PROG:%=$(ROOTBINLP)/%)
1157c478bd9Sstevel@tonic-gateROOTETCLPPROG=	$(PROG:%=$(ROOTETCLP)/%)
1167c478bd9Sstevel@tonic-gateROOTUSRUCBPROG=	$(PROG:%=$(ROOTUSRUCB)/%)
1177c478bd9Sstevel@tonic-gateROOTLIBLPPOSTPROG=	$(PROG:%=$(ROOTLIBLPPOST)/%)
1187c478bd9Sstevel@tonic-gateROOTLIBLPLOCLPROG=	$(PROG:%=$(ROOTLIBLPLOCL)/%)
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gate$(ROOTLIBLP)/%	\
1217c478bd9Sstevel@tonic-gate$(ROOTBINLP)/%	\
1227c478bd9Sstevel@tonic-gate$(ROOTETCLP)/%	\
1237c478bd9Sstevel@tonic-gate$(ROOTUSRUCB)/%	\
1247c478bd9Sstevel@tonic-gate$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%:	%
1257c478bd9Sstevel@tonic-gate		$(INS.file)
126