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 PROG= kdb5_ldap_util
27
28 OBJS = \
29 kdb5_ldap_list.o \
30 kdb5_ldap_policy.o \
31 kdb5_ldap_realm.o \
32 kdb5_ldap_services.o \
33 kdb5_ldap_util.o
34
35 GETDATE = $(SRC)/cmd/krb5/kadmin/cli/getdate.o
36
37 SRCS = $(OBJS:.o=.c)
38
39 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1
40
41 include $(SRC)/cmd/Makefile.cmd
42 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
43
44 TEXT_DOMAIN = SUNW_OST_OSCMD
48 DEFS = -DHAVE_PWD_H -DUSE_KADM5_API_VERSION=2
49
50 CPPFLAGS += \
51 -I$(SRC)/lib/gss_mechs/mech_krb5 \
52 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
53 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
54 -I$(SRC)/lib/krb5 \
55 -I$(SRC)/lib/krb5/kdb \
56 -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \
57 -I$(SRC)/cmd/krb5/kadmin/cli \
58 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
59 -I$(SRC)/uts/common/gssapi/mechs/krb5/include/krb5 \
60 -I../kwarn \
61 $(DEFS)
62
63 CERRWARN += -_gcc=-Wno-unused-variable
64 CERRWARN += -_gcc=-Wno-unused-label
65 CERRWARN += -_gcc=-Wno-unused-function
66 CERRWARN += -_gcc=-Wno-implicit-function-declaration
67
68 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
69 LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \
70 -lmech_krb5
71
72 .KEEP_STATE:
73
74 all: $(PROG)
75
76 $(PROG): $(OBJS) $(GETDATE)
77 $(LINK.c) $(OBJS) $(GETDATE) -o $@ $(LDLIBS)
78 $(POST_PROCESS)
79
80 install: $(KRB5SBINPROG)
81
82 clean:
83 $(RM) $(OBJS)
84
85 lint: lint_SRCS
86
87 include $(SRC)/cmd/Makefile.targ
|
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 (c) 2018, Joyent, Inc.
26
27 PROG= kdb5_ldap_util
28
29 OBJS = \
30 kdb5_ldap_list.o \
31 kdb5_ldap_policy.o \
32 kdb5_ldap_realm.o \
33 kdb5_ldap_services.o \
34 kdb5_ldap_util.o
35
36 GETDATE = $(SRC)/cmd/krb5/kadmin/cli/getdate.o
37
38 SRCS = $(OBJS:.o=.c)
39
40 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1
41
42 include $(SRC)/cmd/Makefile.cmd
43 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
44
45 TEXT_DOMAIN = SUNW_OST_OSCMD
49 DEFS = -DHAVE_PWD_H -DUSE_KADM5_API_VERSION=2
50
51 CPPFLAGS += \
52 -I$(SRC)/lib/gss_mechs/mech_krb5 \
53 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
54 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
55 -I$(SRC)/lib/krb5 \
56 -I$(SRC)/lib/krb5/kdb \
57 -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \
58 -I$(SRC)/cmd/krb5/kadmin/cli \
59 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
60 -I$(SRC)/uts/common/gssapi/mechs/krb5/include/krb5 \
61 -I../kwarn \
62 $(DEFS)
63
64 CERRWARN += -_gcc=-Wno-unused-variable
65 CERRWARN += -_gcc=-Wno-unused-label
66 CERRWARN += -_gcc=-Wno-unused-function
67 CERRWARN += -_gcc=-Wno-implicit-function-declaration
68
69 # not linted
70 SMATCH=off
71
72 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
73 LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \
74 -lmech_krb5
75
76 .KEEP_STATE:
77
78 all: $(PROG)
79
80 $(PROG): $(OBJS) $(GETDATE)
81 $(LINK.c) $(OBJS) $(GETDATE) -o $@ $(LDLIBS)
82 $(POST_PROCESS)
83
84 install: $(KRB5SBINPROG)
85
86 clean:
87 $(RM) $(OBJS)
88
89 lint: lint_SRCS
90
91 include $(SRC)/cmd/Makefile.targ
|