xref: /titanic_44/usr/src/lib/krb5/kadm5/srv/Makefile.com (revision a237e38e9161f0acd6451439d4a7dd597e66291d)
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= libkadm5srv.a
29VERS= .1
30
31SRV_OBJS = svr_policy.o \
32        svr_principal.o \
33        server_acl.o \
34        server_kdb.o \
35        server_misc.o \
36        server_init.o \
37        server_dict.o \
38        svr_iters.o \
39        svr_chpass_util.o \
40        adb_xdr.o \
41        adb_policy.o \
42        adb_free.o \
43        adb_openclose.o	\
44	xdr_alloc.o \
45	logger.o \
46	chgpwd.o
47
48SHARED_OBJS =  \
49        misc_free.o \
50        kadm_rpc_xdr.o \
51        chpass_util.o \
52        alt_prof.o \
53	kadm_host_srv_names.o \
54        str_conv.o
55
56OBJECTS= $(SHARED_OBJS) $(SRV_OBJS)
57
58# include library definitions
59include ../../../Makefile.lib
60
61SRCS=		$(SRV_OBJS:%.o=../%.c) \
62		$(SHARED_OBJS:%.o=../../%.c)
63
64KRB5LIB= 	$(ROOT)/usr/lib/krb5
65LIBS=		$(DYNLIB)
66
67
68include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
69
70POFILE = $(LIBRARY:%.a=%.po)
71POFILES = generic.po
72
73#override liblink
74INS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
75
76CPPFLAGS += -I.. -I../.. -I../../.. \
77	-I$(SRC)/lib/krb5/kdb \
78	-I$(SRC)/cmd/krb5/iprop \
79	-I$(SRC)/lib/gss_mechs/mech_krb5/include \
80	-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
81	-I$(SRC)/uts/common/gssapi/include/ \
82	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
83	-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
84	-DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
85	-DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
86	-DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
87	-DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
88	-DHAVE_STEP=1 -DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 \
89	-DHAVE_REGEXEC=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 \
90	-DUSE_KADM5_API_VERSION=2
91
92CFLAGS +=	$(CCVERBOSE) -I..
93
94.KEEP_STATE:
95
96all:	$(LIBS)
97
98lint:	lintcheck
99
100# include library targets
101include ../../../Makefile.targ
102
103pics/%.o: ../../%.c
104	$(COMPILE.c) -o $@ $<
105	$(POST_PROCESS_O)
106
107FRC:
108
109generic.po: FRC
110	$(RM) messages.po
111	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
112	$(SED) "/^domain/d" messages.po > $@
113	$(RM) messages.po
114