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.
25 # Copyright (c) 2018, Joyent, Inc.
27 LIBRARY= libkadm5srv.a
30 SRV_OBJS = svr_policy.o \
49 kadm_host_srv_names.o \
52 OBJECTS= $(SHARED_OBJS) $(SRV_OBJS)
54 # include library definitions
55 include ../../../Makefile.lib
57 SRCS= $(SRV_OBJS:%.o=../%.c) \
58 $(SHARED_OBJS:%.o=../../%.c)
60 KRB5LIB= $(ROOTLIBDIR)
64 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
66 POFILE = $(LIBRARY:%.a=%.po)
70 INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
72 CPPFLAGS += -I.. -I../.. -I../../.. \
73 -I$(SRC)/lib/krb5/kdb \
74 -I$(SRC)/cmd/krb5/iprop \
75 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
76 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
77 -I$(SRC)/uts/common/gssapi/ \
78 -I$(SRC)/uts/common/gssapi/include/ \
79 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
80 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
81 -DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
82 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
83 -DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
84 -DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
85 -DHAVE_STEP=1 -DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 \
86 -DHAVE_REGEXEC=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 \
87 -DUSE_KADM5_API_VERSION=2
91 CERRWARN += -Wno-unused-function
92 CERRWARN += -Wno-unused-variable
93 CERRWARN += -Wno-parentheses
94 CERRWARN += -Wno-type-limits
95 CERRWARN += -Wno-uninitialized
97 SMOFF += all_func_returns,indenting
104 # include library targets
105 include ../../../Makefile.targ
108 $(COMPILE.c) -o $@ $<
115 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
116 $(SED) "/^domain/d" messages.po > $@