Makefile.com revision 2
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# CDDL HEADER START
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# The contents of this file are subject to the terms of the
0d2f4bc964616a7fec76406480264fcaa2cfbc14ff# Common Development and Distribution License (the "License").
0d2f4bc964616a7fec76406480264fcaa2cfbc14ff# You may not use this file except in compliance with the License.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# or http://www.opensolaris.org/os/licensing.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# See the License for the specific language governing permissions
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# and limitations under the License.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# When distributing Covered Code, include this CDDL HEADER in each
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# If applicable, add the following below this CDDL HEADER, with the
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# fields enclosed by brackets "[]" replaced with your own identifying
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# information: Portions Copyright [yyyy] [name of copyright owner]
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# CDDL HEADER END
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#
0d2f4bc964616a7fec76406480264fcaa2cfbc14ff# Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# lib/libsldap/Makefile.com
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxLIBRARY= libsldap.a
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxVERS= .1
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxSLDAPOBJ= ns_common.o ns_reads.o ns_writes.o \
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx ns_connect.o ns_config.o ns_error.o \
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx ns_cache_door.o ns_getalias.o ns_trace.o \
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx ns_init.o ns_crypt.o ns_confmgr.o \
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx ns_mapping.o ns_sasl.o \
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx ns_standalone.o ns_connmgmt.o
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxOBJECTS= $(SLDAPOBJ)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxinclude ../../Makefile.lib
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxSRCS = $(SLDAPOBJ:%.o=../common/%.c)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxLIBS = $(DYNLIB) $(LINTLIB)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx$(LINTLIB):= SRCS=../common/llib-lsldap
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxLDLIBS += -lnsl -lldap -lscf -lc
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxSRCDIR = ../common
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# The following objects are unused. Refer to comments in Makefile.master.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxUNUSEDOBJS = ns_wrapper.o
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxUNUSEDFILES = $(UNUSEDOBJS:%.o=$(SRCDIR)/%.c)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxPOST_PROCESS_SO += $(ACCESS_UNUSEDFILES)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxCFLAGS += $(CCVERBOSE)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxLOCFLAGS += -D_REENTRANT -DSUNW_OPTIONS
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxCPPFLAGS += -I../common -I$(SRC)/lib/libldap5/include/ldap \
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx -I/usr/include/mps $(LOCFLAGS)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# Stop lazy loading of libraries so that libldap.so
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx# is initialized at run time.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxDYNFLAGS += $(ZNOLAZYLOAD)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxLINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx.KEEP_STATE:
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxall: stub $(LIBS)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxlint: lintcheck
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxinclude ../../Makefile.targ
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx