xref: /illumos-gate/usr/src/cmd/lp/lib/filters/Makefile (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
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 1990-2003 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27LIBRARY	=	liblpflt.a
28
29OBJECTS =	conv.o		\
30		delfilter.o	\
31		dumpfilters.o	\
32		freefilter.o	\
33		getfilter.o	\
34		filtertable.o	\
35		insfilter.o	\
36		loadfilters.o	\
37		putfilter.o	\
38		regex.o		\
39		search.o	\
40		trash.o
41
42include         ../../Makefile.lp
43
44include		../../../../lib/Makefile.lib
45
46# Specifically request the construction of a static library.
47# This library is not installed in the proto area.
48LIBS = $(LIBRARY)
49
50CPPFLAGS =	-I../../include $(CPPFLAGS.master)
51
52CERRWARN +=	-_gcc=-Wno-uninitialized
53CERRWARN +=	-_gcc=-Wno-parentheses
54
55POFILE =	lp_lib_filters.po
56
57.KEEP_STATE:
58
59all install :	$(LIBS)
60
61include		../../../../lib/Makefile.targ
62
63CLEANFILES	+= llib-llpflt.ln
64LINTFLAGS = -nvx
65SRCS= $(OBJECTS:%.o=%.c)
66
67lint:	lintlib
68	$(LINT.c) $(LINTFLAGS) $(SRCS)
69
70lintlib:
71	$(LINT.c) $(LINTFLAGS) -o lpflt llib-llpflt
72
73include		../Makefile.msg
74