xref: /titanic_41/usr/src/lib/krb5/kadm5/srv/Makefile.com (revision 1816cb7076d3ec8a78ef9ac9f895574e13c43645)
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 2007 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	xdr_alloc.o \
42	logger.o \
43	chgpwd.o
44
45SHARED_OBJS =  \
46        misc_free.o \
47        kadm_rpc_xdr.o \
48        chpass_util.o \
49        alt_prof.o \
50	kadm_host_srv_names.o \
51        str_conv.o
52
53OBJECTS= $(SHARED_OBJS) $(SRV_OBJS)
54
55# include library definitions
56include ../../../Makefile.lib
57
58SRCS=		$(SRV_OBJS:%.o=../%.c) \
59		$(SHARED_OBJS:%.o=../../%.c)
60
61KRB5LIB= 	$(ROOT)/usr/lib/krb5
62LIBS=		$(DYNLIB)
63
64
65include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
66
67POFILE = $(LIBRARY:%.a=%.po)
68POFILES = generic.po
69
70#override liblink
71INS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
72
73CPPFLAGS += -I.. -I../.. -I../../.. \
74	-I$(SRC)/lib/krb5/kdb \
75	-I$(SRC)/cmd/krb5/iprop \
76	-I$(SRC)/lib/gss_mechs/mech_krb5/include \
77	-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
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
88
89CFLAGS +=	$(CCVERBOSE) -I..
90
91.KEEP_STATE:
92
93all:	$(LIBS)
94
95lint:	lintcheck
96
97# include library targets
98include ../../../Makefile.targ
99
100pics/%.o: ../../%.c
101	$(COMPILE.c) -o $@ $<
102	$(POST_PROCESS_O)
103
104FRC:
105
106generic.po: FRC
107	$(RM) messages.po
108	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
109	$(SED) "/^domain/d" messages.po > $@
110	$(RM) messages.po
111