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