xref: /titanic_44/usr/src/lib/libidmap/Makefile.com (revision 479ac37569625bae44ffb80071d4bc865fc710ed)
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*479ac375Sdm199847# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23c5c4113dSnw141292# Use is subject to license terms.
24c5c4113dSnw141292#
25c5c4113dSnw141292# ident	"%Z%%M%	%I%	%E% SMI"
26c5c4113dSnw141292#
27c5c4113dSnw141292
28c5c4113dSnw141292LIBRARY =	libidmap.a
29c5c4113dSnw141292VERS =		.1
30*479ac375Sdm199847OBJECTS =	idmap_xdr.o utils.o idmap_api.o namemaps.o addisc.o
31*479ac375Sdm199847LINT_OBJECTS =	utils.o idmap_api.o namemaps.o addisc.o
32c5c4113dSnw141292
33c5c4113dSnw141292include ../../Makefile.lib
34c5c4113dSnw141292
35*479ac375Sdm199847
36c5c4113dSnw141292LIBS =		$(DYNLIB) $(LINTLIB)
37*479ac375Sdm199847LDLIBS +=	-lc -lnsl -lldap -lresolv -lsldap -lsocket
38*479ac375Sdm199847CPPFLAGS += -I$(SRC)/lib/libsldap/common
39c5c4113dSnw141292
40c5c4113dSnw141292SRCDIR =	../common
41c5c4113dSnw141292$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
42c5c4113dSnw141292
43c5c4113dSnw141292IDMAP_PROT_DIR =	$(SRC)/head/rpcsvc
44c5c4113dSnw141292IDMAP_PROT_X =		$(IDMAP_PROT_DIR)/idmap_prot.x
45c5c4113dSnw141292IDMAP_PROT_H =		$(IDMAP_PROT_DIR)/idmap_prot.h
46c5c4113dSnw141292
47c5c4113dSnw141292CFLAGS +=	$(CCVERBOSE)
48c5c4113dSnw141292CPPFLAGS +=	-D_REENTRANT -I$(SRCDIR) -I$(IDMAP_PROT_DIR)
49c5c4113dSnw141292#CPPFLAGS +=	-D_REENTRANT -I$(SRCDIR)
50c5c4113dSnw141292CLOBBERFILES +=	$(IDMAP_PROT_H) $(SRCDIR)/idmap_xdr.c
51c5c4113dSnw141292
52c5c4113dSnw141292lint := OBJECTS = $(LINT_OBJECTS)
53c5c4113dSnw141292
54c5c4113dSnw141292.KEEP_STATE:
55c5c4113dSnw141292
56c5c4113dSnw141292all: $(LIBS)
57c5c4113dSnw141292
58c5c4113dSnw141292$(IDMAP_PROT_H):	$(IDMAP_PROT_X)
59c5c4113dSnw141292	$(RM) $@; $(RPCGEN) -CMNh -o $@ $(IDMAP_PROT_X)
60c5c4113dSnw141292
61c5c4113dSnw141292$(SRCDIR)/idmap_xdr.c:	$(IDMAP_PROT_H) $(IDMAP_PROT_X)
62c5c4113dSnw141292	$(RM) $@; $(RPCGEN) -CMNc -o $@ $(IDMAP_PROT_X)
63c5c4113dSnw141292
64c5c4113dSnw141292lint: lintcheck
65c5c4113dSnw141292
66*479ac375Sdm199847LINTFLAGS += -erroff=E_CONSTANT_CONDITION
67*479ac375Sdm199847LINTFLAGS64 += -erroff=E_CONSTANT_CONDITION
68*479ac375Sdm199847
69c5c4113dSnw141292include ../../Makefile.targ
70