xref: /illumos-gate/usr/src/cmd/lp/lib/papi/Makefile (revision 4abb96737d15cd2d6530b0aa7b8404ec911ad940)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20
21
22#
23#
24# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# ident	"%Z%%M%	%I%	%E% SMI"
28#
29# cmd/lp/lib/papi/Makefile
30#
31
32LIBRARY =	psm-lpsched.a
33VERS=.1
34
35LPSCHED_OBJS =	lpsched-msgs.o lpsched-service.o lpsched-printers.o \
36		lpsched-jobs.o lpsched-misc.o
37OBJECTS =	$(LPSCHED_OBJS) \
38		list.o attribute.o status.o service.o printer.o job.o
39
40include		../../../../lib/Makefile.lib
41include         ../../Makefile.lp
42
43ROOTLIBDIR=	$(ROOT)/usr/lib/print
44
45CPPFLAGS =	-I.
46CPPFLAGS +=	-I$(LPINC)
47CPPFLAGS +=	-I$(SRC)/lib
48CPPFLAGS +=	-D_REENTRANT
49CPPFLAGS +=	$(ENVCPPFLAGS1)
50CPPFLAGS +=	$(ENVCPPFLAGS2)
51LDLIBS +=	-lc
52LDLIBS	+=	-L$(SRC)/cmd/lp/lib/msgs -llpmsg
53LDLIBS	+=	-L$(SRC)/cmd/lp/lib/printers -llpprt
54LDLIBS	+=	-L$(SRC)/cmd/lp/lib/class -llpcls
55LDLIBS	+=	-L$(SRC)/cmd/lp/lib/requests -llpreq
56LDLIBS	+=	-L$(SRC)/cmd/lp/lib/secure -llpsec
57LDLIBS	+=	-L$(SRC)/cmd/lp/lib/forms -llpfrm
58LDLIBS	+=	-L$(SRC)/cmd/lp/lib/lp -llp
59
60MAPFILES=	mapfile-vers
61MAPOPTS=	$(MAPFILES:%=-M%)
62DYNFLAGS +=	$(MAPOPTS)
63
64
65LIBS = $(DYNLIB)
66SRCS= $(OBJECTS:%.o=%.c)
67
68#${ROOTLIBDIR}:
69#	$(INS.dir)
70
71POFILE =	lp_lib_papi_psm.po
72
73.KEEP_STATE:
74
75all:		$(LIBS)
76
77_msg:	$(POFILE)
78
79install:	$(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
80
81cstyle:
82		$(CSTYLE) $(SRCS)
83
84lint:	lintcheck
85
86include		../../../../lib/Makefile.targ
87include		../Makefile.msg
88