xref: /illumos-gate/usr/src/cmd/lp/lib/lp/Makefile (revision 55fea89d)
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#
23#
24# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# ident	"%Z%%M%	%I%	%E% SMI"
28#
29# cmd/lp/lib/lp/Makefile
30#
31
32LIBRARY	=	liblp.a
33
34OBJECTS =	Syscalls.o	\
35		Sys_malloc.o	\
36		addlist.o	\
37		addstring.o	\
38		appendlist.o	\
39		alerts.o	\
40		charset.o	\
41		cs_strcmp.o	\
42		cs_strncmp.o	\
43		dellist.o	\
44		dashos.o	\
45		dirs.o		\
46		duplist.o	\
47		files.o		\
48		freelist.o	\
49		getlist.o	\
50		getname.o	\
51		getpaths.o	\
52		getspooldir.o	\
53		isterminfo.o	\
54		joinlist.o	\
55		lenlist.o	\
56		lp_errno.o	\
57		makepath.o	\
58		makestr.o	\
59		mergelist.o	\
60		next.o		\
61		printlist.o	\
62		sdn.o		\
63		sprintlist.o	\
64		searchlist.o	\
65		set_charset.o	\
66		set_pitch.o	\
67		set_size.o	\
68		sop.o		\
69		strip.o		\
70		syntax.o	\
71		tidbit.o	\
72		tx.o		\
73		wherelist.o	\
74		which.o
75
76
77include		../../../../lib/Makefile.lib
78include         ../../Makefile.lp
79
80# Specifically request the construction of a static library.
81# This library is not installed in the proto area.
82LIBS = $(LIBRARY)
83
84CPPFLAGS =	-I../../include $(CPPFLAGS.master) $(C_PICFLAGS)
85
86POFILE =	lp_lib_lp.po
87
88.KEEP_STATE:
89
90all install :	$(LIBS)
91
92include		../../../../lib/Makefile.targ
93
94CLEANFILES	+= llib-llp.ln
95LINTFLAGS = -nvx
96SRCS= $(OBJECTS:%.o=%.c)
97# lint does not take $(C_PICFLAGS)
98LINT_CPPFLAGS =	-I../../include $(CPPFLAGS.master)
99
100lint:	lintlib
101	$(LINT) $(LINTFLAGS) $(LINT_CPPFLAGS) $(SRCS)
102
103lintlib:
104	$(LINT) $(LINTFLAGS) $(LINT_CPPFLAGS) -o lp llib-llp
105
106include		../Makefile.msg
107