Makefile revision 0a44ef6d9afbfe052a7e975f55ea0d2954b62a82
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If applicable, add the following below this CDDL HEADER, with the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# ident "%Z%%M% %I% %E% SMI"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweBINPROGS = lp lpstat cancel enable disable $(UCBPROGS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweOBJS = $(BINPROGS:=.o) $(SBINPROGS:=.o) $(LIBPRINTPROGS:=.o) common.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTUSRSBINPROGS = $(SBINPROGS:%=$(ROOTUSRSBIN)/%)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTLIBPRINTPROGS = $(LIBPRINTPROGS:%=$(ROOTLIBPRINT)/%)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += -I../../../lib/print/libpapi-common/common
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# each program needs common.o as well
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS): $(BINPROGS:%=%.c) $(SBINPROGS:%=%.c) $(LIBPRINTPROGS:%=%.c) common.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# ucb links (lptest is handled in usr/src/cmd/lp/cmd/Makefile)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTUSRLIBSYMLINKS = $(SBINPROGS:%=$(ROOTLIB)/%)
lint: