4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
29 # Definition of all the objects macros
30 # The LDAP specific objects
32 BEROBJS= bprint.o decode.o encode.o io.o
34 LDAPOBJS= abandon.o add.o bind.o cache.o charray.o \
35 charset.o compare.o compat.o control.o countvalues.o \
36 delete.o disptmpl.o dsparse.o error.o extendop.o free.o freevalues.o \
37 friendly.o getattr.o getdn.o getdxbyname.o getentry.o \
38 getfilter.o getoption.o getvalues.o memcache.o message.o \
39 modify.o open.o os-ip.o proxyauthctrl.o psearch.o referral.o \
40 rename.o request.o reslist.o result.o saslbind.o sasl.o \
41 sbind.o search.o setoption.o sort.o sortctrl.o srchpref.o \
42 tmplout.o ufn.o unbind.o unescape.o url.o ldaputf8.o vlistctrl.o \
43 cram_md5.o secutil.o spagectrl.o digest_md5.o
45 SSLDAPOBJS= clientinit.o ldapsinit.o errormap.o
47 PRLDAPOBJS= ldappr-dns.o ldappr-error.o ldappr-public.o \
48 ldappr-io.o ldappr-threads.o
50 UTILOBJS= log.o line64.o
52 # Grouping it all together
53 OBJECTS= $(BEROBJS) $(LDAPOBJS) $(SSLDAPOBJS) $(PRLDAPOBJS) \
56 # include library definitions
57 include ../../Makefile.lib
59 NSS_LIBS= -lnspr4 -lplc4 -lnss3 -lssl3
60 NSS_HDRS= $(ADJUNCT_PROTO)/usr/include/mps
61 NSS_LDPATH= /usr/lib/mps
62 NSS_LDPATH64= $(NSS_LDPATH)/64
65 LDAP_FLAGS= -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS \
67 -DUSE_WAITPID -DNEEDPROTOS \
68 -DNET_SSL -DNO_LIBLCACHE -DLDAP_REFERRALS \
69 -DNS_DOMESTIC -DLDAP_SSLIO_HOOKS -DSTR_TRANSLATION \
73 # Include directories for all files
74 COM_INC= -I$(SRC)/lib/libldap5/include/ldap \
77 SRCS= $(BEROBJS:%.o=../sources/ldap/ber/%.c) \
78 $(LDAPOBJS:%.o=../sources/ldap/common/%.c) \
79 $(SSLDAPOBJS:%.o=../sources/ldap/ssldap/%.c) \
80 $(PRLDAPOBJS:%.o=../sources/ldap/prldap/%.c) \
81 $(UTILOBJS:%.o=../sources/ldap/util/%.c)
84 DYNFLAGS += $(ZNODELETE)
86 CPPFLAGS= $(COM_INC) $(CPPFLAGS.master)
88 # Local Libldap definitions
90 # Following values defined in Makefile.master are overwritten here.
91 #sparc_C_PICFLAGS = $(sparc_C_BIGPICFLAGS)
92 sparcv9_C_PICFLAGS = $(sparcv9_C_BIGPICFLAGS)
93 #i386_C_PICFLAGS = $(i386_C_BIGPICFLAGS)
94 #amd64_C_PICFLAGS = $(amd64_C_BIGPICFLAGS)
97 CFLAGS64 += $(LOCFLAGS)
99 CERRWARN += -Wno-parentheses
100 CERRWARN += -Wno-uninitialized
101 CERRWARN += -Wno-type-limits
102 CERRWARN += -Wno-unused-function
103 CERRWARN += -Wno-unused-variable
104 CERRWARN += -Wno-unused-value
105 CERRWARN += -Wno-address
107 LDLIBS += -lsasl -lmd -lc
111 # include library targets
112 include ../../Makefile.targ
114 pics/%.o: ../sources/ldap/ber/%.c
115 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
118 pics/%.o: ../sources/ldap/common/%.c
119 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
122 pics/%.o: ../sources/ldap/ssldap/%.c
123 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
126 pics/%.o: ../sources/ldap/prldap/%.c
127 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
130 pics/%.o: ../sources/ldap/util/%.c
131 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<