xref: /titanic_41/usr/src/lib/print/Makefile (revision 25cf1a301a396c38e8adf52c15f537b80d2483f7)
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/client/lib/Makefile
29#
30
31LIBRARY =	libprint.a
32VERS=.2
33
34FILEMODE=	0555
35
36NS_CMN =	ns_bsd_addr.o ns_cmn_kvp.o ns_cmn_printer.o
37NS_SWITCH = 	nss_printer.o nss_convert.o nss_write.o nss_ldap.o
38NS_SUPPORT =	ns.o ${NS_CMN} ${NS_SWITCH}
39
40OBJECTS =	network.o job.o list.o misc.o $(NS_SUPPORT)
41
42
43include		../Makefile.lib
44
45MAPFILES=	mapfile-vers
46MAPOPTS=	$(MAPFILES:%=-M %)
47
48CPPFLAGS +=	-I../../head -I../ -I.  -D_REENTRANT
49LDLIBS +=	-lnsl -lsocket -lc -lldap
50DYNFLAGS +=	$(MAPOPTS)
51
52
53LIBS = $(DYNLIB)	# could be += for static and dynamic
54# for messaging catalog
55#
56POFILE= bsd.po
57SRCS= $(OBJECTS:%.o=%.c)
58XGETFLAGS +=-a
59
60.KEEP_STATE:
61
62_msg:	$(POFILE)
63
64$(POFILE):      $(SRCS)
65	$(RM)	$@
66	$(COMPILE.cpp)   $(SRCS) > $(POFILE).i
67	$(XGETTEXT) $(XGETFLAGS)        $(POFILE).i
68	sed "/^domain/d"        messages.po > $@
69	$(RM) messages.po $(POFILE).i
70
71all :	$(LIBS)
72
73install:	$(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
74
75# definitions for lint
76
77$(LINTLIB):= SRCS = llib-lprint
78CLEANFILES +=	$(LINTLIB) $(LINTOUT)
79
80lint:	lintcheck
81
82cstyle:
83	cstyle $(SRCS)
84
85strip :
86
87$(ROOTLIBDIR):
88	$(INS.dir)
89
90include		../Makefile.targ
91