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# 22*7a8a68f5SJulian 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 28*7a8a68f5SJulian PullenOBJECTS = adutils.o addisc.o 29*7a8a68f5SJulian PullenLINT_OBJECTS = adutils.o addisc.o 302b4a7802SBaban Kenkre 312b4a7802SBaban Kenkreinclude ../../Makefile.lib 322b4a7802SBaban Kenkre 332b4a7802SBaban KenkreLIBS = $(DYNLIB) $(LINTLIB) 34*7a8a68f5SJulian PullenLDLIBS += -lc -lldap -lresolv -lsocket -lnsl 352b4a7802SBaban KenkreSRCDIR = ../common 362b4a7802SBaban Kenkre$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) 37*7a8a68f5SJulian Pullen 382b4a7802SBaban KenkreIDMAP_PROT_DIR = $(SRC)/head/rpcsvc 39*7a8a68f5SJulian PullenIDMAP_PROT_X = $(IDMAP_PROT_DIR)/idmap_prot.x 40*7a8a68f5SJulian PullenIDMAP_PROT_H = $(IDMAP_PROT_DIR)/idmap_prot.h 41*7a8a68f5SJulian Pullen 422b4a7802SBaban KenkreCFLAGS += $(CCVERBOSE) 43*7a8a68f5SJulian PullenCPPFLAGS += -D_REENTRANT -I$(SRCDIR) -I$(IDMAP_PROT_DIR) 44*7a8a68f5SJulian Pullen 45*7a8a68f5SJulian PullenCLOBBERFILES += $(IDMAP_PROT_H) 462b4a7802SBaban Kenkre 472b4a7802SBaban Kenkrelint := OBJECTS = $(LINT_OBJECTS) 482b4a7802SBaban Kenkre 492b4a7802SBaban Kenkre.KEEP_STATE: 502b4a7802SBaban Kenkre 51*7a8a68f5SJulian Pullenall: $(IDMAP_PROT_H) $(LIBS) 52*7a8a68f5SJulian Pullen 53*7a8a68f5SJulian Pullen$(IDMAP_PROT_H): $(IDMAP_PROT_X) 54*7a8a68f5SJulian Pullen $(RM) $@; $(RPCGEN) -CMNh -o $@ $(IDMAP_PROT_X) 552b4a7802SBaban Kenkre 562b4a7802SBaban Kenkrelint: lintcheck 572b4a7802SBaban Kenkre 58*7a8a68f5SJulian PullenLINTFLAGS += -erroff=E_CONSTANT_CONDITION 59*7a8a68f5SJulian PullenLINTFLAGS64 += -erroff=E_CONSTANT_CONDITION 60*7a8a68f5SJulian Pullen 612b4a7802SBaban Kenkreinclude ../../Makefile.targ 62