xref: /titanic_41/usr/src/lib/libidmap/Makefile.com (revision 1fcced4c370617db71610fecffd5451a5894ca5e)
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#
227a8a68f5SJulian Pullen# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23c5c4113dSnw141292# Use is subject to license terms.
24c5c4113dSnw141292#
25c5c4113dSnw141292#
26c5c4113dSnw141292
27c5c4113dSnw141292LIBRARY =	libidmap.a
28c5c4113dSnw141292VERS =		.1
29*1fcced4cSJordan BrownLINT_OBJECTS =	\
30*1fcced4cSJordan Brown	directory_client.o	\
31*1fcced4cSJordan Brown	directory_error.o	\
32*1fcced4cSJordan Brown	directory_helper.o		\
33*1fcced4cSJordan Brown	directory_rpc_clnt.o	\
34*1fcced4cSJordan Brown	sidutil.o		\
35*1fcced4cSJordan Brown	sized_array.o		\
36*1fcced4cSJordan Brown	idmap_api.o		\
37*1fcced4cSJordan Brown	idmap_cache.o		\
38*1fcced4cSJordan Brown	miscutils.o		\
39*1fcced4cSJordan Brown	namemaps.o		\
40*1fcced4cSJordan Brown	utils.o
41*1fcced4cSJordan Brown
42*1fcced4cSJordan BrownOBJECTS = $(LINT_OBJECTS)	\
43*1fcced4cSJordan Brown	idmap_xdr.o
44c5c4113dSnw141292
45c5c4113dSnw141292include ../../Makefile.lib
46*1fcced4cSJordan BrownC99MODE = $(C99_ENABLE)
47479ac375Sdm199847
48c5c4113dSnw141292LIBS =		$(DYNLIB) $(LINTLIB)
497a8a68f5SJulian PullenLDLIBS +=	-lc -lldap -lsldap -lavl -ladutils -lnsl
50479ac375Sdm199847CPPFLAGS += -I$(SRC)/lib/libsldap/common
51c5c4113dSnw141292
52c5c4113dSnw141292SRCDIR =	../common
53c5c4113dSnw141292$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
54c5c4113dSnw141292
559b214d32SJordan BrownIDMAP_PROT_X =		$(SRC)/uts/common/rpcsvc/idmap_prot.x
56c5c4113dSnw141292
577a8a68f5SJulian PullenADUTILS_DIR =		$(SRC)/lib/libadutils/common
587a8a68f5SJulian Pullen
59c5c4113dSnw141292CFLAGS +=	$(CCVERBOSE)
609b214d32SJordan BrownCPPFLAGS +=	-D_REENTRANT -I$(SRCDIR) -I$(ADUTILS_DIR)
617a8a68f5SJulian Pullen
629b214d32SJordan BrownCLOBBERFILES +=	idmap_xdr.c
63c5c4113dSnw141292
64c5c4113dSnw141292lint := OBJECTS = $(LINT_OBJECTS)
65c5c4113dSnw141292
66c5c4113dSnw141292.KEEP_STATE:
67c5c4113dSnw141292
689b214d32SJordan Brownall: $(LIBS)
69c5c4113dSnw141292
709b214d32SJordan Brownidmap_xdr.c:	$(IDMAP_PROT_X)
71c5c4113dSnw141292	$(RM) $@; $(RPCGEN) -CMNc -o $@ $(IDMAP_PROT_X)
72c5c4113dSnw141292
73c5c4113dSnw141292lint: lintcheck
74c5c4113dSnw141292
75479ac375Sdm199847LINTFLAGS += -erroff=E_CONSTANT_CONDITION
76479ac375Sdm199847LINTFLAGS64 += -erroff=E_CONSTANT_CONDITION
77479ac375Sdm199847
78c5c4113dSnw141292include ../../Makefile.targ
79