xref: /titanic_52/usr/src/lib/krb5/kadm5/clnt/Makefile.com (revision fd845fc0cb4fbc8e85f974e2e4eaacca1cc26e81)
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
8LIBRARY= libkadm5clnt.a
9VERS= .1
10
11CLNT_OBJS = clnt_policy.o \
12	client_rpc.o \
13	client_principal.o \
14	client_init.o \
15	clnt_privs.o \
16	clnt_chpass_util.o \
17	logger.o \
18	changepw.o \
19	chpw.o
20
21SHARED_OBJS = \
22	alt_prof.o \
23	chpass_util.o \
24	kadm_rpc_xdr.o \
25	misc_free.o \
26	kadm_host_srv_names.o \
27	str_conv.o
28
29OBJECTS= $(CLNT_OBJS) $(SHARED_OBJS)
30
31ISRCHDR= ../iprop.h
32KRB5IPROPDIR=	$(SRC)/cmd/krb5/iprop
33
34# include library definitions
35include ../../../Makefile.lib
36
37SRCS=		$(CLNT_OBJS:%.o=../%.c) \
38		$(SHARED_OBJS:%.o=../../%.c)
39
40LIBS=		$(DYNLIB)
41
42include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
43
44POFILE = $(LIBRARY:%.a=%.po)
45POFILES = generic.po
46
47#override liblink
48INS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
49
50CPPFLAGS += -I.. -I../.. -I../../.. -I$(SRC)/lib/gss_mechs/mech_krb5/include \
51	-I$(SRC)/lib/krb5 \
52	-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
53	-I$(SRC)/uts/common/gssapi/include/ \
54	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
55	-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
56	-I$(KRB5IPROPDIR) \
57	-DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
58	-DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
59	-DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
60	-DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
61	-DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1
62
63CFLAGS +=	$(CCVERBOSE) -I..
64LDLIBS +=	-lc
65
66.KEEP_STATE:
67
68all:	$(LIBS)
69
70# Rpcgen-erate iprop.h from the iprop.x spec file
71$(ISRCHDR):	$(KRB5IPROPDIR)/iprop.x
72	$(RM)	$@
73	$(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
74
75# Explicitly state the dependancy on iprop.h
76$(LIBS): $(ISRCHDR)
77
78CLEANFILES +=	$(ISRCHDR)
79
80lint:	lintcheck
81
82$(DYNLIB):	$(MAPFILE)
83
84$(MAPFILE):
85	@cd $(MAPDIR); $(MAKE) mapfile
86
87# include library targets
88include ../../../Makefile.targ
89
90pics/%.o: ../../%.c
91	$(COMPILE.c) -o $@ $<
92	$(POST_PROCESS_O)
93
94FRC:
95
96generic.po: FRC
97	$(RM) messages.po
98	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
99	$(SED) "/^domain/d" messages.po > $@
100	$(RM) messages.po
101