xref: /illumos-gate/usr/src/cmd/lp/Makefile.lp (revision 1fa2a66491e7d8ae0be84e7da4da8e812480c710)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# Copyright (c) 2018, Joyent, Inc.
27
28#
29# cmd/lp/Makefile.lp
30# Common makefile definitions (should be) used by all lp makefiles
31#
32
33include		$(SRC)/cmd/Makefile.cmd
34
35LPROOT=		$(SRC)/cmd/lp
36ROOTVAR=	$(ROOT)/var
37ROOTVARSP=	$(ROOT)/var/spool
38
39ROOTETCLP=	$(ROOTETC)/lp
40ROOTLIBLP=	$(ROOTLIB)/lp
41ROOTBINLP=	$(ROOTBIN)/lp
42ROOTLIBLPPOST =	$(ROOTLIBLP)/postscript
43ROOTLIBLPLOCL =	$(ROOTLIBLP)/local
44
45ROOTUSRUCB=	$(ROOT)/usr/ucb
46
47
48#
49# $(EMODES): Modes for executables
50# $(SMODES): Modes for setuid executables
51# $(DMODES): Modes for directories
52#
53EMODES	=	0555
54SMODES	=	04555
55DMODES	=	0775
56
57
58INC	=	$(ROOT)/usr/include
59INCSYS  =       $(INC)/sys
60
61LPINC	=	$(SRC)/cmd/lp/include
62LPLIB	=	$(SRC)/cmd/lp/lib
63
64LIBACC	=	$(LPLIB)/access/liblpacc.a
65LIBCLS	=	$(LPLIB)/class/liblpcls.a
66LIBFLT	=	$(LPLIB)/filters/liblpflt.a
67LIBFRM	=	$(LPLIB)/forms/liblpfrm.a
68LIBLP	=	$(LPLIB)/lp/liblp.a
69LIBMSG	=	$(LPLIB)/msgs/liblpmsg.a
70LIBOAM	=	$(LPLIB)/oam/liblpoam.a
71LIBPRT	=	$(LPLIB)/printers/liblpprt.a
72LIBREQ	=	$(LPLIB)/requests/liblpreq.a
73LIBSEC	=	$(LPLIB)/secure/liblpsec.a
74LIBUSR	=	$(LPLIB)/users/liblpusr.a
75
76LINTACC	=	$(LPLIB)/access/llib-llpacc.ln
77LINTCLS	=	$(LPLIB)/class/llib-llpcls.ln
78LINTFLT	=	$(LPLIB)/filters/llib-llpflt.ln
79LINTFRM	=	$(LPLIB)/forms/llib-llpfrm.ln
80LINTLP	=	$(LPLIB)/lp/llib-llp.ln
81LINTMSG	=	$(LPLIB)/msgs/llib-llpmsg.ln
82LINTOAM	=	$(LPLIB)/oam/llib-llpoam.ln
83LINTPRT	=	$(LPLIB)/printers/llib-llpprt.ln
84LINTREQ	=	$(LPLIB)/requests/llib-llpreq.ln
85LINTSEC	=	$(LPLIB)/secure/llib-llpsec.ln
86LINTUSR	=	$(LPLIB)/users/llib-llpusr.ln
87
88CERRWARN +=	-_gcc=-Wno-sequence-point
89CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
90CERRWARN +=	-_gcc=-Wno-parentheses
91CERRWARN +=	$(CNOWARN_UNINIT)
92CERRWARN +=	-_gcc=-Wno-unused-variable
93CERRWARN +=	-_gcc=-Wno-unused-value
94CERRWARN +=	-_gcc=-Wno-unused-label
95CERRWARN +=	-_gcc=-Wno-unused-function
96CERRWARN +=	-_gcc=-Wno-clobbered
97CERRWARN +=	-_gcc=-Wno-empty-body
98CERRWARN +=	-_gcc=-Wno-extra
99CERRWARN +=	-_gcc=-Wno-address
100
101# not linted
102SMATCH=off
103
104all:=		TARGET= all
105install:=	TARGET= install
106clean:=		TARGET= clean
107clobber:=	TARGET= clobber
108lint:=		TARGET= lint
109strip:=		TARGET= strip
110catalog:=	TARGET= catalog
111_msg:=		TARGET= catalog
112
113ROOTLIBLPPROG=	$(PROG:%=$(ROOTLIBLP)/%)
114ROOTBINLPPROG=	$(PROG:%=$(ROOTBINLP)/%)
115ROOTETCLPPROG=	$(PROG:%=$(ROOTETCLP)/%)
116ROOTUSRUCBPROG=	$(PROG:%=$(ROOTUSRUCB)/%)
117ROOTLIBLPPOSTPROG=	$(PROG:%=$(ROOTLIBLPPOST)/%)
118ROOTLIBLPLOCLPROG=	$(PROG:%=$(ROOTLIBLPLOCL)/%)
119
120$(ROOTLIBLP)/%	\
121$(ROOTBINLP)/%	\
122$(ROOTETCLP)/%	\
123$(ROOTUSRUCB)/%	\
124$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%:	%
125		$(INS.file)
126