xref: /titanic_44/usr/src/lib/krb5/kadm5/srv/Makefile.com (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
1#
2# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# ident	"%Z%%M%	%I%	%E% SMI"
6#
7# lib/krb5/kadm5/srv/Makefile.com
8#
9
10LIBRARY= libkadm5srv.a
11VERS= .1
12
13SRV_OBJS = svr_policy.o \
14        svr_principal.o \
15        server_acl.o \
16        server_kdb.o \
17        server_misc.o \
18        server_init.o \
19        server_dict.o \
20        svr_iters.o \
21        svr_chpass_util.o \
22        adb_xdr.o \
23        adb_policy.o \
24        adb_free.o \
25        adb_openclose.o	\
26	xdr_alloc.o \
27	logger.o \
28	chgpwd.o
29
30SHARED_OBJS =  \
31        misc_free.o \
32        kadm_rpc_xdr.o \
33        chpass_util.o \
34        alt_prof.o \
35	kadm_host_srv_names.o \
36        str_conv.o
37
38OBJECTS= $(SHARED_OBJS) $(SRV_OBJS)
39
40# include library definitions
41include ../../../Makefile.lib
42
43SRCS=		$(SRV_OBJS:%.o=../%.c) \
44		$(SHARED_OBJS:%.o=../../%.c)
45
46KRB5LIB= 	$(ROOT)/usr/lib/krb5
47LIBS=		$(DYNLIB)
48
49
50include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
51
52POFILE = $(LIBRARY:%.a=%.po)
53POFILES = generic.po
54
55#override liblink
56INS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
57
58CPPFLAGS += -I.. -I../.. -I../../.. \
59	-I$(SRC)/lib/krb5/kdb \
60	-I$(SRC)/cmd/krb5/iprop \
61	-I$(SRC)/lib/gss_mechs/mech_krb5/include \
62	-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
63	-I$(SRC)/uts/common/gssapi/include/ \
64	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
65	-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
66	-DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
67	-DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
68	-DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
69	-DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
70	-DHAVE_STEP=1 -DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 \
71	-DHAVE_REGEXEC=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1
72
73CFLAGS +=	$(CCVERBOSE) -I..
74
75.KEEP_STATE:
76
77all:	$(LIBS)
78
79lint:	lintcheck
80
81$(DYNLIB):	$(MAPFILE)
82
83$(MAPFILE):
84	@cd $(MAPDIR); $(MAKE) mapfile
85
86# include library targets
87include ../../../Makefile.targ
88
89pics/%.o: ../../%.c
90	$(COMPILE.c) -o $@ $<
91	$(POST_PROCESS_O)
92
93FRC:
94
95generic.po: FRC
96	$(RM) messages.po
97	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
98	$(SED) "/^domain/d" messages.po > $@
99	$(RM) messages.po
100