1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson#
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# CDDL HEADER START
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson#
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# The contents of this file are subject to the terms of the
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# Common Development and Distribution License (the "License").
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# You may not use this file except in compliance with the License.
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson#
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# or http://www.opensolaris.org/os/licensing.
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# See the License for the specific language governing permissions
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# and limitations under the License.
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson#
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# When distributing Covered Code, include this CDDL HEADER in each
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# If applicable, add the following below this CDDL HEADER, with the
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# fields enclosed by brackets "[]" replaced with your own identifying
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# information: Portions Copyright [yyyy] [name of copyright owner]
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson#
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# CDDL HEADER END
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson#
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson#
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson# Use is subject to license terms.
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson#
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleesoninclude ../Makefile.sp
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue GleesonROOTLIBLPBIN = $(ROOTLIBLP)/bin
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue GleesonPROG = printer-info
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue GleesonSRCS = $(PROG).c
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue GleesonOBJECTS = $(PROG).o
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue GleesonROOTPROG= $(PROG:%=$(ROOTLIBLPBIN)/%)
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson$(ROOTPROG) := FILEMODE=555
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue GleesonCERRWARN += -_gcc=-Wno-implicit-function-declaration
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
191c289b86668766245f78ec1f87557319bc46a1Charles Ting.KEEP_STATE:
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleesonall: $(PROG)
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson$(ROOTLIBLPBIN):
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson $(INS.dir)
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson$(ROOTLIBLPBIN)/%: %
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson $(INS.file)
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleesoninstall: all $(ROOTLIBLPBIN) $(ROOTPROG)
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson$(PROGRAM): $(OBJECTS)
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson $(CC) $(CFLAGS) -o $@ $(OBJECTS)
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleesonclean:
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson $(RM) $(PROG) *.o
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleesoncstyle:
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson cstyle $(SRCS)
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleesonclobber: clean
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleesonstrip lint:
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson
1bdd6c0e3710e91cb1f31aa78de33cb638494480Sue Gleeson