xref: /illumos-gate/usr/src/cmd/lp/Makefile.lp (revision 33efde4275d24731ef87927237b0ffb0630b6b2d)
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
76CERRWARN +=	-_gcc=-Wno-sequence-point
77CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
78CERRWARN +=	-_gcc=-Wno-parentheses
79CERRWARN +=	$(CNOWARN_UNINIT)
80CERRWARN +=	-_gcc=-Wno-unused-variable
81CERRWARN +=	-_gcc=-Wno-unused-value
82CERRWARN +=	-_gcc=-Wno-unused-function
83CERRWARN +=	-_gcc=-Wno-clobbered
84CERRWARN +=	-_gcc=-Wno-empty-body
85CERRWARN +=	-_gcc=-Wno-extra
86CERRWARN +=	-_gcc=-Wno-address
87
88# not linted
89SMATCH=off
90
91all:=		TARGET= all
92install:=	TARGET= install
93clean:=		TARGET= clean
94clobber:=	TARGET= clobber
95strip:=		TARGET= strip
96catalog:=	TARGET= catalog
97_msg:=		TARGET= catalog
98
99ROOTLIBLPPROG=	$(PROG:%=$(ROOTLIBLP)/%)
100ROOTBINLPPROG=	$(PROG:%=$(ROOTBINLP)/%)
101ROOTETCLPPROG=	$(PROG:%=$(ROOTETCLP)/%)
102ROOTUSRUCBPROG=	$(PROG:%=$(ROOTUSRUCB)/%)
103ROOTLIBLPPOSTPROG=	$(PROG:%=$(ROOTLIBLPPOST)/%)
104ROOTLIBLPLOCLPROG=	$(PROG:%=$(ROOTLIBLPLOCL)/%)
105
106$(ROOTLIBLP)/%	\
107$(ROOTBINLP)/%	\
108$(ROOTETCLP)/%	\
109$(ROOTUSRUCB)/%	\
110$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%:	%
111		$(INS.file)
112