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