17c478bd9Sstevel@tonic-gate# 245916cd2Sjpk# CDDL HEADER START 345916cd2Sjpk# 445916cd2Sjpk# The contents of this file are subject to the terms of the 545916cd2Sjpk# Common Development and Distribution License (the "License"). 645916cd2Sjpk# You may not use this file except in compliance with the License. 745916cd2Sjpk# 845916cd2Sjpk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 945916cd2Sjpk# or http://www.opensolaris.org/os/licensing. 1045916cd2Sjpk# See the License for the specific language governing permissions 1145916cd2Sjpk# and limitations under the License. 1245916cd2Sjpk# 1345916cd2Sjpk# When distributing Covered Code, include this CDDL HEADER in each 1445916cd2Sjpk# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1545916cd2Sjpk# If applicable, add the following below this CDDL HEADER, with the 1645916cd2Sjpk# fields enclosed by brackets "[]" replaced with your own identifying 1745916cd2Sjpk# information: Portions Copyright [yyyy] [name of copyright owner] 1845916cd2Sjpk# 1945916cd2Sjpk# CDDL HEADER END 2045916cd2Sjpk# 2145916cd2Sjpk# 22*f6acbf7cSrie# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gateLIBRARY= libldap.a 297c478bd9Sstevel@tonic-gateVERS= .5 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate# Definition of all the objects macros 327c478bd9Sstevel@tonic-gate# The LDAP specific objects 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateBEROBJS= bprint.o decode.o encode.o io.o 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateLDAPOBJS= abandon.o add.o bind.o cache.o charray.o \ 377c478bd9Sstevel@tonic-gate charset.o compare.o compat.o control.o countvalues.o \ 387c478bd9Sstevel@tonic-gate delete.o disptmpl.o dsparse.o error.o extendop.o free.o freevalues.o \ 397c478bd9Sstevel@tonic-gate friendly.o getattr.o getdn.o getdxbyname.o getentry.o \ 407c478bd9Sstevel@tonic-gate getfilter.o getoption.o getvalues.o memcache.o message.o \ 417c478bd9Sstevel@tonic-gate modify.o open.o os-ip.o proxyauthctrl.o psearch.o referral.o \ 427c478bd9Sstevel@tonic-gate rename.o request.o reslist.o result.o saslbind.o sasl.o \ 437c478bd9Sstevel@tonic-gate sbind.o search.o setoption.o sort.o sortctrl.o srchpref.o \ 447c478bd9Sstevel@tonic-gate tmplout.o ufn.o unbind.o unescape.o url.o ldaputf8.o vlistctrl.o \ 457c478bd9Sstevel@tonic-gate cram_md5.o secutil.o spagectrl.o digest_md5.o 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateSSLDAPOBJS= clientinit.o ldapsinit.o errormap.o 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gatePRLDAPOBJS= ldappr-dns.o ldappr-error.o ldappr-public.o \ 507c478bd9Sstevel@tonic-gate ldappr-io.o ldappr-threads.o 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gateUTILOBJS= log.o line64.o 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate# Grouping it all together 557c478bd9Sstevel@tonic-gateOBJECTS= $(BEROBJS) $(LDAPOBJS) $(SSLDAPOBJS) $(PRLDAPOBJS) \ 567c478bd9Sstevel@tonic-gate $(UTILOBJS) 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gate# include library definitions 597c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateNSS_LIBS= -lnspr4 -lplc4 -lnss3 -lssl3 627c478bd9Sstevel@tonic-gateNSS_HDRS= /usr/include/mps 637c478bd9Sstevel@tonic-gateNSS_LDPATH= /usr/lib/mps 647c478bd9Sstevel@tonic-gateNSS_LDPATH64= $(NSS_LDPATH)/64 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gateLDAP_FLAGS= -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS \ 687c478bd9Sstevel@tonic-gate -D_SOLARIS_SDK \ 697c478bd9Sstevel@tonic-gate -DUSE_WAITPID -DNEEDPROTOS \ 707c478bd9Sstevel@tonic-gate -DNET_SSL -DNO_LIBLCACHE -DLDAP_REFERRALS \ 717c478bd9Sstevel@tonic-gate -DNS_DOMESTIC -DLDAP_SSLIO_HOOKS -DSTR_TRANSLATION \ 727c478bd9Sstevel@tonic-gate -DLDAP_SASLIO_HOOKS 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate# Include directories for all files 767c478bd9Sstevel@tonic-gateCOM_INC= -I$(SRC)/lib/libldap5/include/ldap \ 777c478bd9Sstevel@tonic-gate -I$(NSS_HDRS) 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gateSRCS= $(BEROBJS:%.o=../sources/ldap/ber/%.c) \ 807c478bd9Sstevel@tonic-gate $(LDAPOBJS:%.o=../sources/ldap/common/%.c) \ 817c478bd9Sstevel@tonic-gate $(SSLDAPOBJS:%.o=../sources/ldap/ssldap/%.c) \ 827c478bd9Sstevel@tonic-gate $(PRLDAPOBJS:%.o=../sources/ldap/prldap/%.c) \ 837c478bd9Sstevel@tonic-gate $(UTILOBJS:%.o=../sources/ldap/util/%.c) 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateLIBS = $(DYNLIB) $(LINTLIB) 86*f6acbf7cSrieDYNFLAGS += $(ZNODELETE) 877c478bd9Sstevel@tonic-gate 8845916cd2SjpkCPPFLAGS= $(COM_INC) $(CPPFLAGS.master) 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate# definitions for lint 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS=../sources/ldap/common/llib-lldap 937c478bd9Sstevel@tonic-gate$(LINTLIB):= LINTFLAGS=-nvx 947c478bd9Sstevel@tonic-gate$(LINTLIB):= TARGET_ARCH= 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gateLINTOUT= lint.out 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gateLINTSRC= $(LINTLIB:%.ln=%) 997c478bd9Sstevel@tonic-gateROOTLINTDIR= $(ROOTLIBDIR) 1007c478bd9Sstevel@tonic-gateROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gateCLEANFILES += $(LINTOUT) $(LINTLIB) 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gate# Local Libldap definitions 1067c478bd9Sstevel@tonic-gateLOCFLAGS += $(XSTRCONST) -D_REENTRANT 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gate# Following values defined in Makefile.master are overwritten here. 1097c478bd9Sstevel@tonic-gate#sparc_C_PICFLAGS = $(sparc_C_BIGPICFLAGS) 1107c478bd9Sstevel@tonic-gatesparcv9_C_PICFLAGS = $(sparcv9_C_BIGPICFLAGS) 1117c478bd9Sstevel@tonic-gate#i386_C_PICFLAGS = $(i386_C_BIGPICFLAGS) 1127c478bd9Sstevel@tonic-gate#amd64_C_PICFLAGS = $(amd64_C_BIGPICFLAGS) 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) $(LOCFLAGS) 1157c478bd9Sstevel@tonic-gateCFLAGS64 += $(LOCFLAGS) 116734b6a94SdarrenmLDLIBS += -lsasl -lsocket -lnsl -lmd -lc 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gate.KEEP_STATE: 1197c478bd9Sstevel@tonic-gate 1207c478bd9Sstevel@tonic-gate# include library targets 1217c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/ber/%.c 1247c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $< 1257c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1267c478bd9Sstevel@tonic-gate 1277c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/common/%.c 1287c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $< 1297c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1307c478bd9Sstevel@tonic-gate 1317c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/ssldap/%.c 1327c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $< 1337c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1347c478bd9Sstevel@tonic-gate 1357c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/prldap/%.c 1367c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $< 1377c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1387c478bd9Sstevel@tonic-gate 1397c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/util/%.c 1407c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $< 1417c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1427c478bd9Sstevel@tonic-gate 1437c478bd9Sstevel@tonic-gate# install rule for lint library target 1447c478bd9Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../sources/ldap/common/% 1457c478bd9Sstevel@tonic-gate $(INS.file) 146