Makefile revision 355b4669e025ff377602b6fc7caaf30dbc218371
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
9a769d8b16eb4e3d088ba1e5bd6ccb65504e1c9eTinderbox User# CDDL HEADER START
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License, Version 1.0 only
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# (the "License"). You may not use this file except in compliance
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# with the License.
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox User#
6715db6593ce9a271ac3131cd7a886feaa386a2eEvan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
83a28ca274521e15086fc39febde507bcc4e145eMark Andrews# or http://www.opensolaris.org/os/licensing.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# See the License for the specific language governing permissions
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# CDDL HEADER END
be0982e9e4b0631670a4c449ddf8a2bfaf04eb92Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Use is subject to license terms.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# ident "%Z%%M% %I% %E% SMI"
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# cmd/lp/client/lp/Makefile
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntinclude ../Makefile.sp
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
9f40a783228eed48531756a6ab510d1e9c51648cTinderbox UserPROG= lp
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox UserMANIFEST= cleanup.xml
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
9a769d8b16eb4e3d088ba1e5bd6ccb65504e1c9eTinderbox UserSRCS= $(PROG).c
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntROOTMANIFESTDIR= $(ROOTSVCAPPLICATIONPRINT)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntROOTMETHOD= $(ROOTLIBSVCMETHOD)/print-cleanup
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(ROOTMANIFEST) := FILEMODE= 444
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntOBJS= $(SRCS:.c=.o)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntROOTBINPROG= $(PROG:%=$(ROOTBIN)/%)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntROOTUSRBINSYMLINK= $(ROOTBIN)/lpr
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntROOTUSRUCBSYMLINK= $(ROOTUSRUCB)/lpr
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntPRINTSYMLINK= $(ROOTLIB)/print/printd
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(ROOTLIB)/print := OWNER=root
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(ROOTLIB)/print := GROUP=lp
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews$(ROOTLIBSVCMETHOD)/print-cleanup := FILEMODE=555
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntFILEMODE= 04511
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntOWNER= root
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntCPPFLAGS += -I$(NPRTINC)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntLDLIBS += $(LIBNPRT)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt.KEEP_STATE:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
17b7c609028e5acb847b6f78833d008f820daa5dEvan Huntall: $(PROG)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntinstall: all $(ROOTBIN) $(ROOTLIB)/print $(ROOTBINPROG) \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(ROOTUSRBINSYMLINK) $(ROOTUSRUCBSYMLINK) $(PRINTSYMLINK) \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(ROOTMANIFEST) $(ROOTMETHOD)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntcheck: $(CHKMANIFEST)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(ROOTBIN) $(ROOTLIB)/print:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(INS.dir)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(ROOTUSRBINSYMLINK):
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $@; $(SYMLINK) $(PROG) $@
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(ROOTUSRUCBSYMLINK):
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $@; $(SYMLINK) ../bin/lpr $@
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews$(PRINTSYMLINK):
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $@; $(SYMLINK) ../../bin/$(PROG) $@
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntstrip:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(STRIP) $(PROG)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntlint:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(LINT.c) $(PROG).c $(LDLIBS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntcstyle:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt cstyle $(SRCS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews_msg:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt @echo "Messages are made in usr/src/cmd/print"
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntclean:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $(OBJS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntclobber: clean
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt -$(RM) $(PROG) $(CLOBBERFILES)