xref: /illumos-gate/usr/src/cmd/lp/lib/papi/Makefile (revision b76c14595f2dd8b4765b40057467eb8796111fde)
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# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY =	psm-lpsched.a
29VERS=.1
30
31LPSCHED_OBJS =	lpsched-msgs.o lpsched-service.o lpsched-printers.o \
32		lpsched-jobs.o lpsched-misc.o
33OBJECTS =	$(LPSCHED_OBJS) service.o printer.o job.o ppd.o library.o
34
35
36include		../../../../lib/Makefile.lib
37include         ../../Makefile.lp
38
39ROOTLIBDIR=	$(ROOT)/usr/lib/print
40
41CPPFLAGS =	-I.
42CPPFLAGS +=	-I$(LPINC)
43CPPFLAGS +=	-I$(SRC)/lib/print/libpapi-common/common
44CPPFLAGS +=	-D_REENTRANT
45CPPFLAGS +=	$(ENVCPPFLAGS1)
46CPPFLAGS +=	$(ENVCPPFLAGS2)
47LDLIBS +=	-lcurses -lc
48LDLIBS +=	-L$(SRC)/cmd/lp/lib/msgs -llpmsg
49LDLIBS +=	-L$(SRC)/cmd/lp/lib/printers -llpprt
50LDLIBS +=	-L$(SRC)/cmd/lp/lib/class -llpcls
51LDLIBS +=	-L$(SRC)/cmd/lp/lib/requests -llpreq
52LDLIBS +=	-L$(SRC)/cmd/lp/lib/secure -llpsec
53LDLIBS +=	-L$(SRC)/cmd/lp/lib/forms -llpfrm
54LDLIBS +=	-L$(SRC)/cmd/lp/lib/access -llpacc
55LDLIBS +=	-L$(SRC)/cmd/lp/lib/lp -llp
56
57MAPFILES =	mapfile
58
59LIBS = $(DYNLIB)
60SRCS= $(OBJECTS:%.o=%.c)
61
62#${ROOTLIBDIR}:
63#	$(INS.dir)
64
65POFILE =	lp_lib_papi_psm.po
66
67.KEEP_STATE:
68
69all:		$(LIBS)
70
71_msg:	$(POFILE)
72
73install:	$(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
74
75cstyle:
76		$(CSTYLE) $(SRCS)
77
78lint:	lintcheck
79
80include		../../../../lib/Makefile.targ
81include		../Makefile.msg
82