xref: /titanic_44/usr/src/lib/krb5/kadm5/clnt/Makefile.com (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
1#
2# CDDL HEADER START
3#
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.
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY= libkadm5clnt.a
29VERS= .1
30
31CLNT_OBJS = clnt_policy.o \
32	client_rpc.o \
33	client_principal.o \
34	client_init.o \
35	clnt_privs.o \
36	clnt_chpass_util.o \
37	logger.o \
38	changepw.o \
39	chpw.o
40
41SHARED_OBJS = \
42	alt_prof.o \
43	chpass_util.o \
44	kadm_rpc_xdr.o \
45	misc_free.o \
46	kadm_host_srv_names.o \
47	str_conv.o
48
49OBJECTS= $(CLNT_OBJS) $(SHARED_OBJS)
50
51ISRCHDR= ../iprop.h
52KRB5IPROPDIR=	$(SRC)/cmd/krb5/iprop
53
54# include library definitions
55include ../../../Makefile.lib
56
57SRCS=		$(CLNT_OBJS:%.o=../%.c) \
58		$(SHARED_OBJS:%.o=../../%.c)
59
60LIBS=		$(DYNLIB)
61
62include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
63
64POFILE = $(LIBRARY:%.a=%.po)
65POFILES = generic.po
66
67#override liblink
68INS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
69
70CPPFLAGS += -I.. -I../.. -I../../.. -I$(SRC)/lib/gss_mechs/mech_krb5/include \
71	-I$(SRC)/lib/krb5 \
72	-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
73	-I$(SRC)/uts/common/gssapi/include/ \
74	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
75	-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
76	-I$(KRB5IPROPDIR) \
77	-DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
78	-DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
79	-DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
80	-DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
81	-DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 -DUSE_KADM5_API_VERSION=2
82
83CFLAGS +=	$(CCVERBOSE) -I..
84LDLIBS +=	-lc
85
86.KEEP_STATE:
87
88all:	$(LIBS)
89
90# Rpcgen-erate iprop.h from the iprop.x spec file
91$(ISRCHDR):	$(KRB5IPROPDIR)/iprop.x
92	$(RM)	$@
93	$(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
94
95# Explicitly state the dependancy on iprop.h
96$(LIBS): $(ISRCHDR)
97
98CLEANFILES +=	$(ISRCHDR)
99
100lint:	lintcheck
101
102# include library targets
103include ../../../Makefile.targ
104
105pics/%.o: ../../%.c
106	$(COMPILE.c) -o $@ $<
107	$(POST_PROCESS_O)
108
109FRC:
110
111generic.po: FRC
112	$(RM) messages.po
113	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
114	$(SED) "/^domain/d" messages.po > $@
115	$(RM) messages.po
116