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= kdb5_util 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gateOBJS = kdb5_util.o \ 107c478bd9Sstevel@tonic-gate kdb5_create.o kadm5_create.o string_table.o kdb5_stash.o \ 1156a424ccSmp153739 kdb5_destroy.o ovload.o strtok.o dump.o 127c478bd9Sstevel@tonic-gate 137c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 147c478bd9Sstevel@tonic-gate 157c478bd9Sstevel@tonic-gateCLOBBERFILES += $(TESTPROG) 167c478bd9Sstevel@tonic-gate 177c478bd9Sstevel@tonic-gateISRCHDR= iprop.h 187c478bd9Sstevel@tonic-gateKRB5IPROPDIR= $(SRC)/cmd/krb5/iprop 197c478bd9Sstevel@tonic-gate 207c478bd9Sstevel@tonic-gateinclude ../../../Makefile.cmd 217c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 227c478bd9Sstevel@tonic-gate 237c478bd9Sstevel@tonic-gatePOFILE = $(PROG).po 247c478bd9Sstevel@tonic-gatePOFILES = generic.po 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateCPPFLAGS += -I. -I$(SRC)/lib/gss_mechs/mech_krb5/include/kerberosIV \ 277c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 2854925bf6Swillf -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \ 297c478bd9Sstevel@tonic-gate -I$(SRC)/lib/krb5 \ 307c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/include \ 317c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 327c478bd9Sstevel@tonic-gate -I$(KRB5IPROPDIR) \ 337c478bd9Sstevel@tonic-gate -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_GETCWD=1 \ 347c478bd9Sstevel@tonic-gate -DHAVE_STRSTR=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 \ 3554925bf6Swillf -DHAVE_KRB_DB_H=1 -DHAVE_KDC_H=1 -DKDB4_DISABLE \ 3654925bf6Swillf -DUSE_KADM5_API_VERSION=2 377c478bd9Sstevel@tonic-gate 387014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 397014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 407014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 417014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 427014882cSRichard Lowe 43*5661bb76SJohn Levon# not linted 44*5661bb76SJohn LevonSMATCH=off 45*5661bb76SJohn Levon 4667e3a03eSrieLDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 477c478bd9Sstevel@tonic-gateLDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb \ 487c478bd9Sstevel@tonic-gate -lmech_krb5 -lnsl 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate.KEEP_STATE: 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gateall: $(PROG) 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate# Rpcgen-erate iprop.h from the iprop.x spec file 557c478bd9Sstevel@tonic-gate$(ISRCHDR): $(KRB5IPROPDIR)/iprop.x 567c478bd9Sstevel@tonic-gate $(RM) $@ 577c478bd9Sstevel@tonic-gate $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@ 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gate# Explicitly state the dependency on iprop.h 607c478bd9Sstevel@tonic-gate$(OBJS): $(ISRCHDR) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) 637c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 647c478bd9Sstevel@tonic-gate $(POST_PROCESS) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateinstall: $(KRB5SBINPROG) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateclean: 697c478bd9Sstevel@tonic-gate $(RM) $(OBJS) $(ISRCHDR) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 747c478bd9Sstevel@tonic-gate $(RM) $@ 757c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gategeneric.po: FRC 787c478bd9Sstevel@tonic-gate $(RM) messages.po 797c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 807c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 817c478bd9Sstevel@tonic-gate $(RM) messages.po 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gateFRC: 84