xref: /illumos-gate/usr/src/cmd/krb5/kinit/Makefile (revision ff67a31b)
17c478bd9Sstevel@tonic-gate#
2c2785286Sgtb# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
55661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gatePROG= kinit
87c478bd9Sstevel@tonic-gate
9c2785286SgtbOBJS	= kinit.o
10c2785286SgtbSRCS	= kinit.c
117c478bd9Sstevel@tonic-gate
12*ff67a31bSToomas SoomeDEFS =  -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1
137c478bd9Sstevel@tonic-gate
147c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
157c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
167c478bd9Sstevel@tonic-gate
177014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
187014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function
197014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
207014882cSRichard Lowe
215661bb76SJohn Levon# not linted
225661bb76SJohn LevonSMATCH=off
235661bb76SJohn Levon
247c478bd9Sstevel@tonic-gatePOFILE = kinit.po
257c478bd9Sstevel@tonic-gatePOFILES = generic.po
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateDEFS = -DHAVE_PWD_H
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateCPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
307c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5 \
317c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
327c478bd9Sstevel@tonic-gate		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
337c478bd9Sstevel@tonic-gate		$(DEFS)
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gateLDFLAGS += $(KRUNPATH)
36c2785286SgtbLDLIBS += $(KMECHLIB)
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate.KEEP_STATE:
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gateall: $(PROG)
417c478bd9Sstevel@tonic-gate
42*ff67a31bSToomas Soome$(PROG):       $(OBJS)
437c478bd9Sstevel@tonic-gate	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
447c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gateinstall: $(KRB5PROG)
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gateclean:
497c478bd9Sstevel@tonic-gate	$(RM) $(OBJS)
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
527c478bd9Sstevel@tonic-gate
53*ff67a31bSToomas Soome$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
54*ff67a31bSToomas Soome	$(RM) $@
55*ff67a31bSToomas Soome	$(CAT) $(POFILES) > $@
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gategeneric.po:
587c478bd9Sstevel@tonic-gate	$(RM) messages.po
597c478bd9Sstevel@tonic-gate	$(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
607c478bd9Sstevel@tonic-gate	$(SED) "/^domain/d" messages.po > $@
617c478bd9Sstevel@tonic-gate	$(RM) messages.po
62