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