xref: /titanic_51/usr/src/cmd/lp/Makefile.lp (revision 2a9459bdd821c1cf59590a7a9069ac9c591e8a6b)
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 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29#
30# cmd/lp/Makefile.lp
31# Common makefile definitions (should be) used by all lp makefiles
32#
33
34include		$(SRC)/cmd/Makefile.cmd
35
36LPROOT=		$(SRC)/cmd/lp
37ROOTVAR=	$(ROOT)/var
38ROOTVARSP=	$(ROOT)/var/spool
39
40ROOTETCLP=	$(ROOTETC)/lp
41ROOTLIBLP=	$(ROOTLIB)/lp
42ROOTBINLP=	$(ROOTBIN)/lp
43ROOTLIBLPPOST =	$(ROOTLIBLP)/postscript
44ROOTLIBLPLOCL =	$(ROOTLIBLP)/local
45
46ROOTUSRUCB=	$(ROOT)/usr/ucb
47
48#
49# Typical owner and group for LP things. These can be overridden
50# in the individual makefiles.
51#
52OWNER	=	root
53GROUP	=	lp
54SUPER	=	root
55
56#
57# $(EMODES): Modes for executables
58# $(SMODES): Modes for setuid executables
59# $(DMODES): Modes for directories
60#
61EMODES	=	0555
62SMODES	=	04555
63DMODES	=	0775
64
65
66INC	=	$(ROOT)/usr/include
67INCSYS  =       $(INC)/sys
68
69LPINC	=	$(SRC)/cmd/lp/include
70LPLIB	=	$(SRC)/cmd/lp/lib
71
72LIBACC	=	$(LPLIB)/access/liblpacc.a
73LIBCLS	=	$(LPLIB)/class/liblpcls.a
74LIBFLT	=	$(LPLIB)/filters/liblpflt.a
75LIBFRM	=	$(LPLIB)/forms/liblpfrm.a
76LIBLP	=	$(LPLIB)/lp/liblp.a
77LIBMSG	=	$(LPLIB)/msgs/liblpmsg.a
78LIBOAM	=	$(LPLIB)/oam/liblpoam.a
79LIBPRT	=	$(LPLIB)/printers/liblpprt.a
80LIBREQ	=	$(LPLIB)/requests/liblpreq.a
81LIBSEC	=	$(LPLIB)/secure/liblpsec.a
82LIBUSR	=	$(LPLIB)/users/liblpusr.a
83
84LINTACC	=	$(LPLIB)/access/llib-llpacc.ln
85LINTCLS	=	$(LPLIB)/class/llib-llpcls.ln
86LINTFLT	=	$(LPLIB)/filters/llib-llpflt.ln
87LINTFRM	=	$(LPLIB)/forms/llib-llpfrm.ln
88LINTLP	=	$(LPLIB)/lp/llib-llp.ln
89LINTMSG	=	$(LPLIB)/msgs/llib-llpmsg.ln
90LINTOAM	=	$(LPLIB)/oam/llib-llpoam.ln
91LINTPRT	=	$(LPLIB)/printers/llib-llpprt.ln
92LINTREQ	=	$(LPLIB)/requests/llib-llpreq.ln
93LINTSEC	=	$(LPLIB)/secure/llib-llpsec.ln
94LINTUSR	=	$(LPLIB)/users/llib-llpusr.ln
95
96CFLAGS += -_gcc=-fwritable-strings -_gcc=-Wno-sequence-points
97CFLAGS64 += -_gcc=-fwritable-strings -_gcc=-Wno-sequence-points
98
99all:=           TARGET= all
100install:=       TARGET= install
101clean:=         TARGET= clean
102clobber:=       TARGET= clobber
103lint:=          TARGET= lint
104strip:=          TARGET= strip
105catalog:=	TARGET= catalog
106_msg:=		TARGET= catalog
107
108ROOTLIBLPPROG=	$(PROG:%=$(ROOTLIBLP)/%)
109ROOTBINLPPROG=	$(PROG:%=$(ROOTBINLP)/%)
110ROOTETCLPPROG=	$(PROG:%=$(ROOTETCLP)/%)
111ROOTUSRUCBPROG=	$(PROG:%=$(ROOTUSRUCB)/%)
112ROOTLIBLPPOSTPROG=	$(PROG:%=$(ROOTLIBLPPOST)/%)
113ROOTLIBLPLOCLPROG=	$(PROG:%=$(ROOTLIBLPLOCL)/%)
114
115$(ROOTLIBLP)/%	\
116$(ROOTBINLP)/%	\
117$(ROOTETCLP)/%	\
118$(ROOTUSRUCB)/%	\
119$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%:	%
120		$(INS.file)
121