xref: /titanic_41/usr/src/cmd/print/Makefile.sp (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
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# cmd/print/Makefile.sp
29# Common makefile definitions (should be) used by all print(lp) makefiles
30#
31
32include		$(SRC)/cmd/Makefile.cmd
33
34LPROOT=		$(SRC)/cmd/lp
35NPRTROOT=	$(LPROOT)
36ROOTVAR=	$(ROOT)/var
37ROOTVARSP=	$(ROOT)/var/spool
38ROOTVARSPOOLPRINT=	$(ROOTVARSP)/print
39
40ROOTINIT_D=	$(ROOTETC)/init.d
41ROOTRC0_D=	$(ROOTETC)/rc0.d
42ROOTRCS_D=	$(ROOTETC)/rcS.d
43ROOTRC1_D=	$(ROOTETC)/rc1.d
44ROOTRC2_D=	$(ROOTETC)/rc2.d
45
46
47ROOTETCLP=	$(ROOTETC)/lp
48ROOTLIBLP=	$(ROOTLIB)/lp
49ROOTBINLP=	$(ROOTBIN)/lp
50ROOTLIBLPPOST =	$(ROOTLIBLP)/postscript
51ROOTLOCALLP=	$(ROOTLIBLP)/local
52ROOTLIBPRINT=	$(ROOTLIB)/print
53ROOTLIBPRINTBIN=	$(ROOTLIBPRINT)/bin
54
55ROOTUSRUCB=	$(ROOT)/usr/ucb
56
57
58
59#
60# Typical owner and group for LP things. These can be overridden
61# in the individual makefiles.
62#
63OWNER	=	root
64GROUP	=	lp
65SUPER	=	root
66
67$(ROOTINIT_D) :=	GROUP = sys
68$(ROOTRC0_D) :=		GROUP = sys
69$(ROOTRCS_D) :=		GROUP = sys
70$(ROOTRC1_D) :=		GROUP = sys
71$(ROOTRC2_D) :=		GROUP = sys
72$(ROOTUSRUCB) :=	GROUP = bin
73$(ROOTUSRSBIN) :=	GROUP = bin
74$(ROOTBIN) :=		GROUP = bin
75#
76# $(EMODES): Modes for executables
77# $(SMODES): Modes for setuid executables
78# $(DMODES): Modes for directories
79#
80EMODES	=	0555
81SMODES	=	04555
82DMODES	=	0755
83
84
85INC	=	$(ROOT)/usr/include
86INCSYS  =       $(INC)/sys
87
88LPINC	=	$(SRC)/include
89#NPRTINC	=	$(NPRTROOT)/include
90NPRTINC	=	$(SRC)/lib/print/libprint/common
91LPLIB	=	$(SRC)/lib
92LDLIBS +=	-L$(LPLIB)
93
94
95LIBNPRT =       -L$(ROOT)/usr/lib -lprint
96
97# lint definitions
98
99LINTFLAGS	+=	-L $(SRC)/lib/print -lprint -lnsl -lsocket
100
101all	:=TARGET= all
102install	:=TARGET= install
103clean	:=TARGET= clean
104clobber	:=TARGET= clobber
105lint	:=TARGET= lint
106strip	:=TARGET= strip
107_msg	:=TARGET= _msg
108
109ROOTLIBLPPROG=	$(PROG:%=$(ROOTLIBLP)/%)
110ROOTBINLPPROG=	$(PROG:%=$(ROOTBINLP)/%)
111ROOTETCLPPROG=	$(PROG:%=$(ROOTETCLP)/%)
112ROOTUSRUCBPROG=	$(PROG:%=$(ROOTUSRUCB)/%)
113ROOTLOCALLPPROG=	$(PROG:%=$(ROOTLOCALLP)/%)
114ROOTLIBLPPOSTPROG=	$(PROG:%=$(ROOTLIBLPPOST)/%)
115ROOTLIBPRINTPROG=	$(PROG:%=$(ROOTLIBPRINT)/%)
116
117$(ROOTLIBLP)/%	\
118$(ROOTBINLP)/%	\
119$(ROOTETCLP)/%	\
120$(ROOTUSRUCB)/%	\
121$(ROOTLOCALLP)/% \
122$(ROOTLIBLPPOST)/% \
123$(ROOTLIBPRINT)/% :	%
124		$(INS.file)
125