xref: /titanic_41/usr/src/lib/libidmap/Makefile.com (revision eb8d1e969b1e09e844c086bbe1d40ade6cbf2f10)
1c5c4113dSnw141292#
2c5c4113dSnw141292# CDDL HEADER START
3c5c4113dSnw141292#
4c5c4113dSnw141292# The contents of this file are subject to the terms of the
5c5c4113dSnw141292# Common Development and Distribution License (the "License").
6c5c4113dSnw141292# You may not use this file except in compliance with the License.
7c5c4113dSnw141292#
8c5c4113dSnw141292# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c5c4113dSnw141292# or http://www.opensolaris.org/os/licensing.
10c5c4113dSnw141292# See the License for the specific language governing permissions
11c5c4113dSnw141292# and limitations under the License.
12c5c4113dSnw141292#
13c5c4113dSnw141292# When distributing Covered Code, include this CDDL HEADER in each
14c5c4113dSnw141292# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c5c4113dSnw141292# If applicable, add the following below this CDDL HEADER, with the
16c5c4113dSnw141292# fields enclosed by brackets "[]" replaced with your own identifying
17c5c4113dSnw141292# information: Portions Copyright [yyyy] [name of copyright owner]
18c5c4113dSnw141292#
19c5c4113dSnw141292# CDDL HEADER END
20c5c4113dSnw141292#
21c5c4113dSnw141292#
22*eb8d1e96SGary Mills# Copyright 2015 Gary Mills
23c5866007SKeyur Desai# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24c5c4113dSnw141292#
25c5c4113dSnw141292#
26c5c4113dSnw141292
27c5c4113dSnw141292LIBRARY =	libidmap.a
28c5c4113dSnw141292VERS =		.1
291fcced4cSJordan BrownLINT_OBJECTS =	\
301fcced4cSJordan Brown	directory_client.o	\
311fcced4cSJordan Brown	directory_error.o	\
321fcced4cSJordan Brown	directory_helper.o		\
331fcced4cSJordan Brown	directory_rpc_clnt.o	\
341fcced4cSJordan Brown	sidutil.o		\
351fcced4cSJordan Brown	sized_array.o		\
361fcced4cSJordan Brown	idmap_api.o		\
371fcced4cSJordan Brown	idmap_cache.o		\
381fcced4cSJordan Brown	utils.o
391fcced4cSJordan Brown
401fcced4cSJordan BrownOBJECTS = $(LINT_OBJECTS)	\
411fcced4cSJordan Brown	idmap_xdr.o
42c5c4113dSnw141292
43c5c4113dSnw141292include ../../Makefile.lib
441fcced4cSJordan BrownC99MODE = $(C99_ENABLE)
45479ac375Sdm199847
46c5c4113dSnw141292LIBS =		$(DYNLIB) $(LINTLIB)
47cb174861Sjoyce mcintoshLDLIBS +=	-lc -lavl -lnsl -lnvpair -luutil
48c5c4113dSnw141292
49c5c4113dSnw141292SRCDIR =	../common
50c5c4113dSnw141292$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
51c5c4113dSnw141292
52*eb8d1e96SGary Mills# Relative path to ensure path to idmap_prot.h is also relative
53*eb8d1e96SGary MillsIDMAP_PROT_X =		../../../uts/common/rpcsvc/idmap_prot.x
54c5c4113dSnw141292
55c5c4113dSnw141292CFLAGS +=	$(CCVERBOSE)
56c5866007SKeyur DesaiCPPFLAGS +=	-D_REENTRANT -I$(SRCDIR)
577a8a68f5SJulian Pullen
587014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
597014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
607014882cSRichard Lowe
619b214d32SJordan BrownCLOBBERFILES +=	idmap_xdr.c
62c5c4113dSnw141292
63c5c4113dSnw141292lint := OBJECTS = $(LINT_OBJECTS)
64c5c4113dSnw141292
65c5c4113dSnw141292.KEEP_STATE:
66c5c4113dSnw141292
679b214d32SJordan Brownall: $(LIBS)
68c5c4113dSnw141292
699b214d32SJordan Brownidmap_xdr.c:	$(IDMAP_PROT_X)
70c5c4113dSnw141292	$(RM) $@; $(RPCGEN) -CMNc -o $@ $(IDMAP_PROT_X)
71c5c4113dSnw141292
72c5c4113dSnw141292lint: lintcheck
73c5c4113dSnw141292
74479ac375Sdm199847LINTFLAGS += -erroff=E_CONSTANT_CONDITION
75479ac375Sdm199847LINTFLAGS64 += -erroff=E_CONSTANT_CONDITION
76479ac375Sdm199847
77c5c4113dSnw141292include ../../Makefile.targ
78