xref: /titanic_50/usr/src/cmd/lp/Makefile.lp (revision cc4ec4394cda0c382f50cf9d771b6fcdeffa8c8d)
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
27#
28# cmd/lp/Makefile.lp
29# Common makefile definitions (should be) used by all lp makefiles
30#
31
32include		$(SRC)/cmd/Makefile.cmd
33
34LPROOT=		$(SRC)/cmd/lp
35ROOTVAR=	$(ROOT)/var
36ROOTVARSP=	$(ROOT)/var/spool
37
38ROOTETCLP=	$(ROOTETC)/lp
39ROOTLIBLP=	$(ROOTLIB)/lp
40ROOTBINLP=	$(ROOTBIN)/lp
41ROOTLIBLPPOST =	$(ROOTLIBLP)/postscript
42ROOTLIBLPLOCL =	$(ROOTLIBLP)/local
43
44ROOTUSRUCB=	$(ROOT)/usr/ucb
45
46
47#
48# $(EMODES): Modes for executables
49# $(SMODES): Modes for setuid executables
50# $(DMODES): Modes for directories
51#
52EMODES	=	0555
53SMODES	=	04555
54DMODES	=	0775
55
56
57INC	=	$(ROOT)/usr/include
58INCSYS  =       $(INC)/sys
59
60LPINC	=	$(SRC)/cmd/lp/include
61LPLIB	=	$(SRC)/cmd/lp/lib
62
63LIBACC	=	$(LPLIB)/access/liblpacc.a
64LIBCLS	=	$(LPLIB)/class/liblpcls.a
65LIBFLT	=	$(LPLIB)/filters/liblpflt.a
66LIBFRM	=	$(LPLIB)/forms/liblpfrm.a
67LIBLP	=	$(LPLIB)/lp/liblp.a
68LIBMSG	=	$(LPLIB)/msgs/liblpmsg.a
69LIBOAM	=	$(LPLIB)/oam/liblpoam.a
70LIBPRT	=	$(LPLIB)/printers/liblpprt.a
71LIBREQ	=	$(LPLIB)/requests/liblpreq.a
72LIBSEC	=	$(LPLIB)/secure/liblpsec.a
73LIBUSR	=	$(LPLIB)/users/liblpusr.a
74
75LINTACC	=	$(LPLIB)/access/llib-llpacc.ln
76LINTCLS	=	$(LPLIB)/class/llib-llpcls.ln
77LINTFLT	=	$(LPLIB)/filters/llib-llpflt.ln
78LINTFRM	=	$(LPLIB)/forms/llib-llpfrm.ln
79LINTLP	=	$(LPLIB)/lp/llib-llp.ln
80LINTMSG	=	$(LPLIB)/msgs/llib-llpmsg.ln
81LINTOAM	=	$(LPLIB)/oam/llib-llpoam.ln
82LINTPRT	=	$(LPLIB)/printers/llib-llpprt.ln
83LINTREQ	=	$(LPLIB)/requests/llib-llpreq.ln
84LINTSEC	=	$(LPLIB)/secure/llib-llpsec.ln
85LINTUSR	=	$(LPLIB)/users/llib-llpusr.ln
86
87CERRWARN +=	-_gcc=-Wno-sequence-point
88CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
89CERRWARN +=	-_gcc=-Wno-parentheses
90CERRWARN +=	-_gcc=-Wno-uninitialized
91CERRWARN +=	-_gcc=-Wno-unused-variable
92CERRWARN +=	-_gcc=-Wno-unused-value
93CERRWARN +=	-_gcc=-Wno-unused-label
94CERRWARN +=	-_gcc=-Wno-unused-function
95CERRWARN +=	-_gcc=-Wno-clobbered
96CERRWARN +=	-_gcc=-Wno-empty-body
97CERRWARN +=	-_gcc=-Wno-extra
98CERRWARN +=	-_gcc=-Wno-address
99
100all:=		TARGET= all
101install:=	TARGET= install
102clean:=		TARGET= clean
103clobber:=	TARGET= clobber
104lint:=		TARGET= lint
105strip:=		TARGET= strip
106catalog:=	TARGET= catalog
107_msg:=		TARGET= catalog
108
109ROOTLIBLPPROG=	$(PROG:%=$(ROOTLIBLP)/%)
110ROOTBINLPPROG=	$(PROG:%=$(ROOTBINLP)/%)
111ROOTETCLPPROG=	$(PROG:%=$(ROOTETCLP)/%)
112ROOTUSRUCBPROG=	$(PROG:%=$(ROOTUSRUCB)/%)
113ROOTLIBLPPOSTPROG=	$(PROG:%=$(ROOTLIBLPPOST)/%)
114ROOTLIBLPLOCLPROG=	$(PROG:%=$(ROOTLIBLPLOCL)/%)
115
116$(ROOTLIBLP)/%	\
117$(ROOTBINLP)/%	\
118$(ROOTETCLP)/%	\
119$(ROOTUSRUCB)/%	\
120$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%:	%
121		$(INS.file)
122