xref: /onnv-gate/usr/src/lib/krb5/kadm5/srv/Makefile.com (revision 10598:6f30db2c2cd0)
10Sstevel@tonic-gate#
22522Sraf# CDDL HEADER START
32522Sraf#
42522Sraf# The contents of this file are subject to the terms of the
52522Sraf# Common Development and Distribution License (the "License").
62522Sraf# You may not use this file except in compliance with the License.
72522Sraf#
82522Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92522Sraf# or http://www.opensolaris.org/os/licensing.
102522Sraf# See the License for the specific language governing permissions
112522Sraf# and limitations under the License.
122522Sraf#
132522Sraf# When distributing Covered Code, include this CDDL HEADER in each
142522Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152522Sraf# If applicable, add the following below this CDDL HEADER, with the
162522Sraf# fields enclosed by brackets "[]" replaced with your own identifying
172522Sraf# information: Portions Copyright [yyyy] [name of copyright owner]
182522Sraf#
192522Sraf# CDDL HEADER END
202522Sraf#
212522Sraf#
22*10598SGlenn.Barry@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate
260Sstevel@tonic-gateLIBRARY= libkadm5srv.a
270Sstevel@tonic-gateVERS= .1
280Sstevel@tonic-gate
290Sstevel@tonic-gateSRV_OBJS = svr_policy.o \
304960Swillf	svr_principal.o \
314960Swillf	server_acl.o \
324960Swillf	server_kdb.o \
334960Swillf	server_misc.o \
344960Swillf	server_init.o \
354960Swillf	server_dict.o \
364960Swillf	svr_iters.o \
374960Swillf	svr_chpass_util.o \
384960Swillf	adb_xdr.o \
390Sstevel@tonic-gate	xdr_alloc.o \
400Sstevel@tonic-gate	logger.o \
410Sstevel@tonic-gate	chgpwd.o
420Sstevel@tonic-gate
430Sstevel@tonic-gateSHARED_OBJS =  \
440Sstevel@tonic-gate        misc_free.o \
450Sstevel@tonic-gate        kadm_rpc_xdr.o \
460Sstevel@tonic-gate        chpass_util.o \
470Sstevel@tonic-gate        alt_prof.o \
480Sstevel@tonic-gate	kadm_host_srv_names.o \
490Sstevel@tonic-gate        str_conv.o
500Sstevel@tonic-gate
510Sstevel@tonic-gateOBJECTS= $(SHARED_OBJS) $(SRV_OBJS)
520Sstevel@tonic-gate
530Sstevel@tonic-gate# include library definitions
540Sstevel@tonic-gateinclude ../../../Makefile.lib
550Sstevel@tonic-gate
560Sstevel@tonic-gateSRCS=		$(SRV_OBJS:%.o=../%.c) \
570Sstevel@tonic-gate		$(SHARED_OBJS:%.o=../../%.c)
580Sstevel@tonic-gate
590Sstevel@tonic-gateKRB5LIB= 	$(ROOT)/usr/lib/krb5
600Sstevel@tonic-gateLIBS=		$(DYNLIB)
610Sstevel@tonic-gate
620Sstevel@tonic-gate
630Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
640Sstevel@tonic-gate
650Sstevel@tonic-gatePOFILE = $(LIBRARY:%.a=%.po)
660Sstevel@tonic-gatePOFILES = generic.po
670Sstevel@tonic-gate
680Sstevel@tonic-gate#override liblink
690Sstevel@tonic-gateINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
700Sstevel@tonic-gate
710Sstevel@tonic-gateCPPFLAGS += -I.. -I../.. -I../../.. \
720Sstevel@tonic-gate	-I$(SRC)/lib/krb5/kdb \
730Sstevel@tonic-gate	-I$(SRC)/cmd/krb5/iprop \
740Sstevel@tonic-gate	-I$(SRC)/lib/gss_mechs/mech_krb5/include \
750Sstevel@tonic-gate	-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
76*10598SGlenn.Barry@Sun.COM	-I$(SRC)/uts/common/gssapi/ \
770Sstevel@tonic-gate	-I$(SRC)/uts/common/gssapi/include/ \
780Sstevel@tonic-gate	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
790Sstevel@tonic-gate	-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
800Sstevel@tonic-gate	-DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
810Sstevel@tonic-gate	-DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
820Sstevel@tonic-gate	-DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
830Sstevel@tonic-gate	-DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
840Sstevel@tonic-gate	-DHAVE_STEP=1 -DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 \
852881Smp153739	-DHAVE_REGEXEC=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 \
862881Smp153739	-DUSE_KADM5_API_VERSION=2
870Sstevel@tonic-gate
880Sstevel@tonic-gateCFLAGS +=	$(CCVERBOSE) -I..
890Sstevel@tonic-gate
900Sstevel@tonic-gate.KEEP_STATE:
910Sstevel@tonic-gate
920Sstevel@tonic-gateall:	$(LIBS)
930Sstevel@tonic-gate
940Sstevel@tonic-gatelint:	lintcheck
950Sstevel@tonic-gate
960Sstevel@tonic-gate# include library targets
970Sstevel@tonic-gateinclude ../../../Makefile.targ
980Sstevel@tonic-gate
990Sstevel@tonic-gatepics/%.o: ../../%.c
1000Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1010Sstevel@tonic-gate	$(POST_PROCESS_O)
1020Sstevel@tonic-gate
1030Sstevel@tonic-gateFRC:
1040Sstevel@tonic-gate
1050Sstevel@tonic-gategeneric.po: FRC
1060Sstevel@tonic-gate	$(RM) messages.po
1070Sstevel@tonic-gate	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
1080Sstevel@tonic-gate	$(SED) "/^domain/d" messages.po > $@
1090Sstevel@tonic-gate	$(RM) messages.po
110