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 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 LIBRARY= libkadm5clnt.a
29 CLNT_OBJS = clnt_policy.o \
44 kadm_host_srv_names.o \
47 OBJECTS= $(CLNT_OBJS) $(SHARED_OBJS)
50 KRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
52 # include library definitions
53 include ../../../Makefile.lib
55 SRCS= $(CLNT_OBJS:%.o=../%.c) \
56 $(SHARED_OBJS:%.o=../../%.c)
60 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
62 POFILE = $(LIBRARY:%.a=%.po)
66 INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
68 CPPFLAGS += -I.. -I../.. -I../../.. -I$(SRC)/lib/gss_mechs/mech_krb5/include \
70 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
71 -I$(SRC)/uts/common/gssapi/ \
72 -I$(SRC)/uts/common/gssapi/include/ \
73 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
74 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
76 -DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
77 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
78 -DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
79 -DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
80 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 -DUSE_KADM5_API_VERSION=2
84 CERRWARN += -Wno-unused-function
85 CERRWARN += -Wno-unused-variable
86 CERRWARN += -Wno-parentheses
87 CERRWARN += -Wno-uninitialized
95 # Rpcgen-erate iprop.h from the iprop.x spec file
96 $(ISRCHDR): $(KRB5IPROPDIR)/iprop.x
98 $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
100 # Explicitly state the dependancy on iprop.h
103 CLEANFILES += $(ISRCHDR)
106 # include library targets
107 include ../../../Makefile.targ
110 $(COMPILE.c) -o $@ $<
117 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
118 $(SED) "/^domain/d" messages.po > $@