5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 #
26
27 LIBRARY= kldap.a
28 VERS= .1
29
30 # XXX need to set the install path to plugin dir
31
32 # ldap plugin objects
33 LDAP_OBJS= \
34 ldap_exp.o
35
36 OBJECTS= $(LDAP_OBJS)
37
38 # include library definitions
39 include $(SRC)/lib/krb5/Makefile.lib
40
41 LIBS= $(DYNLIB)
42 SRCS= $(LDAP_OBJS:%.o=../%.c)
43
44 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
48
49 CPPFLAGS += -DHAVE_CONFIG_H \
50 -I$(SRC)/cmd/krb5/iprop \
51 -I$(SRC)/lib/krb5 \
52 -I$(SRC)/lib/krb5/kdb \
53 -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \
54 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
55 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
56 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
57 -I$(SRC)/uts/common/gssapi/include/ \
58 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
59 -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1 \
60 -DUSE_KADM5_API_VERSION=2
61
62 CFLAGS += $(CCVERBOSE)
63 CERRWARN += -_gcc=-Wno-parentheses
64 CERRWARN += -_gcc=-Wno-unused-function
65
66 DYNFLAGS += $(KERBRUNPATH)
67 # setting -L $(ROOT)/usr/lib/gss because libkdb_ldap needs mech_krb5
68 LDLIBS += -L $(ROOT)/usr/lib/gss -L $(ROOTLIBDIR) -lkdb_ldap \
69 -lc
70
71 .KEEP_STATE:
72
73 all: $(LIBS)
74
75 lint: lintcheck
76
77 # include library targets
78 include $(SRC)/lib/krb5/Makefile.targ
79
80 FRC:
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright 2020 Joyent, Inc.
26 #
27
28 LIBRARY= kldap.a
29 VERS= .1
30
31 # XXX need to set the install path to plugin dir
32
33 # ldap plugin objects
34 LDAP_OBJS= \
35 ldap_exp.o
36
37 OBJECTS= $(LDAP_OBJS)
38
39 # include library definitions
40 include $(SRC)/lib/krb5/Makefile.lib
41
42 LIBS= $(DYNLIB)
43 SRCS= $(LDAP_OBJS:%.o=../%.c)
44
45 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
49
50 CPPFLAGS += -DHAVE_CONFIG_H \
51 -I$(SRC)/cmd/krb5/iprop \
52 -I$(SRC)/lib/krb5 \
53 -I$(SRC)/lib/krb5/kdb \
54 -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \
55 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
56 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
57 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
58 -I$(SRC)/uts/common/gssapi/include/ \
59 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
60 -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1 \
61 -DUSE_KADM5_API_VERSION=2
62
63 CFLAGS += $(CCVERBOSE)
64 CERRWARN += -_gcc=-Wno-parentheses
65 CERRWARN += -_gcc=-Wno-unused-function
66
67 DYNFLAGS += $(KERBRUNPATH)
68 # setting -L $(ROOT)/usr/lib/gss because libkdb_ldap needs mech_krb5
69 LDLIBS += -L $(ROOT)/usr/lib/gss -L $(ROOTLIBDIR) -lkdb_ldap
70
71 .KEEP_STATE:
72
73 all: $(LIBS)
74
75 # include library targets
76 include $(SRC)/lib/krb5/Makefile.targ
77
78 FRC:
|