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# 25*b3700b07SGordon Ross# Copyright 2014 Nexenta Systems, Inc. All rights reserved. 26*b3700b07SGordon Ross# 272b4a7802SBaban Kenkre 282b4a7802SBaban KenkreLIBRARY = libadutils.a 292b4a7802SBaban KenkreVERS = .1 30*b3700b07SGordon RossOBJECTS = adutils.o addisc.o adutils_threadfuncs.o \ 31*b3700b07SGordon Ross ldap_ping.o srv_query.o 322b4a7802SBaban Kenkre 332b4a7802SBaban Kenkreinclude ../../Makefile.lib 342b4a7802SBaban Kenkre 35bd428526SJulian PullenC99MODE= -xc99=%all 36bd428526SJulian PullenC99LMODE= -Xc99=%all 37bd428526SJulian Pullen 382b4a7802SBaban KenkreLIBS = $(DYNLIB) $(LINTLIB) 39*b3700b07SGordon RossLDLIBS += -lldap -lresolv -lsocket -lnsl -lc 402b4a7802SBaban KenkreSRCDIR = ../common 412b4a7802SBaban Kenkre$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) 427a8a68f5SJulian Pullen 432b4a7802SBaban KenkreCFLAGS += $(CCVERBOSE) 44*b3700b07SGordon RossCPPFLAGS += -D_REENTRANT -I$(SRCDIR) 45*b3700b07SGordon RossCPPFLAGS += -I$(SRC)/lib/libldap5/include/ldap 462b4a7802SBaban Kenkre 477014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 487014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 497014882cSRichard Lowe 502b4a7802SBaban Kenkre.KEEP_STATE: 512b4a7802SBaban Kenkre 529b214d32SJordan Brownall: $(LIBS) 532b4a7802SBaban Kenkre 542b4a7802SBaban Kenkrelint: lintcheck 552b4a7802SBaban Kenkre 567a8a68f5SJulian PullenLINTFLAGS += -erroff=E_CONSTANT_CONDITION 577a8a68f5SJulian PullenLINTFLAGS64 += -erroff=E_CONSTANT_CONDITION 587a8a68f5SJulian Pullen 592b4a7802SBaban Kenkreinclude ../../Makefile.targ 60