xref: /titanic_41/usr/src/lib/krb5/kadm5/srv/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
17c478bd9Sstevel@tonic-gate#
2f808c858Sraf# CDDL HEADER START
3f808c858Sraf#
4f808c858Sraf# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
7f808c858Sraf#
8f808c858Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f808c858Sraf# or http://www.opensolaris.org/os/licensing.
10f808c858Sraf# See the License for the specific language governing permissions
11f808c858Sraf# and limitations under the License.
12f808c858Sraf#
13f808c858Sraf# When distributing Covered Code, include this CDDL HEADER in each
14f808c858Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f808c858Sraf# If applicable, add the following below this CDDL HEADER, with the
16f808c858Sraf# fields enclosed by brackets "[]" replaced with your own identifying
17f808c858Sraf# information: Portions Copyright [yyyy] [name of copyright owner]
18f808c858Sraf#
19f808c858Sraf# CDDL HEADER END
20f808c858Sraf#
21f808c858Sraf#
22ba7b222eSGlenn Barry# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateLIBRARY= libkadm5srv.a
277c478bd9Sstevel@tonic-gateVERS= .1
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateSRV_OBJS = svr_policy.o \
307c478bd9Sstevel@tonic-gate	svr_principal.o \
317c478bd9Sstevel@tonic-gate	server_acl.o \
327c478bd9Sstevel@tonic-gate	server_kdb.o \
337c478bd9Sstevel@tonic-gate	server_misc.o \
347c478bd9Sstevel@tonic-gate	server_init.o \
357c478bd9Sstevel@tonic-gate	server_dict.o \
367c478bd9Sstevel@tonic-gate	svr_iters.o \
377c478bd9Sstevel@tonic-gate	svr_chpass_util.o \
387c478bd9Sstevel@tonic-gate	adb_xdr.o \
397c478bd9Sstevel@tonic-gate	xdr_alloc.o \
407c478bd9Sstevel@tonic-gate	logger.o \
417c478bd9Sstevel@tonic-gate	chgpwd.o
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateSHARED_OBJS =  \
447c478bd9Sstevel@tonic-gate        misc_free.o \
457c478bd9Sstevel@tonic-gate        kadm_rpc_xdr.o \
467c478bd9Sstevel@tonic-gate        chpass_util.o \
477c478bd9Sstevel@tonic-gate        alt_prof.o \
487c478bd9Sstevel@tonic-gate	kadm_host_srv_names.o \
497c478bd9Sstevel@tonic-gate        str_conv.o
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gateOBJECTS= $(SHARED_OBJS) $(SRV_OBJS)
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gate# include library definitions
547c478bd9Sstevel@tonic-gateinclude ../../../Makefile.lib
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateSRCS=		$(SRV_OBJS:%.o=../%.c) \
577c478bd9Sstevel@tonic-gate		$(SHARED_OBJS:%.o=../../%.c)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateKRB5LIB= 	$(ROOT)/usr/lib/krb5
607c478bd9Sstevel@tonic-gateLIBS=		$(DYNLIB)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gatePOFILE = $(LIBRARY:%.a=%.po)
667c478bd9Sstevel@tonic-gatePOFILES = generic.po
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gate#override liblink
697c478bd9Sstevel@tonic-gateINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gateCPPFLAGS += -I.. -I../.. -I../../.. \
727c478bd9Sstevel@tonic-gate	-I$(SRC)/lib/krb5/kdb \
737c478bd9Sstevel@tonic-gate	-I$(SRC)/cmd/krb5/iprop \
747c478bd9Sstevel@tonic-gate	-I$(SRC)/lib/gss_mechs/mech_krb5/include \
757c478bd9Sstevel@tonic-gate	-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
76ba7b222eSGlenn Barry	-I$(SRC)/uts/common/gssapi/ \
777c478bd9Sstevel@tonic-gate	-I$(SRC)/uts/common/gssapi/include/ \
787c478bd9Sstevel@tonic-gate	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
797c478bd9Sstevel@tonic-gate	-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
807c478bd9Sstevel@tonic-gate	-DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
817c478bd9Sstevel@tonic-gate	-DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
827c478bd9Sstevel@tonic-gate	-DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
837c478bd9Sstevel@tonic-gate	-DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
847c478bd9Sstevel@tonic-gate	-DHAVE_STEP=1 -DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 \
8556a424ccSmp153739	-DHAVE_REGEXEC=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 \
8656a424ccSmp153739	-DUSE_KADM5_API_VERSION=2
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gateCFLAGS +=	$(CCVERBOSE) -I..
897c478bd9Sstevel@tonic-gate
90*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-function
91*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
92*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
93*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-type-limits
94*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
95*7014882cSRichard Lowe
967c478bd9Sstevel@tonic-gate.KEEP_STATE:
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gateall:	$(LIBS)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gatelint:	lintcheck
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate# include library targets
1037c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gatepics/%.o: ../../%.c
1067c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1077c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gateFRC:
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gategeneric.po: FRC
1127c478bd9Sstevel@tonic-gate	$(RM) messages.po
1137c478bd9Sstevel@tonic-gate	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
1147c478bd9Sstevel@tonic-gate	$(SED) "/^domain/d" messages.po > $@
1157c478bd9Sstevel@tonic-gate	$(RM) messages.po
116