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