xref: /onnv-gate/usr/src/cmd/lp/lib/papi/Makefile (revision 5905:056b84d6bf52)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51676Sjpk# Common Development and Distribution License (the "License").
61676Sjpk# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*5905Srie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
280Sstevel@tonic-gateLIBRARY =	psm-lpsched.a
290Sstevel@tonic-gateVERS=.1
300Sstevel@tonic-gate
310Sstevel@tonic-gateLPSCHED_OBJS =	lpsched-msgs.o lpsched-service.o lpsched-printers.o \
320Sstevel@tonic-gate		lpsched-jobs.o lpsched-misc.o
332264SjacobsOBJECTS =	$(LPSCHED_OBJS) service.o printer.o job.o ppd.o library.o
342264Sjacobs
350Sstevel@tonic-gate
360Sstevel@tonic-gateinclude		../../../../lib/Makefile.lib
370Sstevel@tonic-gateinclude         ../../Makefile.lp
380Sstevel@tonic-gate
390Sstevel@tonic-gateROOTLIBDIR=	$(ROOT)/usr/lib/print
400Sstevel@tonic-gate
410Sstevel@tonic-gateCPPFLAGS =	-I.
420Sstevel@tonic-gateCPPFLAGS +=	-I$(LPINC)
432264SjacobsCPPFLAGS +=	-I$(SRC)/lib/print/libpapi-common/common
440Sstevel@tonic-gateCPPFLAGS +=	-D_REENTRANT
451676SjpkCPPFLAGS +=	$(ENVCPPFLAGS1)
461676SjpkCPPFLAGS +=	$(ENVCPPFLAGS2)
474271SrieLDLIBS +=	-lcurses -lc
484271SrieLDLIBS +=	-L$(SRC)/cmd/lp/lib/msgs -llpmsg
494271SrieLDLIBS +=	-L$(SRC)/cmd/lp/lib/printers -llpprt
504271SrieLDLIBS +=	-L$(SRC)/cmd/lp/lib/class -llpcls
514271SrieLDLIBS +=	-L$(SRC)/cmd/lp/lib/requests -llpreq
524271SrieLDLIBS +=	-L$(SRC)/cmd/lp/lib/secure -llpsec
534271SrieLDLIBS +=	-L$(SRC)/cmd/lp/lib/forms -llpfrm
544271SrieLDLIBS +=	-L$(SRC)/cmd/lp/lib/access -llpacc
554271SrieLDLIBS +=	-L$(SRC)/cmd/lp/lib/lp -llp
560Sstevel@tonic-gate
572522SrafMAPFILES =	mapfile
580Sstevel@tonic-gate
590Sstevel@tonic-gateLIBS = $(DYNLIB)
600Sstevel@tonic-gateSRCS= $(OBJECTS:%.o=%.c)
610Sstevel@tonic-gate
620Sstevel@tonic-gate#${ROOTLIBDIR}:
630Sstevel@tonic-gate#	$(INS.dir)
640Sstevel@tonic-gate
650Sstevel@tonic-gatePOFILE =	lp_lib_papi_psm.po
660Sstevel@tonic-gate
670Sstevel@tonic-gate.KEEP_STATE:
680Sstevel@tonic-gate
690Sstevel@tonic-gateall:		$(LIBS)
700Sstevel@tonic-gate
710Sstevel@tonic-gate_msg:	$(POFILE)
720Sstevel@tonic-gate
730Sstevel@tonic-gateinstall:	$(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
740Sstevel@tonic-gate
750Sstevel@tonic-gatecstyle:
760Sstevel@tonic-gate		$(CSTYLE) $(SRCS)
770Sstevel@tonic-gate
780Sstevel@tonic-gatelint:	lintcheck
790Sstevel@tonic-gate
800Sstevel@tonic-gateinclude		../../../../lib/Makefile.targ
810Sstevel@tonic-gateinclude		../Makefile.msg
82