Makefile revision 9622934a862fa39a8e90c816c4136e293d75629d
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
1N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1N/A# Use is subject to license terms.
1N/A#
1N/A# ident "%Z%%M% %I% %E% SMI"
1N/A#
1N/A
1N/Ainclude ../Makefile.sp
1N/A
1N/AUCBPROGS = lpr lpq lprm lpc
1N/ABINPROGS = lp lpstat cancel enable disable $(UCBPROGS)
1N/ASBINPROGS = accept reject lpmove
1N/A
1N/ALIBPRINTPROGS = in.lpd
1N/A
1N/ALIBLPPROGS = $(BINPROGS) $(SBINPROGS)
1N/A
1N/A
1N/AOBJS = $(BINPROGS:=.o) $(SBINPROGS:=.o) $(LIBPRINTPROGS:=.o) common.o
1N/A
1N/AROOTLIBLPBIN=$(ROOTLIBLP)/bin
1N/A
1N/AROOTBINPROGS = $(BINPROGS:%=$(ROOTBIN)/%)
1N/AROOTUSRSBINPROGS = $(SBINPROGS:%=$(ROOTUSRSBIN)/%)
1N/AROOTLIBPRINTPROGS = $(LIBPRINTPROGS:%=$(ROOTLIBPRINT)/%)
1N/AROOTLIBLPPROGS = $(LIBLPPROGS:%=$(ROOTLIBLPBIN)/%)
1N/A
1N/A
1N/AFILEMODE = 0555
1N/AOWNER = root
1N/A
1N/Ainclude ../../Makefile.cmd
1N/A
1N/AMANIFEST= rfc1179.xml
1N/AROOTMANIFESTDIR= $(ROOTSVCAPPLICATIONPRINT)
1N/A$(ROOTMANIFEST) := FILEMODE= 444
1N/A
1N/ACFLAGS += $(CCVERBOSE)
1N/ACPPFLAGS += -I.
1N/ACPPFLAGS += -I../../../lib/print/libpapi-common/common
1N/ACPPFLAGS += -I$(ROOT)/usr/include
1N/ALDLIBS += -lpapi -lc
1N/Ain.lpd:= CFLAGS += -DSOLARIS_PRIVATE_POST_0_9
1N/Ain.lpd:= LDLIBS += -lnsl -lsocket
1N/A
1N/Aall: $(BINPROGS) $(SBINPROGS)
1N/A
1N/A# each program needs common.o as well
1N/A$(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS): $(BINPROGS:%=%.c) $(SBINPROGS:%=%.c) $(LIBPRINTPROGS:%=%.c) common.o
1N/A $(LINK.c) -o $@ $@.c common.o $(LDLIBS)
1N/A $(POST_PROCESS)
1N/A
1N/A# ucb links (lptest is handled in usr/src/cmd/lp/cmd/Makefile)
1N/AROOTUSRUCB = $(ROOT)/usr/ucb
1N/AROOTUCBSYMLINKS = $(UCBPROGS:%=$(ROOTUSRUCB)/%)
1N/A$(ROOTUSRUCB)/%: $(ROOTUSRUCB) %
1N/A
1N/A$(ROOTLIBLPBIN)/%: %
1N/A $(INS.file)
1N/A
1N/A$(ROOTUCBSYMLINKS):
1N/A $(RM) $@; $(SYMLINK) ../bin/$(@F) $@
1N/A
1N/A# usr/lib links
1N/AROOTUSRLIBSYMLINKS = $(SBINPROGS:%=$(ROOTLIB)/%)
1N/A$(ROOTLIB)/%: $(ROOTLIB) %
1N/A
1N/A$(ROOTUSRLIBSYMLINKS):
1N/A $(RM) $@; $(SYMLINK) ../sbin/$(@F) $@
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Ainstall: $(ROOTLIBLPPROGS) \
1N/A $(ROOTLIBPRINT) $(ROOTLIBPRINTPROGS) $(ROOTMANIFEST) \
1N/A $(ROOTUCBSYMLINKS) $(ROOTUSRLIBSYMLINKS)
1N/A
1N/Acheck: $(CHKMANIFEST)
1N/A
1N/Aclean:
1N/A $(RM) $(OBJS)
1N/A
1N/ACLOBBERFILES += $(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS)
1N/A
1N/Alint:
1N/A
1N/Ainclude ../../Makefile.targ
1N/A