xref: /titanic_41/usr/src/lib/libadutils/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
12b4a7802SBaban Kenkre#
22b4a7802SBaban Kenkre# CDDL HEADER START
32b4a7802SBaban Kenkre#
42b4a7802SBaban Kenkre# The contents of this file are subject to the terms of the
52b4a7802SBaban Kenkre# Common Development and Distribution License (the "License").
62b4a7802SBaban Kenkre# You may not use this file except in compliance with the License.
72b4a7802SBaban Kenkre#
82b4a7802SBaban Kenkre# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92b4a7802SBaban Kenkre# or http://www.opensolaris.org/os/licensing.
102b4a7802SBaban Kenkre# See the License for the specific language governing permissions
112b4a7802SBaban Kenkre# and limitations under the License.
122b4a7802SBaban Kenkre#
132b4a7802SBaban Kenkre# When distributing Covered Code, include this CDDL HEADER in each
142b4a7802SBaban Kenkre# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152b4a7802SBaban Kenkre# If applicable, add the following below this CDDL HEADER, with the
162b4a7802SBaban Kenkre# fields enclosed by brackets "[]" replaced with your own identifying
172b4a7802SBaban Kenkre# information: Portions Copyright [yyyy] [name of copyright owner]
182b4a7802SBaban Kenkre#
192b4a7802SBaban Kenkre# CDDL HEADER END
202b4a7802SBaban Kenkre#
212b4a7802SBaban Kenkre#
227a8a68f5SJulian Pullen# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
232b4a7802SBaban Kenkre# Use is subject to license terms.
242b4a7802SBaban Kenkre#
252b4a7802SBaban Kenkre
262b4a7802SBaban KenkreLIBRARY =	libadutils.a
272b4a7802SBaban KenkreVERS =		.1
28bd428526SJulian PullenOBJECTS =	adutils.o addisc.o adutils_threadfuncs.o
29bd428526SJulian PullenLINT_OBJECTS =	adutils.o addisc.o adutils_threadfuncs.o
302b4a7802SBaban Kenkre
312b4a7802SBaban Kenkreinclude ../../Makefile.lib
322b4a7802SBaban Kenkre
33bd428526SJulian PullenC99MODE=	-xc99=%all
34bd428526SJulian PullenC99LMODE=	-Xc99=%all
35bd428526SJulian Pullen
362b4a7802SBaban KenkreLIBS =		$(DYNLIB) $(LINTLIB)
377a8a68f5SJulian PullenLDLIBS +=	-lc -lldap -lresolv -lsocket -lnsl
382b4a7802SBaban KenkreSRCDIR =	../common
392b4a7802SBaban Kenkre$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
407a8a68f5SJulian Pullen
412b4a7802SBaban KenkreCFLAGS +=	$(CCVERBOSE)
42bd428526SJulian PullenCPPFLAGS +=	-D_REENTRANT -I$(SRCDIR) -I$(SRC)/lib/libldap5/include/ldap
432b4a7802SBaban Kenkre
44*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-type-limits
45*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
46*7014882cSRichard Lowe
472b4a7802SBaban Kenkrelint := OBJECTS = $(LINT_OBJECTS)
482b4a7802SBaban Kenkre
492b4a7802SBaban Kenkre.KEEP_STATE:
502b4a7802SBaban Kenkre
519b214d32SJordan Brownall: $(LIBS)
522b4a7802SBaban Kenkre
532b4a7802SBaban Kenkrelint: lintcheck
542b4a7802SBaban Kenkre
557a8a68f5SJulian PullenLINTFLAGS += -erroff=E_CONSTANT_CONDITION
567a8a68f5SJulian PullenLINTFLAGS64 += -erroff=E_CONSTANT_CONDITION
577a8a68f5SJulian Pullen
582b4a7802SBaban Kenkreinclude ../../Makefile.targ
59