17c478bd9Sstevel@tonic-gate# 2*56a424ccSmp153739# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 47c478bd9Sstevel@tonic-gate# 57c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 67c478bd9Sstevel@tonic-gate# 77c478bd9Sstevel@tonic-gate 87c478bd9Sstevel@tonic-gatePROG= kadmin kadmin.local 9*56a424ccSmp153739SHFILES= k5srvutil 10*56a424ccSmp153739CLOBBERFILES= $(SHFILES) 11*56a424ccSmp153739 12*56a424ccSmp153739KRB5SBINSHFILES= $(SHFILES:%=$(KRB5SBIN)/%) 137c478bd9Sstevel@tonic-gate 147c478bd9Sstevel@tonic-gateCOMMON_OBJS = kadmin.o kadmin_ct.o ss_wrapper.o getdate.o keytab.o 157c478bd9Sstevel@tonic-gateRMT_OBJS= $(COMMON_OBJS) kadmin_rmt.o 167c478bd9Sstevel@tonic-gateLOC_OBJS= $(COMMON_OBJS) kadmin_loc.o 177c478bd9Sstevel@tonic-gateOBJS = $(COMMON_OBJS) $(RMT_OBJS) $(LOC_OBJS) 187c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 197c478bd9Sstevel@tonic-gate 207c478bd9Sstevel@tonic-gateinclude ../../../Makefile.cmd 217c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 227c478bd9Sstevel@tonic-gate 23*56a424ccSmp153739POFILE = generic.po 24*56a424ccSmp153739POFILES = kadmin.po k5srvutil.po 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateDEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIMEB_H=1 \ 277c478bd9Sstevel@tonic-gate -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 -DHAVE_TIMEZONE 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/uts/common/gssapi/include/ \ 307c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 317c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/include \ 327c478bd9Sstevel@tonic-gate -I$(SRC)/cmd/krb5/iprop \ 337c478bd9Sstevel@tonic-gate -I$(SRC)/lib/krb5 \ 347c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include $(DEFS) 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateCOPTFLAG += $(XESS) #-I$(KINCDIR) 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateSHAREDLIBS = -lmech_krb5 -lss 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateCLLIBS = $(LDLIBS) $(KRUNPATH) \ 417c478bd9Sstevel@tonic-gate -L$(ROOT_KLIBDIR) -L$(KRB5LIB) $(SHAREDLIBS) -lkadm5clnt 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateSRVLIBS = $(LDLIBS) $(KRUNPATH) \ 447c478bd9Sstevel@tonic-gate -L$(ROOT_KLIBDIR) -L$(KRB5LIB) $(SHAREDLIBS) -lkadm5srv 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gatekadmin.local:= DEFS += -D_KADMIN_LOCAL_ 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate.KEEP_STATE: 497c478bd9Sstevel@tonic-gate 50*56a424ccSmp153739all: $(PROG) $(SHFILES) 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gatekadmin: $(RMT_OBJS) 537c478bd9Sstevel@tonic-gate $(LINK.c) $(RMT_OBJS) -o $@ $(CLLIBS) 547c478bd9Sstevel@tonic-gate $(POST_PROCESS) 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gatekadmin.local: $(LOC_OBJS) 577c478bd9Sstevel@tonic-gate $(LINK.c) $(LOC_OBJS) -o $@ $(SRVLIBS) 587c478bd9Sstevel@tonic-gate $(POST_PROCESS) 597c478bd9Sstevel@tonic-gate 60*56a424ccSmp153739$(SHFILES): $(SHFILES).sh 61*56a424ccSmp153739 $(RM) $(SHFILES) 62*56a424ccSmp153739 $(CP) $(SHFILES).sh $(SHFILES) 63*56a424ccSmp153739 64*56a424ccSmp153739install: $(KRB5SBINPROG) $(KRB5SBINSHFILES) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateclean: 677c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gatelint: lint_SRCS 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 77*56a424ccSmp153739kadmin.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