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