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= kadmin kadmin.local 856a424ccSmp153739SHFILES= k5srvutil 956a424ccSmp153739CLOBBERFILES= $(SHFILES) 1056a424ccSmp153739 1156a424ccSmp153739KRB5SBINSHFILES= $(SHFILES:%=$(KRB5SBIN)/%) 127c478bd9Sstevel@tonic-gate 137c478bd9Sstevel@tonic-gateCOMMON_OBJS = kadmin.o kadmin_ct.o ss_wrapper.o getdate.o keytab.o 147c478bd9Sstevel@tonic-gateRMT_OBJS= $(COMMON_OBJS) kadmin_rmt.o 157c478bd9Sstevel@tonic-gateLOC_OBJS= $(COMMON_OBJS) kadmin_loc.o 167c478bd9Sstevel@tonic-gateOBJS = $(COMMON_OBJS) $(RMT_OBJS) $(LOC_OBJS) 177c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 187c478bd9Sstevel@tonic-gate 197c478bd9Sstevel@tonic-gateinclude ../../../Makefile.cmd 207c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 217c478bd9Sstevel@tonic-gate 2256a424ccSmp153739POFILE = generic.po 2356a424ccSmp153739POFILES = kadmin.po k5srvutil.po 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gateDEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIMEB_H=1 \ 267c478bd9Sstevel@tonic-gate -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 -DHAVE_TIMEZONE 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/uts/common/gssapi/include/ \ 297c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 307c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/include \ 317c478bd9Sstevel@tonic-gate -I$(SRC)/cmd/krb5/iprop \ 327c478bd9Sstevel@tonic-gate -I$(SRC)/lib/krb5 \ 337c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include $(DEFS) 347c478bd9Sstevel@tonic-gate 357014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 367014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 377014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 387014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 397014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 407014882cSRichard Lowe 41*5661bb76SJohn LevonSMATCH=off 42*5661bb76SJohn Levon 437c478bd9Sstevel@tonic-gateCOPTFLAG += $(XESS) #-I$(KINCDIR) 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateSHAREDLIBS = -lmech_krb5 -lss 467c478bd9Sstevel@tonic-gate 4767e3a03eSrieCLLIBS = $(LDLIBS) $(KRUNPATH) $(KERBRUNPATH) \ 487c478bd9Sstevel@tonic-gate -L$(ROOT_KLIBDIR) -L$(KRB5LIB) $(SHAREDLIBS) -lkadm5clnt 497c478bd9Sstevel@tonic-gate 5067e3a03eSrieSRVLIBS = $(LDLIBS) $(KRUNPATH) $(KERBRUNPATH) \ 517c478bd9Sstevel@tonic-gate -L$(ROOT_KLIBDIR) -L$(KRB5LIB) $(SHAREDLIBS) -lkadm5srv 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gatekadmin.local:= DEFS += -D_KADMIN_LOCAL_ 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate.KEEP_STATE: 567c478bd9Sstevel@tonic-gate 5756a424ccSmp153739all: $(PROG) $(SHFILES) 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gatekadmin: $(RMT_OBJS) 607c478bd9Sstevel@tonic-gate $(LINK.c) $(RMT_OBJS) -o $@ $(CLLIBS) 617c478bd9Sstevel@tonic-gate $(POST_PROCESS) 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gatekadmin.local: $(LOC_OBJS) 647c478bd9Sstevel@tonic-gate $(LINK.c) $(LOC_OBJS) -o $@ $(SRVLIBS) 657c478bd9Sstevel@tonic-gate $(POST_PROCESS) 667c478bd9Sstevel@tonic-gate 6756a424ccSmp153739$(SHFILES): $(SHFILES).sh 6856a424ccSmp153739 $(RM) $(SHFILES) 6956a424ccSmp153739 $(CP) $(SHFILES).sh $(SHFILES) 7056a424ccSmp153739 7156a424ccSmp153739install: $(KRB5SBINPROG) $(KRB5SBINSHFILES) 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateclean: 747c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gatelint: lint_SRCS 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 817c478bd9Sstevel@tonic-gate $(RM) $@ 827c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 837c478bd9Sstevel@tonic-gate 8456a424ccSmp153739kadmin.po: FRC 857c478bd9Sstevel@tonic-gate $(RM) messages.po 867c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 877c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 887c478bd9Sstevel@tonic-gate $(RM) messages.po 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gateFRC: 91