1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate# 5*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 6*7c478bd9Sstevel@tonic-gate 7*7c478bd9Sstevel@tonic-gate# 8*7c478bd9Sstevel@tonic-gate# lib/libldap5/Makefile.com 9*7c478bd9Sstevel@tonic-gate# 10*7c478bd9Sstevel@tonic-gate 11*7c478bd9Sstevel@tonic-gateLIBRARY= libldap.a 12*7c478bd9Sstevel@tonic-gateVERS= .5 13*7c478bd9Sstevel@tonic-gate 14*7c478bd9Sstevel@tonic-gate# Definition of all the objects macros 15*7c478bd9Sstevel@tonic-gate# The LDAP specific objects 16*7c478bd9Sstevel@tonic-gate 17*7c478bd9Sstevel@tonic-gateBEROBJS= bprint.o decode.o encode.o io.o 18*7c478bd9Sstevel@tonic-gate 19*7c478bd9Sstevel@tonic-gateLDAPOBJS= abandon.o add.o bind.o cache.o charray.o \ 20*7c478bd9Sstevel@tonic-gate charset.o compare.o compat.o control.o countvalues.o \ 21*7c478bd9Sstevel@tonic-gate delete.o disptmpl.o dsparse.o error.o extendop.o free.o freevalues.o \ 22*7c478bd9Sstevel@tonic-gate friendly.o getattr.o getdn.o getdxbyname.o getentry.o \ 23*7c478bd9Sstevel@tonic-gate getfilter.o getoption.o getvalues.o memcache.o message.o \ 24*7c478bd9Sstevel@tonic-gate modify.o open.o os-ip.o proxyauthctrl.o psearch.o referral.o \ 25*7c478bd9Sstevel@tonic-gate rename.o request.o reslist.o result.o saslbind.o sasl.o \ 26*7c478bd9Sstevel@tonic-gate sbind.o search.o setoption.o sort.o sortctrl.o srchpref.o \ 27*7c478bd9Sstevel@tonic-gate tmplout.o ufn.o unbind.o unescape.o url.o ldaputf8.o vlistctrl.o \ 28*7c478bd9Sstevel@tonic-gate cram_md5.o secutil.o spagectrl.o digest_md5.o 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateSSLDAPOBJS= clientinit.o ldapsinit.o errormap.o 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gatePRLDAPOBJS= ldappr-dns.o ldappr-error.o ldappr-public.o \ 33*7c478bd9Sstevel@tonic-gate ldappr-io.o ldappr-threads.o 34*7c478bd9Sstevel@tonic-gate 35*7c478bd9Sstevel@tonic-gateUTILOBJS= log.o line64.o 36*7c478bd9Sstevel@tonic-gate 37*7c478bd9Sstevel@tonic-gate# Grouping it all together 38*7c478bd9Sstevel@tonic-gateOBJECTS= $(BEROBJS) $(LDAPOBJS) $(SSLDAPOBJS) $(PRLDAPOBJS) \ 39*7c478bd9Sstevel@tonic-gate $(UTILOBJS) 40*7c478bd9Sstevel@tonic-gate 41*7c478bd9Sstevel@tonic-gate# include library definitions 42*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gateNSS_LIBS= -lnspr4 -lplc4 -lnss3 -lssl3 45*7c478bd9Sstevel@tonic-gateNSS_HDRS= /usr/include/mps 46*7c478bd9Sstevel@tonic-gateNSS_LDPATH= /usr/lib/mps 47*7c478bd9Sstevel@tonic-gateNSS_LDPATH64= $(NSS_LDPATH)/64 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gateLDAP_FLAGS= -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS \ 51*7c478bd9Sstevel@tonic-gate -D_SOLARIS_SDK \ 52*7c478bd9Sstevel@tonic-gate -DUSE_WAITPID -DNEEDPROTOS \ 53*7c478bd9Sstevel@tonic-gate -DNET_SSL -DNO_LIBLCACHE -DLDAP_REFERRALS \ 54*7c478bd9Sstevel@tonic-gate -DNS_DOMESTIC -DLDAP_SSLIO_HOOKS -DSTR_TRANSLATION \ 55*7c478bd9Sstevel@tonic-gate -DLDAP_SASLIO_HOOKS 56*7c478bd9Sstevel@tonic-gate 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate# Include directories for all files 59*7c478bd9Sstevel@tonic-gateCOM_INC= -I$(SRC)/lib/libldap5/include/ldap \ 60*7c478bd9Sstevel@tonic-gate -I$(NSS_HDRS) 61*7c478bd9Sstevel@tonic-gate 62*7c478bd9Sstevel@tonic-gateSRCS= $(BEROBJS:%.o=../sources/ldap/ber/%.c) \ 63*7c478bd9Sstevel@tonic-gate $(LDAPOBJS:%.o=../sources/ldap/common/%.c) \ 64*7c478bd9Sstevel@tonic-gate $(SSLDAPOBJS:%.o=../sources/ldap/ssldap/%.c) \ 65*7c478bd9Sstevel@tonic-gate $(PRLDAPOBJS:%.o=../sources/ldap/prldap/%.c) \ 66*7c478bd9Sstevel@tonic-gate $(UTILOBJS:%.o=../sources/ldap/util/%.c) 67*7c478bd9Sstevel@tonic-gate 68*7c478bd9Sstevel@tonic-gateLIBS = $(DYNLIB) $(LINTLIB) 69*7c478bd9Sstevel@tonic-gateDYNFLAGS += $(ZNODELETE) 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(COM_INC) 72*7c478bd9Sstevel@tonic-gate 73*7c478bd9Sstevel@tonic-gate# definitions for lint 74*7c478bd9Sstevel@tonic-gate 75*7c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS=../sources/ldap/common/llib-lldap 76*7c478bd9Sstevel@tonic-gate$(LINTLIB):= LINTFLAGS=-nvx 77*7c478bd9Sstevel@tonic-gate$(LINTLIB):= TARGET_ARCH= 78*7c478bd9Sstevel@tonic-gate 79*7c478bd9Sstevel@tonic-gateLINTOUT= lint.out 80*7c478bd9Sstevel@tonic-gate 81*7c478bd9Sstevel@tonic-gateLINTSRC= $(LINTLIB:%.ln=%) 82*7c478bd9Sstevel@tonic-gateROOTLINTDIR= $(ROOTLIBDIR) 83*7c478bd9Sstevel@tonic-gateROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) 84*7c478bd9Sstevel@tonic-gate 85*7c478bd9Sstevel@tonic-gate 86*7c478bd9Sstevel@tonic-gateCLEANFILES += $(LINTOUT) $(LINTLIB) 87*7c478bd9Sstevel@tonic-gateCLOBBERFILES += $(MAPFILE) 88*7c478bd9Sstevel@tonic-gate 89*7c478bd9Sstevel@tonic-gate# Local Libldap definitions 90*7c478bd9Sstevel@tonic-gateLOCFLAGS += $(XSTRCONST) -D_REENTRANT 91*7c478bd9Sstevel@tonic-gate 92*7c478bd9Sstevel@tonic-gate# Following values defined in Makefile.master are overwritten here. 93*7c478bd9Sstevel@tonic-gate#sparc_C_PICFLAGS = $(sparc_C_BIGPICFLAGS) 94*7c478bd9Sstevel@tonic-gatesparcv9_C_PICFLAGS = $(sparcv9_C_BIGPICFLAGS) 95*7c478bd9Sstevel@tonic-gate#i386_C_PICFLAGS = $(i386_C_BIGPICFLAGS) 96*7c478bd9Sstevel@tonic-gate#amd64_C_PICFLAGS = $(amd64_C_BIGPICFLAGS) 97*7c478bd9Sstevel@tonic-gate 98*7c478bd9Sstevel@tonic-gateMAPDIR = ../spec/$(TRANSMACH) 99*7c478bd9Sstevel@tonic-gateSPECMAPFILE = $(MAPDIR)/mapfile 100*7c478bd9Sstevel@tonic-gate 101*7c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) $(LOCFLAGS) 102*7c478bd9Sstevel@tonic-gateCFLAGS64 += $(LOCFLAGS) 103*7c478bd9Sstevel@tonic-gateLDLIBS += -lsasl -lsocket -lnsl -lmd5 -lc 104*7c478bd9Sstevel@tonic-gate 105*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 106*7c478bd9Sstevel@tonic-gate 107*7c478bd9Sstevel@tonic-gate# include library targets 108*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 109*7c478bd9Sstevel@tonic-gate 110*7c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/ber/%.c 111*7c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $< 112*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 113*7c478bd9Sstevel@tonic-gate 114*7c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/common/%.c 115*7c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $< 116*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 117*7c478bd9Sstevel@tonic-gate 118*7c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/ssldap/%.c 119*7c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $< 120*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 121*7c478bd9Sstevel@tonic-gate 122*7c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/prldap/%.c 123*7c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $< 124*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 125*7c478bd9Sstevel@tonic-gate 126*7c478bd9Sstevel@tonic-gatepics/%.o: ../sources/ldap/util/%.c 127*7c478bd9Sstevel@tonic-gate $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $< 128*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 129*7c478bd9Sstevel@tonic-gate 130*7c478bd9Sstevel@tonic-gate# install rule for lint library target 131*7c478bd9Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../sources/ldap/common/% 132*7c478bd9Sstevel@tonic-gate $(INS.file) 133