1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate# 5*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 6*7c478bd9Sstevel@tonic-gate# 7*7c478bd9Sstevel@tonic-gate 8*7c478bd9Sstevel@tonic-gatePROG= ktutil 9*7c478bd9Sstevel@tonic-gate 10*7c478bd9Sstevel@tonic-gateOBJS = ktutil.o ktutil_ct.o ktutil_funcs.o 11*7c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 12*7c478bd9Sstevel@tonic-gate 13*7c478bd9Sstevel@tonic-gateCLOBBERFILES += $(TESTPROG) 14*7c478bd9Sstevel@tonic-gate 15*7c478bd9Sstevel@tonic-gateinclude ../../../Makefile.cmd 16*7c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 17*7c478bd9Sstevel@tonic-gate 18*7c478bd9Sstevel@tonic-gatePOFILE = $(PROG).po 19*7c478bd9Sstevel@tonic-gatePOFILES = generic.po 20*7c478bd9Sstevel@tonic-gate 21*7c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/uts/common/gssapi/include \ 22*7c478bd9Sstevel@tonic-gate -I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 23*7c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/include \ 24*7c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 25*7c478bd9Sstevel@tonic-gate -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \ 26*7c478bd9Sstevel@tonic-gate -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \ 27*7c478bd9Sstevel@tonic-gate -DHAVE_TIMEZONE 28*7c478bd9Sstevel@tonic-gateCOPTFLAG += $(XESS) #-I$(KINCDIR) 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateLDFLAGS += $(KRUNPATH) 31*7c478bd9Sstevel@tonic-gateLDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 34*7c478bd9Sstevel@tonic-gate 35*7c478bd9Sstevel@tonic-gateall: $(PROG) 36*7c478bd9Sstevel@tonic-gate 37*7c478bd9Sstevel@tonic-gatektutil: $(OBJS) 38*7c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 39*7c478bd9Sstevel@tonic-gate $(POST_PROCESS) 40*7c478bd9Sstevel@tonic-gate 41*7c478bd9Sstevel@tonic-gateinstall: $(KRB5PROG) 42*7c478bd9Sstevel@tonic-gate 43*7c478bd9Sstevel@tonic-gateclean: 44*7c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 45*7c478bd9Sstevel@tonic-gate 46*7c478bd9Sstevel@tonic-gatelint: lint_SRCS 47*7c478bd9Sstevel@tonic-gate 48*7c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 51*7c478bd9Sstevel@tonic-gate $(RM) $@ 52*7c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 53*7c478bd9Sstevel@tonic-gate $(RM) generic.po 54*7c478bd9Sstevel@tonic-gate 55*7c478bd9Sstevel@tonic-gategeneric.po: 56*7c478bd9Sstevel@tonic-gate $(RM) messages.po 57*7c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 58*7c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 59*7c478bd9Sstevel@tonic-gate $(RM) messages.po 60