Makefile.com revision 734b6a94890be549309b21156f8ed6d4561cac51
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ident "%Z%%M% %I% %E% SMI"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# lib/libldap5/Makefile.com
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLIBRARY= libldap.a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteVERS= .5
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Definition of all the objects macros
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The LDAP specific objects
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBEROBJS= bprint.o decode.o encode.o io.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDAPOBJS= abandon.o add.o bind.o cache.o charray.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte charset.o compare.o compat.o control.o countvalues.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte delete.o disptmpl.o dsparse.o error.o extendop.o free.o freevalues.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte friendly.o getattr.o getdn.o getdxbyname.o getentry.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte getfilter.o getoption.o getvalues.o memcache.o message.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte modify.o open.o os-ip.o proxyauthctrl.o psearch.o referral.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte rename.o request.o reslist.o result.o saslbind.o sasl.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sbind.o search.o setoption.o sort.o sortctrl.o srchpref.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte tmplout.o ufn.o unbind.o unescape.o url.o ldaputf8.o vlistctrl.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cram_md5.o secutil.o spagectrl.o digest_md5.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSSLDAPOBJS= clientinit.o ldapsinit.o errormap.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePRLDAPOBJS= ldappr-dns.o ldappr-error.o ldappr-public.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ldappr-io.o ldappr-threads.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteUTILOBJS= log.o line64.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Grouping it all together
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJECTS= $(BEROBJS) $(LDAPOBJS) $(SSLDAPOBJS) $(PRLDAPOBJS) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(UTILOBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# include library definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../Makefile.lib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNSS_LIBS= -lnspr4 -lplc4 -lnss3 -lssl3
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNSS_HDRS= /usr/include/mps
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNSS_LDPATH= /usr/lib/mps
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNSS_LDPATH64= $(NSS_LDPATH)/64
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDAP_FLAGS= -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS \
-D_SOLARIS_SDK \
-DUSE_WAITPID -DNEEDPROTOS \
-DNET_SSL -DNO_LIBLCACHE -DLDAP_REFERRALS \
-DNS_DOMESTIC -DLDAP_SSLIO_HOOKS -DSTR_TRANSLATION \
-DLDAP_SASLIO_HOOKS
# Include directories for all files
COM_INC= -I$(SRC)/lib/libldap5/include/ldap \
-I$(NSS_HDRS)
SRCS= $(BEROBJS:%.o=../sources/ldap/ber/%.c) \
$(LDAPOBJS:%.o=../sources/ldap/common/%.c) \
$(SSLDAPOBJS:%.o=../sources/ldap/ssldap/%.c) \
$(PRLDAPOBJS:%.o=../sources/ldap/prldap/%.c) \
$(UTILOBJS:%.o=../sources/ldap/util/%.c)
LIBS = $(DYNLIB) $(LINTLIB)
DYNFLAGS += $(ZNODELETE)
CPPFLAGS= $(COM_INC) $(CPPFLAGS.master)
# definitions for lint
$(LINTLIB):= SRCS=../sources/ldap/common/llib-lldap
$(LINTLIB):= LINTFLAGS=-nvx
$(LINTLIB):= TARGET_ARCH=
LINTOUT= lint.out
LINTSRC= $(LINTLIB:%.ln=%)
ROOTLINTDIR= $(ROOTLIBDIR)
ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%)
CLEANFILES += $(LINTOUT) $(LINTLIB)
CLOBBERFILES += $(MAPFILE)
# Local Libldap definitions
LOCFLAGS += $(XSTRCONST) -D_REENTRANT
# Following values defined in Makefile.master are overwritten here.
#sparc_C_PICFLAGS = $(sparc_C_BIGPICFLAGS)
sparcv9_C_PICFLAGS = $(sparcv9_C_BIGPICFLAGS)
#i386_C_PICFLAGS = $(i386_C_BIGPICFLAGS)
#amd64_C_PICFLAGS = $(amd64_C_BIGPICFLAGS)
MAPDIR = ../spec/$(TRANSMACH)
SPECMAPFILE = $(MAPDIR)/mapfile
CFLAGS += $(CCVERBOSE) $(LOCFLAGS)
CFLAGS64 += $(LOCFLAGS)
LDLIBS += -lsasl -lsocket -lnsl -lmd -lc
.KEEP_STATE:
# include library targets
include ../../Makefile.targ
pics/%.o: ../sources/ldap/ber/%.c
$(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
$(POST_PROCESS_O)
pics/%.o: ../sources/ldap/common/%.c
$(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
$(POST_PROCESS_O)
pics/%.o: ../sources/ldap/ssldap/%.c
$(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
$(POST_PROCESS_O)
pics/%.o: ../sources/ldap/prldap/%.c
$(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
$(POST_PROCESS_O)
pics/%.o: ../sources/ldap/util/%.c
$(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
$(POST_PROCESS_O)
# install rule for lint library target
$(ROOTLINTDIR)/%: ../sources/ldap/common/%
$(INS.file)