xref: /titanic_41/usr/src/cmd/krb5/krb5kdc/Makefile (revision 450396635f70344c58b6b1e4db38cf17ff34445c)
1#
2# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# ident	"%Z%%M%	%I%	%E% SMI"
6#
7
8PROG= krb5kdc
9MANIFEST=	krb5kdc.xml
10
11OBJS	= \
12	dispatch.o\
13	do_as_req.o\
14	do_tgs_req.o\
15	extern.o\
16	kdc_preauth.o\
17	kdc_util.o\
18	main.o\
19	network.o\
20	policy.o\
21	replay.o \
22	sock2p.o
23
24SRCS	= $(OBJS:.o=.c)
25
26DEFS =  -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 \
27	-DHAVE_SYSLOG_H=1 -DHAVE_STDARG_H=1 \
28	-DHAVE_SYS_SELECT_H=1 -DHAVE_OPENLOG=1 \
29	-DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 -DHAVE_STRFTIME=1\
30	-DHAVE_VSPRINTF=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 \
31	-DHAVE_NETINET_IN_H=1 -DHAVE_INET_NTOP=1 \
32	-DHAVE_SYS_SOCKIO_H=1 -DHAVE_SYS_SELECT_H=1
33
34CLOBBERFILES += $(RSRC)
35
36include ../../Makefile.cmd
37include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
38
39POFILE = $(PROG).po
40POFILES = generic.po
41
42ROOTMANIFESTDIR=	$(ROOTSVCNETWORKSECURITY)
43
44CFLAGS += $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
45
46CPPFLAGS += \
47	-I$(SRC)/lib/gss_mechs/mech_krb5/include \
48	-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5\
49	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
50	-DHAVE_SYSLOG_H=1
51
52LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
53LDLIBS += -L$(ROOT_KLIBDIR) -L$(KRB5LIB) \
54	  -lmech_krb5 -lkdb -lkadm5srv -lnsl -lsocket -lbsm -lc
55
56.KEEP_STATE:
57
58all: $(PROG)
59
60$(PROG):       $(OBJS)
61	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
62	$(POST_PROCESS)
63
64$(KRB5LIBPROG):=	FILEMODE = 500
65
66install: $(KRB5LIBPROG) $(ROOTSVCMETHOD) $(ROOTMANIFEST)
67
68check:	$(CHKMANIFEST)
69
70clean:
71	$(RM) $(OBJS)
72
73lint: lint_SRCS
74
75include ../../Makefile.targ
76
77$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
78	$(RM) $@
79	$(CAT) $(POFILES) > $@
80
81generic.po: FRC
82	$(RM) messages.po
83	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
84	$(SED) "/^domain/d" messages.po > $@
85	$(RM) messages.po
86
87FRC:
88