1*c5c4113dSnw141292# 2*c5c4113dSnw141292# CDDL HEADER START 3*c5c4113dSnw141292# 4*c5c4113dSnw141292# The contents of this file are subject to the terms of the 5*c5c4113dSnw141292# Common Development and Distribution License (the "License"). 6*c5c4113dSnw141292# You may not use this file except in compliance with the License. 7*c5c4113dSnw141292# 8*c5c4113dSnw141292# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*c5c4113dSnw141292# or http://www.opensolaris.org/os/licensing. 10*c5c4113dSnw141292# See the License for the specific language governing permissions 11*c5c4113dSnw141292# and limitations under the License. 12*c5c4113dSnw141292# 13*c5c4113dSnw141292# When distributing Covered Code, include this CDDL HEADER in each 14*c5c4113dSnw141292# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*c5c4113dSnw141292# If applicable, add the following below this CDDL HEADER, with the 16*c5c4113dSnw141292# fields enclosed by brackets "[]" replaced with your own identifying 17*c5c4113dSnw141292# information: Portions Copyright [yyyy] [name of copyright owner] 18*c5c4113dSnw141292# 19*c5c4113dSnw141292# CDDL HEADER END 20*c5c4113dSnw141292# 21*c5c4113dSnw141292# 22*c5c4113dSnw141292# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*c5c4113dSnw141292# Use is subject to license terms. 24*c5c4113dSnw141292# 25*c5c4113dSnw141292# ident "%Z%%M% %I% %E% SMI" 26*c5c4113dSnw141292# 27*c5c4113dSnw141292 28*c5c4113dSnw141292LIBRARY = libidmap.a 29*c5c4113dSnw141292VERS = .1 30*c5c4113dSnw141292OBJECTS = idmap_xdr.o utils.o idmap_api.o 31*c5c4113dSnw141292LINT_OBJECTS = utils.o idmap_api.o 32*c5c4113dSnw141292 33*c5c4113dSnw141292include ../../Makefile.lib 34*c5c4113dSnw141292 35*c5c4113dSnw141292LIBS = $(DYNLIB) $(LINTLIB) 36*c5c4113dSnw141292LDLIBS += -lc -lnsl 37*c5c4113dSnw141292 38*c5c4113dSnw141292SRCDIR = ../common 39*c5c4113dSnw141292$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) 40*c5c4113dSnw141292 41*c5c4113dSnw141292IDMAP_PROT_DIR = $(SRC)/head/rpcsvc 42*c5c4113dSnw141292IDMAP_PROT_X = $(IDMAP_PROT_DIR)/idmap_prot.x 43*c5c4113dSnw141292IDMAP_PROT_H = $(IDMAP_PROT_DIR)/idmap_prot.h 44*c5c4113dSnw141292 45*c5c4113dSnw141292CFLAGS += $(CCVERBOSE) 46*c5c4113dSnw141292CPPFLAGS += -D_REENTRANT -I$(SRCDIR) -I$(IDMAP_PROT_DIR) 47*c5c4113dSnw141292#CPPFLAGS += -D_REENTRANT -I$(SRCDIR) 48*c5c4113dSnw141292CLOBBERFILES += $(IDMAP_PROT_H) $(SRCDIR)/idmap_xdr.c 49*c5c4113dSnw141292 50*c5c4113dSnw141292lint := OBJECTS = $(LINT_OBJECTS) 51*c5c4113dSnw141292 52*c5c4113dSnw141292.KEEP_STATE: 53*c5c4113dSnw141292 54*c5c4113dSnw141292all: $(LIBS) 55*c5c4113dSnw141292 56*c5c4113dSnw141292$(IDMAP_PROT_H): $(IDMAP_PROT_X) 57*c5c4113dSnw141292 $(RM) $@; $(RPCGEN) -CMNh -o $@ $(IDMAP_PROT_X) 58*c5c4113dSnw141292 59*c5c4113dSnw141292$(SRCDIR)/idmap_xdr.c: $(IDMAP_PROT_H) $(IDMAP_PROT_X) 60*c5c4113dSnw141292 $(RM) $@; $(RPCGEN) -CMNc -o $@ $(IDMAP_PROT_X) 61*c5c4113dSnw141292 62*c5c4113dSnw141292lint: lintcheck 63*c5c4113dSnw141292 64*c5c4113dSnw141292include ../../Makefile.targ 65