17c478bd9Sstevel@tonic-gate# 267e3a03eSrie# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 47c478bd9Sstevel@tonic-gate# 5*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 67c478bd9Sstevel@tonic-gate 77c478bd9Sstevel@tonic-gatePROG= kpasswd 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gateOBJS = tty_kpasswd.o kpasswd.o 107c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 117c478bd9Sstevel@tonic-gate 127c478bd9Sstevel@tonic-gateCLOBBERFILES += $(TESTPROG) 137c478bd9Sstevel@tonic-gate 147c478bd9Sstevel@tonic-gateinclude ../../../Makefile.cmd 157c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 167c478bd9Sstevel@tonic-gate 177c478bd9Sstevel@tonic-gatePOFILE = $(PROG).po 187c478bd9Sstevel@tonic-gatePOFILES = generic.po 197c478bd9Sstevel@tonic-gate 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# Override $ROOTLIB 227c478bd9Sstevel@tonic-gate# 237c478bd9Sstevel@tonic-gateKRB5LIBDIR= $(ROOT)$(KERBLIBDIR) 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 267c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/include/ \ 277c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 287c478bd9Sstevel@tonic-gate -I$(SRC)/lib/krb5 \ 297c478bd9Sstevel@tonic-gate -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \ 307c478bd9Sstevel@tonic-gate -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \ 3156a424ccSmp153739 -DHAVE_TIMEZONE -DUSE_KADM5_API_VERSION=2 327c478bd9Sstevel@tonic-gate 337014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 347014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 357014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 367014882cSRichard Lowe 37*5661bb76SJohn Levon# not linted 38*5661bb76SJohn LevonSMATCH=off 39*5661bb76SJohn Levon 4067e3a03eSrieLDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 417c478bd9Sstevel@tonic-gateLDLIBS += -L $(KRB5LIBDIR) 427c478bd9Sstevel@tonic-gateLDLIBS += $(KMECHLIB) $(KCLNTLIB) 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gate.KEEP_STATE: 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gateall: $(PROG) 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) 497c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 507c478bd9Sstevel@tonic-gate $(POST_PROCESS) 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gateinstall: $(KRB5PROG) 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gateclean: 557c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 607c478bd9Sstevel@tonic-gate $(RM) $@ 617c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 627c478bd9Sstevel@tonic-gate $(RM) generic.po 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gategeneric.po: 657c478bd9Sstevel@tonic-gate $(RM) messages.po 667c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 677c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 687c478bd9Sstevel@tonic-gate $(RM) messages.po 697c478bd9Sstevel@tonic-gate 70