xref: /titanic_44/usr/src/cmd/krb5/kinit/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
17c478bd9Sstevel@tonic-gate#
2c2785286Sgtb# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate
67c478bd9Sstevel@tonic-gatePROG= kinit
77c478bd9Sstevel@tonic-gate
8c2785286SgtbOBJS	= kinit.o
9c2785286SgtbSRCS	= kinit.c
107c478bd9Sstevel@tonic-gate
117c478bd9Sstevel@tonic-gateDEFS =  -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1
127c478bd9Sstevel@tonic-gate
137c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
147c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
157c478bd9Sstevel@tonic-gate
16*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
17*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function
18*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
19*7014882cSRichard Lowe
207c478bd9Sstevel@tonic-gatePOFILE = kinit.po
217c478bd9Sstevel@tonic-gatePOFILES = generic.po
227c478bd9Sstevel@tonic-gate
237c478bd9Sstevel@tonic-gateDEFS = -DHAVE_PWD_H
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateCPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
267c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5 \
277c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
287c478bd9Sstevel@tonic-gate		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
297c478bd9Sstevel@tonic-gate		$(DEFS)
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateLDFLAGS += $(KRUNPATH)
32c2785286SgtbLDLIBS += $(KMECHLIB)
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate.KEEP_STATE:
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gateall: $(PROG)
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate$(PROG):       $(OBJS)
397c478bd9Sstevel@tonic-gate	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
407c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gateinstall: $(KRB5PROG)
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gateclean:
457c478bd9Sstevel@tonic-gate	$(RM) $(OBJS)
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gatelint: lint_SRCS
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
527c478bd9Sstevel@tonic-gate	$(RM) $@
537c478bd9Sstevel@tonic-gate	$(CAT) $(POFILES) > $@
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gategeneric.po:
567c478bd9Sstevel@tonic-gate	$(RM) messages.po
577c478bd9Sstevel@tonic-gate	$(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
587c478bd9Sstevel@tonic-gate	$(SED) "/^domain/d" messages.po > $@
597c478bd9Sstevel@tonic-gate	$(RM) messages.po
60