Makefile revision 9622934a862fa39a8e90c816c4136e293d75629d
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# CDDL HEADER START
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# The contents of this file are subject to the terms of the
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# Common Development and Distribution License (the "License").
92ae4d5885ea837ffe3dae9b2de742f871229b94Christian Maeder# You may not use this file except in compliance with the License.
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# or http://www.opensolaris.org/os/licensing.
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# See the License for the specific language governing permissions
92ae4d5885ea837ffe3dae9b2de742f871229b94Christian Maeder# and limitations under the License.
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# When distributing Covered Code, include this CDDL HEADER in each
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# CDDL HEADER END
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# Use is subject to license terms.
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian Maeder# ident "%Z%%M% %I% %E% SMI"
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian MaederBINPROGS = lp lpstat cancel enable disable $(UCBPROGS)
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian MaederOBJS = $(BINPROGS:=.o) $(SBINPROGS:=.o) $(LIBPRINTPROGS:=.o) common.o
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian MaederROOTUSRSBINPROGS = $(SBINPROGS:%=$(ROOTUSRSBIN)/%)
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian MaederROOTLIBPRINTPROGS = $(LIBPRINTPROGS:%=$(ROOTLIBPRINT)/%)
18548c6cc2dff13bf9f5f08b3f6cde6ca914df1dChristian MaederROOTLIBLPPROGS = $(LIBLPPROGS:%=$(ROOTLIBLPBIN)/%)
c208973c890b8f993297720fd0247bc7481d4304Christian MaederCPPFLAGS += -I../../../lib/print/libpapi-common/common
ea5ccb1c6e89486a54e1f4bd95840147e96093edChristian Maederin.lpd:= CFLAGS += -DSOLARIS_PRIVATE_POST_0_9
ea5ccb1c6e89486a54e1f4bd95840147e96093edChristian Maeder# each program needs common.o as well
74ce8ed78c62ad2b1ec30fa9292c6589e2b4d171Christian Maeder$(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS): $(BINPROGS:%=%.c) $(SBINPROGS:%=%.c) $(LIBPRINTPROGS:%=%.c) common.o
ea5ccb1c6e89486a54e1f4bd95840147e96093edChristian Maeder# ucb links (lptest is handled in usr/src/cmd/lp/cmd/Makefile)
ea5ccb1c6e89486a54e1f4bd95840147e96093edChristian MaederROOTUCBSYMLINKS = $(UCBPROGS:%=$(ROOTUSRUCB)/%)
92ae4d5885ea837ffe3dae9b2de742f871229b94Christian MaederROOTUSRLIBSYMLINKS = $(SBINPROGS:%=$(ROOTLIB)/%)
cdae1f4c0c6e32f5463a7ce9986600e27f8ac253Christian Maeder $(ROOTLIBPRINT) $(ROOTLIBPRINTPROGS) $(ROOTMANIFEST) \